INFO: task syz.0.97:6036 blocked for more than 143 seconds. Not tainted 6.12.0-rc4-syzkaller-00047-gc2ee9f594da8 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz.0.97 state:D stack:27424 pid:6036 tgid:6031 ppid:5482 flags:0x00000004 Call Trace: context_switch kernel/sched/core.c:5328 [inline] __schedule+0x185a/0x4b70 kernel/sched/core.c:6690 __schedule_loop kernel/sched/core.c:6767 [inline] schedule+0x14b/0x320 kernel/sched/core.c:6782 d_wait_lookup fs/dcache.c:2465 [inline] d_alloc_parallel+0xc16/0x1600 fs/dcache.c:2547 __lookup_slow+0x117/0x3f0 fs/namei.c:1717 lookup_slow+0x53/0x70 fs/namei.c:1749 walk_component fs/namei.c:2053 [inline] link_path_walk+0x99b/0xea0 fs/namei.c:2418 path_lookupat+0xa9/0x450 fs/namei.c:2579 filename_lookup+0x256/0x610 fs/namei.c:2609 user_path_at+0x3a/0x60 fs/namei.c:3016 __do_sys_chroot fs/open.c:609 [inline] __se_sys_chroot+0xbc/0x2b0 fs/open.c:603 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:0x7fa546b7dff9 RSP: 002b:00007fa5465ff038 EFLAGS: 00000246 ORIG_RAX: 00000000000000a1 RAX: ffffffffffffffda RBX: 00007fa546d36058 RCX: 00007fa546b7dff9 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000300 RBP: 00007fa546bf0296 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000001 R14: 00007fa546d36058 R15: 00007fffc6b7fd08 INFO: task syz.0.97:6037 blocked for more than 143 seconds. Not tainted 6.12.0-rc4-syzkaller-00047-gc2ee9f594da8 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz.0.97 state:D stack:27424 pid:6037 tgid:6031 ppid:5482 flags:0x00000004 Call Trace: context_switch kernel/sched/core.c:5328 [inline] __schedule+0x185a/0x4b70 kernel/sched/core.c:6690 __schedule_loop kernel/sched/core.c:6767 [inline] schedule+0x14b/0x320 kernel/sched/core.c:6782 d_wait_lookup fs/dcache.c:2465 [inline] d_alloc_parallel+0xc16/0x1600 fs/dcache.c:2547 __lookup_slow+0x117/0x3f0 fs/namei.c:1717 lookup_slow+0x53/0x70 fs/namei.c:1749 walk_component+0x2e1/0x410 fs/namei.c:2053 lookup_last fs/namei.c:2556 [inline] path_lookupat+0x16f/0x450 fs/namei.c:2580 filename_lookup+0x256/0x610 fs/namei.c:2609 user_path_at+0x3a/0x60 fs/namei.c:3016 do_mount fs/namespace.c:3844 [inline] __do_sys_mount fs/namespace.c:4057 [inline] __se_sys_mount+0x297/0x3c0 fs/namespace.c:4034 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:0x7fa546b7dff9 RSP: 002b:00007fa5465de038 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007fa546d36130 RCX: 00007fa546b7dff9 RDX: 0000000020000000 RSI: 0000000020000140 RDI: 0000000000000000 RBP: 00007fa546bf0296 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000001 R14: 00007fa546d36130 R15: 00007fffc6b7fd08 INFO: task syz.0.97:6038 blocked for more than 144 seconds. Not tainted 6.12.0-rc4-syzkaller-00047-gc2ee9f594da8 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz.0.97 state:D stack:27408 pid:6038 tgid:6031 ppid:5482 flags:0x00000004 Call Trace: context_switch kernel/sched/core.c:5328 [inline] __schedule+0x185a/0x4b70 kernel/sched/core.c:6690 __schedule_loop kernel/sched/core.c:6767 [inline] schedule+0x14b/0x320 kernel/sched/core.c:6782 d_wait_lookup fs/dcache.c:2465 [inline] d_alloc_parallel+0xc16/0x1600 fs/dcache.c:2547 __lookup_slow+0x117/0x3f0 fs/namei.c:1717 lookup_slow+0x53/0x70 fs/namei.c:1749 walk_component+0x2e1/0x410 fs/namei.c:2053 lookup_last fs/namei.c:2556 [inline] path_lookupat+0x16f/0x450 fs/namei.c:2580 filename_lookup+0x256/0x610 fs/namei.c:2609 user_path_at+0x3a/0x60 fs/namei.c:3016 __do_sys_pivot_root fs/namespace.c:4349 [inline] __se_sys_pivot_root+0x180/0x1650 fs/namespace.c:4338 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:0x7fa546b7dff9 RSP: 002b:00007fa5465bd038 EFLAGS: 00000246 ORIG_RAX: 000000000000009b RAX: ffffffffffffffda RBX: 00007fa546d36208 RCX: 00007fa546b7dff9 RDX: 0000000000000000 RSI: 00000000200000c0 RDI: 00000000200001c0 RBP: 00007fa546bf0296 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000001 R14: 00007fa546d36208 R15: 00007fffc6b7fd08 Showing all locks held in the system: 1 lock held by khungtaskd/30: #0: ffffffff8e937e20 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:337 [inline] #0: ffffffff8e937e20 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline] #0: ffffffff8e937e20 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x55/0x2a0 kernel/locking/lockdep.c:6720 3 locks held by kworker/u8:5/148: #0: ffff88801ac89148 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3204 [inline] #0: ffff88801ac89148 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_scheduled_works+0x93b/0x1850 kernel/workqueue.c:3310 #1: ffffc90002e0fd00 ((linkwatch_work).work){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3205 [inline] #1: ffffc90002e0fd00 ((linkwatch_work).work){+.+.}-{0:0}, at: process_scheduled_works+0x976/0x1850 kernel/workqueue.c:3310 #2: ffffffff8fcc0948 (rtnl_mutex){+.+.}-{3:3}, at: linkwatch_event+0xe/0x60 net/core/link_watch.c:276 3 locks held by kworker/u8:6/1062: 2 locks held by dhcpcd/4887: #0: ffffffff8fca5468 (vlan_ioctl_mutex){+.+.}-{3:3}, at: sock_ioctl+0x661/0x8e0 net/socket.c:1308 #1: ffffffff8fcc0948 (rtnl_mutex){+.+.}-{3:3}, at: vlan_ioctl_handler+0x112/0x9d0 net/8021q/vlan.c:553 2 locks held by getty/4980: #0: ffff8880328420a0 (&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/5210: 4 locks held by kworker/0:4/5269: #0: ffff88807e616148 ((wq_completion)bcachefs_write_ref){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3204 [inline] #0: ffff88807e616148 ((wq_completion)bcachefs_write_ref){+.+.}-{0:0}, at: process_scheduled_works+0x93b/0x1850 kernel/workqueue.c:3310 #1: ffffc90003fc7d00 ((work_completion)(&c->snapshot_delete_work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3205 [inline] #1: ffffc90003fc7d00 ((work_completion)(&c->snapshot_delete_work)){+.+.}-{0:0}, at: process_scheduled_works+0x976/0x1850 kernel/workqueue.c:3310 #2: ffff888066b84398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_lock_acquire include/linux/srcu.h:151 [inline] #2: ffff888066b84398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_read_lock include/linux/srcu.h:250 [inline] #2: ffff888066b84398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: bch2_trans_srcu_lock+0x97/0x1a0 fs/bcachefs/btree_iter.c:3040 #3: ffff888066ba66d0 (&c->gc_lock){++++}-{3:3}, at: bch2_btree_update_start+0x682/0x14e0 fs/bcachefs/btree_update_interior.c:1202 3 locks held by kworker/0:9/5332: #0: ffff88801ac80948 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3204 [inline] #0: ffff88801ac80948 ((wq_completion)events){+.+.}-{0:0}, at: process_scheduled_works+0x93b/0x1850 kernel/workqueue.c:3310 #1: ffffc9000436fd00 (deferred_process_work){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3205 [inline] #1: ffffc9000436fd00 (deferred_process_work){+.+.}-{0:0}, at: process_scheduled_works+0x976/0x1850 kernel/workqueue.c:3310 #2: ffffffff8fcc0948 (rtnl_mutex){+.+.}-{3:3}, at: switchdev_deferred_process_work+0xe/0x20 net/switchdev/switchdev.c:104 1 lock held by syz.0.97/6035: 1 lock held by syz.0.97/6036: #0: ffff888055a58180 (&type->i_mutex_dir_key#19){.+.+}-{3:3}, at: inode_lock_shared include/linux/fs.h:825 [inline] #0: ffff888055a58180 (&type->i_mutex_dir_key#19){.+.+}-{3:3}, at: lookup_slow+0x45/0x70 fs/namei.c:1748 1 lock held by syz.0.97/6037: #0: ffff888055a58180 (&type->i_mutex_dir_key#19){.+.+}-{3:3}, at: inode_lock_shared include/linux/fs.h:825 [inline] #0: ffff888055a58180 (&type->i_mutex_dir_key#19){.+.+}-{3:3}, at: lookup_slow+0x45/0x70 fs/namei.c:1748 1 lock held by syz.0.97/6038: #0: ffff888055a58180 (&type->i_mutex_dir_key#19){.+.+}-{3:3}, at: inode_lock_shared include/linux/fs.h:825 [inline] #0: ffff888055a58180 (&type->i_mutex_dir_key#19){.+.+}-{3:3}, at: lookup_slow+0x45/0x70 fs/namei.c:1748 1 lock held by syz.0.97/6039: #0: ffff888055a58180 (&type->i_mutex_dir_key#19/1){+.+.}-{3:3}, at: inode_lock_nested include/linux/fs.h:850 [inline] #0: ffff888055a58180 (&type->i_mutex_dir_key#19/1){+.+.}-{3:3}, at: filename_create+0x260/0x540 fs/namei.c:4026 1 lock held by syz.0.97/6040: #0: ffff888055a58180 (&type->i_mutex_dir_key#19){.+.+}-{3:3}, at: inode_lock_shared include/linux/fs.h:825 [inline] #0: ffff888055a58180 (&type->i_mutex_dir_key#19){.+.+}-{3:3}, at: lookup_slow+0x45/0x70 fs/namei.c:1748 1 lock held by syz.0.97/6041: #0: ffff888055a58180 (&type->i_mutex_dir_key#19){.+.+}-{3:3}, at: inode_lock_shared include/linux/fs.h:825 [inline] #0: ffff888055a58180 (&type->i_mutex_dir_key#19){.+.+}-{3:3}, at: lookup_slow+0x45/0x70 fs/namei.c:1748 5 locks held by kworker/u8:10/6818: #0: ffff88801baeb148 ((wq_completion)netns){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3204 [inline] #0: ffff88801baeb148 ((wq_completion)netns){+.+.}-{0:0}, at: process_scheduled_works+0x93b/0x1850 kernel/workqueue.c:3310 #1: ffffc9000451fd00 (net_cleanup_work){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3205 [inline] #1: ffffc9000451fd00 (net_cleanup_work){+.+.}-{0:0}, at: process_scheduled_works+0x976/0x1850 kernel/workqueue.c:3310 #2: ffffffff8fcb3e50 (pernet_ops_rwsem){++++}-{3:3}, at: cleanup_net+0x16a/0xcc0 net/core/net_namespace.c:580 #3: ffffffff8fcc0948 (rtnl_mutex){+.+.}-{3:3}, at: cleanup_net+0x6af/0xcc0 net/core/net_namespace.c:616 #4: ffffffff8e93d3b8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:329 [inline] #4: ffffffff8e93d3b8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x451/0x830 kernel/rcu/tree_exp.h:976 5 locks held by syz.3.212/6998: #0: ffff88804029e420 (sb_writers#32){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 fs/namespace.c:515 #1: ffff888078e11048 (&sb->s_type->i_mutex_key#35){++++}-{3:3}, at: inode_lock include/linux/fs.h:815 [inline] #1: ffff888078e11048 (&sb->s_type->i_mutex_key#35){++++}-{3:3}, at: do_truncate+0x20c/0x310 fs/open.c:63 #2: ffff888066b80a38 (&c->snapshot_create_lock){.+.+}-{3:3}, at: bch2_truncate+0x166/0x2d0 fs/bcachefs/io_misc.c:292 #3: ffff888066b84398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_lock_acquire include/linux/srcu.h:151 [inline] #3: ffff888066b84398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_read_lock include/linux/srcu.h:250 [inline] #3: ffff888066b84398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: __bch2_trans_get+0x7de/0xd20 fs/bcachefs/btree_iter.c:3215 #4: ffff888066ba66d0 (&c->gc_lock){++++}-{3:3}, at: bch2_btree_update_start+0x682/0x14e0 fs/bcachefs/btree_update_interior.c:1202 4 locks held by bch-reclaim/loo/7034: #0: ffff888066bcb0a8 (&j->reclaim_lock){+.+.}-{3:3}, at: bch2_journal_reclaim_thread+0x167/0x560 fs/bcachefs/journal_reclaim.c:739 #1: ffff888066b84398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_lock_acquire include/linux/srcu.h:151 [inline] #1: ffff888066b84398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_read_lock include/linux/srcu.h:250 [inline] #1: ffff888066b84398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: __bch2_trans_get+0x7de/0xd20 fs/bcachefs/btree_iter.c:3215 #2: ffff888066b84740 (&wb->flushing.lock){+.+.}-{3:3}, at: btree_write_buffer_flush_seq+0x1a39/0x1bc0 fs/bcachefs/btree_write_buffer.c:509 #3: ffff888066ba66d0 (&c->gc_lock){++++}-{3:3}, at: bch2_btree_update_start+0x682/0x14e0 fs/bcachefs/btree_update_interior.c:1202 1 lock held by syz-executor/7448: #0: ffffffff8fcc0948 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock net/core/rtnetlink.c:79 [inline] #0: ffffffff8fcc0948 (rtnl_mutex){+.+.}-{3:3}, at: rtnetlink_rcv_msg+0x6e6/0xcf0 net/core/rtnetlink.c:6672 2 locks held by syz.0.280/7483: ============================================= NMI backtrace for cpu 1 CPU: 1 UID: 0 PID: 30 Comm: khungtaskd Not tainted 6.12.0-rc4-syzkaller-00047-gc2ee9f594da8 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/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: 7496 Comm: syz.3.282 Not tainted 6.12.0-rc4-syzkaller-00047-gc2ee9f594da8 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 RIP: 0010:mas_safe_pivot lib/maple_tree.c:702 [inline] RIP: 0010:mas_rev_awalk lib/maple_tree.c:4810 [inline] RIP: 0010:mas_empty_area_rev+0x13ee/0x1d50 lib/maple_tree.c:5168 Code: 49 bf 00 00 00 00 00 fc ff df e9 4c fd ff ff 44 89 e1 80 e1 07 38 c1 0f 8c 5b f2 ff ff 4c 89 e7 e8 a7 6f 49 f6 e9 4e f2 ff ff <89> d9 80 e1 07 38 c1 0f 8c b1 f3 ff ff 48 89 df e8 8d 6f 49 f6 e9 RSP: 0018:ffffc90008eef7d0 EFLAGS: 00000202 RAX: 0000000000000004 RBX: ffffffff8d3487c3 RCX: 0000000000040000 RDX: ffffc90012949000 RSI: 0000000000000167 RDI: 0000000000000168 RBP: 0000000000000003 R08: ffffffff8bb1fca9 R09: ffffffff8bb1faa2 R10: 0000000000000004 R11: ffff88802cd75a00 R12: 00007f0ce6c6e000 R13: ffffc90008eef9d0 R14: 0000000000000004 R15: dffffc0000000000 FS: 00007f0ce6cfd6c0(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000110c2dba93 CR3: 0000000053ad6000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: vma_iter_area_highest mm/vma.h:423 [inline] unmapped_area_topdown mm/mmap.c:680 [inline] vm_unmapped_area+0x451/0xdb0 mm/mmap.c:731 arch_get_unmapped_area_topdown+0x8fb/0xae0 arch/x86/kernel/sys_x86_64.c:219 __thp_get_unmapped_area mm/huge_memory.c:1092 [inline] thp_get_unmapped_area_vmflags+0x1bf/0x380 mm/huge_memory.c:1125 __get_unmapped_area+0x1a7/0x350 mm/mmap.c:905 do_mmap+0x453/0x1000 mm/mmap.c:353 vm_mmap_pgoff+0x1dd/0x3d0 mm/util.c:588 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:0x7f0ce5f7e033 Code: f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 41 89 ca 41 f7 c1 ff 0f 00 00 75 14 b8 09 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 25 c3 0f 1f 40 00 48 c7 c0 a8 ff ff ff 64 c7 RSP: 002b:00007f0ce6cfce18 EFLAGS: 00000246 ORIG_RAX: 0000000000000009 RAX: ffffffffffffffda RBX: 00000000000055ac RCX: 00007f0ce5f7e033 RDX: 0000000000000003 RSI: 0000000008400000 RDI: 0000000000000000 RBP: 000000002000ac42 R08: 00000000ffffffff R09: 0000000000000000 R10: 0000000000000022 R11: 0000000000000246 R12: 0000000000000004 R13: 00007f0ce6cfcef0 R14: 00007f0ce6cfceb0 R15: 00000000200003c0