mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-03 01:16:40 +07:00
[PATCH] i386: Kprobe rpl fix
Kprobes bugfix for paravirt compatibility - RPL on the CS when inserting BPs must match running kernel. Signed-off-by: Zachary Amsden <zach@vmware.com> Signed-off-by: Andi Kleen <ak@suse.de> CC: Eric Biederman <ebiederm@xmission.com>
This commit is contained in:
parent
7b35520243
commit
ac3b6faff9
@ -408,7 +408,7 @@ fastcall void *__kprobes trampoline_handler(struct pt_regs *regs)
|
|||||||
spin_lock_irqsave(&kretprobe_lock, flags);
|
spin_lock_irqsave(&kretprobe_lock, flags);
|
||||||
head = kretprobe_inst_table_head(current);
|
head = kretprobe_inst_table_head(current);
|
||||||
/* fixup registers */
|
/* fixup registers */
|
||||||
regs->xcs = __KERNEL_CS;
|
regs->xcs = __KERNEL_CS | get_kernel_rpl();
|
||||||
regs->eip = trampoline_address;
|
regs->eip = trampoline_address;
|
||||||
regs->orig_eax = 0xffffffff;
|
regs->orig_eax = 0xffffffff;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user