[PATCH] arm64: prevent instrumentation of bp hardening callbacks

Will Deacon will at kernel.org
Mon Mar 7 14:03:33 PST 2022


On Thu, 24 Feb 2022 18:10:28 +0000, Mark Rutland wrote:
> We may call arm64_apply_bp_hardening() early during entry (e.g. in
> el0_ia()) before it is safe to run instrumented code. Unfortunately this
> may result in running instrumented code in two cases:
> 
> * The hardening callbacks called by arm64_apply_bp_hardening() are not
>   marked as `noinstr`, and have been observed to be instrumented when
>   compiled with either GCC or LLVM.
> 
> [...]

Applied to arm64 (for-next/misc), thanks!

[1/1] arm64: prevent instrumentation of bp hardening callbacks
      https://git.kernel.org/arm64/c/614c0b9fee71

Cheers,
-- 
Will

https://fixes.arm64.dev
https://next.arm64.dev
https://will.arm64.dev



More information about the linux-arm-kernel mailing list