NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: kern/41877: PaX ASLR reduces available stack size



The following reply was made to PR kern/41877; it has been noted by GNATS.

From: Pierre Pronchery <khorben%defora.org@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: 
Subject: Re: kern/41877: PaX ASLR reduces available stack size
Date: Wed, 4 Jan 2012 02:00:40 +0100

 --d6Gm4EdcadzBjdND
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 Content-Transfer-Encoding: quoted-printable
 
                        Hi,
 
 testing Manuel's program in this problem report seems to work reliably
 for me with the following change, which reduced the memory allocation on
 the stack by only 8 KB:
 #define ALLOCASZ (2048 * 1024 - 4096 * 5)
 
 This is true both on NetBSD/amd64 5.99.58 (from approximately December
 1st 2011) and on NetBSD/amd64 5.1_STABLE (tracking the netbsd-5 branch).
 
 In both cases I have set the stack size to the same value:
 $ ulimit -s 2048
 $ ulimit -s
 2048
 
 Setting ALLOCASZ to be bigger by just 4 KB triggers crashes after one to
 three attempts. I suppose that this behavior is as expected though;
 could it be that the modification pushed in kern/43773 fixed this report
 as well?
 
 HTH,
 --=20
 khorben
 
 --d6Gm4EdcadzBjdND
 Content-Type: application/pgp-signature
 Content-Disposition: inline
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.4.11 (NetBSD)
 
 iQIcBAEBAgAGBQJPA6S4AAoJEDU4cZknVYg+cJ4P/2nwObd+5ajRI0jQg3SR67jN
 SUVPToNRIVP5XCwPaib4lXvrTe5n9zsqRJInDlb97KMBDjrx1AQ60viVeec/Ejss
 CoTaqvvnA+6xk2ytsAyFvgcREaSkYhXlo64qxqtFALtm2OXgcQm6XpqIHg3/Kc8e
 KfS5+/WeLEIv1TpIj6tySoEXHGe9H9h/h1SgwKkCH7n2jfhiUDREhSVqWA0pHkp6
 dIfcS5jROzE9GEOr+swi0mEoBsQ9/rMFnJqHDcSkPUZJ8hFTZIbG3bnp4u7ouZL9
 oDROyr7wIpl7Q6JCkXSwTvSM+QDhkv600tl0VCxd3mgPMkOL079oaESWXCXcXbBd
 cA9gPXh660qht0DF5hQuUDlSAKqBF51I8/QXKnxunPmiKRJKxe4EIVSTUROFMzw5
 tkemsUWWw6BDpIN5Rcx/b/5vPlOtiLp51Kbd8JeS7O7S0wKjoV7ojRZRFkwzFtwK
 Zo/SR1wiJ/GgiGo1FMjgEr2lhsKvDP77zIAoFqX3ulVMeepyu8DGAdZitbUPN27L
 KgPinrM9K/bs6nyWoFP9atkNMi5SNGPIufk1LpKhIM18a3dGg0IENaXCPt0UtmK+
 S4M1Ml/V5aQpVTfGg8NpkKWkWl7bNIi0RupaHsr+oMGOZDxh9dcLUCOQzRsbh6mL
 S9rooCewZyxtLrGJO8ND
 =iYdj
 -----END PGP SIGNATURE-----
 
 --d6Gm4EdcadzBjdND--
 


Home | Main Index | Thread Index | Old Index