diff options
author | Ingo Molnar <mingo@elte.hu> | 2008-02-14 09:02:13 +0100 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2008-05-26 16:15:31 +0200 |
commit | 517a92c4e19fcea815332d3155e9fb7723251274 (patch) | |
tree | 75e57ff7749b37c3f78c23175b87e5908a0a3bc0 /kernel/panic.c | |
parent | 7e09b2a02dae4616a5a26000169964b32f86cd35 (diff) | |
download | linux-stable-517a92c4e19fcea815332d3155e9fb7723251274.tar.gz linux-stable-517a92c4e19fcea815332d3155e9fb7723251274.tar.bz2 linux-stable-517a92c4e19fcea815332d3155e9fb7723251274.zip |
panic: print more informative messages on stackprotect failure
pointed out by pageexec@freemail.hu:
we just simply panic() when there's a stackprotector attack - giving
the attacked person no information about what kernel code the attack went
against.
print out the attacked function.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'kernel/panic.c')
-rw-r--r-- | kernel/panic.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/panic.c b/kernel/panic.c index 425567f45b9f..f236001cc4db 100644 --- a/kernel/panic.c +++ b/kernel/panic.c @@ -327,7 +327,8 @@ EXPORT_SYMBOL(warn_on_slowpath); */ void __stack_chk_fail(void) { - panic("stack-protector: Kernel stack is corrupted"); + panic("stack-protector: Kernel stack is corrupted in: %p\n", + __builtin_return_address(0)); } EXPORT_SYMBOL(__stack_chk_fail); #endif |