diff options
author | Chen-Yu Tsai <wens@csie.org> | 2025-07-15 23:34:10 +0800 |
---|---|---|
committer | Chen-Yu Tsai <wens@csie.org> | 2025-07-15 23:34:10 +0800 |
commit | ca5ad734d30f30a577f705926d6e16a87513a2a7 (patch) | |
tree | b5fb169a86ac59892bd3b60c2df13e8a7cef360d /kernel/time/posix-cpu-timers.c | |
parent | 082c6a2d06c0831d236760a29953355845eee988 (diff) | |
parent | f99d4fccd2185176baf4ecac9a49d280fc62b953 (diff) |
Merge branch 'dt' of git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/linux-pm into sunxi/dt-for-6.17
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Diffstat (limited to 'kernel/time/posix-cpu-timers.c')
-rw-r--r-- | kernel/time/posix-cpu-timers.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/kernel/time/posix-cpu-timers.c b/kernel/time/posix-cpu-timers.c index 50e8d04ab661..2e5b89d7d866 100644 --- a/kernel/time/posix-cpu-timers.c +++ b/kernel/time/posix-cpu-timers.c @@ -1406,6 +1406,15 @@ void run_posix_cpu_timers(void) lockdep_assert_irqs_disabled(); /* + * Ensure that release_task(tsk) can't happen while + * handle_posix_cpu_timers() is running. Otherwise, a concurrent + * posix_cpu_timer_del() may fail to lock_task_sighand(tsk) and + * miss timer->it.cpu.firing != 0. + */ + if (tsk->exit_state) + return; + + /* * If the actual expiry is deferred to task work context and the * work is already scheduled there is no point to do anything here. */ |