Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 136347
b: refs/heads/master
c: 7e09b2a
h: refs/heads/master
i:
  136345: f9ad3bc
  136343: 20f1721
v: v3
  • Loading branch information
Ingo Molnar authored and Thomas Gleixner committed May 26, 2008
1 parent e0d82cc commit 818cc47
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ce22bd92cba0958e052cb1ce0f89f1d3a02b60a7
refs/heads/master: 7e09b2a02dae4616a5a26000169964b32f86cd35
8 changes: 6 additions & 2 deletions trunk/arch/x86/kernel/process_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,13 @@ void cpu_idle(void)
#ifdef CONFIG_CC_STACKPROTECTOR
/*
* If we're the non-boot CPU, nothing set the PDA stack
* canary up for us. This is as good a place as any for
* doing that.
* canary up for us - and if we are the boot CPU we have
* a 0 stack canary. This is a good place for updating
* it, as we wont ever return from this function (so the
* invalid canaries already on the stack wont ever
* trigger):
*/
current->stack_canary = get_random_int();
write_pda(stack_canary, current->stack_canary);
#endif
/* endless idle loop with no priority at all */
Expand Down

0 comments on commit 818cc47

Please sign in to comment.