Skip to content

Commit 47e9aa1

Browse files
committed
Merge tag 'x86-urgent-2023-02-11' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull x86 fixes from Ingo Molnar: "Fix a kprobes bug, plus add a new Intel model number to the upstream <asm/intel-family.h> header for drivers to use" * tag 'x86-urgent-2023-02-11' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: x86/cpu: Add Lunar Lake M x86/kprobes: Fix 1 byte conditional jump target
2 parents 338c847 + f545e88 commit 47e9aa1

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

arch/x86/include/asm/intel-family.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,8 @@
123123
#define INTEL_FAM6_METEORLAKE 0xAC
124124
#define INTEL_FAM6_METEORLAKE_L 0xAA
125125

126+
#define INTEL_FAM6_LUNARLAKE_M 0xBD
127+
126128
/* "Small Core" Processors (Atom/E-Core) */
127129

128130
#define INTEL_FAM6_ATOM_BONNELL 0x1C /* Diamondville, Pineview */

arch/x86/kernel/kprobes/core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -625,7 +625,7 @@ static int prepare_emulation(struct kprobe *p, struct insn *insn)
625625
/* 1 byte conditional jump */
626626
p->ainsn.emulate_op = kprobe_emulate_jcc;
627627
p->ainsn.jcc.type = opcode & 0xf;
628-
p->ainsn.rel32 = *(char *)insn->immediate.bytes;
628+
p->ainsn.rel32 = insn->immediate.value;
629629
break;
630630
case 0x0f:
631631
opcode = insn->opcode.bytes[1];

0 commit comments

Comments
 (0)