dm-crypt segfaulting due to grsec
Hi,
I was trying to create a luks-container with cryptsetup from the Alpine
ISO.
When trying to do that, cryptsetup just segfaults:
localhost:~# cryptsetup -v -c aes-xts-plain64 -s 512 —hash sha512 —iter-time 5000 —use-random luksFormat /dev/sdb2
WARNING!
This will overwrite data on /dev/sdb2 irrevocably.
Segmentation fault
According to dmesg this seems to be a problem with grsec:
[ 2273.985509] cryptsetup[2356]: segfault at 0 ip 000070ab7f5b7b79
sp 00007d4178e1b080 error 4 in
ld-musl-x86_64.so.1[70ab7f568000+85000]
[ 2273.985520] grsec: From 192.168.1.101: Segmentation fault occurred
at (nil) in /sbin/cryptsetup[cryptsetup:2356] uid/euid:0/0
gid/egid:0/0, parent /bin/busybox[ash:1948] uid/euid:0/0
gid/egid:0/0
[ 2273.985528] grsec: From 192.168.1.101: denied resource overstep by
requesting 4096 for RLIMIT_CORE against limit 0 for
/sbin/cryptsetup[cryptsetup:2356] uid/euid:0/0 gid/egid:0/0, parent
/bin/busybox[ash:1948] uid/euid:0/0 gid/egid:0/0
(from redmine: issue id 3599, created on 2014-12-08, closed on 2014-12-09)