[PATCH 5.11 674/775] x86/entry: Fix instrumentation annotation

From
Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Date
2021-03-02 06:39:47
Also in
lkml
Reply to
Greg Kroah-Hartman, 2021-03-02
From: Thomas Gleixner <redacted>

commit 15f720aabe71a5662c4198b22532d95bbeec80ef upstream.

Embracing a callout into instrumentation_begin() / instrumentation_begin()
does not really make sense. Make the latter instrumentation_end().

Fixes: 2f6474e4636b ("x86/entry: Switch XEN/PV hypercall entry to IDTENTRY")
Signed-off-by: Thomas Gleixner <redacted>
Reviewed-by: Kees Cook <redacted>
Cc: <redacted>
Link: https://lore.kernel.org/r/20210210002512.106502464@linutronix.de (local)
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
---
 arch/x86/entry/common.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
--- a/arch/x86/entry/common.c
+++ b/arch/x86/entry/common.c
@@ -270,7 +270,7 @@ __visible noinstr void xen_pv_evtchn_do_
 
 	instrumentation_begin();
 	run_on_irqstack_cond(__xen_pv_evtchn_do_upcall, regs);
-	instrumentation_begin();
+	instrumentation_end();
 
 	set_irq_regs(old_regs);
 

Thread (776 messages) 776 messages, 1 author, last reply 2021-03-02
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help