[Devel] [PATCH 0/1] ms/kprobes/x86: Return correct length in __copy_instruction()

Evgenii Shatokhin eshatokhin at virtuozzo.com
Thu Jun 1 04:06:29 PST 2017


https://jira.sw.ru/browse/PSBM-66876

If one tries to place a kprobe on an instruction that uses %rip-relative addressing, register_kprobe() fails with -EINVAL because __copy_instruction() from arch/x86/kernel/kprobes/core.c incorrectly returns 0.

This makes it harder to use kprobes for the kernel debugging and might affect the tools like SystemTap as well.

Here is an old patch of mine (mainlined) that fixes the issue.

Regards,
Evgenii



More information about the Devel mailing list