Gentoo Archives: gentoo-hardened

From: "François" <aifsair@×××××.com>
To: gentoo-hardened@l.g.o
Subject: [gentoo-hardened] Question about ASLR
Date: Thu, 27 Aug 2015 13:04:06
Message-Id: 55DF0A83.4080206@gmail.com
1 Hi,
2
3 this is my first message here, I hope I'm not off-topic!
4
5 I've been reading [1], and tried on my gentoo system:
6
7 fser@regal /tmp$ ./aslr-test-without
8 main @ 0x4005da
9 doit @ 0x40059b
10 fser@regal /tmp$ ./aslr-test-without
11 main @ 0x4005da
12 doit @ 0x40059b
13 fser@regal /tmp$ ./aslr-test-without
14 main @ 0x4005da
15 doit @ 0x40059b
16
17
18 and
19
20 fser@regal /tmp$ ./aslr-test-withpie
21 main @ 0x468f410820
22 doit @ 0x468f4107e1
23 fser@regal /tmp$ ./aslr-test-withpie
24 main @ 0x6d8a0f9820
25 doit @ 0x6d8a0f97e1
26 fser@regal /tmp$ ./aslr-test-withpie
27 main @ 0x33eb5d8820
28 doit @ 0x33eb5d87e1
29 fser@regal /tmp$ ./aslr-test-withpie
30 main @ 0x769c4a5820
31 doit @ 0x769c4a57e1
32
33 I was under the impression that ASLR was enforced by the kernel, when
34 creating a new context for a process.
35 Reading the description of [1], I was expecting the adress of main (at
36 least) to be different.
37
38 Can someone explain me this behavior?
39
40 Thank you!
41
42
43 [1]
44 https://wiki.gentoo.org/wiki/Hardened/PaX_Quickstart#Address_Space_Layout_Randomization_.28ASLR.29
45
46 --
47 François

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-hardened] Question about ASLR Sven Vermeulen <swift@g.o>