Skip to content

Commit

Permalink
userns: On ppc convert current_uid from a kuid before printing.
Browse files Browse the repository at this point in the history
Cc: Benjamin Herrenschmidt <[email protected]>
Cc: Paul Mackerras <[email protected]>
Signed-off-by: "Eric W. Biederman" <[email protected]>
  • Loading branch information
ebiederm committed Sep 21, 2012
1 parent 558a447 commit 9e184e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/powerpc/mm/fault.c
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ int __kprobes do_page_fault(struct pt_regs *regs, unsigned long address,
if (is_exec && (error_code & DSISR_PROTFAULT))
printk_ratelimited(KERN_CRIT "kernel tried to execute NX-protected"
" page (%lx) - exploit attempt? (uid: %d)\n",
address, current_uid());
address, from_kuid(&init_user_ns, current_uid()));

return SIGSEGV;

Expand Down

0 comments on commit 9e184e0

Please sign in to comment.