Gentoo Archives: gentoo-hardened

From: Alex Efros <powerman@××××××××.name>
To: gentoo-hardened@l.g.o
Subject: Re: [gentoo-hardened] tcpserver use random amount of memory
Date: Wed, 20 Mar 2013 08:12:07
Message-Id: 20130320081158.GA2520@home.power
In Reply to: [gentoo-hardened] tcpserver use random amount of memory by Alex Efros
1 Hi!
2
3 On Wed, Mar 20, 2013 at 09:25:07AM +0200, Alex Efros wrote:
4 > https://bugs.gentoo.org/show_bug.cgi?id=462430
5 >
6 > Any ideas which grsec/pax option may result in this (subj) behavior?
7
8 Looks like PAX_RANDMMAP is broken (or improved too much). If trivial tools
9 like tcpserver on 32-bit system instead of 2MB will randomly use up to
10 300MB just as result of RANDMMAP - this isn't good. Even if it doesn't
11 really allocate all these memory it still break things like ulimit/softlimit.
12
13 Also it looks like on 64-bit system it use up to 60MB instead of 4MB for
14 tcpserver. Maybe there is typo in some constant in PaX code and because of
15 this it allocate up to 300MB instead of, say, up to 32MB?
16
17 --
18 WBR, Alex.

Replies

Subject Author
Re: [gentoo-hardened] tcpserver use random amount of memory PaX Team <pageexec@××××××××.hu>