[PATCH v2 1/2] arm64: kprobes: Use BRK instead of single-step when executing instructions out-of-line
Will Deacon
will at kernel.org
Tue Nov 3 09:54:51 EST 2020
On Tue, 3 Nov 2020 14:49:01 +0100, Jean-Philippe Brucker wrote:
> Commit 36dadef23fcc ("kprobes: Init kprobes in early_initcall") enabled
> using kprobes from early_initcall. Unfortunately at this point the
> hardware debug infrastructure is not operational. The OS lock may still
> be locked, and the hardware watchpoints may have unknown values when
> kprobe enables debug monitors to single-step instructions.
>
> Rather than using hardware single-step, append a BRK instruction after
> the instruction to be executed out-of-line.
Applied first patch to arm64 (for-next/fixes), thanks!
[1/2] arm64: kprobes: Use BRK instead of single-step when executing instructions out-of-line
https://git.kernel.org/arm64/c/7ee31a3aa8f4
Cheers,
--
Will
https://fixes.arm64.dev
https://next.arm64.dev
https://will.arm64.dev
More information about the linux-arm-kernel
mailing list