mm: Implement stack frame object validation
authorKees Cook <keescook@chromium.org>
Tue, 12 Jul 2016 23:19:48 +0000 (16:19 -0700)
committerAlex Shi <alex.shi@linaro.org>
Sat, 27 Aug 2016 03:23:38 +0000 (11:23 +0800)
commitfdb92b0de361f9043f359a1de52e2bedd9da4599
treeb78643598b82f60e0dd5c34456cb8701f48a9516
parent472dd6904d7bfd38d86ec3b8071b7260b51c290d
mm: Implement stack frame object validation

This creates per-architecture function arch_within_stack_frames() that
should validate if a given object is contained by a kernel stack frame.
Initial implementation is on x86.

This is based on code from PaX.

Signed-off-by: Kees Cook <keescook@chromium.org>
(cherry picked from commit 0f60a8efe4005ab5e65ce000724b04d4ca04a199)
Signed-off-by: Alex Shi <alex.shi@linaro.org>
Conflicts:
skip EBPF_JIT in arch/x86/Kconfig
arch/Kconfig
arch/x86/Kconfig
arch/x86/include/asm/thread_info.h
include/linux/thread_info.h