aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/kernel/entry/common.c
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2020-10-28 21:36:51 +0000
committerMark Brown <broonie@kernel.org>2020-10-28 21:36:51 +0000
commit3bfd5f422f07a10f485c3f046431783c7c4004f2 (patch)
tree7e990a251c825482216a0355177ef80874b3c0cb /kernel/entry/common.c
parentspi: imx: fix runtime pm support for !CONFIG_PM (diff)
parentLinux 5.10-rc1 (diff)
downloadwireguard-linux-3bfd5f422f07a10f485c3f046431783c7c4004f2.tar.xz
wireguard-linux-3bfd5f422f07a10f485c3f046431783c7c4004f2.zip
Merge tag 'v5.10-rc1' into spi-5.10
Linux 5.10-rc1
Diffstat (limited to '')
-rw-r--r--kernel/entry/common.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/kernel/entry/common.c b/kernel/entry/common.c
index 18683598edbc..2b8366693d5c 100644
--- a/kernel/entry/common.c
+++ b/kernel/entry/common.c
@@ -60,13 +60,15 @@ static long syscall_trace_enter(struct pt_regs *regs, long syscall,
return ret;
}
+ /* Either of the above might have changed the syscall number */
+ syscall = syscall_get_nr(current, regs);
+
if (unlikely(ti_work & _TIF_SYSCALL_TRACEPOINT))
trace_sys_enter(regs, syscall);
syscall_enter_audit(regs, syscall);
- /* The above might have changed the syscall number */
- return ret ? : syscall_get_nr(current, regs);
+ return ret ? : syscall;
}
static __always_inline long
@@ -159,7 +161,6 @@ static unsigned long exit_to_user_mode_loop(struct pt_regs *regs,
arch_do_signal(regs);
if (ti_work & _TIF_NOTIFY_RESUME) {
- clear_thread_flag(TIF_NOTIFY_RESUME);
tracehook_notify_resume(regs);
rseq_handle_notify_resume(NULL, regs);
}
@@ -206,7 +207,7 @@ static inline bool report_single_step(unsigned long ti_work)
/*
* If TIF_SYSCALL_EMU is set, then the only reason to report is when
* TIF_SINGLESTEP is set (i.e. PTRACE_SYSEMU_SINGLESTEP). This syscall
- * instruction has been already reported in syscall_enter_from_usermode().
+ * instruction has been already reported in syscall_enter_from_user_mode().
*/
#define SYSEMU_STEP (_TIF_SINGLESTEP | _TIF_SYSCALL_EMU)
@@ -302,7 +303,7 @@ noinstr irqentry_state_t irqentry_enter(struct pt_regs *regs)
* terminate a grace period, if and only if the timer interrupt is
* not nested into another interrupt.
*
- * Checking for __rcu_is_watching() here would prevent the nesting
+ * Checking for rcu_is_watching() here would prevent the nesting
* interrupt to invoke rcu_irq_enter(). If that nested interrupt is
* the tick then rcu_flavor_sched_clock_irq() would wrongfully
* assume that it is the first interupt and eventually claim