INFO: task syz.2.32:6152 blocked for more than 143 seconds. Not tainted 6.13.0-rc1-syzkaller-00337-g7503345ac5f5 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz.2.32 state:D stack:23504 pid:6152 tgid:6122 ppid:5824 flags:0x00000004 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 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] vfs_link+0x3b2/0x6e0 fs/namei.c:4784 do_linkat+0x555/0x6f0 fs/namei.c:4863 __do_sys_linkat fs/namei.c:4891 [inline] __se_sys_linkat fs/namei.c:4888 [inline] __x64_sys_linkat+0xd9/0xf0 fs/namei.c:4888 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:0x7f36da97fed9 RSP: 002b:00007f36db726058 EFLAGS: 00000246 ORIG_RAX: 0000000000000109 RAX: ffffffffffffffda RBX: 00007f36dab46080 RCX: 00007f36da97fed9 RDX: 0000000000000007 RSI: 0000000020000180 RDI: 0000000000000007 RBP: 00007f36da9f3cc8 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000020000640 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f36dab46080 R15: 00007ffe8994bb88 Showing all locks held in the system: 1 lock held by khungtaskd/30: #0: ffffffff8e937aa0 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:337 [inline] #0: ffffffff8e937aa0 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline] #0: ffffffff8e937aa0 (rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x55/0x2a0 kernel/locking/lockdep.c:6744 2 locks held by kworker/u8:4/72: 1 lock held by klogd/5182: #0: ffff8880b873e758 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2a/0x140 kernel/sched/core.c:598 2 locks held by getty/5572: #0: ffff8880355fa0a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243 #1: ffffc9000330b2f0 (&ldata->atomic_read_lock){+.+.}-{4:4}, at: n_tty_read+0x6a6/0x1e00 drivers/tty/n_tty.c:2211 3 locks held by kworker/1:5/5869: #0: ffff8880b873e758 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2a/0x140 kernel/sched/core.c:598 #1: ffff8880b8728948 (&per_cpu_ptr(group->pcpu, cpu)->seq){-.-.}-{0:0}, at: psi_task_switch+0x41d/0x7a0 kernel/sched/psi.c:987 #2: ffffffff9a60a740 (&obj_hash[i].lock){-.-.}-{2:2}, at: __debug_check_no_obj_freed lib/debugobjects.c:1088 [inline] #2: ffffffff9a60a740 (&obj_hash[i].lock){-.-.}-{2:2}, at: debug_check_no_obj_freed+0x234/0x580 lib/debugobjects.c:1129 3 locks held by syz.2.32/6152: #0: ffff888073eb2420 (sb_writers#23){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 fs/namespace.c:515 #1: ffff888059118148 (&sb->s_type->i_mutex_key#29/1){+.+.}-{4:4}, at: inode_lock_nested include/linux/fs.h:853 [inline] #1: ffff888059118148 (&sb->s_type->i_mutex_key#29/1){+.+.}-{4:4}, at: filename_create+0x260/0x540 fs/namei.c:4080 #2: ffff8880591188c8 (&sb->s_type->i_mutex_key#29){+.+.}-{4:4}, at: inode_lock include/linux/fs.h:818 [inline] #2: ffff8880591188c8 (&sb->s_type->i_mutex_key#29){+.+.}-{4:4}, at: vfs_link+0x3b2/0x6e0 fs/namei.c:4784 5 locks held by syz.2.32/6155: #0: ffff888073eb2420 (sb_writers#23){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 fs/namespace.c:515 #1: ffff8880591188c8 (&sb->s_type->i_mutex_key#29){+.+.}-{4:4}, at: inode_lock include/linux/fs.h:818 [inline] #1: ffff8880591188c8 (&sb->s_type->i_mutex_key#29){+.+.}-{4:4}, at: do_truncate+0x20c/0x310 fs/open.c:63 #2: ffff888056c00a38 (&c->snapshot_create_lock){.+.+}-{4:4}, at: bch2_truncate+0x166/0x2d0 fs/bcachefs/io_misc.c:292 #3: ffff888056c04398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_lock_acquire include/linux/srcu.h:158 [inline] #3: ffff888056c04398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_read_lock include/linux/srcu.h:249 [inline] #3: ffff888056c04398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: __bch2_trans_get+0x7e1/0xd30 fs/bcachefs/btree_iter.c:3228 #4: ffff888056c266d0 (&c->gc_lock){.+.+}-{4:4}, at: bch2_btree_update_start+0x682/0x14e0 fs/bcachefs/btree_update_interior.c:1197 1 lock held by syz.9.304/9084: #0: ffffffff8e93cfb8 (rcu_state.exp_mutex){+.+.}-{4:4}, at: exp_funnel_lock kernel/rcu/tree_exp.h:329 [inline] #0: ffffffff8e93cfb8 (rcu_state.exp_mutex){+.+.}-{4:4}, at: synchronize_rcu_expedited+0x451/0x830 kernel/rcu/tree_exp.h:976 2 locks held by syz.7.378/9091: #0: ffff8880751f60e0 (&type->s_umount_key#48/1){+.+.}-{4:4}, at: alloc_super+0x221/0x9d0 fs/super.c:344 #1: ffffffff8e9f8ae8 (lock#3){+.+.}-{4:4}, at: __lru_add_drain_all+0x66/0x560 mm/swap.c:798 1 lock held by syz.6.380/9108: 3 locks held by syz.2.382/9117: #0: ffff8881477e0160 (&mousedev->mutex/1){+.+.}-{4:4}, at: mixdev_close_devices+0x32/0x240 drivers/input/mousedev.c:486 #1: ffff88802b499160 (&mousedev->mutex#2){+.+.}-{4:4}, at: mousedev_close_device drivers/input/mousedev.c:441 [inline] #1: ffff88802b499160 (&mousedev->mutex#2){+.+.}-{4:4}, at: mixdev_close_devices+0xcd/0x240 drivers/input/mousedev.c:494 #2: ffff88802a2712c0 (&dev->mutex#2){+.+.}-{4:4}, at: input_close_device+0x4b/0x240 drivers/input/input.c:670 2 locks held by syz.1.384/9144: ============================================= NMI backtrace for cpu 1 CPU: 1 UID: 0 PID: 30 Comm: khungtaskd Not tainted 6.13.0-rc1-syzkaller-00337-g7503345ac5f5 #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: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 Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 UID: 0 PID: 9149 Comm: dhcpcd-run-hook Not tainted 6.13.0-rc1-syzkaller-00337-g7503345ac5f5 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 RIP: 0010:memory_is_nonzero mm/kasan/generic.c:103 [inline] RIP: 0010:memory_is_poisoned_n mm/kasan/generic.c:129 [inline] RIP: 0010:memory_is_poisoned mm/kasan/generic.c:161 [inline] RIP: 0010:check_region_inline mm/kasan/generic.c:180 [inline] RIP: 0010:kasan_check_range+0x64/0x290 mm/kasan/generic.c:189 Code: 48 c1 eb 03 49 ba 00 00 00 00 00 fc ff df 4e 8d 1c 13 49 ff c8 4d 89 c1 49 c1 e9 03 49 be 01 00 00 00 00 fc ff df 4f 8d 3c 31 <4c> 89 fd 4c 29 dd 48 83 fd 10 7f 29 48 85 ed 0f 84 3e 01 00 00 4c RSP: 0018:ffffc90003746ea0 EFLAGS: 00000803 RAX: 0000000000000001 RBX: 1ffffffff2850b10 RCX: ffffffff817ab65c RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffffffff94285880 RBP: 000000000001ffff R08: ffffffff94285887 R09: 1ffffffff2850b10 R10: dffffc0000000000 R11: fffffbfff2850b10 R12: ffff88802b9e0ac4 R13: 000000000000000f R14: dffffc0000000001 R15: fffffbfff2850b11 FS: 00007feb16ca1380(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055f2867c3b40 CR3: 000000002453e000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: instrument_atomic_read include/linux/instrumented.h:68 [inline] _test_bit include/asm-generic/bitops/instrumented-non-atomic.h:141 [inline] hlock_class kernel/locking/lockdep.c:228 [inline] check_wait_context kernel/locking/lockdep.c:4850 [inline] __lock_acquire+0x4ac/0x2100 kernel/locking/lockdep.c:5176 lock_acquire+0x1ed/0x550 kernel/locking/lockdep.c:5849 rcu_lock_acquire include/linux/rcupdate.h:337 [inline] rcu_read_lock include/linux/rcupdate.h:849 [inline] page_ext_get+0x3d/0x2a0 mm/page_ext.c:525 __set_page_owner+0x9e/0x800 mm/page_owner.c:322 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f3/0x230 mm/page_alloc.c:1556 prep_new_page mm/page_alloc.c:1564 [inline] get_page_from_freelist+0x3651/0x37a0 mm/page_alloc.c:3474 __alloc_pages_noprof+0x292/0x710 mm/page_alloc.c:4751 alloc_pages_mpol_noprof+0x3e8/0x680 mm/mempolicy.c:2265 alloc_slab_page+0x6a/0x140 mm/slub.c:2408 allocate_slab+0x5a/0x2f0 mm/slub.c:2574 new_slab mm/slub.c:2627 [inline] ___slab_alloc+0xcd1/0x14b0 mm/slub.c:3815 __slab_alloc+0x58/0xa0 mm/slub.c:3905 __slab_alloc_node mm/slub.c:3980 [inline] slab_alloc_node mm/slub.c:4141 [inline] kmem_cache_alloc_noprof+0x268/0x380 mm/slub.c:4160 vm_area_dup+0x27/0x290 kernel/fork.c:487 dup_mmap kernel/fork.c:697 [inline] dup_mm kernel/fork.c:1695 [inline] copy_mm+0xc1d/0x1f90 kernel/fork.c:1744 copy_process+0x1845/0x3d50 kernel/fork.c:2395 kernel_clone+0x223/0x870 kernel/fork.c:2807 __do_sys_clone kernel/fork.c:2950 [inline] __se_sys_clone kernel/fork.c:2934 [inline] __x64_sys_clone+0x258/0x2a0 kernel/fork.c:2934 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:0x7feb16ddba12 Code: 41 5d 41 5e 41 5f c3 64 48 8b 04 25 10 00 00 00 45 31 c0 31 d2 31 f6 bf 11 00 20 01 4c 8d 90 d0 02 00 00 b8 38 00 00 00 0f 05 <48> 3d 00 f0 ff ff 76 10 48 8b 15 e7 43 0f 00 f7 d8 64 89 02 48 83 RSP: 002b:00007ffc6fed42a8 EFLAGS: 00000246 ORIG_RAX: 0000000000000038 RAX: ffffffffffffffda RBX: 000055f2867be901 RCX: 00007feb16ddba12 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000001200011 RBP: 000055f2867bfb70 R08: 0000000000000000 R09: 3c00000000001001 R10: 00007feb16ca1650 R11: 0000000000000246 R12: 000055f2867c2338 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000