[PATCH v2 4/4] ARM: Implement privileged no-access using TTBR0 page table walks disabling
Linus Walleij
linus.walleij at linaro.org
Thu Feb 22 10:53:30 PST 2024
On Wed, Feb 21, 2024 at 12:04 AM Linus Walleij <linus.walleij at linaro.org> wrote:
> static inline unsigned int uaccess_save_and_enable(void)
> @@ -54,6 +78,12 @@ static inline void uaccess_restore(unsigned int flags)
> {
> }
>
> +static inline bool uaccess_disabled(struct pt_regs *regs)
> +{
> + /* Without PAN userspace is always available */
> + return false;
> +}
> +
> #endif
Yes I forgot this unused stub here. I have deleted it from my tree.
Yours,
Linus Walleij
More information about the linux-arm-kernel
mailing list