[PATCH] arm64: make is_ttbrX_addr() noinstr-safe
Will Deacon
will at kernel.org
Tue Nov 15 10:32:56 PST 2022
On Mon, 14 Nov 2022 14:40:42 +0000, Mark Rutland wrote:
> We use is_ttbr0_addr() in noinstr code, but as it's only marked as
> inline, it's theoretically possible for the compiler to place it
> out-of-line and instrument it, which would be problematic.
>
> Mark is_ttbr0_addr() as __always_inline such that that can safely be
> used from noinstr code. For consistency, do the same to is_ttbr1_addr().
> Note that while is_ttbr1_addr() calls arch_kasan_reset_tag(), this is a
> macro (and its callees are either macros or __always_inline), so there
> is not a risk of transient instrumentation.
>
> [...]
Applied to arm64 (for-next/trivial), thanks!
[1/1] arm64: make is_ttbrX_addr() noinstr-safe
https://git.kernel.org/arm64/c/d8c1d798a2e5
Cheers,
--
Will
https://fixes.arm64.dev
https://next.arm64.dev
https://will.arm64.dev
More information about the linux-arm-kernel
mailing list