Rik van Riel 2c8340eda4 sh64: ascii armor the sh64 boot init 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/20170524123446.78510066@annuminas.surriel.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>
2017-07-12 16:26:03 -07:00
..
2010-11-04 12:32:24 +09:00
2012-03-28 18:30:03 +01:00
2012-03-28 18:30:03 +01:00
2012-03-12 22:19:10 +01:00
2016-01-12 20:47:01 +02:00
2016-01-12 20:47:01 +02:00
2012-01-13 16:27:38 +09:00
2017-06-20 11:13:06 +02:00
2012-05-19 18:50:09 +09:00
2013-01-11 21:02:57 +09:00
2017-03-28 18:23:59 -04:00
2014-01-23 16:36:54 -08:00
2009-10-14 16:42:28 +09:00
2011-07-26 16:49:47 -07:00
2012-05-18 14:52:31 +09:00
2010-11-01 09:49:04 -04:00
2015-09-08 14:35:59 -07:00
2012-05-21 17:54:01 +09:00
2010-10-07 14:08:55 +01:00
2017-06-04 15:11:47 +02:00
2012-05-24 15:03:46 +09:00
2010-03-10 16:29:48 +09:00
2010-01-20 16:42:52 +09:00
2009-09-11 13:19:16 +09:00
2016-06-04 00:22:46 +02:00
2015-01-13 15:24:08 +02:00
2010-04-26 19:08:55 +09:00
2012-05-14 13:04:08 +09:00
2017-05-15 23:40:22 -04:00
2011-03-31 11:26:23 -03:00