INFO: task syz-executor:5834 blocked for more than 143 seconds. Not tainted 6.12.0-syzkaller-01782-gbf9aa14fc523 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor state:D stack:20064 pid:5834 tgid:5834 ppid:1 flags:0x00004006 Call Trace: context_switch kernel/sched/core.c:5369 [inline] __schedule+0x17fb/0x4be0 kernel/sched/core.c:6756 __schedule_loop kernel/sched/core.c:6833 [inline] schedule+0x14b/0x320 kernel/sched/core.c:6848 __closure_sync+0x259/0x2f0 lib/closure.c:146 bch2_wait_on_allocator fs/bcachefs/alloc_foreground.h:239 [inline] bch2_btree_update_start+0x11a2/0x14e0 fs/bcachefs/btree_update_interior.c:1269 bch2_btree_split_leaf+0x123/0x840 fs/bcachefs/btree_update_interior.c:1856 bch2_trans_commit_error+0x212/0x1390 fs/bcachefs/btree_trans_commit.c:942 __bch2_trans_commit+0x7ead/0x93c0 fs/bcachefs/btree_trans_commit.c:1140 bch2_trans_commit fs/bcachefs/btree_update.h:184 [inline] bch2_inode_delete_keys+0xae6/0x1440 fs/bcachefs/inode.c:986 bch2_inode_rm+0x17d/0xf60 fs/bcachefs/inode.c:1015 bch2_evict_inode+0x20a/0x3f0 fs/bcachefs/fs.c:1836 evict+0x4e8/0x9a0 fs/inode.c:796 do_unlinkat+0x512/0x830 fs/namei.c:4594 __do_sys_unlink fs/namei.c:4635 [inline] __se_sys_unlink fs/namei.c:4633 [inline] __x64_sys_unlink+0x47/0x50 fs/namei.c:4633 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:0x7f399997dd07 RSP: 002b:00007fff2050d108 EFLAGS: 00000206 ORIG_RAX: 0000000000000057 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f399997dd07 RDX: 00007fff2050d130 RSI: 00007fff2050d1c0 RDI: 00007fff2050d1c0 RBP: 00007fff2050d1c0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000100 R11: 0000000000000206 R12: 00007fff2050e2b0 R13: 00007f39999f15fc R14: 000000000001466e R15: 00007fff2050f370 INFO: task bch-reclaim/loo:6083 blocked for more than 143 seconds. Not tainted 6.12.0-syzkaller-01782-gbf9aa14fc523 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:bch-reclaim/loo state:D stack:21584 pid:6083 tgid:6083 ppid:2 flags:0x00004000 Call Trace: context_switch kernel/sched/core.c:5369 [inline] __schedule+0x17fb/0x4be0 kernel/sched/core.c:6756 __schedule_loop kernel/sched/core.c:6833 [inline] schedule+0x14b/0x320 kernel/sched/core.c:6848 __closure_sync+0x259/0x2f0 lib/closure.c:146 bch2_wait_on_allocator fs/bcachefs/alloc_foreground.h:239 [inline] bch2_btree_update_start+0x11a2/0x14e0 fs/bcachefs/btree_update_interior.c:1269 bch2_btree_split_leaf+0x123/0x840 fs/bcachefs/btree_update_interior.c:1856 bch2_trans_commit_error+0x212/0x1390 fs/bcachefs/btree_trans_commit.c:942 __bch2_trans_commit+0x7ead/0x93c0 fs/bcachefs/btree_trans_commit.c:1140 bch2_trans_commit fs/bcachefs/btree_update.h:184 [inline] bch2_btree_write_buffer_flush_locked+0x4f4e/0x5a20 fs/bcachefs/btree_write_buffer.c:433 btree_write_buffer_flush_seq+0x1b23/0x1cc0 fs/bcachefs/btree_write_buffer.c:517 bch2_btree_write_buffer_journal_flush+0xc7/0x150 fs/bcachefs/btree_write_buffer.c:533 journal_flush_pins+0x5f7/0xb20 fs/bcachefs/journal_reclaim.c:565 __bch2_journal_reclaim+0x789/0xdc0 fs/bcachefs/journal_reclaim.c:698 bch2_journal_reclaim_thread+0x174/0x560 fs/bcachefs/journal_reclaim.c:740 kthread+0x2f0/0x390 kernel/kthread.c:389 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 INFO: task bch-copygc/loop:6084 blocked for more than 143 seconds. Not tainted 6.12.0-syzkaller-01782-gbf9aa14fc523 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:bch-copygc/loop state:D stack:17976 pid:6084 tgid:6084 ppid:2 flags:0x00004000 Call Trace: context_switch kernel/sched/core.c:5369 [inline] __schedule+0x17fb/0x4be0 kernel/sched/core.c:6756 __schedule_loop kernel/sched/core.c:6833 [inline] schedule+0x14b/0x320 kernel/sched/core.c:6848 __closure_sync+0x259/0x2f0 lib/closure.c:146 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 bkey_nocow_lock fs/bcachefs/data_update.c:71 [inline] bch2_data_update_init+0x125d/0x68d0 fs/bcachefs/data_update.c:632 bch2_move_extent+0xfaa/0x2ac0 fs/bcachefs/move.c:313 bch2_evacuate_bucket+0x23d1/0x3620 fs/bcachefs/move.c:753 bch2_copygc+0x42c9/0x4ca0 fs/bcachefs/movinggc.c:240 bch2_copygc_thread+0x737/0xc20 fs/bcachefs/movinggc.c:381 kthread+0x2f0/0x390 kernel/kthread.c:389 ret_from_fork+0x4b/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: ffffffff8e93c7e0 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:337 [inline] #0: ffffffff8e93c7e0 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline] #0: ffffffff8e93c7e0 (rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x55/0x2a0 kernel/locking/lockdep.c:6744 2 locks held by getty/5591: #0: ffff888034d4a0a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243 #1: ffffc9000322b2f0 (&ldata->atomic_read_lock){+.+.}-{4:4}, at: n_tty_read+0x6a6/0x1e00 drivers/tty/n_tty.c:2211 3 locks held by syz-executor/5834: #0: ffff8881447ee420 (sb_writers#24){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 fs/namespace.c:515 #1: ffff88805a004398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_lock_acquire include/linux/srcu.h:158 [inline] #1: ffff88805a004398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_read_lock include/linux/srcu.h:249 [inline] #1: ffff88805a004398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: bch2_trans_srcu_lock+0x9a/0x1a0 fs/bcachefs/btree_iter.c:3053 #2: ffff88805a0266d0 (&c->gc_lock){.+.+}-{4:4}, at: bch2_btree_update_start+0x682/0x14e0 fs/bcachefs/btree_update_interior.c:1197 4 locks held by bch-reclaim/loo/6083: #0: ffff88805a04b0a8 (&j->reclaim_lock){+.+.}-{4:4}, at: bch2_journal_reclaim_thread+0x167/0x560 fs/bcachefs/journal_reclaim.c:739 #1: ffff88805a004398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_lock_acquire include/linux/srcu.h:158 [inline] #1: ffff88805a004398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_read_lock include/linux/srcu.h:249 [inline] #1: ffff88805a004398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: __bch2_trans_get+0x7e1/0xd30 fs/bcachefs/btree_iter.c:3228 #2: ffff88805a004740 (&wb->flushing.lock){+.+.}-{4:4}, at: btree_write_buffer_flush_seq+0x1b19/0x1cc0 fs/bcachefs/btree_write_buffer.c:516 #3: ffff88805a0266d0 (&c->gc_lock){.+.+}-{4:4}, at: bch2_btree_update_start+0x682/0x14e0 fs/bcachefs/btree_update_interior.c:1197 ============================================= NMI backtrace for cpu 1 CPU: 1 UID: 0 PID: 30 Comm: khungtaskd Not tainted 6.12.0-syzkaller-01782-gbf9aa14fc523 #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+0x2f0/0x390 kernel/kthread.c:389 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 UID: 0 PID: 1123 Comm: kworker/u8:5 Not tainted 6.12.0-syzkaller-01782-gbf9aa14fc523 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/30/2024 Workqueue: bat_events batadv_nc_worker RIP: 0010:lockdep_hardirqs_off+0x3e/0x110 kernel/locking/lockdep.c:4498 Code: 48 89 44 24 08 83 3d 50 5f 5b 04 00 0f 84 8e 00 00 00 49 89 fe 65 8b 05 28 83 42 74 a9 00 00 f0 00 74 66 83 3d 52 45 7a 0e 00 <75> 15 48 c7 04 24 00 00 00 00 9c 8f 04 24 f7 04 24 00 02 00 00 75 RSP: 0018:ffffc900046bf9c8 EFLAGS: 00000046 RAX: 0000000000000000 RBX: ffffffff81578e56 RCX: 0000000000000000 RDX: 0000000000000000 RSI: ffffffff8c0acfc0 RDI: ffffffff8c604ee0 RBP: ffffc900046bfab0 R08: ffff888032424ec3 R09: 1ffff110064849d8 R10: dffffc0000000000 R11: ffffed10064849d9 R12: dffffc0000000000 R13: 1ffff920008d7f48 R14: ffffffff81578e56 R15: 0000000000000201 FS: 0000000000000000(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00005619253d5fa0 CR3: 000000000e738000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: trace_hardirqs_off+0x12/0x40 kernel/trace/trace_preemptirq.c:87 __local_bh_enable_ip+0x106/0x200 kernel/softirq.c:364 spin_unlock_bh include/linux/spinlock.h:396 [inline] batadv_nc_purge_paths+0x312/0x3b0 net/batman-adv/network-coding.c:471 batadv_nc_worker+0x328/0x610 net/batman-adv/network-coding.c:720 process_one_work kernel/workqueue.c:3229 [inline] process_scheduled_works+0xa63/0x1850 kernel/workqueue.c:3310 worker_thread+0x870/0xd30 kernel/workqueue.c:3391 kthread+0x2f0/0x390 kernel/kthread.c:389 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244