]> git.karo-electronics.de Git - karo-tx-linux.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, 17 Jun 2013 22:31:35 +0000 (00:31 +0200)
commit54fb2e4222ed7d612dbb3021b4733ce19773aaee
treecd894190bf8c2f582188428bebcfda4fe5f82718
parentc5cdc67a58a22c49f558b450c6f748251ceb2e7b
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