INFO: task syz-executor:7656 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:21392 pid:7656 tgid:7656 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:0x7f3ea2b7ddc7 RSP: 002b:00007fff8850bc58 EFLAGS: 00000206 ORIG_RAX: 0000000000000057 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f3ea2b7ddc7 RDX: 00007fff8850bc80 RSI: 00007fff8850bd10 RDI: 00007fff8850bd10 RBP: 00007fff8850bd10 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000100 R11: 0000000000000206 R12: 00007fff8850ce00 R13: 00007f3ea2bf15fc R14: 00000000000425ea R15: 00007fff8850dec0 INFO: task bch-reclaim/loo:9112 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:21968 pid:9112 tgid:9112 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:9119 blocked for more than 144 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:18456 pid:9119 tgid:9119 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 bch2_move_ratelimit+0x76c/0xeb0 fs/bcachefs/move.c:492 bch2_evacuate_bucket+0x26b3/0x3620 fs/bcachefs/move.c:702 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/31: #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/5597: #0: ffff8880312730a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243 #1: ffffc900032532f0 (&ldata->atomic_read_lock){+.+.}-{4:4}, at: n_tty_read+0x6a6/0x1e00 drivers/tty/n_tty.c:2211 3 locks held by syz-executor/7656: #0: ffff88823bfe0420 (sb_writers#23){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 fs/namespace.c:515 #1: ffff888079804398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_lock_acquire include/linux/srcu.h:158 [inline] #1: ffff888079804398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_read_lock include/linux/srcu.h:249 [inline] #1: ffff888079804398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: __bch2_trans_get+0x7e1/0xd30 fs/bcachefs/btree_iter.c:3228 #2: ffff8880798266d0 (&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/9112: #0: ffff88807984b0a8 (&j->reclaim_lock){+.+.}-{4:4}, at: bch2_journal_reclaim_thread+0x167/0x560 fs/bcachefs/journal_reclaim.c:739 #1: ffff888079804398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_lock_acquire include/linux/srcu.h:158 [inline] #1: ffff888079804398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_read_lock include/linux/srcu.h:249 [inline] #1: ffff888079804398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: __bch2_trans_get+0x7e1/0xd30 fs/bcachefs/btree_iter.c:3228 #2: ffff888079804740 (&wb->flushing.lock){+.+.}-{4:4}, at: btree_write_buffer_flush_seq+0x1b19/0x1cc0 fs/bcachefs/btree_write_buffer.c:516 #3: ffff8880798266d0 (&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: 31 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: 1067 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:trace_irq_disable+0x34/0x120 include/trace/events/preemptirq.h:36 Code: 67 7e 83 f8 08 73 3f 89 c3 48 89 d8 48 c1 e8 06 48 8d 3c c5 30 81 1c 90 be 08 00 00 00 e8 e4 20 5f 00 48 0f a3 1d 2c ce 7f 0e <73> 12 e8 35 21 de ff 84 c0 75 09 80 3d e3 8e 69 0e 00 74 0e 5b 41 RSP: 0018:ffffc90003e079e8 EFLAGS: 00000057 RAX: 0000000000000001 RBX: 0000000000000000 RCX: ffffffff819cb2fc RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffffffff901c8130 RBP: ffffc90003e07ab0 R08: ffffffff901c8137 R09: 1ffffffff2039026 R10: dffffc0000000000 R11: fffffbfff2039027 R12: dffffc0000000000 R13: 1ffff920007c0f48 R14: ffffc90003e07a40 R15: 0000000000000201 FS: 0000000000000000(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f7a751b4580 CR3: 000000000e738000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __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+0x365/0x610 net/batman-adv/network-coding.c:722 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