Re: [PATCH] x86: make PTRACE_GETREGSET return 32-bit regs if64-bit process entered kernel with int 80

From: Oleg Nesterov
Date: Thu Feb 14 2013 - 14:20:00 EST

On 02/14, H. Peter Anvin wrote:
> On 02/14/2013 07:00 AM, Oleg Nesterov wrote:
>> On 02/14, Denys Vlasenko wrote:
>>> Determining personality of a ptraced process is a murky area.
>>> On x86, for years strace was looking at segment selectors,
>>> which is conceptually wrong: see, for example,
> One proposal that keeps being on the table is to export a regset with
> metadatam, including process mode at launch (i386, x86-64, x32).

Yes... but if this metadata includes TS_COMPAT-is-set, then strace should
time. Or REGSET_META should include META+GENERAL.

IOW, it is not clear to me what this "meta" should actually report.


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at