Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 35936
b: refs/heads/master
c: 3162f75
h: refs/heads/master
v: v3
  • Loading branch information
Arjan van de Ven authored and Andi Kleen committed Sep 26, 2006
1 parent 40fe9b7 commit 4cf6b22
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0a4254058037eb172758961d0a5b94f4320a1425
refs/heads/master: 3162f751d04086a9d006342de63ac8f44fe0f72a
12 changes: 12 additions & 0 deletions trunk/kernel/panic.c
Original file line number Diff line number Diff line change
Expand Up @@ -271,3 +271,15 @@ void oops_exit(void)
{
do_oops_enter_exit();
}

#ifdef CONFIG_CC_STACKPROTECTOR
/*
* Called when gcc's -fstack-protector feature is used, and
* gcc detects corruption of the on-stack canary value
*/
void __stack_chk_fail(void)
{
panic("stack-protector: Kernel stack is corrupted");
}
EXPORT_SYMBOL(__stack_chk_fail);
#endif

0 comments on commit 4cf6b22

Please sign in to comment.