arm64: Implement thread_struct whitelist for hardened usercopy
commit9e8084d3f761413b2d58b2625bc6e332eab2bfce
authorKees Cook <keescook@chromium.org>
Wed, 16 Aug 2017 21:05:09 +0000 (16 14:05 -0700)
committerKees Cook <keescook@chromium.org>
Mon, 15 Jan 2018 20:08:05 +0000 (15 12:08 -0800)
tree4ce8c3d3675c3c0775c9060a57b28d56e2647ce0
parentf7d83c1cf3c77ae45876792aee5285ae970413ac
arm64: Implement thread_struct whitelist for hardened usercopy

While ARM64 carries FPU state in the thread structure that is saved and
restored during signal handling, it doesn't need to declare a usercopy
whitelist, since existing accessors are all either using a bounce buffer
(for which whitelisting isn't checking the slab), are statically sized
(which will bypass the hardened usercopy check), or both.

Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Will Deacon <will.deacon@arm.com>
Cc: Christian Borntraeger <borntraeger@de.ibm.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: James Morse <james.morse@arm.com>
Cc: "Peter Zijlstra (Intel)" <peterz@infradead.org>
Cc: Dave Martin <Dave.Martin@arm.com>
Cc: zijun_hu <zijun_hu@htc.com>
Cc: linux-arm-kernel@lists.infradead.org
Signed-off-by: Kees Cook <keescook@chromium.org>
arch/arm64/Kconfig
arch/arm64/include/asm/processor.h