linux/kernel/sched
Mathieu Desnoyers ce29ddc47b sched/membarrier: fix missing local execution of ipi_sync_rq_state()
The function sync_runqueues_membarrier_state() should copy the
membarrier state from the @mm received as parameter to each runqueue
currently running tasks using that mm.

However, the use of smp_call_function_many() skips the current runqueue,
which is unintended. Replace by a call to on_each_cpu_mask().

Fixes: 227a4aadc7 ("sched/membarrier: Fix p->mm->membarrier_state racy load")
Reported-by: Nadav Amit <nadav.amit@gmail.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Cc: stable@vger.kernel.org # 5.4.x+
Link: https://lore.kernel.org/r/74F1E842-4A84-47BF-B6C2-5407DFDD4A4A@gmail.com
2021-03-06 12:40:21 +01:00
..
autogroup.c
autogroup.h
clock.c
completion.c
core.c sched: Simplify set_affinity_pending refcounts 2021-03-06 12:40:21 +01:00
cpuacct.c
cpudeadline.c sched,rt: Use the full cpumask for balancing 2020-11-10 18:39:00 +01:00
cpudeadline.h
cpufreq_schedutil.c More power management updates for 5.12-rc1 2021-02-23 14:59:46 -08:00
cpufreq.c
cpupri.c Merge branch 'sched/migrate-disable' 2020-11-10 18:39:04 +01:00
cpupri.h sched/cpupri: Add CPUPRI_HIGHER 2020-10-29 11:00:30 +01:00
cputime.c irqtime: Move irqtime entry accounting after irq offset incrementation 2020-12-02 20:20:05 +01:00
deadline.c sched/features: Distinguish between NORMAL and DEADLINE hrtick 2021-02-17 14:12:42 +01:00
debug.c sched: Use task_current() instead of 'rq->curr == p' 2021-01-14 11:20:11 +01:00
fair.c kernel: delete repeated words in comments 2021-02-26 09:41:03 -08:00
features.h sched/features: Distinguish between NORMAL and DEADLINE hrtick 2021-02-17 14:12:42 +01:00
idle.c rcu/nocb: Perform deferred wake up before last idle's need_resched() check 2021-02-17 14:12:43 +01:00
isolation.c
loadavg.c sched: nohz: stop passing around unused "ticks" parameter. 2020-07-22 10:22:04 +02:00
Makefile
membarrier.c sched/membarrier: fix missing local execution of ipi_sync_rq_state() 2021-03-06 12:40:21 +01:00
pelt.c
pelt.h
psi.c
rt.c sched: Use task_current() instead of 'rq->curr == p' 2021-01-14 11:20:11 +01:00
sched-pelt.h
sched.h sched/features: Distinguish between NORMAL and DEADLINE hrtick 2021-02-17 14:12:42 +01:00
smp.h
stats.c
stats.h
stop_task.c sched: Remove select_task_rq()'s sd_flag parameter 2020-11-10 18:39:06 +01:00
swait.c
topology.c sched/topology: Fix sched_domain_topology_level alloc in sched_init_numa() 2021-02-17 14:08:05 +01:00
wait_bit.c
wait.c sched/wait: Add add_wait_queue_priority() 2020-11-15 09:49:09 -05:00