[PATCH 11/13] arm64: uaccess: remove set_fs()

Christoph Hellwig hch at lst.de
Mon Sep 28 03:04:43 EDT 2020


> +static inline void init_hw_uaccess_state(void)
>  {
> +	asm(ALTERNATIVE("nop", SET_PSTATE_PAN(1), ARM64_HAS_PAN));
> +	asm(ALTERNATIVE("nop", SET_PSTATE_UAO(0), ARM64_HAS_UAO));
>  }

The way I read this code it is about per-task state, maybe that
could be reflected in the name?  init_task_hw_access_state or
init_task_uaccess_flags?



More information about the linux-arm-kernel mailing list