Hi!
On Wed, Mar 20, 2013 at 10:15:16AM +0100, PaX Team wrote:
> > > https://bugs.gentoo.org/show_bug.cgi?id=462430
>
> next time add me to the bug if you expect an answer instead of spamming
> every possible forum.
Ok.
> nevertheless to reduce the pain i've fixed the gap accounting in that these
> areas are not taken into account when mmap checks RLIMIT_AS, so it should
> be fine now (did you even search the gentoo bugzilla or the grsec forums for
> similar issues? i thought so). you'll need to update to 3.8.3 though because
> 3.7 is no longer supported.
I've searched gentoo bugzilla, but not grsec forums (when I report this
issue I wasn't sure it's related to hardened).
Anyway, I've tried 3.8.3, and see no difference at all on 32-bit system:
# uname -a
Linux web 3.8.3-hardened #1 SMP Wed Mar 20 15:45:48 GMT 2013 i686 Intel(R) Core(TM)2 Duo CPU E4500 @ 2.20GHz GenuineIntel GNU/Linux
# softlimit -m 32000000 tcpserver 0.0.0.0 11111 echo ok
Killed
kern.alert: grsec: From 127.0.0.1: denied resource overstep by requesting 189251584 for RLIMIT_AS against limit 32000000 for /usr/bin/tcpserver[tcpserver:1821] uid/euid:0/0 gid/egid:0/0, parent /bin/bash[bash:1307] uid/euid:0/0 gid/egid:0/0
At same time, on 3.8.3 64-bit system tcpserver works ok under much lower
softlimit -m 5000000 (5MB!) without any grsec errors in log (`ps axu`
still show tcpserver uses up to 60MB VSZ).
--
WBR, Alex.