Re: [PATCH v3 08/16] arm64: initialize ptrauth keys for kernel booting task
From: Catalin Marinas <catalin.marinas@arm.com>
Date: 2020-01-16 18:41:45
From: Catalin Marinas <catalin.marinas@arm.com>
Date: 2020-01-16 18:41:45
On Mon, Dec 16, 2019 at 02:17:10PM +0530, Amit Daniel Kachhap wrote:
diff --git a/arch/arm64/include/asm/pointer_auth.h b/arch/arm64/include/asm/pointer_auth.h index aa956ca..0f89f59 100644 --- a/arch/arm64/include/asm/pointer_auth.h +++ b/arch/arm64/include/asm/pointer_auth.h@@ -60,6 +60,12 @@ static inline void ptrauth_keys_init_kernel(struct ptrauth_keys_kernel *keys) get_random_bytes(&keys->apia, sizeof(keys->apia)); } +static inline void ptrauth_keys_switch_kernel(struct ptrauth_keys_kernel *keys)
I think we should use __always_inline here, just in case the compiler ignores the hint. Otherwise: Reviewed-by: Catalin Marinas <catalin.marinas@arm.com> _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel