INFO: task syz-executor.2:12349 blocked for more than 143 seconds.
Not tainted 6.10.0-rc4-next-20240621-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.2 state:D stack:20240 pid:12349 tgid:12349 ppid:12348 flags:0x00000002
Call Trace:
context_switch kernel/sched/core.c:5249 [inline]
__schedule+0x17e8/0x4a20 kernel/sched/core.c:6594
__schedule_loop kernel/sched/core.c:6671 [inline]
schedule+0x14b/0x320 kernel/sched/core.c:6686
schedule_preempt_disabled+0x13/0x30 kernel/sched/core.c:6743
__mutex_lock_common kernel/locking/mutex.c:684 [inline]
__mutex_lock+0x6a4/0xd70 kernel/locking/mutex.c:752
cgroup_lock include/linux/cgroup.h:367 [inline]
cgroup_kn_lock_live+0xe6/0x290 kernel/cgroup/cgroup.c:1662
__cgroup_procs_write+0xf4/0x4f0 kernel/cgroup/cgroup.c:5163
cgroup_procs_write+0x29/0x50 kernel/cgroup/cgroup.c:5203
cgroup_file_write+0x2ce/0x6d0 kernel/cgroup/cgroup.c:4107
kernfs_fop_write_iter+0x3a1/0x500 fs/kernfs/file.c:334
new_sync_write fs/read_write.c:497 [inline]
vfs_write+0xa72/0xc90 fs/read_write.c:590
ksys_write+0x1a0/0x2c0 fs/read_write.c:643
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f0af307bdef
RSP: 002b:00007fffbd1be940 EFLAGS: 00000293 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007f0af307bdef
RDX: 0000000000000001 RSI: 00007fffbd1be990 RDI: 0000000000000003
RBP: 00007fffbd1bef20 R08: 0000000000000000 R09: 00007fffbd1be797
R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000001
R13: 00007fffbd1be990 R14: 00007fffbd1bef20 R15: 00007fffbd1beee0
INFO: task syz-executor.0:12495 blocked for more than 143 seconds.
Not tainted 6.10.0-rc4-next-20240621-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.0 state:D stack:24976 pid:12495 tgid:12494 ppid:12166 flags:0x00004006
Call Trace:
context_switch kernel/sched/core.c:5249 [inline]
__schedule+0x17e8/0x4a20 kernel/sched/core.c:6594
__schedule_loop kernel/sched/core.c:6671 [inline]
schedule+0x14b/0x320 kernel/sched/core.c:6686
schedule_timeout+0xb0/0x310 kernel/time/timer.c:2557
do_wait_for_common kernel/sched/completion.c:95 [inline]
__wait_for_common kernel/sched/completion.c:116 [inline]
wait_for_common kernel/sched/completion.c:127 [inline]
wait_for_completion+0x355/0x620 kernel/sched/completion.c:148
__flush_work+0xaa9/0xd00 kernel/workqueue.c:4203
__lru_add_drain_all+0x4f6/0x560 mm/swap.c:901
invalidate_bdev+0x76/0xa0 block/bdev.c:100
btrfs_get_bdev_and_sb+0x11a/0x1c0 fs/btrfs/volumes.c:492
btrfs_open_one_device fs/btrfs/volumes.c:657 [inline]
open_fs_devices+0x2ae/0x12a0 fs/btrfs/volumes.c:1196
btrfs_get_tree_super fs/btrfs/super.c:1826 [inline]
btrfs_get_tree+0x504/0x1920 fs/btrfs/super.c:2089
vfs_get_tree+0x90/0x2a0 fs/super.c:1789
fc_mount+0x1b/0xb0 fs/namespace.c:1125
btrfs_get_tree_subvol fs/btrfs/super.c:2052 [inline]
btrfs_get_tree+0x652/0x1920 fs/btrfs/super.c:2090
vfs_get_tree+0x90/0x2a0 fs/super.c:1789
do_new_mount+0x2be/0xb40 fs/namespace.c:3379
do_mount fs/namespace.c:3719 [inline]
__do_sys_mount fs/namespace.c:3925 [inline]
__se_sys_mount+0x2d6/0x3c0 fs/namespace.c:3902
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fec37c7e7aa
RSP: 002b:00007fec389b3ef8 EFLAGS: 00000202 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007fec389b3f80 RCX: 00007fec37c7e7aa
RDX: 0000000020000200 RSI: 0000000020005600 RDI: 00007fec389b3f40
RBP: 0000000020000200 R08: 00007fec389b3f80 R09: 0000000000000800
R10: 0000000000000800 R11: 0000000000000202 R12: 0000000020005600
R13: 00007fec389b3f40 R14: 000000000000559e R15: 0000000020000240
INFO: task rm:12493 blocked for more than 144 seconds.
Not tainted 6.10.0-rc4-next-20240621-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:rm state:D stack:23680 pid:12493 tgid:12493 ppid:12466 flags:0x00000002
Call Trace:
context_switch kernel/sched/core.c:5249 [inline]
__schedule+0x17e8/0x4a20 kernel/sched/core.c:6594
__schedule_loop kernel/sched/core.c:6671 [inline]
schedule+0x14b/0x320 kernel/sched/core.c:6686
percpu_rwsem_wait+0x3c2/0x450 kernel/locking/percpu-rwsem.c:162
__percpu_down_read+0xee/0x130 kernel/locking/percpu-rwsem.c:177
percpu_down_read include/linux/percpu-rwsem.h:65 [inline]
cgroup_threadgroup_change_begin include/linux/cgroup-defs.h:790 [inline]
exit_signals+0x4a9/0x5c0 kernel/signal.c:3000
do_exit+0x6b4/0x28e0 kernel/exit.c:835
do_group_exit+0x207/0x2c0 kernel/exit.c:1025
__do_sys_exit_group kernel/exit.c:1036 [inline]
__se_sys_exit_group kernel/exit.c:1034 [inline]
__x64_sys_exit_group+0x3f/0x40 kernel/exit.c:1034
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fb7a45c8a90
RSP: 002b:00007fffe01025c8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7
RAX: ffffffffffffffda RBX: 00007fb7a46b9860 RCX: 00007fb7a45c8a90
RDX: 00000000000000e7 RSI: 000000000000003c RDI: 0000000000000000
RBP: 00007fb7a46b9860 R08: 00007fffe0102440 R09: 00007fffe0102520
R10: 00007fffe0102480 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007fb7a46bd658 R15: 0000000000000001
Showing all locks held in the system:
1 lock held by kthreadd/2:
#0: ffffffff8e363a50 (cgroup_threadgroup_rwsem){++++}-{0:0}, at: copy_process+0x21db/0x3d90 kernel/fork.c:2472
1 lock held by khungtaskd/30:
#0: ffffffff8e3357a0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:333 [inline]
#0: ffffffff8e3357a0 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:845 [inline]
#0: ffffffff8e3357a0 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x55/0x2a0 kernel/locking/lockdep.c:6688
1 lock held by udevd/4546:
#0: ffffffff8e363a50 (cgroup_threadgroup_rwsem){++++}-{0:0}, at: copy_process+0x21db/0x3d90 kernel/fork.c:2472
2 locks held by getty/4843:
#0: ffff88802eda10a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243
#1: ffffc9000312b2f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6b5/0x1e10 drivers/tty/n_tty.c:2211
1 lock held by syz-fuzzer/5081:
#0: ffffffff8e363a50 (cgroup_threadgroup_rwsem){++++}-{0:0}, at: do_exit+0x6b4/0x28e0 kernel/exit.c:835
1 lock held by syz-fuzzer/5082:
#0: ffffffff8e363a50 (cgroup_threadgroup_rwsem){++++}-{0:0}, at: do_exit+0x6b4/0x28e0 kernel/exit.c:835
1 lock held by syz-fuzzer/5083:
#0: ffffffff8e363a50 (cgroup_threadgroup_rwsem){++++}-{0:0}, at: do_exit+0x6b4/0x28e0 kernel/exit.c:835
1 lock held by syz-fuzzer/5084:
#0: ffffffff8e363a50 (cgroup_threadgroup_rwsem){++++}-{0:0}, at: do_exit+0x6b4/0x28e0 kernel/exit.c:835
1 lock held by syz-fuzzer/5085:
#0: ffffffff8e363a50 (cgroup_threadgroup_rwsem){++++}-{0:0}, at: do_exit+0x6b4/0x28e0 kernel/exit.c:835
1 lock held by syz-fuzzer/5086:
#0: ffffffff8e363a50 (cgroup_threadgroup_rwsem){++++}-{0:0}, at: do_exit+0x6b4/0x28e0 kernel/exit.c:835
1 lock held by syz-fuzzer/5087:
#0: ffffffff8e363a50 (cgroup_threadgroup_rwsem){++++}-{0:0}, at: do_exit+0x6b4/0x28e0 kernel/exit.c:835
1 lock held by syz-fuzzer/5093:
#0: ffffffff8e363a50 (cgroup_threadgroup_rwsem){++++}-{0:0}, at: do_exit+0x6b4/0x28e0 kernel/exit.c:835
1 lock held by syz-fuzzer/5094:
#0: ffffffff8e363a50 (cgroup_threadgroup_rwsem){++++}-{0:0}, at: do_exit+0x6b4/0x28e0 kernel/exit.c:835
1 lock held by syz-fuzzer/5096:
#0: ffffffff8e363a50 (cgroup_threadgroup_rwsem){++++}-{0:0}, at: do_exit+0x6b4/0x28e0 kernel/exit.c:835
1 lock held by syz-fuzzer/5099:
#0: ffffffff8e363a50 (cgroup_threadgroup_rwsem){++++}-{0:0}, at: do_exit+0x6b4/0x28e0 kernel/exit.c:835
1 lock held by syz-fuzzer/5100:
#0: ffffffff8e363a50 (cgroup_threadgroup_rwsem){++++}-{0:0}, at: do_exit+0x6b4/0x28e0 kernel/exit.c:835
1 lock held by syz-fuzzer/5300:
#0: ffffffff8e363a50 (cgroup_threadgroup_rwsem){++++}-{0:0}, at: do_exit+0x6b4/0x28e0 kernel/exit.c:835
1 lock held by kworker/u9:0/8792:
#0: ffffffff8e363a50 (cgroup_threadgroup_rwsem){++++}-{0:0}, at: do_exit+0x6b4/0x28e0 kernel/exit.c:835
1 lock held by kworker/u9:1/9663:
#0: ffffffff8e363a50 (cgroup_threadgroup_rwsem){++++}-{0:0}, at: do_exit+0x6b4/0x28e0 kernel/exit.c:835
1 lock held by kworker/u9:2/9673:
#0: ffffffff8e363a50 (cgroup_threadgroup_rwsem){++++}-{0:0}, at: do_exit+0x6b4/0x28e0 kernel/exit.c:835
1 lock held by udevd/11965:
#0: ffffffff8e363a50 (cgroup_threadgroup_rwsem){++++}-{0:0}, at: do_exit+0x6b4/0x28e0 kernel/exit.c:835
1 lock held by udevd/11992:
#0: ffffffff8e363a50 (cgroup_threadgroup_rwsem){++++}-{0:0}, at: do_exit+0x6b4/0x28e0 kernel/exit.c:835
1 lock held by udevd/12032:
#0: ffffffff8e363a50 (cgroup_threadgroup_rwsem){++++}-{0:0}, at: do_exit+0x6b4/0x28e0 kernel/exit.c:835
1 lock held by udevd/12099:
#0: ffffffff8e363a50 (cgroup_threadgroup_rwsem){++++}-{0:0}, at: do_exit+0x6b4/0x28e0 kernel/exit.c:835
1 lock held by syz-executor.1/12137:
#0: ffffffff8e363a50 (cgroup_threadgroup_rwsem){++++}-{0:0}, at: do_exit+0x6b4/0x28e0 kernel/exit.c:835
1 lock held by syz-executor.0/12160:
#0: ffffffff8e363a50 (cgroup_threadgroup_rwsem){++++}-{0:0}, at: do_exit+0x6b4/0x28e0 kernel/exit.c:835
1 lock held by syz-executor.4/12243:
#0: ffffffff8e363a50 (cgroup_threadgroup_rwsem){++++}-{0:0}, at: do_exit+0x6b4/0x28e0 kernel/exit.c:835
1 lock held by syz-executor.3/12267:
#0: ffffffff8e363a50 (cgroup_threadgroup_rwsem){++++}-{0:0}, at: do_exit+0x6b4/0x28e0 kernel/exit.c:835
6 locks held by syz-executor.3/12270:
1 lock held by syz-executor.2/12348:
#0: ffffffff8e363a50 (cgroup_threadgroup_rwsem){++++}-{0:0}, at: do_exit+0x6b4/0x28e0 kernel/exit.c:835
3 locks held by syz-executor.2/12349:
#0: ffff888022c7c420 (sb_writers#10){.+.+}-{0:0}, at: file_start_write include/linux/fs.h:2872 [inline]
#0: ffff888022c7c420 (sb_writers#10){.+.+}-{0:0}, at: vfs_write+0x227/0xc90 fs/read_write.c:586
#1: ffff88805b341c88 (&of->mutex){+.+.}-{3:3}, at: kernfs_fop_write_iter+0x1eb/0x500 fs/kernfs/file.c:325
#2: ffffffff8e363868 (cgroup_mutex){+.+.}-{3:3}, at: cgroup_lock include/linux/cgroup.h:367 [inline]
#2: ffffffff8e363868 (cgroup_mutex){+.+.}-{3:3}, at: cgroup_kn_lock_live+0xe6/0x290 kernel/cgroup/cgroup.c:1662
1 lock held by udevd/12351:
#0: ffffffff8e363a50 (cgroup_threadgroup_rwsem){++++}-{0:0}, at: do_exit+0x6b4/0x28e0 kernel/exit.c:835
1 lock held by udevd/12352:
#0: ffffffff8e363a50 (cgroup_threadgroup_rwsem){++++}-{0:0}, at: do_exit+0x6b4/0x28e0 kernel/exit.c:835
1 lock held by udevd/12353:
#0: ffffffff8e363a50 (cgroup_threadgroup_rwsem){++++}-{0:0}, at: do_exit+0x6b4/0x28e0 kernel/exit.c:835
1 lock held by syz-executor.4/12468:
2 locks held by syz-executor.1/12478:
1 lock held by syz-executor.0/12494:
#0: ffffffff8e363a50 (cgroup_threadgroup_rwsem){++++}-{0:0}, at: do_exit+0x6b4/0x28e0 kernel/exit.c:835
2 locks held by syz-executor.0/12495:
#0: ffffffff8e8ac528 (uuid_mutex){+.+.}-{3:3}, at: btrfs_get_tree_super fs/btrfs/super.c:1810 [inline]
#0: ffffffff8e8ac528 (uuid_mutex){+.+.}-{3:3}, at: btrfs_get_tree+0x2dc/0x1920 fs/btrfs/super.c:2089
#1: ffffffff8e3ef508 (lock#3){+.+.}-{3:3}, at: __lru_add_drain_all+0x66/0x560 mm/swap.c:856
1 lock held by rm/12493:
#0: ffffffff8e363a50 (cgroup_threadgroup_rwsem){++++}-{0:0}, at: do_exit+0x6b4/0x28e0 kernel/exit.c:835
=============================================
NMI backtrace for cpu 0
CPU: 0 UID: 0 PID: 30 Comm: khungtaskd Not tainted 6.10.0-rc4-next-20240621-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024
Call Trace:
__dump_stack lib/dump_stack.c:94 [inline]
dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120
nmi_cpu_backtrace+0x49c/0x4d0 lib/nmi_backtrace.c:113
nmi_trigger_cpumask_backtrace+0x198/0x320 lib/nmi_backtrace.c:62
trigger_all_cpu_backtrace include/linux/nmi.h:162 [inline]
check_hung_uninterruptible_tasks kernel/hung_task.c:223 [inline]
watchdog+0xfee/0x1030 kernel/hung_task.c:379
kthread+0x2f0/0x390 kernel/kthread.c:389
ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:144
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 UID: 0 PID: 12473 Comm: syz-executor.1 Not tainted 6.10.0-rc4-next-20240621-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024
RIP: 0010:check_wait_context kernel/locking/lockdep.c:4858 [inline]
RIP: 0010:__lock_acquire+0x93e/0x2000 kernel/locking/lockdep.c:5143
Code: 31 db 48 8d ab c4 00 00 00 48 89 e8 48 c1 e8 03 0f b6 04 10 84 c0 0f 85 92 00 00 00 0f b6 6d 00 40 84 ed 74 32 0f b6 44 24 08 <40> 0f b6 cd 40 38 e8 0f 42 c8 89 4c 24 08 48 81 c3 c6 00 00 00 48
RSP: 0018:ffffc90000a18970 EFLAGS: 00000002
RAX: 0000000000000002 RBX: ffffffff92ccc008 RCX: ffffffff816f6c6a
RDX: dffffc0000000000 RSI: 0000000000000008 RDI: ffffffff92fe4740
RBP: 0000000000000002 R08: ffffffff92fe4747 R09: 1ffffffff25fc8e8
R10: dffffc0000000000 R11: fffffbfff25fc8e9 R12: ffff888019f68b28
R13: 0000000000000001 R14: 0000000000000001 R15: ffff888019f68b28
FS: 00007f8f3d5766c0(0000) GS:ffff8880b9500000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f8f3d575f00 CR3: 000000005f138000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
lock_acquire+0x1ed/0x550 kernel/locking/lockdep.c:5816
rcu_lock_acquire include/linux/rcupdate.h:333 [inline]
rcu_read_lock include/linux/rcupdate.h:845 [inline]
__lock_task_sighand+0x49/0x2d0 kernel/signal.c:1395
lock_task_sighand include/linux/sched/signal.h:746 [inline]
send_sigqueue+0x25d/0x760 kernel/signal.c:1995
posix_timer_event kernel/time/posix-timers.c:298 [inline]
posix_timer_fn+0x18a/0x3a0 kernel/time/posix-timers.c:324
__run_hrtimer kernel/time/hrtimer.c:1687 [inline]
__hrtimer_run_queues+0x59b/0xd50 kernel/time/hrtimer.c:1751
hrtimer_interrupt+0x396/0x990 kernel/time/hrtimer.c:1813
local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1032 [inline]
__sysvec_apic_timer_interrupt+0x110/0x3f0 arch/x86/kernel/apic/apic.c:1049
instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1043 [inline]
sysvec_apic_timer_interrupt+0xa1/0xc0 arch/x86/kernel/apic/apic.c:1043
asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702
RIP: 0010:__raw_spin_unlock_irq include/linux/spinlock_api_smp.h:160 [inline]
RIP: 0010:_raw_spin_unlock_irq+0x29/0x50 kernel/locking/spinlock.c:202
Code: 90 f3 0f 1e fa 53 48 89 fb 48 83 c7 18 48 8b 74 24 08 e8 1a 37 d7 f5 48 89 df e8 52 7a d8 f5 e8 ad dc 02 f6 fb bf 01 00 00 00 c2 42 ca f5 65 8b 05 03 89 6b 74 85 c0 74 06 5b c3 cc cc cc cc
RSP: 0018:ffffc900098bfc70 EFLAGS: 00000282
RAX: 909e0e6f10912500 RBX: ffff888019f1ef00 RCX: ffffffff947dc803
RDX: dffffc0000000000 RSI: ffffffff8bcac8a0 RDI: 0000000000000001
RBP: ffffc900098bfdb0 R08: ffffffff8faeddef R09: 1ffffffff1f5dbbd
R10: dffffc0000000000 R11: fffffbfff1f5dbbe R12: 0000000000000021
R13: 1ffff110033e3e73 R14: ffff888019f1f398 R15: ffff888019f1ef00
spin_unlock_irq include/linux/spinlock.h:401 [inline]
get_signal+0x14dd/0x1740 kernel/signal.c:2912
arch_do_signal_or_restart+0x96/0x830 arch/x86/kernel/signal.c:310
exit_to_user_mode_loop kernel/entry/common.c:111 [inline]
exit_to_user_mode_prepare include/linux/entry-common.h:328 [inline]
__syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline]
syscall_exit_to_user_mode+0xc9/0x370 kernel/entry/common.c:218
do_syscall_64+0x100/0x230 arch/x86/entry/common.c:89
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f8f3c87d0a7
Code: 14 25 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 <0f> 05 48 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b0 ff ff ff f7 d8 64 89
RSP: 002b:00007f8f3d5760c8 EFLAGS: 00000246
RAX: 000000000000012b RBX: 00007f8f3c9b3f80 RCX: 00007f8f3c87d0a9
RDX: 0000000000010106 RSI: 00000000200000c0 RDI: 0000000000000003
RBP: 00007f8f3c8ec074 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000002 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000000b R14: 00007f8f3c9b3f80 R15: 00007ffd27e54698