[v2 PATCH] arm64: kprobes: check the return value of set_memory_rox()

Will Deacon will at kernel.org
Fri Nov 7 07:53:48 PST 2025


On Tue, 04 Nov 2025 13:49:47 -0800, Yang Shi wrote:
> Since commit a166563e7ec3 ("arm64: mm: support large block mapping when
> rodata=full"), __change_memory_common has more chance to fail due to
> memory allocation failure when splitting page table. So check the return
> value of set_memory_rox(), then bail out if it fails otherwise we may have
> RW memory mapping for kprobes insn page.
> 
> 
> [...]

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

[1/1] arm64: kprobes: check the return value of set_memory_rox()
      https://git.kernel.org/arm64/c/0ec364c0c95f

Cheers,
-- 
Will

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



More information about the linux-arm-kernel mailing list