x86: add CONFIG_CC_STACKPROTECTOR self-test
authorArjan van de Ven <arjan@linux.intel.com>
Fri, 15 Feb 2008 23:33:12 +0000 (15:33 -0800)
committerThomas Gleixner <tglx@linutronix.de>
Mon, 26 May 2008 14:15:32 +0000 (16:15 +0200)
commit54371a43a66f4477889769b4fa00df936855dc8f
tree71ac55110032a742f3a166bb11957936339ca3e7
parent113c5413cf9051cc50b88befdc42e3402bb92115
x86: add CONFIG_CC_STACKPROTECTOR self-test

This patch adds a simple self-test capability to the stackprotector
feature. The test deliberately overflows a stack buffer and then
checks if the canary trap function gets called.

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>
kernel/panic.c