fork: Add generic vmalloced stack support
authorAndy Lutomirski <luto@kernel.org>
Thu, 11 Aug 2016 09:35:21 +0000 (02:35 -0700)
committerIngo Molnar <mingo@kernel.org>
Wed, 24 Aug 2016 10:11:41 +0000 (12:11 +0200)
commitba14a194a434ccc8f733e263ad2ce941e35e5787
treef4d353dea3ae496447785e4c447ef6e9a4c24e42
parenteb4e841099f813c2df5fbb00ae4a9d315cb7c9dc
fork: Add generic vmalloced stack support

If CONFIG_VMAP_STACK=y is selected, kernel stacks are allocated with
__vmalloc_node_range().

Grsecurity has had a similar feature (called GRKERNSEC_KSTACKOVERFLOW=y)
for a long time.

Signed-off-by: Andy Lutomirski <luto@kernel.org>
Acked-by: Michal Hocko <mhocko@suse.com>
Cc: Alexander Potapenko <glider@google.com>
Cc: Andrey Ryabinin <aryabinin@virtuozzo.com>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Brian Gerst <brgerst@gmail.com>
Cc: Denys Vlasenko <dvlasenk@redhat.com>
Cc: Dmitry Vyukov <dvyukov@google.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Josh Poimboeuf <jpoimboe@redhat.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Oleg Nesterov <oleg@redhat.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/14c07d4fd173a5b117f51e8b939f9f4323e39899.1470907718.git.luto@kernel.org
[ Minor edits. ]
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/Kconfig
arch/ia64/include/asm/thread_info.h
include/linux/sched.h
kernel/fork.c