Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge tag 'perf-urgent-2022-08-21' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip

Pull x86 kprobes fix from Ingo Molnar:
"Fix a kprobes bug in JNG/JNLE emulation when a kprobe is installed at
such instructions, possibly resulting in incorrect execution (the
wrong branch taken)"

* tag 'perf-urgent-2022-08-21' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
x86/kprobes: Fix JNG/JNLE emulation

+1 -1
+1 -1
arch/x86/kernel/kprobes/core.c
··· 505 505 match = ((regs->flags & X86_EFLAGS_SF) >> X86_EFLAGS_SF_BIT) ^ 506 506 ((regs->flags & X86_EFLAGS_OF) >> X86_EFLAGS_OF_BIT); 507 507 if (p->ainsn.jcc.type >= 0xe) 508 - match = match && (regs->flags & X86_EFLAGS_ZF); 508 + match = match || (regs->flags & X86_EFLAGS_ZF); 509 509 } 510 510 __kprobe_emulate_jmp(p, regs, (match && !invert) || (!match && invert)); 511 511 }