Skip to content

Commit

Permalink
tgupdate: merge t/upstream base into t/upstream
Browse files Browse the repository at this point in the history
  • Loading branch information
matttbe committed Mar 11, 2024
2 parents 2404dfa + 40c4136 commit 6c8c7d9
Showing 1 changed file with 1 addition and 20 deletions.
21 changes: 1 addition & 20 deletions arch/x86/kernel/traps.c
Original file line number Diff line number Diff line change
Expand Up @@ -721,25 +721,6 @@ static bool do_int3(struct pt_regs *regs)
}
NOKPROBE_SYMBOL(do_int3);

static bool fixup_int3(struct pt_regs *regs)
{
unsigned long addr = instruction_pointer(regs) - INT3_INSN_SIZE;

if (*(u8 *)addr != INT3_INSN_OPCODE) {
/*
* The breakpoint instruction was removed right
* after we hit it. Another cpu has removed it
* from this address. In this case, no further
* handling of this interrupt is appropriate.
* Back up over the (now missing) int3 and run
* the original instruction.
*/
instruction_pointer_set(regs, (unsigned long)addr);
return true;
}
return false;
}

static void do_int3_user(struct pt_regs *regs)
{
if (do_int3(regs))
Expand Down Expand Up @@ -777,7 +758,7 @@ DEFINE_IDTENTRY_RAW(exc_int3)
irqentry_state_t irq_state = irqentry_nmi_enter(regs);

instrumentation_begin();
if (!do_int3(regs) && !fixup_int3(regs))
if (!do_int3(regs))
die("int3", regs, 0);
instrumentation_end();
irqentry_nmi_exit(regs, irq_state);
Expand Down

0 comments on commit 6c8c7d9

Please sign in to comment.