Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 136353
b: refs/heads/master
c: 4205942
h: refs/heads/master
i:
  136351: e17dafd
v: v3
  • Loading branch information
Ingo Molnar authored and Thomas Gleixner committed May 26, 2008
1 parent fee4d4f commit 87b0c2d
Show file tree
Hide file tree
Showing 4 changed files with 12 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: 18aa8bb12dcb10adc3d7c9d69714d53667c0ab7f
refs/heads/master: 420594296838fdc9a674470d710cda7d1487f9f4
1 change: 1 addition & 0 deletions trunk/arch/x86/kernel/process_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

#include <stdarg.h>

#include <linux/stackprotector.h>
#include <linux/cpu.h>
#include <linux/errno.h>
#include <linux/sched.h>
Expand Down
4 changes: 4 additions & 0 deletions trunk/include/linux/stackprotector.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
#ifndef _LINUX_STACKPROTECTOR_H
#define _LINUX_STACKPROTECTOR_H 1

#include <linux/compiler.h>
#include <linux/sched.h>
#include <linux/random.h>

#ifdef CONFIG_CC_STACKPROTECTOR
# include <asm/stackprotector.h>
#else
Expand Down
6 changes: 6 additions & 0 deletions trunk/init/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -546,6 +546,12 @@ asmlinkage void __init start_kernel(void)
unwind_init();
lockdep_init();
debug_objects_early_init();

/*
* Set up the the initial canary ASAP:
*/
boot_init_stack_canary();

cgroup_init_early();

local_irq_disable();
Expand Down

0 comments on commit 87b0c2d

Please sign in to comment.