[PATCH 01/18] x86/entry: Fix noinstr fail in __do_fast_syscall_32()

From: Peter Zijlstra
Date: Mon Jun 21 2021 - 08:03:49 EST


vmlinux.o: warning: objtool: __do_fast_syscall_32()+0xf5: call to trace_hardirqs_off() leaves .noinstr.text section

Fixes: 5d5675df792f ("x86/entry: Fix entry/exit mismatch on failed fast 32-bit syscalls")
Signed-off-by: Peter Zijlstra (Intel) <peterz@xxxxxxxxxxxxx>
---
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
@@ -166,8 +166,8 @@ static noinstr bool __do_fast_syscall_32
/* User code screwed up. */
regs->ax = -EFAULT;

- instrumentation_end();
local_irq_disable();
+ instrumentation_end();
irqentry_exit_to_user_mode(regs);
return false;
}