All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] kprobes/x86/xen: blacklist non-attachable xen interrupt functions
@ 2018-12-10 15:12 Andrea Righi
  2018-12-11  9:43 ` Masami Hiramatsu
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Andrea Righi @ 2018-12-10 15:12 UTC (permalink / raw)
  To: Masami Hiramatsu, Boris Ostrovsky, Juergen Gross,
	Stefano Stabellini
  Cc: Thomas Gleixner, Ingo Molnar, Borislav Petkov, H. Peter Anvin,
	x86, xen-devel, linux-kernel

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>
---
 arch/x86/xen/xen-asm_64.S | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/x86/xen/xen-asm_64.S b/arch/x86/xen/xen-asm_64.S
index bb1c2da0381d..1e9ef0ba30a5 100644
--- a/arch/x86/xen/xen-asm_64.S
+++ b/arch/x86/xen/xen-asm_64.S
@@ -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
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 6+ messages in thread
* [PATCH] kprobes/x86/xen: blacklist non-attachable xen interrupt functions
@ 2018-12-10 15:12 Andrea Righi
  0 siblings, 0 replies; 6+ messages in thread
From: Andrea Righi @ 2018-12-10 15:12 UTC (permalink / raw)
  To: Masami Hiramatsu, Boris Ostrovsky, Juergen Gross,
	Stefano Stabellini
  Cc: x86, linux-kernel, Ingo Molnar, Borislav Petkov, H. Peter Anvin,
	xen-devel, Thomas Gleixner

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>
---
 arch/x86/xen/xen-asm_64.S | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/x86/xen/xen-asm_64.S b/arch/x86/xen/xen-asm_64.S
index bb1c2da0381d..1e9ef0ba30a5 100644
--- a/arch/x86/xen/xen-asm_64.S
+++ b/arch/x86/xen/xen-asm_64.S
@@ -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
-- 
2.17.1


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2018-12-17 15:58 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-12-10 15:12 [PATCH] kprobes/x86/xen: blacklist non-attachable xen interrupt functions Andrea Righi
2018-12-11  9:43 ` Masami Hiramatsu
2018-12-11  9:43 ` Masami Hiramatsu
2018-12-17 15:57 ` Boris Ostrovsky
2018-12-17 15:57 ` Boris Ostrovsky
  -- strict thread matches above, loose matches on Subject: below --
2018-12-10 15:12 Andrea Righi

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.