Skip to contentSkip to conversation

probes: Fixes for v6.7

GIT PULL Merged Masami Hiramatsu (Google) 2 participants 2 messages Jan 4, 2024 – Jan 5, 2024

lore
Share & tools
lore
#0 lore raw

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(-)
Signature · 1 line
Masami Hiramatsu (Google) <[email protected]>
merge bot Merged
#1 lore raw
The pull request you sent on Fri, 5 Jan 2024 00:18:58 +0900:

The pull request you sent on Fri, 5 Jan 2024 00:18:58 +0900:

Quoted 1 line

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

has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/7131c2e9bba7aef8669fc8b21a52de5cf134b010

Thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/prtracker.html