kprobes/x86/xen: blacklist non-attachable xen interrupt functions
authorAndrea Righi <righi.andrea@gmail.com>
Mon, 10 Dec 2018 15:12:57 +0000 (16:12 +0100)
committerBoris Ostrovsky <boris.ostrovsky@oracle.com>
Mon, 17 Dec 2018 15:27:59 +0000 (10:27 -0500)
Blacklist symbols in Xen probe-prohibited areas, so that user can see
these prohibited symbols in debugfs.

See also: a50480cb6d61.

Signed-off-by: Andrea Righi <righi.andrea@gmail.com>
Acked-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
arch/x86/xen/xen-asm_64.S

index bb1c2da0381decd365b62008b441a870a048fcfd..1e9ef0ba30a582d841226708a695da6a098fb5fc 100644 (file)
@@ -12,6 +12,7 @@
 #include <asm/segment.h>
 #include <asm/asm-offsets.h>
 #include <asm/thread_info.h>
+#include <asm/asm.h>
 
 #include <xen/interface/xen.h>
 
@@ -24,6 +25,7 @@ ENTRY(xen_\name)
        pop %r11
        jmp  \name
 END(xen_\name)
+_ASM_NOKPROBE(xen_\name)
 .endm
 
 xen_pv_trap divide_error