[PATCH v3 4/4] ARM: Implement PAN for LPAE by TTBR0 page table walks disablement

Linus Walleij linus.walleij at linaro.org
Wed May 15 04:58:37 PDT 2024


On Wed, May 15, 2024 at 11:21 AM Geert Uytterhoeven
<geert at linux-m68k.org> wrote:
> Ard:

> > Does using __always_inline make any difference in your case?
>
> Marking  uaccess_save_and_enable() __always_inline is sufficient
> to fix the issue.
>
> gcc version 11.4.0 (Ubuntu 11.4.0-1ubuntu1~22.04)

Can you make a combined patch with __always_inline and the
"memory" clobber both and send so Russell has something he
can fold in to stabilize his tree? Like a "this makes my machine
work" patch.

I'm using
$ arm-none-eabi-gcc --version
arm-none-eabi-gcc (Arm GNU Toolchain 12.2.MPACBTI-Bet1 (Build
arm-12-mpacbti.16)) 12.2.0

I'm almost always using LLVM in parallel as well, also for this work,
because I work on CFI and forget to switch compiler between different
projects all of the time.

Yours,
Linus Walleij



More information about the linux-arm-kernel mailing list