[PATCH] arm64/debug: mask debug exceptions when called from common code

Catalin Marinas catalin.marinas at arm.com
Thu Oct 15 11:12:13 PDT 2026


On Mon, 07 Sep 2026 17:31:01 +0100, Ada Couprie Diaz wrote:
> We can currently take debug exceptions while manipulating the hardware
> breakpoint registers and perf slots when called from generic kernel code.
> This can lead to errors and unsound behaviours in some pathological
> (and self-inflicted) edge cases[0].
> 
> Save and restore the interrupt mask around those manipulations.
> 
> [...]

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

[1/1] arm64/debug: mask debug exceptions when called from common code
      https://git.kernel.org/arm64/c/c889894af777



More information about the linux-arm-kernel mailing list