arm64: ptr auth: Move per-thread keys from thread_info to thread_struct
authorWill Deacon <will.deacon@arm.com>
Thu, 13 Dec 2018 13:14:06 +0000 (13:14 +0000)
committerWill Deacon <will.deacon@arm.com>
Thu, 13 Dec 2018 16:42:47 +0000 (16:42 +0000)
commit84931327a807a4dd65d0d6b53a8ae47845c91f79
treef759292fbe46dd83d4b3954eb17eb53bfe480d7f
parent04ca3204fa09f5f55c8f113b0072004a7b364ff4
arm64: ptr auth: Move per-thread keys from thread_info to thread_struct

We don't need to get at the per-thread keys from assembly at all, so
they can live alongside the rest of the per-thread register state in
thread_struct instead of thread_info.

This will also allow straighforward whitelisting of the keys for
hardened usercopy should we expose them via a ptrace request later on.

Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/include/asm/pointer_auth.h
arch/arm64/include/asm/processor.h
arch/arm64/include/asm/thread_info.h
arch/arm64/kernel/pointer_auth.c