[PATCH] arm64: entry: avoid kprobe recursion

Catalin Marinas catalin.marinas at arm.com
Tue Nov 1 12:06:01 PDT 2022


On Mon, 17 Oct 2022 10:01:57 +0100, Mark Rutland wrote:
> The cortex_a76_erratum_1463225_debug_handler() function is called when
> handling debug exceptions (and synchronous exceptions from BRK
> instructions), and so is called when a probed function executes. If the
> compiler does not inline cortex_a76_erratum_1463225_debug_handler(), it
> can be probed.
> 
> If cortex_a76_erratum_1463225_debug_handler() is probed, any debug
> exception or software breakpoint exception will result in recursive
> exceptions leading to a stack overflow. This can be triggered with the
> ftrace multiple_probes selftest, and as per the example splat below.
> 
> [...]

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

[1/1] arm64: entry: avoid kprobe recursion
      https://git.kernel.org/arm64/c/024f4b2e1f87

-- 
Catalin




More information about the linux-arm-kernel mailing list