https://wwws.clamav.net/bugzilla/show_bug.cgi?id=2092
http://forums.gentoo.org/viewtopic-p-6335986.html
I'm currently running hardened-sources (2.6.28-hardened-r9), and apparently there are issues with executing RWX memory. I get the following errors during the crash:
- Code: Select all
Jun 29 18:57:23 comp kernel: PAX: From xxx.xxx.xxx.xxx: execution attempt in: <anonymous mapping>, 47755000-47808000 47755000
Jun 29 18:57:23 comp kernel: PAX: terminating task: /usr/sbin/clamd(clamd):12689, uid/euid: 105/105, PC: 4777c6d0, SP: 46f172ec
Jun 29 18:57:23 comp kernel: PAX: bytes at PC: 83 ec 04 8b 4c 24 08 e8 d4 fe ff ff 83 c4 04 c3 b3 04 00 00
Jun 29 18:57:23 comp kernel: PAX: bytes at SP-4:
Jun 29 18:57:53 comp kernel: PAX: execution attempt in: <anonymous mapping>, 4330c000-43b98000 4330c000
Jun 29 18:57:53 comp kernel: PAX: terminating task: /usr/bin/clamscan(clamscan):12791, uid/euid: 105/105, PC: 43b0c6d0, SP: 5a92129c
Jun 29 18:57:53 comp kernel: PAX: bytes at PC: 83 ec 04 8b 4c 24 08 e8 d4 fe ff ff 83 c4 04 c3 b3 04 00 00
Jun 29 18:57:53 comp kernel: PAX: bytes at SP-4:
While, they're working on the fix, I would love to have something in place.. so I have clamav, without removing PAX/Grsecurity from the kernel. I saw people using paxctl -m /usr/sbin/clamd to address this, but this does not work for me. I currently have the following flags used on paxctl...
- Code: Select all
- PaX flags: -p-s-m-x-e-- [/usr/sbin/clamd]
PAGEEXEC is disabled
SEGMEXEC is disabled
MPROTECT is disabled
RANDEXEC is disabled
EMUTRAMP is disabled
I also tried to adjust clamscan..
- Code: Select all
- PaX flags: -p-s-m-x-e-- [/usr/bin/clamscan]
PAGEEXEC is disabled
SEGMEXEC is disabled
MPROTECT is disabled
RANDEXEC is disabled
EMUTRAMP is disabled
It also appears to happen when clam updates (freshclam), and I started clamd without freshclam.. and I'm still getting the intermittent crashes. The logs indicate that it's clamd and clamscan, so I didn't not adjust flags for freshclam.
Can anyone help with a solution so I can get clamav running while they sort out this issue? On that note, I have to mention, that the bug was introduced with dat update.. not a new build of clamav, etc. This version was working fine for sometime until yesterday.
Thanks in advance!
hanji