]> bbs.cooldavid.org Git - net-next-2.6.git/commit
x86: setup stack canary for the idle threads
authorArjan van de Ven <arjan@linux.intel.com>
Mon, 12 May 2008 13:44:31 +0000 (15:44 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Mon, 26 May 2008 14:15:31 +0000 (16:15 +0200)
commitce22bd92cba0958e052cb1ce0f89f1d3a02b60a7
tree48ab1d23836a9844b9848a5f4a075ceefe82aeef
parente00320875d0cc5f8099a7227b2f25fbb3231268d
x86: setup stack canary for the idle threads

The idle threads for non-boot CPUs are a bit special in how they
are created; the result is that these don't have the stack canary
set up properly in their PDA. Easiest fix is to just always set
the PDA up correctly when entering the idle thread; this is a NOP
for the boot cpu.

Signed-off-by: Arjan van de Ven <arjan@linux.intel.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/kernel/process_64.c