diff options
| author | 2025-11-04 13:49:47 -0800 | |
|---|---|---|
| committer | 2025-11-07 14:30:22 +0000 | |
| commit | 0ec364c0c95fc85bcbc88f1a9a06ebe83c88e18c (patch) | |
| tree | 3fae08cff9ca687e15eed0989b12ca38d22c5744 /lib/livepatch/git:/git.zx2c4.com/ssh:/git@git.zx2c4.com | |
| parent | arm64: acpi: Drop message logging SPCR default console (diff) | |
| download | wireguard-linux-0ec364c0c95fc85bcbc88f1a9a06ebe83c88e18c.tar.xz wireguard-linux-0ec364c0c95fc85bcbc88f1a9a06ebe83c88e18c.zip | |
arm64: kprobes: check the return value of set_memory_rox()
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.
Fixes: 195a1b7d8388 ("arm64: kprobes: call set_memory_rox() for kprobe page")
Reviewed-by: Ryan Roberts <ryan.roberts@arm.com>
Reviewed-by: Dev Jain <dev.jain@arm.com>
Signed-off-by: Yang Shi <yang@os.amperecomputing.com>
Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'lib/livepatch/git:/git.zx2c4.com/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
