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

Commit 4d800a65 authored by Kees Cook's avatar Kees Cook Committed by Alistair Strachan
Browse files

UPSTREAM: Do not hash userspace addresses in fault handlers



The hashing of %p was designed to restrict kernel addresses. There is
no reason to hash the userspace values seen during a segfault report,
so switch these to %px. (Some architectures already use %lx.)

Fixes: ad67b74d2469d9b8 ("printk: hash addresses printed with %p")
Signed-off-by: default avatarKees Cook <keescook@chromium.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
(cherry picked from commit 10a7e9d849150a2879efc0b04d8a51068c9dd0c5)
Signed-off-by: default avatarSandeep Patil <sspatil@android.com>

Bug: 78533979
Test: Build and boot cuttlefish
Change-Id: Ifd289b69e0ecf51cab5afe847943b72a0c7320ef
parent 6d7a9764
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment