[PATCH] x86/asm/32: Fix regs_get_register() on segment registers

2017-08-09 Thread Andy Lutomirski
The segment register high words on x86_32 may contain garbage. Teach regs_get_register() to read them as u16 instead of unsigned long. Cc: Steven Rostedt Signed-off-by: Andy Lutomirski --- arch/x86/include/asm/ptrace.h | 11 +++ 1 file changed, 11

[PATCH] x86/asm/32: Fix regs_get_register() on segment registers

2017-08-09 Thread Andy Lutomirski
The segment register high words on x86_32 may contain garbage. Teach regs_get_register() to read them as u16 instead of unsigned long. Cc: Steven Rostedt Signed-off-by: Andy Lutomirski --- arch/x86/include/asm/ptrace.h | 11 +++ 1 file changed, 11 insertions(+) diff --git