arm64: add prctl control for resetting ptrauth keys
authorKristina Martsenko <kristina.martsenko@arm.com>
Fri, 7 Dec 2018 18:39:28 +0000 (18:39 +0000)
committerWill Deacon <will.deacon@arm.com>
Thu, 13 Dec 2018 16:42:46 +0000 (16:42 +0000)
commitba830885656414101b2f8ca88786524d4bb5e8c1
tree9112fbf1aee1ffcb239e5c24b767208ae0a8eec2
parentccc43810827f9feb5e588e4b7098dc55b1d972f8
arm64: add prctl control for resetting ptrauth keys

Add an arm64-specific prctl to allow a thread to reinitialize its
pointer authentication keys to random values. This can be useful when
exec() is not used for starting new processes, to ensure that different
processes still have different keys.

Signed-off-by: Kristina Martsenko <kristina.martsenko@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/include/asm/pointer_auth.h
arch/arm64/include/asm/processor.h
arch/arm64/kernel/Makefile
arch/arm64/kernel/pointer_auth.c [new file with mode: 0644]
include/uapi/linux/prctl.h
kernel/sys.c