[Bug 220892] personality flags like ADDR_NO_RANDOMIZE lost on exec of 32-bit program on 64-bit host.

bugzilla at redhat.com bugzilla at redhat.com
Fri Mar 26 21:34:23 UTC 2010


Please do not reply directly to this email. All additional
comments should be made in the comments box of this bug.


https://bugzilla.redhat.com/show_bug.cgi?id=220892

Jan Kratochvil <jan.kratochvil at redhat.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|CLOSED                      |ASSIGNED
            Version|rawhide                     |13
           Keywords|                            |Reopened
                 CC|                            |jan.kratochvil at redhat.com
           Platform|All                         |i686
         Resolution|INSUFFICIENT_DATA           |

--- Comment #3 from Jan Kratochvil <jan.kratochvil at redhat.com> 2010-03-26 17:34:17 EDT ---
This problem still exists.
It affects both x86_64 kernels running i386 programs and i386 kernels.

As GDB has default "set disable-randomization on" for reproducible debugging
sessions this feature does not work for 32bit programs/platform.

Tested:
kernel-2.6.33.1-19.fc13.i686
kernel-2.6.32.9-70.fc12.x86_64

(set -x; for i in -m64 -m32;do gcc $i -o ADDR_NO_RANDOMIZE ADDR_NO_RANDOMIZE.c
-Wall -g -fPIE -pie && ./ADDR_NO_RANDOMIZE; done)
+ gcc -m64 -o ADDR_NO_RANDOMIZE ADDR_NO_RANDOMIZE.c -Wall -g -fPIE -pie
nonrandom3: OK
+ gcc -m32 -o ADDR_NO_RANDOMIZE ADDR_NO_RANDOMIZE.c -Wall -g -fPIE -pie
nonrandom2: Even with ADDR_NO_RANDOMIZE: prev 0x48d82c vs. now 0xb4882c

-- 
Configure bugmail: https://bugzilla.redhat.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


More information about the triage mailing list