x86/mm/pkeys: Do not skip PKRU register if debug registers are not used
authorNicolas Iooss <nicolas.iooss_linux@m4x.org>
Sat, 10 Sep 2016 18:30:45 +0000 (20:30 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 16 Oct 2016 16:03:40 +0000 (18:03 +0200)
commit36fc8758ef87039b33840f2761e6776dcda03645
treeb0e0b4ef8c9b01f922eda17991eeb6ab8938016f
parent0480b221143bfaefd4a65f885cd7ba81459d968a
x86/mm/pkeys: Do not skip PKRU register if debug registers are not used

commit ba6d018e3d2f6a0fad58a668cadf66b2d1f80f59 upstream.

__show_regs() fails to dump the PKRU state when the debug registers are in
their default state because there is a return statement on the debug
register state.

Change the logic to report PKRU value even when debug registers are in
their default state.

Fixes:c0b17b5bd4b7 ("x86/mm/pkeys: Dump PKRU with other kernel registers")
Signed-off-by: Nicolas Iooss <nicolas.iooss_linux@m4x.org>
Acked-by: Dave Hansen <dave.hansen@linux.intel.com>
Link: http://lkml.kernel.org/r/20160910183045.4618-1-nicolas.iooss_linux@m4x.org
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/kernel/process_64.c
This page took 0.024153 seconds and 5 git commands to generate.