diff options
author | Tony Lindgren <tony@atomide.com> | 2021-02-15 06:41:56 +0200 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2021-02-15 06:41:56 +0200 |
commit | 857de6fe2f86b009df620f7cdb07c262cc17070d (patch) | |
tree | e9718ebeeef39485a51a9f8e3c8122da18c796cf /kernel/entry/common.c | |
parent | 9bbce32a20d6a72c767a7f85fd6127babd1410ac (diff) | |
parent | fbfa463be8dc7957ee4f81556e9e1ea2a951807d (diff) |
Merge branch 'fixes-v5.11' into fixes
Diffstat (limited to 'kernel/entry/common.c')
-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) { |