diff options
author | Ard Biesheuvel <ardb@kernel.org> | 2023-02-04 11:18:07 +0100 |
---|---|---|
committer | Catalin Marinas <catalin.marinas@arm.com> | 2023-02-07 19:25:10 +0100 |
commit | a088cf8eee1263462131fe8364e0fa962e17412b (patch) | |
tree | fa3974da6ce8566e5478e15b61bc8a35bbe26d75 /arch/arm64/kernel/kaslr.c | |
parent | arm64: head: Switch endianness before populating the ID map (diff) | |
download | linux-a088cf8eee1263462131fe8364e0fa962e17412b.tar.xz linux-a088cf8eee1263462131fe8364e0fa962e17412b.zip |
arm64: kprobes: Drop ID map text from kprobes blacklist
The ID mapped text region is never accessed via the normal kernel
mapping of text, and so it was moved into .rodata instead. This means it
is no longer considered as a suitable place for kprobes by default, and
the explicit blacklist is unnecessary, and actually results in an error
message at boot:
kprobes: Failed to populate blacklist (error -22), kprobes not restricted, be careful using them!
So stop blacklisting the ID map text explicitly.
Fixes: af7249b317e4 ("arm64: kernel: move identity map out of .text mapping")
Reported-by: Nathan Chancellor <nathan@kernel.org>
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Tested-by: Nathan Chancellor <nathan@kernel.org>
Acked-by: Mark Rutland <mark.rutland@arm.com>
Link: https://lore.kernel.org/r/20230204101807.2862321-1-ardb@kernel.org
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'arch/arm64/kernel/kaslr.c')
0 files changed, 0 insertions, 0 deletions