[PATCH] arm64: kretprobes: acquire the regs via a BRK exception

Catalin Marinas catalin.marinas at arm.com
Tue Feb 20 10:20:35 PST 2024


On Thu, 08 Feb 2024 14:59:16 +0000, Mark Rutland wrote:
> On arm64, kprobes always take an exception and so create a struct
> pt_regs through the usual exception entry logic. Similarly kretprobes
> taskes and exception for function entry, but for function returns it
> uses a trampoline which attempts to create a struct pt_regs without
> taking an exception.
> 
> This is problematic for a few reasons, including:
> 
> [...]

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

[1/1] arm64: kretprobes: acquire the regs via a BRK exception
      https://git.kernel.org/arm64/c/253751233b19

-- 
Catalin




More information about the linux-arm-kernel mailing list