diff options
author | Rik van Riel <riel@redhat.com> | 2017-07-12 23:36:20 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2017-07-13 01:26:03 +0200 |
commit | 7cd815bce828220deffd1654265f0ef891567774 (patch) | |
tree | bfbd9644275ac2ea061ad8c8eb53f92fd237fb66 /arch/arm64/kernel/sleep.S | |
parent | random,stackprotect: introduce get_random_canary function (diff) | |
download | linux-7cd815bce828220deffd1654265f0ef891567774.tar.xz linux-7cd815bce828220deffd1654265f0ef891567774.zip |
fork,random: use get_random_canary() to set tsk->stack_canary
Use the ascii-armor canary to prevent unterminated C string overflows
from being able to successfully overwrite the canary, even if they
somehow obtain the canary value.
Inspired by execshield ascii-armor and Daniel Micay's linux-hardened
tree.
Link: http://lkml.kernel.org/r/20170524155751.424-3-riel@redhat.com
Signed-off-by: Rik van Riel <riel@redhat.com>
Acked-by: Kees Cook <keescook@chromium.org>
Cc: Daniel Micay <danielmicay@gmail.com>
Cc: "Theodore Ts'o" <tytso@mit.edu>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Andy Lutomirski <luto@amacapital.net>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Yoshinori Sato <ysato@users.sourceforge.jp>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/arm64/kernel/sleep.S')
0 files changed, 0 insertions, 0 deletions