commit | 10a7e9d849150a2879efc0b04d8a51068c9dd0c5 | [log] [tgz] |
---|---|---|
author | Kees Cook <keescook@chromium.org> | Tue Dec 19 13:52:23 2017 -0800 |
committer | Linus Torvalds <torvalds@linux-foundation.org> | Tue Dec 19 17:04:43 2017 -0800 |
tree | fa44e287635811bbc18ee4c722c3c32c9cf78ce5 | |
parent | ace52288edf0cb5e7a52b681f057f86224c49c27 [diff] |
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: Kees Cook <keescook@chromium.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>