diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2012-08-07 06:59:47 -0400 |
---|---|---|
committer | Eric W. Biederman <ebiederm@xmission.com> | 2012-09-21 06:13:28 -0400 |
commit | 9e184e0aa386099c8a78f4f04f882a57ac11d8fc (patch) | |
tree | d879e762d889e886b01db8750e6ef14c75ad7e2c | |
parent | 558a4479d9df64062520e529613885bfbac55472 (diff) |
userns: On ppc convert current_uid from a kuid before printing.
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Paul Mackerras <paulus@samba.org>
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
-rw-r--r-- | arch/powerpc/mm/fault.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/mm/fault.c b/arch/powerpc/mm/fault.c index 08ffcf52a856..e5f028b5794e 100644 --- a/arch/powerpc/mm/fault.c +++ b/arch/powerpc/mm/fault.c | |||
@@ -470,7 +470,7 @@ bad_area_nosemaphore: | |||
470 | if (is_exec && (error_code & DSISR_PROTFAULT)) | 470 | if (is_exec && (error_code & DSISR_PROTFAULT)) |
471 | printk_ratelimited(KERN_CRIT "kernel tried to execute NX-protected" | 471 | printk_ratelimited(KERN_CRIT "kernel tried to execute NX-protected" |
472 | " page (%lx) - exploit attempt? (uid: %d)\n", | 472 | " page (%lx) - exploit attempt? (uid: %d)\n", |
473 | address, current_uid()); | 473 | address, from_kuid(&init_user_ns, current_uid())); |
474 | 474 | ||
475 | return SIGSEGV; | 475 | return SIGSEGV; |
476 | 476 | ||