]> Pileus Git - ~andy/linux/blobdiff - arch/x86/kernel/entry_64.S
Merge commit 'linus/master' into tracing/kprobes
[~andy/linux] / arch / x86 / kernel / entry_64.S
index b5c061f8f358489fee828e48b836d18c3bd6da79..42a0b2cbf2e12652c7ca0734565742a450793a14 100644 (file)
@@ -803,6 +803,10 @@ END(interrupt)
        call \func
        .endm
 
+/*
+ * Interrupt entry/exit should be protected against kprobes
+ */
+       .pushsection .kprobes.text, "ax"
        /*
         * The interrupt stubs push (~vector+0x80) onto the stack and
         * then jump to common_interrupt.
@@ -941,6 +945,10 @@ ENTRY(retint_kernel)
 
        CFI_ENDPROC
 END(common_interrupt)
+/*
+ * End of kprobes section
+ */
+       .popsection
 
 /*
  * APIC interrupts.