[PATCH v3 08/16] arm64: initialize ptrauth keys for kernel booting task

Amit Kachhap amit.kachhap at arm.com
Mon Jan 20 02:50:56 PST 2020



On 1/16/20 11:29 PM, Catalin Marinas wrote:
> 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.

yes agreed. Even the other function ptrauth_keys_init_kernel.

> 
> Otherwise:
> 
> Reviewed-by: Catalin Marinas <catalin.marinas at arm.com>

Thanks.

> 



More information about the linux-arm-kernel mailing list