Skip to content

Commit 95c4fb7

Browse files
suryasaimadhutorvalds
authored andcommitted
kernel/panic.c: do not append newline to the stack protector panic string
... because panic() itself already does this. Otherwise you have line-broken trailer: [ 1.836965] ---[ end Kernel panic - not syncing: stack-protector: Kernel stack is corrupted in: pgd_alloc+0x29e/0x2a0 [ 1.836965] ]--- Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Borislav Petkov <[email protected]> Acked-by: Kees Cook <[email protected]> Cc: Masahiro Yamada <[email protected]> Cc: "Steven Rostedt (VMware)" <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent 3819dde commit 95c4fb7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/panic.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -631,7 +631,7 @@ device_initcall(register_warn_debugfs);
631631
*/
632632
__visible void __stack_chk_fail(void)
633633
{
634-
panic("stack-protector: Kernel stack is corrupted in: %pB\n",
634+
panic("stack-protector: Kernel stack is corrupted in: %pB",
635635
__builtin_return_address(0));
636636
}
637637
EXPORT_SYMBOL(__stack_chk_fail);

0 commit comments

Comments
 (0)