Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9e184e0a authored by Eric W. Biederman's avatar Eric W. Biederman
Browse files

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: default avatar"Eric W. Biederman" <ebiederm@xmission.com>
parent 558a4479
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;