Gentoo Archives: gentoo-hardened

From: Matthew Thode <prometheanfire@g.o>
To: gentoo-hardened@l.g.o
Subject: Re: [gentoo-hardened] Problem with (?) hardened-sources-3.15.x on kvm-vm
Date: Tue, 26 Aug 2014 15:14:07
Message-Id: 53FCA433.5060107@gentoo.org
In Reply to: [gentoo-hardened] Problem with (?) hardened-sources-3.15.x on kvm-vm by "Marcin Mirosław"
1 On 08/26/2014 05:23 AM, Marcin Mirosław wrote:
2 > Hello!
3 > I suspect that I've got problem with hardened-sources in KVM VM. I'm not
4 > sure if I should fill a bug for this. I'd like to post it here before
5 > using b.g.o.
6 > I've got VM (it's KVM with qemu-2.0.0-r1), with
7 > hardened-sources-3.15.{5-r2,8}. I'm observing a kind of memory
8 > corruption. After a couple of hours of uptime I'm starting seeing random
9 > segfaults, general protection traps especially when process uses a lot
10 > of CPU and do many I/O operations (masscheck scripts written in perl for
11 > spamassasin rules).
12 > In log I've got e.g.:
13 >
14 > 2014-08-25T13:05:23.243062+02:00 mohikanin kernel: [45571.239703] PAX:
15 > From 88.198.102.195: execution attempt in: (null), 00000000-00000000
16 > 00000000
17 > 2014-08-25T13:05:23.243088+02:00 mohikanin kernel: [45571.239707] PAX:
18 > terminating task: /usr/libexec/dovecot/pop3-login(pop3-login):2507,
19 > uid/euid: 105/105, PC: (nil), SP: 000003a8574e4c00
20 > 2014-08-25T13:05:23.243093+02:00 mohikanin kernel: [45571.239709] PAX:
21 > bytes at PC: ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ??
22 > 2014-08-25T13:05:23.243095+02:00 mohikanin kernel: [45571.239735] PAX:
23 > bytes at SP-8: 0000000000000000 0000000000000000 00000059c6deceb0
24 > 0000000000000000 00000316027bc540 0000000000000001 000003160271dbb5
25 > 0000000000000000 0000000000000000 0000000000000000 0000000000000000
26 > 2014-08-25T13:24:42.943001+02:00 mohikanin kernel: [46730.931353] traps:
27 > spamd child[19681] general protection ip:2c572b6e163 sp:3ca7d000be0
28 > error:0 in libc-2.19.so[2c572aee000+19e000]
29 > 2014-08-25T13:24:42.943007+02:00 mohikanin kernel: [46730.931371] grsec:
30 > Segmentation fault occurred at (nil) in /usr/sbin/spamd[spamd
31 > child:19681] uid/euid:999/999 gid/egid:100/100, parent
32 > /usr/sbin/spamd[/usr/sbin/spamd:1255] uid/euid:0/0 gid/egid:0/0
33 > 2014-08-25T13:55:22.383032+02:00 mohikanin kernel: [48570.375917] traps:
34 > freshclam[6594] general protection ip:344cceb368d sp:3d5f5ced520 error:0
35 > in libclamav.so.6.1.23[344ccdf1000+9d1000]
36 > 2014-08-25T13:55:22.383050+02:00 mohikanin kernel: [48570.375968] grsec:
37 > Segmentation fault occurred at (nil) in
38 > /usr/bin/freshclam[freshclam:6594] uid/euid:104/104 gid/egid:115/115,
39 > parent /usr/bin/freshclam[freshclam:1159] uid/euid:104/104 gid/egid:115/115
40 >
41 > Yesterday I switched kernel to gentoo-sources-3.14.14 and I don't see
42 > any unwanted behavior. This is why I suspect hardened-sources. Should I
43 > fill a bug? What should I do help find out the root of problem?
44 > (gcc is: gcc version 4.7.3 (Gentoo Hardened 4.7.3-r1 p1.4, pie-0.5.5) ,
45 > with ld.gold)
46 >
47 > Marcin
48 >
49
50 I'll test a 3.15.10-r1 kernel today sometime, anything I can do to
51 reproduce specifically?
52
53
54 --
55 -- Matthew Thode (prometheanfire)

Replies

Subject Author
Re: [gentoo-hardened] Problem with (?) hardened-sources-3.15.x on kvm-vm Alex Xu <alex_y_xu@×××××.ca>