On 26/08/14 11:13 AM, Matthew Thode wrote:
> On 08/26/2014 05:23 AM, Marcin Mirosław wrote:
>> Hello!
>> I suspect that I've got problem with hardened-sources in KVM VM. I'm not
>> sure if I should fill a bug for this. I'd like to post it here before
>> using b.g.o.
>> I've got VM (it's KVM with qemu-2.0.0-r1), with
>> hardened-sources-3.15.{5-r2,8}. I'm observing a kind of memory
>> corruption. After a couple of hours of uptime I'm starting seeing random
>> segfaults, general protection traps especially when process uses a lot
>> of CPU and do many I/O operations (masscheck scripts written in perl for
>> spamassasin rules).
>> In log I've got e.g.:
>>
>> 2014-08-25T13:05:23.243062+02:00 mohikanin kernel: [45571.239703] PAX:
>> From 88.198.102.195: execution attempt in: (null), 00000000-00000000
>> 00000000
>> 2014-08-25T13:05:23.243088+02:00 mohikanin kernel: [45571.239707] PAX:
>> terminating task: /usr/libexec/dovecot/pop3-login(pop3-login):2507,
>> uid/euid: 105/105, PC: (nil), SP: 000003a8574e4c00
>> 2014-08-25T13:05:23.243093+02:00 mohikanin kernel: [45571.239709] PAX:
>> bytes at PC: ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ??
>> 2014-08-25T13:05:23.243095+02:00 mohikanin kernel: [45571.239735] PAX:
>> bytes at SP-8: 0000000000000000 0000000000000000 00000059c6deceb0
>> 0000000000000000 00000316027bc540 0000000000000001 000003160271dbb5
>> 0000000000000000 0000000000000000 0000000000000000 0000000000000000
>> 2014-08-25T13:24:42.943001+02:00 mohikanin kernel: [46730.931353] traps:
>> spamd child[19681] general protection ip:2c572b6e163 sp:3ca7d000be0
>> error:0 in libc-2.19.so[2c572aee000+19e000]
>> 2014-08-25T13:24:42.943007+02:00 mohikanin kernel: [46730.931371] grsec:
>> Segmentation fault occurred at (nil) in /usr/sbin/spamd[spamd
>> child:19681] uid/euid:999/999 gid/egid:100/100, parent
>> /usr/sbin/spamd[/usr/sbin/spamd:1255] uid/euid:0/0 gid/egid:0/0
>> 2014-08-25T13:55:22.383032+02:00 mohikanin kernel: [48570.375917] traps:
>> freshclam[6594] general protection ip:344cceb368d sp:3d5f5ced520 error:0
>> in libclamav.so.6.1.23[344ccdf1000+9d1000]
>> 2014-08-25T13:55:22.383050+02:00 mohikanin kernel: [48570.375968] grsec:
>> Segmentation fault occurred at (nil) in
>> /usr/bin/freshclam[freshclam:6594] uid/euid:104/104 gid/egid:115/115,
>> parent /usr/bin/freshclam[freshclam:1159] uid/euid:104/104 gid/egid:115/115
>>
>> Yesterday I switched kernel to gentoo-sources-3.14.14 and I don't see
>> any unwanted behavior. This is why I suspect hardened-sources. Should I
>> fill a bug? What should I do help find out the root of problem?
>> (gcc is: gcc version 4.7.3 (Gentoo Hardened 4.7.3-r1 p1.4, pie-0.5.5) ,
>> with ld.gold)
>>
>> Marcin
>>
>
> I'll test a 3.15.10-r1 kernel today sometime, anything I can do to
> reproduce specifically?
>
> Run emerge boost. My setup is with PORTAGE_TMPDIR to hard drive, maybe that affects repro.
signature.asc
Description: OpenPGP digital signature
