MIPS: initial stack protector support

Linux Kernel / Linux Kernel - Gregory Fong [gmail.com] - 1 July 2013 08:10 UTC

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[].

36ecafc MIPS: initial stack protector support
arch/mips/Kconfig | 13 +++++++++++
arch/mips/Makefile | 4 ++++
arch/mips/include/asm/stackprotector.h | 40 ++++++++++++++++++++++++++++++++
arch/mips/kernel/process.c | 6 +++++
4 files changed, 63 insertions(+)

Upstream: git.kernel.org


  • Share