[GIT PULL] probes: Fixes for v6.7

From: Google
Date: Thu Jan 04 2024 - 10:19:15 EST


Hi Linus,

Probes fixes for 6.7-rc8:

- Kprobes/x86: Fix to emulate indirect call which size is not 5 byte.
Current code expects the indirect call instructions are 5 bytes, but
that is incorrect. Usually indirect call based on register is shorter
than that, thus the emulation causes a kernel crash by accessing
wrong instruction boundary. This uses the instruction size to
calculate the return address correctly.


Please pull the latest probes-fixes-v6.7-rc8 tree, which can be found at:


git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace.git
probes-fixes-v6.7-rc8

Tag SHA1: 71ce71c6c329bd3f2ba52bb0a7373f23d8da8f59
Head SHA1: f5d03da48d062966c94f0199d20be0b3a37a7982


Jinghao Jia (1):
x86/kprobes: fix incorrect return address calculation in kprobe_emulate_call_indirect

----
arch/x86/kernel/kprobes/core.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

--
Masami Hiramatsu (Google) <mhiramat@xxxxxxxxxx>