[PATCH] new x86 personality detection
Dmitry V. Levin
ldv at altlinux.org
Mon Feb 11 23:37:08 UTC 2013
On Mon, Feb 11, 2013 at 12:45:48PM +0100, Denys Vlasenko wrote:
> Recent addition of AArch64 used a novel way of detecting
> 32/64-bitness of the process by looking at the returned size
> of ptrace(PTRACE_GETREGSET, NT_PRSTATUS).
> I played with it on x86 and it appears to be working there too.
Yes, seems to work on fresh kernels. Unfortunately, on 2.6.18-based
kernels PTRACE_GETREGSET returns EIO and strace with your patch applied
just silently hangs. Another candidate for a runtime check?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 198 bytes
Desc: not available
More information about the Strace-devel