Question about ASLR
François <[email protected]> Thu, 27 Aug 2015 15:02:59 +0200
| Newsgroups | gmane.linux.gentoo.hardened |
|---|---|
| Message-ID | <[email protected]> |
Hi, this is my first message here, I hope I'm not off-topic! I've been reading [1], and tried on my gentoo system: fser@regal /tmp$ ./aslr-test-without main @ 0x4005da doit @ 0x40059b fser@regal /tmp$ ./aslr-test-without main @ 0x4005da doit @ 0x40059b fser@regal /tmp$ ./aslr-test-without main @ 0x4005da doit @ 0x40059b and fser@regal /tmp$ ./aslr-test-withpie main @ 0x468f410820 doit @ 0x468f4107e1 fser@regal /tmp$ ./aslr-test-withpie main @ 0x6d8a0f9820 doit @ 0x6d8a0f97e1 fser@regal /tmp$ ./aslr-test-withpie main @ 0x33eb5d8820 doit @ 0x33eb5d87e1 fser@regal /tmp$ ./aslr-test-withpie main @ 0x769c4a5820 doit @ 0x769c4a57e1 I was under the impression that ASLR was enforced by the kernel, when creating a new context for a process. Reading the description of [1], I was expecting the adress of main (at least) to be different. Can someone explain me this behavior? Thank you! [1] https://wiki.gentoo.org/wiki/Hardened/PaX_Quickstart#Address_Space_Layout_Randomization_.28ASLR.29 -- François
signature.asc
(application/pgp-signature, 819 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBAgAGBQJV3wqIAAoJED4y673idXxPKwkQAKLssNmsEFZJQjd+U2lQvgYb HToaQy0HSi3F3A2Cx0nC2v89M5iwtkGAi/v4Y2yaGXjKRfPMC0V78SlQZU2Y11FG vBbSNRaUqLa2qH59jKSXiZJnZUC3r+l4wA9BHtOC6gF4kx99dNx3fkXberycIE3O tu92GC5ZMgB49qYllgU8HVi7qHAs9IjZom6bF+mc4zcVhp6pafz82ZrYdkb9C0+7 KVXhwNn2iXSf8SIXsdag9RkA1gt4LdcvBIn3w3f4xHGeJxRyV+5IusSo79jNdOhO 9ck6HfkDbQJ4O0f7DpUSAuwxESbIuqhED4zJApYzqpWcFyQTI+FCqgOcmCvsKZVC rw+JzD58h7bYdYqRXg1iwAQ6vzekyJgWJsdCTH57c1F116Ig81t+vBVh2GcB/xke urp/rdhcnKK9R5qvhb9mo7RPbvV/LM58jyMV42bhWmSWt4Pk80adDzwyDA4Rw09K KjcqbFCEnttvnX8stY9H8rrBJzwDArDe9Qu05rIBlbVXMOF/jiqbRGI/ffeEMOxy HYJ+m6CR8d0kadY2yC+uBYJRsyKcteXiADV0tx0xRAanzBp3mMpkwDytauXuojdx V4SrhJgIpbByXvBqfQDKfK71fIl/zUsPVsgTaKQWnThcPEXHqBSp4REXc/eiDbNk 3SypqClgahD8GDKeRRqr =7McS -----END PGP SIGNATURE-----