]> git.karo-electronics.de Git - linux-beck.git/commit
MIPS: initial stack protector support
authorGregory Fong <gregory.0xf0@gmail.com>
Wed, 12 Jun 2013 17:08:54 +0000 (17:08 +0000)
committerRalf Baechle <ralf@linux-mips.org>
Mon, 1 Jul 2013 13:10:48 +0000 (15:10 +0200)
commit36ecafc5ad17861e2bc1fb12af4cc97680e25942
tree8b1094782049660b366b417119d34a5a519e0c95
parent23df34155b29674465813b327647cd79722aa659
MIPS: initial stack protector support

Implements basic stack protector support based on ARM version in
c743f38013aeff58ef6252601e397b5ba281c633 , with Kconfig option,
constant canary value set at boot time, and script to check if
compiler actually supports stack protector.

Tested by creating a kernel module that writes past end of char[].

Signed-off-by: Gregory Fong <gregory.0xf0@gmail.com>
Cc: linux-mips@linux-mips.org
Cc: Filippo Arcidiacono <filippo.arcidiacono@st.com>
Cc: Carmelo Amoroso <carmelo.amoroso@st.com>
Patchwork: https://patchwork.linux-mips.org/patch/5448/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/Kconfig
arch/mips/Makefile
arch/mips/include/asm/stackprotector.h [new file with mode: 0644]
arch/mips/kernel/process.c