diff options
author | 2021-02-15 06:41:56 +0200 | |
---|---|---|
committer | 2021-02-15 06:41:56 +0200 | |
commit | 857de6fe2f86b009df620f7cdb07c262cc17070d (patch) | |
tree | e9718ebeeef39485a51a9f8e3c8122da18c796cf /kernel/entry/common.c | |
parent | ARM: dts: am33xx: add aliases for mmc interfaces (diff) | |
parent | ARM: OMAP2+: Fix smartreflex init regression after dropping legacy data (diff) | |
download | wireguard-linux-857de6fe2f86b009df620f7cdb07c262cc17070d.tar.xz wireguard-linux-857de6fe2f86b009df620f7cdb07c262cc17070d.zip |
Merge branch 'fixes-v5.11' into fixes
Diffstat (limited to '')
-rw-r--r-- | kernel/entry/common.c | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/kernel/entry/common.c b/kernel/entry/common.c index 378341642f94..f9d491b17b78 100644 --- a/kernel/entry/common.c +++ b/kernel/entry/common.c @@ -209,26 +209,18 @@ static void exit_to_user_mode_prepare(struct pt_regs *regs) lockdep_sys_exit(); } -#ifndef _TIF_SINGLESTEP -static inline bool report_single_step(unsigned long work) -{ - return false; -} -#else /* * If SYSCALL_EMU is set, then the only reason to report is when - * TIF_SINGLESTEP is set (i.e. PTRACE_SYSEMU_SINGLESTEP). This syscall + * SINGLESTEP is set (i.e. PTRACE_SYSEMU_SINGLESTEP). This syscall * instruction has been already reported in syscall_enter_from_user_mode(). */ static inline bool report_single_step(unsigned long work) { - if (!(work & SYSCALL_WORK_SYSCALL_EMU)) + if (work & SYSCALL_WORK_SYSCALL_EMU) return false; - return !!(current_thread_info()->flags & _TIF_SINGLESTEP); + return work & SYSCALL_WORK_SYSCALL_EXIT_TRAP; } -#endif - static void syscall_exit_work(struct pt_regs *regs, unsigned long work) { |