stackprotector: Increase the per-task stack canary's random range from 32 bits to...
authorDaniel Micay <danielmicay@gmail.com>
Thu, 4 May 2017 13:32:09 +0000 (09:32 -0400)
committerIngo Molnar <mingo@kernel.org>
Fri, 5 May 2017 06:05:13 +0000 (08:05 +0200)
commit5ea30e4e58040cfd6434c2f33dc3ea76e2c15b05
tree050d8d790a8434e1379b525f2f0aa33d1370b610
parentd3b5d35290d729a2518af00feca867385a1b08fa
stackprotector: Increase the per-task stack canary's random range from 32 bits to 64 bits on 64-bit platforms

The stack canary is an 'unsigned long' and should be fully initialized to
random data rather than only 32 bits of random data.

Signed-off-by: Daniel Micay <danielmicay@gmail.com>
Acked-by: Arjan van de Ven <arjan@linux.intel.com>
Acked-by: Rik van Riel <riel@redhat.com>
Acked-by: Kees Cook <keescook@chromium.org>
Cc: Arjan van Ven <arjan@linux.intel.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: kernel-hardening@lists.openwall.com
Cc: stable@vger.kernel.org
Link: http://lkml.kernel.org/r/20170504133209.3053-1-danielmicay@gmail.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/fork.c