INFO: task kworker/u8:7:3006 blocked for more than 143 seconds. Not tainted 6.12.0-rc7-syzkaller-00012-g3022e9d00ebe #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:kworker/u8:7 state:D stack:19336 pid:3006 tgid:3006 ppid:2 flags:0x00004000 Workqueue: writeback wb_workfn (flush-bcachefs-11) Call Trace: context_switch kernel/sched/core.c:5328 [inline] __schedule+0x184f/0x4c30 kernel/sched/core.c:6693 __schedule_loop kernel/sched/core.c:6770 [inline] schedule+0x14b/0x320 kernel/sched/core.c:6785 schedule_timeout+0x1be/0x310 kernel/time/timer.c:2615 __closure_sync_timeout+0x2d8/0x450 lib/closure.c:217 closure_sync_timeout include/linux/closure.h:206 [inline] __bch2_wait_on_allocator+0x11a/0x250 fs/bcachefs/alloc_foreground.c:1812 bch2_wait_on_allocator fs/bcachefs/alloc_foreground.h:239 [inline] __bch2_write+0x562a/0x5dd0 fs/bcachefs/io_write.c:1501 bch2_write+0x9b5/0x1760 fs/bcachefs/io_write.c:1631 closure_queue include/linux/closure.h:270 [inline] closure_call include/linux/closure.h:432 [inline] bch2_writepage_do_io fs/bcachefs/fs-io-buffered.c:449 [inline] bch2_writepages+0x27d/0x380 fs/bcachefs/fs-io-buffered.c:641 do_writepages+0x35f/0x870 mm/page-writeback.c:2683 __writeback_single_inode+0x14f/0x10d0 fs/fs-writeback.c:1658 writeback_sb_inodes+0x80c/0x1370 fs/fs-writeback.c:1954 wb_writeback+0x41b/0xbd0 fs/fs-writeback.c:2134 wb_do_writeback fs/fs-writeback.c:2281 [inline] wb_workfn+0x410/0x1090 fs/fs-writeback.c:2321 process_one_work kernel/workqueue.c:3229 [inline] process_scheduled_works+0xa65/0x1850 kernel/workqueue.c:3310 worker_thread+0x870/0xd30 kernel/workqueue.c:3391 kthread+0x2f2/0x390 kernel/kthread.c:389 ret_from_fork+0x4d/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 INFO: task syz-executor:5840 blocked for more than 144 seconds. Not tainted 6.12.0-rc7-syzkaller-00012-g3022e9d00ebe #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor state:D stack:20992 pid:5840 tgid:5840 ppid:1 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:5328 [inline] __schedule+0x184f/0x4c30 kernel/sched/core.c:6693 __schedule_loop kernel/sched/core.c:6770 [inline] schedule+0x14b/0x320 kernel/sched/core.c:6785 wb_wait_for_completion+0x166/0x290 fs/fs-writeback.c:216 __writeback_inodes_sb_nr+0x2d2/0x380 fs/fs-writeback.c:2713 sync_filesystem+0xa4/0x230 fs/sync.c:54 generic_shutdown_super+0x72/0x2d0 fs/super.c:621 bch2_kill_sb+0x41/0x50 fs/bcachefs/fs.c:2278 deactivate_locked_super+0xc6/0x130 fs/super.c:473 cleanup_mnt+0x41f/0x4b0 fs/namespace.c:1373 task_work_run+0x251/0x310 kernel/task_work.c:239 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] exit_to_user_mode_loop kernel/entry/common.c:114 [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+0x168/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:0x7f8aa557fa47 RSP: 002b:00007ffc96304b78 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00007f8aa557fa47 RDX: 0000000000000000 RSI: 0000000000000009 RDI: 00007ffc96304c30 RBP: 00007ffc96304c30 R08: 0000000000000000 R09: 0000000000000000 R10: 00000000ffffffff R11: 0000000000000246 R12: 00007ffc96305cb0 R13: 00007f8aa55f14b4 R14: 000000000004c56c R15: 00007ffc96305cf0 INFO: task bch-copygc/loop:7612 blocked for more than 144 seconds. Not tainted 6.12.0-rc7-syzkaller-00012-g3022e9d00ebe #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:bch-copygc/loop state:D stack:20112 pid:7612 tgid:7612 ppid:2 flags:0x00004000 Call Trace: context_switch kernel/sched/core.c:5328 [inline] __schedule+0x184f/0x4c30 kernel/sched/core.c:6693 __schedule_loop kernel/sched/core.c:6770 [inline] schedule+0x14b/0x320 kernel/sched/core.c:6785 schedule_timeout+0x1be/0x310 kernel/time/timer.c:2615 __closure_sync_timeout+0x2d8/0x450 lib/closure.c:217 closure_sync_timeout include/linux/closure.h:206 [inline] __bch2_wait_on_allocator+0x11a/0x250 fs/bcachefs/alloc_foreground.c:1812 bch2_wait_on_allocator fs/bcachefs/alloc_foreground.h:239 [inline] __bch2_write+0x562a/0x5dd0 fs/bcachefs/io_write.c:1501 bch2_write+0x9b5/0x1760 fs/bcachefs/io_write.c:1631 closure_queue include/linux/closure.h:270 [inline] closure_call include/linux/closure.h:432 [inline] bch2_data_update_read_done+0x22e/0x330 fs/bcachefs/data_update.c:426 move_write fs/bcachefs/move.c:133 [inline] bch2_moving_ctxt_do_pending_writes+0x44c/0x8d0 fs/bcachefs/move.c:164 move_buckets_wait+0x2ba/0x1290 fs/bcachefs/movinggc.c:120 bch2_copygc_thread+0x83f/0xc20 fs/bcachefs/movinggc.c:392 kthread+0x2f2/0x390 kernel/kthread.c:389 ret_from_fork+0x4d/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 Showing all locks held in the system: 1 lock held by khungtaskd/30: #0: ffffffff8e937da0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:337 [inline] #0: ffffffff8e937da0 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline] #0: ffffffff8e937da0 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x55/0x2a0 kernel/locking/lockdep.c:6720 2 locks held by kworker/u8:5/1253: 2 locks held by kworker/u8:6/1321: #0: ffff88801ac81148 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3204 [inline] #0: ffff88801ac81148 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_scheduled_works+0x93b/0x1850 kernel/workqueue.c:3310 #1: ffffc90003be7d00 (connector_reaper_work){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3205 [inline] #1: ffffc90003be7d00 (connector_reaper_work){+.+.}-{0:0}, at: process_scheduled_works+0x976/0x1850 kernel/workqueue.c:3310 2 locks held by kworker/u8:7/3006: #0: ffff88801eaf2948 ((wq_completion)writeback){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3204 [inline] #0: ffff88801eaf2948 ((wq_completion)writeback){+.+.}-{0:0}, at: process_scheduled_works+0x93b/0x1850 kernel/workqueue.c:3310 #1: ffffc9000b78fd00 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3205 [inline] #1: ffffc9000b78fd00 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_scheduled_works+0x976/0x1850 kernel/workqueue.c:3310 2 locks held by getty/5594: #0: ffff888030cdb0a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243 #1: ffffc90002f062f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6a6/0x1e00 drivers/tty/n_tty.c:2211 1 lock held by syz-executor/5840: #0: ffff88801195a0e0 (&type->s_umount_key#94){+.+.}-{3:3}, at: __super_lock fs/super.c:56 [inline] #0: ffff88801195a0e0 (&type->s_umount_key#94){+.+.}-{3:3}, at: __super_lock_excl fs/super.c:71 [inline] #0: ffff88801195a0e0 (&type->s_umount_key#94){+.+.}-{3:3}, at: deactivate_super+0xb5/0xf0 fs/super.c:505 2 locks held by kworker/u8:17/8302: #0: ffff88801ac81148 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3204 [inline] #0: ffff88801ac81148 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_scheduled_works+0x93b/0x1850 kernel/workqueue.c:3310 #1: ffffc90003a27d00 ((reaper_work).work){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3205 [inline] #1: ffffc90003a27d00 ((reaper_work).work){+.+.}-{0:0}, at: process_scheduled_works+0x976/0x1850 kernel/workqueue.c:3310 1 lock held by syz-executor/9195: #0: ffff88802fb800e0 (&type->s_umount_key#97){+.+.}-{3:3}, at: __super_lock fs/super.c:56 [inline] #0: ffff88802fb800e0 (&type->s_umount_key#97){+.+.}-{3:3}, at: __super_lock_excl fs/super.c:71 [inline] #0: ffff88802fb800e0 (&type->s_umount_key#97){+.+.}-{3:3}, at: deactivate_super+0xb5/0xf0 fs/super.c:505 1 lock held by syz-executor/9197: #0: ffffffff8e93d338 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:329 [inline] #0: ffffffff8e93d338 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x451/0x830 kernel/rcu/tree_exp.h:976 5 locks held by syz-executor/9215: #0: ffff888033718420 (sb_writers#10){.+.+}-{0:0}, at: file_start_write include/linux/fs.h:2931 [inline] #0: ffff888033718420 (sb_writers#10){.+.+}-{0:0}, at: vfs_write+0x225/0xd30 fs/read_write.c:679 #1: ffff88805fc12088 (&of->mutex){+.+.}-{3:3}, at: kernfs_fop_write_iter+0x1ea/0x500 fs/kernfs/file.c:325 #2: ffffffff8e96c528 (cgroup_mutex){+.+.}-{3:3}, at: cgroup_lock include/linux/cgroup.h:368 [inline] #2: ffffffff8e96c528 (cgroup_mutex){+.+.}-{3:3}, at: cgroup_kn_lock_live+0xe6/0x290 kernel/cgroup/cgroup.c:1662 #3: ffffffff8e7d1d90 (cpu_hotplug_lock){++++}-{0:0}, at: cgroup_attach_lock kernel/cgroup/cgroup.c:2435 [inline] #3: ffffffff8e7d1d90 (cpu_hotplug_lock){++++}-{0:0}, at: cgroup_procs_write_start+0x1a0/0x660 kernel/cgroup/cgroup.c:2939 #4: ffffffff8e96c710 (cgroup_threadgroup_rwsem){++++}-{0:0}, at: cgroup_attach_lock kernel/cgroup/cgroup.c:2437 [inline] #4: ffffffff8e96c710 (cgroup_threadgroup_rwsem){++++}-{0:0}, at: cgroup_procs_write_start+0x1b5/0x660 kernel/cgroup/cgroup.c:2939 ============================================= NMI backtrace for cpu 0 CPU: 0 UID: 0 PID: 30 Comm: khungtaskd Not tainted 6.12.0-rc7-syzkaller-00012-g3022e9d00ebe #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/30/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+0xff4/0x1040 kernel/hung_task.c:379 kthread+0x2f2/0x390 kernel/kthread.c:389 ret_from_fork+0x4d/0x80 arch/x86/kernel/process.c:147 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: 6384 Comm: kworker/u8:10 Not tainted 6.12.0-rc7-syzkaller-00012-g3022e9d00ebe #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/30/2024 Workqueue: bat_events batadv_dat_purge RIP: 0010:check_wait_context kernel/locking/lockdep.c:4873 [inline] RIP: 0010:__lock_acquire+0xace/0x2050 kernel/locking/lockdep.c:5152 Code: c1 0f 8c 52 fe ff ff 48 c7 c7 40 3c 1d 90 e8 a9 4b 8e 00 48 ba 00 00 00 00 00 fc ff df e9 37 fe ff ff 8b 44 24 08 38 44 24 54 <4c> 8b 64 24 30 4c 8b 6c 24 48 4c 8b 7c 24 10 76 37 e8 bc 91 49 03 RSP: 0018:ffffc900049c78f0 EFLAGS: 00000093 RAX: 0000000000000e04 RBX: ffffffff93cab600 RCX: ffffffff81705680 RDX: dffffc0000000000 RSI: 0000000000000008 RDI: ffffffff942cd900 RBP: 0000000000000000 R08: ffffffff942cd907 R09: 1ffffffff2859b20 R10: dffffc0000000000 R11: fffffbfff2859b21 R12: 0000000000000002 R13: ffff88802b3b4750 R14: 0000000000000002 R15: ffff88802b3b4750 FS: 0000000000000000(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f677cd09178 CR3: 000000000e734000 CR4: 0000000000350ef0 Call Trace: lock_acquire+0x1ed/0x550 kernel/locking/lockdep.c:5825 __raw_spin_lock_bh include/linux/spinlock_api_smp.h:126 [inline] _raw_spin_lock_bh+0x35/0x50 kernel/locking/spinlock.c:178 spin_lock_bh include/linux/spinlock.h:356 [inline] __batadv_dat_purge net/batman-adv/distributed-arp-table.c:174 [inline] batadv_dat_purge+0xeb/0x3c0 net/batman-adv/distributed-arp-table.c:205 process_one_work kernel/workqueue.c:3229 [inline] process_scheduled_works+0xa65/0x1850 kernel/workqueue.c:3310 worker_thread+0x870/0xd30 kernel/workqueue.c:3391 kthread+0x2f2/0x390 kernel/kthread.c:389 ret_from_fork+0x4d/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244