Tetsuo Handa
07191f9848
cgroup: Add missing cpus_read_lock() to cgroup_attach_task_all()
commit 43626dade36fa74d3329046f4ae2d7fdefe401c6 upstream.
syzbot is hitting percpu_rwsem_assert_held(&cpu_hotplug_lock) warning at
cpuset_attach() [1], for commit 4f7e7236435ca0ab ("cgroup: Fix
threadgroup_rwsem <-> cpus_read_lock() deadlock") missed that
cpuset_attach() is also called from cgroup_attach_task_all().
Add cpus_read_lock() like what cgroup_procs_write_start() does.
Link: https://syzkaller.appspot.com/bug?extid=29d3a3b4d86c8136ad9e [1]
Reported-by: syzbot <syzbot+29d3a3b4d86c8136ad9e@syzkaller.appspotmail.com>
Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Fixes: 4f7e7236435ca0ab ("cgroup: Fix threadgroup_rwsem <-> cpus_read_lock() deadlock")
Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
|
2022-09-28 11:03:59 +02:00 |
| .. |
|
bpf
|
bpf: Verifer, adjust_scalar_min_max_vals to always call update_reg_bounds()
|
2022-08-11 12:57:51 +02:00 |
|
cgroup
|
cgroup: Add missing cpus_read_lock() to cgroup_attach_task_all()
|
2022-09-28 11:03:59 +02:00 |
|
configs
|
|
|
|
debug
|
lockdown: also lock down previous kgdb use
|
2022-06-06 08:33:48 +02:00 |
|
dma
|
dma-debug: make things less spammy under memory pressure
|
2022-06-22 14:11:19 +02:00 |
|
events
|
perf/core: Fix data race between perf_event_set_output() and perf_mmap_close()
|
2022-07-29 17:14:10 +02:00 |
|
gcov
|
gcov: re-fix clang-11+ support
|
2021-04-14 08:24:10 +02:00 |
|
irq
|
genirq: Don't return error on missing optional irq_request_resources()
|
2022-08-25 11:17:29 +02:00 |
|
livepatch
|
|
|
|
locking
|
locking/lockdep: Avoid RCU-induced noinstr fail
|
2021-11-17 09:48:28 +01:00 |
|
power
|
PM: hibernate: defer device probing when resuming from hibernation
|
2022-08-25 11:17:32 +02:00 |
|
printk
|
printk: fix return value of printk.devkmsg __setup handler
|
2022-04-15 14:18:08 +02:00 |
|
rcu
|
rcu: Don't deboost before reporting expedited quiescent state
|
2022-03-28 08:46:48 +02:00 |
|
sched
|
sched/deadline: Fix priority inheritance with multiple scheduling classes
|
2022-09-05 10:27:39 +02:00 |
|
time
|
timekeeping: contribute wall clock to rng on time change
|
2022-08-25 11:18:15 +02:00 |
|
trace
|
tracing: hold caller_addr to hardirq_{enable,disable}_ip
|
2022-09-28 11:03:57 +02:00 |
|
.gitignore
|
kbuild: update config_data.gz only when the content of .config is changed
|
2021-05-11 14:04:16 +02:00 |
|
acct.c
|
|
|
|
async.c
|
Revert "module, async: async_synchronize_full() on module init iff async is used"
|
2022-02-23 11:59:56 +01:00 |
|
audit.c
|
audit: improve audit queue handling when "audit=1" on cmdline
|
2022-02-08 18:24:26 +01:00 |
|
audit.h
|
audit: log AUDIT_TIME_* records only from rules
|
2022-04-15 14:18:04 +02:00 |
|
audit_fsnotify.c
|
audit: fix potential double free on error path from fsnotify_add_inode_mark
|
2022-09-05 10:27:38 +02:00 |
|
audit_tree.c
|
audit: move put_tree() to avoid trim_trees refcount underflow and UAF
|
2021-09-03 10:08:16 +02:00 |
|
audit_watch.c
|
audit: CONFIG_CHANGE don't log internal bookkeeping as an event
|
2020-10-01 13:17:32 +02:00 |
|
auditfilter.c
|
|
|
|
auditsc.c
|
audit: log AUDIT_TIME_* records only from rules
|
2022-04-15 14:18:04 +02:00 |
|
backtracetest.c
|
|
|
|
bounds.c
|
|
|
|
capability.c
|
|
|
|
compat.c
|
|
|
|
configs.c
|
|
|
|
context_tracking.c
|
|
|
|
cpu.c
|
random: clear fast pool, crng, and batches in cpuhp bring up
|
2022-06-22 14:11:12 +02:00 |
|
cpu_pm.c
|
|
|
|
crash_core.c
|
|
|
|
crash_dump.c
|
|
|
|
cred.c
|
|
|
|
delayacct.c
|
|
|
|
dma.c
|
|
|
|
exec_domain.c
|
|
|
|
exit.c
|
don't dump the threads that had been already exiting when zapped.
|
2020-11-18 19:20:31 +01:00 |
|
extable.c
|
|
|
|
fail_function.c
|
fail_function: Remove a redundant mutex unlock
|
2020-11-24 13:29:18 +01:00 |
|
fork.c
|
copy_process(): Move fd_install() out of sighand->siglock critical section
|
2022-02-23 12:00:00 +01:00 |
|
freezer.c
|
|
|
|
futex.c
|
mm, futex: fix shared futex pgoff on shmem huge page
|
2021-06-30 08:47:55 -04:00 |
|
gen_kheaders.sh
|
|
|
|
groups.c
|
|
|
|
hung_task.c
|
|
|
|
iomem.c
|
|
|
|
irq_work.c
|
|
|
|
jump_label.c
|
|
|
|
kallsyms.c
|
|
|
|
kcmp.c
|
exec: Transform exec_update_mutex into a rw_semaphore
|
2021-01-09 13:44:55 +01:00 |
|
Kconfig.freezer
|
|
|
|
Kconfig.hz
|
|
|
|
Kconfig.locks
|
|
|
|
Kconfig.preempt
|
|
|
|
kcov.c
|
|
|
|
kexec.c
|
|
|
|
kexec_core.c
|
kernel: kexec: remove the lock operation of system_transition_mutex
|
2021-02-03 23:25:56 +01:00 |
|
kexec_elf.c
|
|
|
|
kexec_file.c
|
kexec_file: drop weak attribute from arch_kexec_apply_relocations[_add]
|
2022-07-02 16:28:50 +02:00 |
|
kexec_internal.h
|
|
|
|
kheaders.c
|
|
|
|
kmod.c
|
|
|
|
kprobes.c
|
kprobes: Prohibit probes in gate area
|
2022-09-15 12:04:54 +02:00 |
|
ksysfs.c
|
|
|
|
kthread.c
|
kthread: Fix PF_KTHREAD vs to_kthread() race
|
2021-09-12 08:56:39 +02:00 |
|
latencytop.c
|
|
|
|
Makefile
|
kbuild: update config_data.gz only when the content of .config is changed
|
2021-05-11 14:04:16 +02:00 |
|
module-internal.h
|
|
|
|
module.c
|
module/ftrace: handle patchable-function-entry
|
2022-02-23 11:59:56 +01:00 |
|
module_signature.c
|
module: harden ELF info handling
|
2021-04-07 14:47:38 +02:00 |
|
module_signing.c
|
module: harden ELF info handling
|
2021-04-07 14:47:38 +02:00 |
|
notifier.c
|
|
|
|
nsproxy.c
|
|
|
|
padata.c
|
|
|
|
panic.c
|
|
|
|
params.c
|
|
|
|
pid.c
|
|
|
|
pid_namespace.c
|
memcg: enable accounting for pids in nested pid namespaces
|
2021-09-22 12:26:37 +02:00 |
|
profile.c
|
profiling: fix shift too large makes kernel panic
|
2022-08-25 11:18:02 +02:00 |
|
ptrace.c
|
ptrace: Reimplement PTRACE_KILL by always sending SIGKILL
|
2022-06-14 18:11:24 +02:00 |
|
range.c
|
|
|
|
reboot.c
|
reboot: fix overflow parsing reboot cpu number
|
2020-11-18 19:20:30 +01:00 |
|
relay.c
|
|
|
|
resource.c
|
|
|
|
rseq.c
|
|
|
|
seccomp.c
|
seccomp: Invalidate seccomp mode to catch death failures
|
2022-02-16 12:52:53 +01:00 |
|
signal.c
|
signal handling: don't use BUG_ON() for debugging
|
2022-07-21 20:59:27 +02:00 |
|
smp.c
|
smp: Fix offline cpu check in flush_smp_call_function_queue()
|
2022-04-20 09:19:39 +02:00 |
|
smpboot.c
|
kthread: Extract KTHREAD_IS_PER_CPU
|
2021-02-07 15:35:49 +01:00 |
|
smpboot.h
|
|
|
|
softirq.c
|
|
|
|
stackleak.c
|
|
|
|
stacktrace.c
|
|
|
|
stop_machine.c
|
|
|
|
sys.c
|
prctl: allow to setup brk for et_dyn executables
|
2021-09-26 14:07:08 +02:00 |
|
sys_ni.c
|
kernel/sys_ni: add compat entry for fadvise64_64
|
2022-09-05 10:27:38 +02:00 |
|
sysctl-test.c
|
|
|
|
sysctl.c
|
mm: sysctl: fix missing numa_stat when !CONFIG_HUGETLB_PAGE
|
2022-07-21 20:59:24 +02:00 |
|
sysctl_binary.c
|
|
|
|
task_work.c
|
|
|
|
taskstats.c
|
|
|
|
test_kprobes.c
|
|
|
|
torture.c
|
|
|
|
tracepoint.c
|
tracepoint: Add tracepoint_probe_register_may_exist() for BPF tracing
|
2021-07-14 16:53:08 +02:00 |
|
tsacct.c
|
taskstats: Cleanup the use of task->exit_code
|
2022-02-23 11:59:57 +01:00 |
|
ucount.c
|
|
|
|
uid16.c
|
|
|
|
uid16.h
|
|
|
|
umh.c
|
usermodehelper: reset umask to default before executing user process
|
2020-10-14 10:32:58 +02:00 |
|
up.c
|
smp: Fix smp_call_function_single_async prototype
|
2021-05-14 09:44:33 +02:00 |
|
user-return-notifier.c
|
|
|
|
user.c
|
|
|
|
user_namespace.c
|
|
|
|
utsname.c
|
|
|
|
utsname_sysctl.c
|
|
|
|
watchdog.c
|
watchdog: export lockup_detector_reconfigure
|
2022-08-25 11:18:37 +02:00 |
|
watchdog_hld.c
|
|
|
|
workqueue.c
|
workqueue: Fix unbind_workers() VS wq_worker_running() race
|
2022-01-16 09:15:38 +01:00 |
|
workqueue_internal.h
|
|
|