INFO: task syz.2.28:6117 blocked for more than 143 seconds. Not tainted 6.13.0-rc7-syzkaller-00043-g619f0b6fad52 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz.2.28 state:D stack:27360 pid:6117 tgid:6061 ppid:5825 flags:0x00004006 Call Trace: <TASK> 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 schedule_preempt_disabled+0x13/0x30 kernel/sched/core.c:6905 rwsem_down_write_slowpath+0xeee/0x13b0 kernel/locking/rwsem.c:1176 __down_write_common kernel/locking/rwsem.c:1304 [inline] __down_write kernel/locking/rwsem.c:1313 [inline] down_write+0x1d7/0x220 kernel/locking/rwsem.c:1578 inode_lock include/linux/fs.h:818 [inline] do_lock_mount+0x112/0x3a0 fs/namespace.c:2611 lock_mount fs/namespace.c:2653 [inline] do_new_mount_fc fs/namespace.c:3448 [inline] do_new_mount+0x43d/0xb40 fs/namespace.c:3513 do_mount fs/namespace.c:3851 [inline] __do_sys_mount fs/namespace.c:4061 [inline] __se_sys_mount+0x2d6/0x3c0 fs/namespace.c:4038 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:0x7fa617185d29 RSP: 002b:00007fa617fd0038 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007fa617376160 RCX: 00007fa617185d29 RDX: 0000000020000000 RSI: 0000000020000040 RDI: 0000000000000000 RBP: 00007fa617201b08 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fa617376160 R15: 00007ffe38edc078 </TASK> INFO: task syz.2.28:6121 blocked for more than 144 seconds. Not tainted 6.13.0-rc7-syzkaller-00043-g619f0b6fad52 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz.2.28 state:D stack:27360 pid:6121 tgid:6061 ppid:5825 flags:0x00000004 Call Trace: <TASK> 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 schedule_preempt_disabled+0x13/0x30 kernel/sched/core.c:6905 __mutex_lock_common kernel/locking/mutex.c:665 [inline] __mutex_lock+0x7e7/0xee0 kernel/locking/mutex.c:735 fdget_pos+0x254/0x320 fs/file.c:1192 class_fd_pos_constructor include/linux/file.h:85 [inline] ksys_write+0x7c/0x2b0 fs/read_write.c:722 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:0x7fa617185d29 RSP: 002b:00007fa617faf038 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fa617376240 RCX: 00007fa617185d29 RDX: 0000000000000050 RSI: 0000000020000280 RDI: 0000000000000004 RBP: 00007fa617201b08 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fa617376240 R15: 00007ffe38edc078 </TASK> Showing all locks held in the system: 1 lock held by khungtaskd/30: #0: ffffffff8e937ae0 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:337 [inline] #0: ffffffff8e937ae0 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline] #0: ffffffff8e937ae0 (rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x55/0x2a0 kernel/locking/lockdep.c:6744 5 locks held by kworker/u8:9/3556: 1 lock held by udevd/5195: 2 locks held by getty/5577: #0: ffff8880314350a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243 #1: ffffc90002fde2f0 (&ldata->atomic_read_lock){+.+.}-{4:4}, at: n_tty_read+0x6a6/0x1e00 drivers/tty/n_tty.c:2211 1 lock held by syz-executor/5831: #0: ffffffff8e93cff8 (rcu_state.exp_mutex){+.+.}-{4:4}, at: exp_funnel_lock kernel/rcu/tree_exp.h:329 [inline] #0: ffffffff8e93cff8 (rcu_state.exp_mutex){+.+.}-{4:4}, at: synchronize_rcu_expedited+0x451/0x830 kernel/rcu/tree_exp.h:976 2 locks held by syz.2.28/6062: #0: ffff88803302a638 (&f->f_pos_lock){+.+.}-{4:4}, at: fdget_pos+0x254/0x320 fs/file.c:1192 #1: ffff888034040420 (sb_writers#20){.+.+}-{0:0}, at: file_start_write include/linux/fs.h:2964 [inline] #1: ffff888034040420 (sb_writers#20){.+.+}-{0:0}, at: vfs_write+0x225/0xd30 fs/read_write.c:675 5 locks held by syz.2.28/6106: #0: ffff888034040420 (sb_writers#20){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 fs/namespace.c:516 #1: ffff8880603326c8 (&sb->s_type->i_mutex_key#28){++++}-{4:4}, at: inode_lock include/linux/fs.h:818 [inline] #1: ffff8880603326c8 (&sb->s_type->i_mutex_key#28){++++}-{4:4}, at: do_truncate+0x20c/0x310 fs/open.c:63 #2: ffff88805ff00a38 (&c->snapshot_create_lock){.+.+}-{4:4}, at: bch2_truncate+0x166/0x2d0 fs/bcachefs/io_misc.c:292 #3: ffff88805ff04398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_lock_acquire include/linux/srcu.h:158 [inline] #3: ffff88805ff04398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_read_lock include/linux/srcu.h:249 [inline] #3: ffff88805ff04398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: __bch2_trans_get+0x7e1/0xd30 fs/bcachefs/btree_iter.c:3228 #4: ffff88805ff266d0 (&c->gc_lock){.+.+}-{4:4}, at: bch2_btree_update_start+0x682/0x14e0 fs/bcachefs/btree_update_interior.c:1197 1 lock held by syz.2.28/6117: #0: ffff8880603326c8 (&sb->s_type->i_mutex_key#28){++++}-{4:4}, at: inode_lock include/linux/fs.h:818 [inline] #0: ffff8880603326c8 (&sb->s_type->i_mutex_key#28){++++}-{4:4}, at: do_lock_mount+0x112/0x3a0 fs/namespace.c:2611 1 lock held by syz.2.28/6121: #0: ffff88803302a638 (&f->f_pos_lock){+.+.}-{4:4}, at: fdget_pos+0x254/0x320 fs/file.c:1192 4 locks held by bch-reclaim/loo/6099: #0: ffff88805ff4b0a8 (&j->reclaim_lock){+.+.}-{4:4}, at: bch2_journal_reclaim_thread+0x167/0x560 fs/bcachefs/journal_reclaim.c:739 #1: ffff88805ff04398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_lock_acquire include/linux/srcu.h:158 [inline] #1: ffff88805ff04398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_read_lock include/linux/srcu.h:249 [inline] #1: ffff88805ff04398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: __bch2_trans_get+0x7e1/0xd30 fs/bcachefs/btree_iter.c:3228 #2: ffff88805ff04740 (&wb->flushing.lock){+.+.}-{4:4}, at: btree_write_buffer_flush_seq+0x1b19/0x1cc0 fs/bcachefs/btree_write_buffer.c:516 #3: ffff88805ff266d0 (&c->gc_lock){.+.+}-{4:4}, at: bch2_btree_update_start+0x682/0x14e0 fs/bcachefs/btree_update_interior.c:1197 2 locks held by syz.8.152/7279: #0: ffff8880340400e0 (&type->s_umount_key#75){++++}-{4:4}, at: __super_lock fs/super.c:58 [inline] #0: ffff8880340400e0 (&type->s_umount_key#75){++++}-{4:4}, at: super_lock+0x27c/0x400 fs/super.c:120 #1: ffff888034040948 (&s->s_sync_lock){+.+.}-{4:4}, at: wait_sb_inodes fs/fs-writeback.c:2641 [inline] #1: ffff888034040948 (&s->s_sync_lock){+.+.}-{4:4}, at: sync_inodes_sb+0x32e/0xb50 fs/fs-writeback.c:2824 2 locks held by syz.0.257/8397: #0: ffff8880340400e0 (&type->s_umount_key#75){++++}-{4:4}, at: __super_lock fs/super.c:58 [inline] #0: ffff8880340400e0 (&type->s_umount_key#75){++++}-{4:4}, at: super_lock+0x27c/0x400 fs/super.c:120 #1: ffff888034040948 (&s->s_sync_lock){+.+.}-{4:4}, at: wait_sb_inodes fs/fs-writeback.c:2641 [inline] #1: ffff888034040948 (&s->s_sync_lock){+.+.}-{4:4}, at: sync_inodes_sb+0x32e/0xb50 fs/fs-writeback.c:2824 4 locks held by syz.9.327/9156: 1 lock held by dhcpcd/9161: #0: ffff888034c0a258 (sk_lock-AF_PACKET){+.+.}-{0:0}, at: lock_sock include/net/sock.h:1623 [inline] #0: ffff888034c0a258 (sk_lock-AF_PACKET){+.+.}-{0:0}, at: packet_do_bind+0x32/0xcb0 net/packet/af_packet.c:3253 1 lock held by cmp/9172: ============================================= NMI backtrace for cpu 0 CPU: 0 UID: 0 PID: 30 Comm: khungtaskd Not tainted 6.13.0-rc7-syzkaller-00043-g619f0b6fad52 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024 Call Trace: <TASK> __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:234 [inline] watchdog+0xff6/0x1040 kernel/hung_task.c:397 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 </TASK> Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 UID: 0 PID: 9173 Comm: rm Not tainted 6.13.0-rc7-syzkaller-00043-g619f0b6fad52 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024 RIP: 0010:native_save_fl arch/x86/include/asm/irqflags.h:26 [inline] RIP: 0010:arch_local_save_flags arch/x86/include/asm/irqflags.h:87 [inline] RIP: 0010:check_preemption_disabled+0x5d/0x120 lib/smp_processor_id.c:19 Code: 28 00 00 00 48 3b 44 24 08 0f 85 ce 00 00 00 89 d8 48 83 c4 10 5b 41 5c 41 5e 41 5f c3 cc cc cc cc 48 c7 04 24 00 00 00 00 9c <8f> 04 24 f7 04 24 00 02 00 00 74 c5 49 89 f6 49 89 ff 65 4c 8b 24 RSP: 0018:ffffc9000c486a80 EFLAGS: 00000046 RAX: 0000000080000000 RBX: 0000000000000001 RCX: dffffc0000000000 RDX: 0000000000000000 RSI: ffffffff8c5ede80 RDI: ffffffff8c5ede40 RBP: ffffc9000c486bd0 R08: ffffffff90185937 R09: 1ffffffff2030b26 R10: dffffc0000000000 R11: fffffbfff2030b27 R12: 1ffff110170e7efd R13: 1ffff92001890d64 R14: 0000000000000246 R15: ffff888028707608 FS: 0000000000000000(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f338a0ab3b0 CR3: 000000004b942000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: <NMI> </NMI> <TASK> call_rcu_core kernel/rcu/tree.c:2980 [inline] __call_rcu_common kernel/rcu/tree.c:3107 [inline] call_rcu+0x69a/0xa70 kernel/rcu/tree.c:3190 mas_wr_node_store lib/maple_tree.c:3878 [inline] mas_wr_store_entry+0x158f/0x2520 lib/maple_tree.c:4098 mas_store_prealloc+0xcbb/0x1390 lib/maple_tree.c:5520 vma_complete+0x21d/0xb50 mm/vma.c:277 __split_vma+0xaa6/0xc50 mm/vma.c:480 vms_gather_munmap_vmas+0x4c1/0x1600 mm/vma.c:1288 __mmap_prepare mm/vma.c:2241 [inline] __mmap_region+0x7c4/0x2d30 mm/vma.c:2443 mmap_region+0x1d0/0x2c0 mm/mmap.c:1352 do_mmap+0x97a/0x10d0 mm/mmap.c:500 vm_mmap_pgoff+0x1dd/0x3d0 mm/util.c:575 ksys_mmap_pgoff+0x4eb/0x720 mm/mmap.c:546 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:0x7f338a324b74 Code: 63 08 44 89 e8 5b 41 5c 41 5d c3 41 89 ca 41 f7 c1 ff 0f 00 00 74 0c c7 05 f5 46 01 00 16 00 00 00 eb 17 b8 09 00 00 00 0f 05 <48> 3d 00 f0 ff ff 76 0c f7 d8 89 05 dc 46 01 00 48 83 c8 ff c3 0f RSP: 002b:00007ffc4f81de68 EFLAGS: 00000246 ORIG_RAX: 0000000000000009 RAX: ffffffffffffffda RBX: 00007ffc4f81dea8 RCX: 00007f338a324b74 RDX: 0000000000000005 RSI: 0000000000006000 RDI: 00007f338a080000 RBP: 00007ffc4f81e240 R08: 0000000000000003 R09: 0000000000003000 R10: 0000000000000812 R11: 0000000000000246 R12: 00007f338a301ac0 R13: 00007ffc4f81e2c8 R14: 0000000000002ee0 R15: 0000000000000000 </TASK>