Skip to contentSkip to conversation

i386: Disallow kprobes on NMI handlers

PATCH Chuck Ebbert 2 participants 2 messages Aug 11, 2006

lore
Share & tools
lore
#0 lore raw

In-Reply-To: <[email protected]>

arch/i386/kernel/entry.S debug_stack_correct: · line 731

Quoted 11 lines · Andi Kleen
arch/i386/kernel/entry.S +1 -1
@@ -725,7 +725,7 @@ debug_stack_correct:
  * check whether we got an NMI on the debug path where the debug
  * fault happened on the sysenter path.
  */
-ENTRY(nmi)
+KPROBE_ENTRY(nmi)
      RING0_INT_FRAME
      pushl %eax
      CFI_ADJUST_CFA_OFFSET 4

Needs .popsection at the end of the NMI code.

Signature · 1 line
Chuck
#1 lore raw
Quoted 4 lines · Chuck Ebbert

In-Reply-To: <[email protected]>

On Thu, 10 Aug 2006 21:37:45 +0200, Andi Kleen wrote:

Quoted 13 lines

arch/i386/kernel/entry.S debug_stack_correct: · line 731

Quoted 11 lines
arch/i386/kernel/entry.S +1 -1
@@ -725,7 +725,7 @@ debug_stack_correct:
  * check whether we got an NMI on the debug path where the debug
  * fault happened on the sysenter path.
  */
-ENTRY(nmi)
+KPROBE_ENTRY(nmi)
      RING0_INT_FRAME
      pushl %eax
      CFI_ADJUST_CFA_OFFSET 4

Needs .popsection at the end of the NMI code.

This is fixed up in a later patch I think.
i386: KPROBE_ENTRY ends up putting code into .fixup

-andi