INFO: task syz.9.283:8834 blocked for more than 144 seconds. Not tainted 6.12.0-syzkaller-07834-g06afb0f36106 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz.9.283 state:D stack:27392 pid:8834 tgid:8820 ppid:6766 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_nested+0x1e0/0x220 kernel/locking/rwsem.c:1694 inode_lock_nested include/linux/fs.h:853 [inline] filename_create+0x260/0x540 fs/namei.c:4080 do_symlinkat+0xf9/0x3a0 fs/namei.c:4688 __do_sys_symlinkat fs/namei.c:4711 [inline] __se_sys_symlinkat fs/namei.c:4708 [inline] __x64_sys_symlinkat+0x95/0xb0 fs/namei.c:4708 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:0x7f510b77e819 RSP: 002b:00007f510c528038 EFLAGS: 00000246 ORIG_RAX: 000000000000010a RAX: ffffffffffffffda RBX: 00007f510b936320 RCX: 00007f510b77e819 RDX: 0000000020000000 RSI: ffffffffffffff9c RDI: 0000000020000140 RBP: 00007f510b7f175e R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000001 R14: 00007f510b936320 R15: 00007ffc9a7e4978 INFO: task syz.9.283:8835 blocked for more than 145 seconds. Not tainted 6.12.0-syzkaller-07834-g06afb0f36106 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz.9.283 state:D stack:27312 pid:8835 tgid:8820 ppid:6766 flags:0x00004004 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_nested+0x1e0/0x220 kernel/locking/rwsem.c:1694 inode_lock_nested include/linux/fs.h:853 [inline] filename_create+0x260/0x540 fs/namei.c:4080 do_mkdirat+0xbd/0x3a0 fs/namei.c:4326 __do_sys_mkdirat fs/namei.c:4349 [inline] __se_sys_mkdirat fs/namei.c:4347 [inline] __x64_sys_mkdirat+0x87/0xa0 fs/namei.c:4347 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:0x7f510b77e819 RSP: 002b:00007f510c507038 EFLAGS: 00000246 ORIG_RAX: 0000000000000102 RAX: ffffffffffffffda RBX: 00007f510b936400 RCX: 00007f510b77e819 RDX: 0000000000000000 RSI: 0000000020000d40 RDI: ffffffffffffff9c RBP: 00007f510b7f175e R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f510b936400 R15: 00007ffc9a7e4978 Showing all locks held in the system: 1 lock held by pool_workqueue_/3: 1 lock held by khungtaskd/30: #0: ffffffff8e93c860 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:337 [inline] #0: ffffffff8e93c860 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline] #0: ffffffff8e93c860 (rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x55/0x2a0 kernel/locking/lockdep.c:6744 3 locks held by kworker/u8:2/35: 4 locks held by kworker/u8:4/80: #0: ffff8880b873e698 (&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: ffff8880b872a718 (&base->lock){-.-.}-{2:2}, at: lock_timer_base+0x112/0x240 kernel/time/timer.c:1050 #3: ffffffff9a61b6b0 (&obj_hash[i].lock){-.-.}-{2:2}, at: debug_object_activate+0x17f/0x580 lib/debugobjects.c:818 2 locks held by kworker/u8:8/3440: #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: ffffc9000cb5fd00 (connector_reaper_work){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3205 [inline] #1: ffffc9000cb5fd00 (connector_reaper_work){+.+.}-{0:0}, at: process_scheduled_works+0x976/0x1850 kernel/workqueue.c:3310 2 locks held by getty/5599: #0: ffff888031ea90a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243 #1: ffffc90002fc62f0 (&ldata->atomic_read_lock){+.+.}-{4:4}, at: n_tty_read+0x6a6/0x1e00 drivers/tty/n_tty.c:2211 2 locks held by syz.9.283/8831: 1 lock held by syz.9.283/8834: #0: ffff88807c444180 (&type->i_mutex_dir_key#26/1){+.+.}-{4:4}, at: inode_lock_nested include/linux/fs.h:853 [inline] #0: ffff88807c444180 (&type->i_mutex_dir_key#26/1){+.+.}-{4:4}, at: filename_create+0x260/0x540 fs/namei.c:4080 1 lock held by syz.9.283/8835: #0: ffff88807c444180 (&type->i_mutex_dir_key#26/1){+.+.}-{4:4}, at: inode_lock_nested include/linux/fs.h:853 [inline] #0: ffff88807c444180 (&type->i_mutex_dir_key#26/1){+.+.}-{4:4}, at: filename_create+0x260/0x540 fs/namei.c:4080 1 lock held by syz.7.393/10429: 2 locks held by syz.8.394/10434: #0: ffffffff8f04b388 (bio_slab_lock){+.+.}-{4:4}, at: bio_put_slab block/bio.c:140 [inline] #0: ffffffff8f04b388 (bio_slab_lock){+.+.}-{4:4}, at: bioset_exit+0x42f/0x650 block/bio.c:1755 #1: ffffffff8e941cc0 (rcu_state.barrier_mutex){+.+.}-{4:4}, at: rcu_barrier+0x4c/0x530 kernel/rcu/tree.c:4565 ============================================= NMI backtrace for cpu 1 CPU: 1 UID: 0 PID: 30 Comm: khungtaskd Not tainted 6.12.0-syzkaller-07834-g06afb0f36106 #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: 8831 Comm: syz.9.283 Not tainted 6.12.0-syzkaller-07834-g06afb0f36106 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 RIP: 0010:hlock_class kernel/locking/lockdep.c:228 [inline] RIP: 0010:check_wait_context kernel/locking/lockdep.c:4875 [inline] RIP: 0010:__lock_acquire+0x8aa/0x2100 kernel/locking/lockdep.c:5176 Code: 8b 5d 00 81 e3 ff 1f 00 00 48 89 d8 48 c1 e8 06 48 8d 3c c5 80 08 2b 94 be 08 00 00 00 e8 ee 49 8c 00 48 0f a3 1d 46 6e ba 12 <73> 1a 48 69 c3 c8 00 00 00 48 8d 98 40 87 c2 93 48 ba 00 00 00 00 RSP: 0018:ffffc9000c06ec70 EFLAGS: 00000057 RAX: 0000000000000001 RBX: 0000000000000cc1 RCX: ffffffff81709a32 RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffffffff942b0a18 RBP: 00000000ffffffff R08: ffffffff942b0a1f R09: 1ffffffff2856143 R10: dffffc0000000000 R11: fffffbfff2856144 R12: 0000000000000000 R13: ffff88802788a900 R14: 0000000000000000 R15: ffff88802788a900 FS: 00007f510c5496c0(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f21a7c0d440 CR3: 000000006fd0c000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: 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] is_bpf_text_address+0x46/0x2a0 kernel/bpf/core.c:768 kernel_text_address+0xa7/0xe0 kernel/extable.c:125 __kernel_text_address+0xd/0x40 kernel/extable.c:79 unwind_get_return_address+0x4d/0x90 arch/x86/kernel/unwind_orc.c:369 arch_stack_walk+0xfd/0x150 arch/x86/kernel/stacktrace.c:26 stack_trace_save+0x118/0x1d0 kernel/stacktrace.c:122 kasan_save_stack mm/kasan/common.c:47 [inline] kasan_save_track+0x3f/0x80 mm/kasan/common.c:68 poison_kmalloc_redzone mm/kasan/common.c:377 [inline] __kasan_kmalloc+0x98/0xb0 mm/kasan/common.c:394 kasan_kmalloc include/linux/kasan.h:257 [inline] __do_kmalloc_node mm/slub.c:4264 [inline] __kmalloc_node_noprof+0x22a/0x440 mm/slub.c:4270 kmalloc_array_node_noprof include/linux/slab.h:996 [inline] alloc_slab_obj_exts+0x3a/0xa0 mm/slub.c:1968 __memcg_slab_post_alloc_hook+0x319/0x7e0 mm/memcontrol.c:2986 memcg_slab_post_alloc_hook mm/slub.c:2156 [inline] slab_post_alloc_hook mm/slub.c:4095 [inline] slab_alloc_node mm/slub.c:4134 [inline] kmem_cache_alloc_noprof+0x1de/0x2a0 mm/slub.c:4141 alloc_buffer_head+0x2a/0x290 fs/buffer.c:3020 folio_alloc_buffers+0x2bc/0x660 fs/buffer.c:927 create_empty_buffers+0x3a/0x740 fs/buffer.c:1667 block_read_full_folio+0x25c/0xcd0 fs/buffer.c:2382 filemap_read_folio+0x14b/0x630 mm/filemap.c:2367 do_read_cache_folio+0x3f5/0x850 mm/filemap.c:3827 read_mapping_folio include/linux/pagemap.h:1011 [inline] dir_get_folio fs/sysv/dir.c:64 [inline] sysv_find_entry+0x16a/0x4b0 fs/sysv/dir.c:154 sysv_inode_by_name+0x98/0x2a0 fs/sysv/dir.c:370 sysv_lookup+0x6b/0xe0 fs/sysv/namei.c:38 __lookup_slow+0x28c/0x3f0 fs/namei.c:1791 lookup_slow+0x53/0x70 fs/namei.c:1808 walk_component+0x2e1/0x410 fs/namei.c:2112 lookup_last fs/namei.c:2610 [inline] path_lookupat+0x16f/0x450 fs/namei.c:2634 filename_lookup+0x2a3/0x670 fs/namei.c:2663 do_linkat+0x13f/0x6f0 fs/namei.c:4843 __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:0x7f510b77e819 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f510c549038 EFLAGS: 00000246 ORIG_RAX: 0000000000000109 RAX: ffffffffffffffda RBX: 00007f510b936240 RCX: 00007f510b77e819 RDX: 0000000000000007 RSI: 0000000020000180 RDI: 0000000000000007 RBP: 00007f510b7f175e R08: 0000000000000000 R09: 0000000000000000 R10: 0000000020000640 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f510b936240 R15: 00007ffc9a7e4978