INFO: task syz.6.225:7627 blocked for more than 143 seconds. Not tainted 6.12.0-syzkaller-01892-g8f7c8b88bda4 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz.6.225 state:D stack:19384 pid:7627 tgid:7626 ppid:6686 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_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+0x284/0x390 fs/bcachefs/fs-io-buffered.c:641 do_writepages+0x35f/0x880 mm/page-writeback.c:2683 filemap_fdatawrite_wbc mm/filemap.c:398 [inline] __filemap_fdatawrite_range mm/filemap.c:431 [inline] file_write_and_wait_range+0x2a3/0x3c0 mm/filemap.c:788 bch2_fsync+0x13a/0x360 fs/bcachefs/fs-io.c:199 generic_write_sync include/linux/fs.h:2904 [inline] bch2_write_iter+0x222f/0x2440 fs/bcachefs/fs-io-buffered.c:1061 do_iter_readv_writev+0x600/0x880 vfs_writev+0x376/0xba0 fs/read_write.c:1050 do_pwritev fs/read_write.c:1146 [inline] __do_sys_pwritev2 fs/read_write.c:1204 [inline] __se_sys_pwritev2+0x196/0x2b0 fs/read_write.c:1195 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:0x7fd0c237e819 RSP: 002b:00007fd0c309d038 EFLAGS: 00000246 ORIG_RAX: 0000000000000148 RAX: ffffffffffffffda RBX: 00007fd0c2535fa0 RCX: 00007fd0c237e819 RDX: 0000000000000001 RSI: 0000000020000100 RDI: 0000000000000006 RBP: 00007fd0c23f175e R08: 0000000000000508 R09: 0000000000000012 R10: 0000000000000002 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fd0c2535fa0 R15: 00007fff0cdf2318 INFO: task bch-reclaim/loo:7671 blocked for more than 144 seconds. Not tainted 6.12.0-syzkaller-01892-g8f7c8b88bda4 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:bch-reclaim/loo state:D stack:22608 pid:7671 tgid:7671 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:7674 blocked for more than 144 seconds. Not tainted 6.12.0-syzkaller-01892-g8f7c8b88bda4 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:bch-copygc/loop state:D stack:19472 pid:7674 tgid:7674 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 pool_workqueue_/3: #0: ffffffff8e941db8 (rcu_state.exp_mutex){+.+.}-{4:4}, at: exp_funnel_lock kernel/rcu/tree_exp.h:329 [inline] #0: ffffffff8e941db8 (rcu_state.exp_mutex){+.+.}-{4:4}, at: synchronize_rcu_expedited+0x451/0x830 kernel/rcu/tree_exp.h:976 1 lock held by khungtaskd/30: #0: ffffffff8e93c820 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:337 [inline] #0: ffffffff8e93c820 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline] #0: ffffffff8e93c820 (rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x55/0x2a0 kernel/locking/lockdep.c:6744 3 locks held by kworker/u8:8/3513: 2 locks held by getty/5591: #0: ffff88803196c0a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243 #1: ffffc90002f062f0 (&ldata->atomic_read_lock){+.+.}-{4:4}, at: n_tty_read+0x6a6/0x1e00 drivers/tty/n_tty.c:2211 1 lock held by syz-executor/5834: #0: ffff888054c3e0e0 (&type->s_umount_key#54){++++}-{4:4}, at: __super_lock fs/super.c:56 [inline] #0: ffff888054c3e0e0 (&type->s_umount_key#54){++++}-{4:4}, at: __super_lock_excl fs/super.c:71 [inline] #0: ffff888054c3e0e0 (&type->s_umount_key#54){++++}-{4:4}, at: deactivate_super+0xb5/0xf0 fs/super.c:505 1 lock held by syz.6.225/7627: #0: ffff8880561f4420 (sb_writers#22){.+.+}-{0:0}, at: file_start_write include/linux/fs.h:2964 [inline] #0: ffff8880561f4420 (sb_writers#22){.+.+}-{0:0}, at: vfs_writev+0x2d1/0xba0 fs/read_write.c:1048 4 locks held by bch-reclaim/loo/7671: #0: ffff888069e4b0a8 (&j->reclaim_lock){+.+.}-{4:4}, at: bch2_journal_reclaim_thread+0x167/0x560 fs/bcachefs/journal_reclaim.c:739 #1: ffff888069e04398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_lock_acquire include/linux/srcu.h:158 [inline] #1: ffff888069e04398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_read_lock include/linux/srcu.h:249 [inline] #1: ffff888069e04398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: __bch2_trans_get+0x7e1/0xd30 fs/bcachefs/btree_iter.c:3228 #2: ffff888069e04740 (&wb->flushing.lock){+.+.}-{4:4}, at: btree_write_buffer_flush_seq+0x1b19/0x1cc0 fs/bcachefs/btree_write_buffer.c:516 #3: ffff888069e266d0 (&c->gc_lock){++++}-{4:4}, at: bch2_btree_update_start+0x682/0x14e0 fs/bcachefs/btree_update_interior.c:1197 3 locks held by syz-executor/9448: #0: ffff88807c8700e0 (&type->s_umount_key#61){+.+.}-{4:4}, at: __super_lock fs/super.c:56 [inline] #0: ffff88807c8700e0 (&type->s_umount_key#61){+.+.}-{4:4}, at: __super_lock_excl fs/super.c:71 [inline] #0: ffff88807c8700e0 (&type->s_umount_key#61){+.+.}-{4:4}, at: deactivate_super+0xb5/0xf0 fs/super.c:505 #1: ffffffff8eeca148 (uuid_mutex){+.+.}-{4:4}, at: btrfs_close_devices+0xc0/0x5c0 fs/btrfs/volumes.c:1269 #2: ffffffff8e9fd928 (lock#3){+.+.}-{4:4}, at: __lru_add_drain_all+0x66/0x560 mm/swap.c:829 2 locks held by syz-executor/9993: #0: ffff88803516e0e0 (&type->s_umount_key#32){++++}-{4:4}, at: __super_lock fs/super.c:56 [inline] #0: ffff88803516e0e0 (&type->s_umount_key#32){++++}-{4:4}, at: __super_lock_excl fs/super.c:71 [inline] #0: ffff88803516e0e0 (&type->s_umount_key#32){++++}-{4:4}, at: deactivate_super+0xb5/0xf0 fs/super.c:505 #1: ffffffff8e9fd928 (lock#3){+.+.}-{4:4}, at: __lru_add_drain_all+0x66/0x560 mm/swap.c:829 1 lock held by syz-executor/10394: 2 locks held by syz.3.694/11356: 1 lock held by dhcpcd/11373: #0: ffff888079202608 (&sb->s_type->i_mutex_key#9){+.+.}-{4:4}, at: inode_lock include/linux/fs.h:818 [inline] #0: ffff888079202608 (&sb->s_type->i_mutex_key#9){+.+.}-{4:4}, at: __sock_release net/socket.c:639 [inline] #0: ffff888079202608 (&sb->s_type->i_mutex_key#9){+.+.}-{4:4}, at: sock_close+0x90/0x240 net/socket.c:1408 1 lock held by dhcpcd/11374: #0: ffff888079205608 (&sb->s_type->i_mutex_key#9){+.+.}-{4:4}, at: inode_lock include/linux/fs.h:818 [inline] #0: ffff888079205608 (&sb->s_type->i_mutex_key#9){+.+.}-{4:4}, at: __sock_release net/socket.c:639 [inline] #0: ffff888079205608 (&sb->s_type->i_mutex_key#9){+.+.}-{4:4}, at: sock_close+0x90/0x240 net/socket.c:1408 2 locks held by dhcpcd/11375: 1 lock held by dhcpcd/11376: #0: ffff888079207a08 (&sb->s_type->i_mutex_key#9){+.+.}-{4:4}, at: inode_lock include/linux/fs.h:818 [inline] #0: ffff888079207a08 (&sb->s_type->i_mutex_key#9){+.+.}-{4:4}, at: __sock_release net/socket.c:639 [inline] #0: ffff888079207a08 (&sb->s_type->i_mutex_key#9){+.+.}-{4:4}, at: sock_close+0x90/0x240 net/socket.c:1408 2 locks held by dhcpcd/11377: #0: ffff888079207408 (&sb->s_type->i_mutex_key#9){+.+.}-{4:4}, at: inode_lock include/linux/fs.h:818 [inline] #0: ffff888079207408 (&sb->s_type->i_mutex_key#9){+.+.}-{4:4}, at: __sock_release net/socket.c:639 [inline] #0: ffff888079207408 (&sb->s_type->i_mutex_key#9){+.+.}-{4:4}, at: sock_close+0x90/0x240 net/socket.c:1408 #1: ffffffff8e941db8 (rcu_state.exp_mutex){+.+.}-{4:4}, at: exp_funnel_lock kernel/rcu/tree_exp.h:329 [inline] #1: ffffffff8e941db8 (rcu_state.exp_mutex){+.+.}-{4:4}, at: synchronize_rcu_expedited+0x451/0x830 kernel/rcu/tree_exp.h:976 2 locks held by dhcpcd/11378: #0: ffff888079205008 (&sb->s_type->i_mutex_key#9){+.+.}-{4:4}, at: inode_lock include/linux/fs.h:818 [inline] #0: ffff888079205008 (&sb->s_type->i_mutex_key#9){+.+.}-{4:4}, at: __sock_release net/socket.c:639 [inline] #0: ffff888079205008 (&sb->s_type->i_mutex_key#9){+.+.}-{4:4}, at: sock_close+0x90/0x240 net/socket.c:1408 #1: ffffffff8e941db8 (rcu_state.exp_mutex){+.+.}-{4:4}, at: exp_funnel_lock kernel/rcu/tree_exp.h:329 [inline] #1: ffffffff8e941db8 (rcu_state.exp_mutex){+.+.}-{4:4}, at: synchronize_rcu_expedited+0x451/0x830 kernel/rcu/tree_exp.h:976 1 lock held by dhcpcd/11379: #0: ffff888079202008 (&sb->s_type->i_mutex_key#9){+.+.}-{4:4}, at: inode_lock include/linux/fs.h:818 [inline] #0: ffff888079202008 (&sb->s_type->i_mutex_key#9){+.+.}-{4:4}, at: __sock_release net/socket.c:639 [inline] #0: ffff888079202008 (&sb->s_type->i_mutex_key#9){+.+.}-{4:4}, at: sock_close+0x90/0x240 net/socket.c:1408 4 locks held by dhcpcd-run-hook/11381: ============================================= NMI backtrace for cpu 0 CPU: 0 UID: 0 PID: 30 Comm: khungtaskd Not tainted 6.12.0-syzkaller-01892-g8f7c8b88bda4 #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 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 UID: 0 PID: 5834 Comm: syz-executor Not tainted 6.12.0-syzkaller-01892-g8f7c8b88bda4 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/30/2024 RIP: 0010:do_raw_spin_unlock+0xd/0x8b0 kernel/locking/spinlock_debug.c:139 Code: e9 1d ff ff ff e8 63 61 4f 0a 0f 1f 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 66 0f 1f 00 55 41 57 41 56 41 55 41 54 <53> 48 83 ec 28 49 89 ff 48 bb 00 00 00 00 00 fc ff df 48 8d 57 04 RSP: 0018:ffffc90004007610 EFLAGS: 00000046 RAX: 48e31b61124dd800 RBX: ffffffff9a68d400 RCX: ffffc90004007503 RDX: 0000000000000001 RSI: ffffffff8c0ae180 RDI: ffffffff9a68d400 RBP: ffffc900040076d0 R08: ffffffff901c8177 R09: 1ffffffff203902e R10: dffffc0000000000 R11: fffffbfff203902f R12: dffffc0000000000 R13: 1ffff92000800ec8 R14: ffffc90004007660 R15: 0000000000000246 FS: 000055558bfe1500(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f41507cc8e5 CR3: 000000007722c000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:150 [inline] _raw_spin_unlock_irqrestore+0x81/0x140 kernel/locking/spinlock.c:194 __debug_check_no_obj_freed lib/debugobjects.c:1108 [inline] debug_check_no_obj_freed+0x561/0x580 lib/debugobjects.c:1129 slab_free_hook mm/slub.c:2273 [inline] slab_free mm/slub.c:4579 [inline] kmem_cache_free+0x11f/0x420 mm/slub.c:4681 f2fs_destroy_node_manager+0x329/0xd20 fs/f2fs/node.c:3373 f2fs_put_super+0xad9/0x1150 fs/f2fs/super.c:1665 generic_shutdown_super+0x139/0x2d0 fs/super.c:642 kill_block_super+0x44/0x90 fs/super.c:1710 kill_f2fs_super+0x344/0x690 fs/f2fs/super.c:4927 deactivate_locked_super+0xc4/0x130 fs/super.c:473 cleanup_mnt+0x41f/0x4b0 fs/namespace.c:1373 task_work_run+0x24f/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:329 [inline] __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline] syscall_exit_to_user_mode+0x13f/0x340 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:0x7febffd7fb47 Code: a8 ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 0f 1f 44 00 00 31 f6 e9 09 00 00 00 66 0f 1f 84 00 00 00 00 00 b8 a6 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 01 c3 48 c7 c2 a8 ff ff ff f7 d8 64 89 02 b8 RSP: 002b:00007ffc7f96c148 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00007febffd7fb47 RDX: 0000000000000000 RSI: 0000000000000009 RDI: 00007ffc7f96c200 RBP: 00007ffc7f96c200 R08: 0000000000000000 R09: 0000000000000000 R10: 00000000ffffffff R11: 0000000000000246 R12: 00007ffc7f96d280 R13: 00007febffdf15fc R14: 0000000000064639 R15: 00007ffc7f96d2c0