]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
kprobes: Prohibit probing on CFI preamble symbol
authorMasami Hiramatsu (Google) <mhiramat@kernel.org>
Tue, 11 Jul 2023 01:50:47 +0000 (10:50 +0900)
committerMasami Hiramatsu (Google) <mhiramat@kernel.org>
Sat, 29 Jul 2023 14:32:26 +0000 (23:32 +0900)
commitde02f2ac5d8cfb311f44f2bf144cc20002f1fbbd
tree44a74007b5eecd2a622d7ace2d3da0612428ea3d
parent02ab7234fc69695736d60b34044fe591689ffadd
kprobes: Prohibit probing on CFI preamble symbol

Do not allow to probe on "__cfi_" or "__pfx_" started symbol, because those
are used for CFI and not executed. Probing it will break the CFI.

Link: https://lore.kernel.org/all/168904024679.116016.18089228029322008512.stgit@devnote2/
Signed-off-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Reviewed-by: Steven Rostedt (Google) <rostedt@goodmis.org>
kernel/kprobes.c