Patch "bug: use %pB in BUG and stack protector failure" has been added to the 4.15-stable tree
Subsystems (2)
This is a note to let you know that I've just added the patch titled
bug: use %pB in BUG and stack protector failure
to the 4.15-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
bug-use-pb-in-bug-and-stack-protector-failure.patch
and it can be found in the queue-4.15 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From
0862ca422b79cb5aa70823ee0f07f6b468f86070Mon Sep 17 00:00:00 2001
From: Kees Cook <[email protected]>
Date: Fri, 9 Mar 2018 15:50:59 -0800
Subject: bug: use %pB in BUG and stack protector failure
From: Kees Cook <[email protected]>
commit 0862ca422b79cb5aa70823ee0f07f6b468f86070 upstream.
The BUG and stack protector reports were still using a raw %p. This changes it to %pB for more meaningful output.
--- kernel/panic.c | 2 +- lib/bug.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
kernel/panic.c +1 -1
@@ -640,7 +640,7 @@ device_initcall(register_warn_debugfs);*/ __visible void __stack_chk_fail(void) { -panic ("stack-protector: Kernel stack is corrupted in: %p\n" , +panic ("stack-protector: Kernel stack is corrupted in: %pB\n" ,__builtin_return_address (0 )); }EXPORT_SYMBOL (__stack_chk_fail);
lib/bug.c +1 -1
@@ -191,7 +191,7 @@ enum bug_trap_type report_bug(unsigned lif (file)pr_crit ("kernel BUG at %s:%u!\n" , file, line);else -pr_crit ("Kernel BUG at %p [verbose debug info unavailable]\n" , +pr_crit ("Kernel BUG at %pB [verbose debug info unavailable]\n" , (void *)bugaddr);return BUG_TRAP_TYPE_BUG ;
Patches currently in stable-queue which might be from [email protected] are
queue-4.15/bug-use-pb-in-bug-and-stack-protector-failure.patch queue-4.15/lib-bug.c-exclude-non-bug-warn-exceptions-from-report_bug.patch