INFO: task syz-executor.1:11045 blocked for more than 143 seconds. Not tainted 6.7.0-rc6-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.1 state:D stack:29536 pid:11045 tgid:11027 ppid:5106 flags:0x00000006 Call Trace: context_switch kernel/sched/core.c:5376 [inline] __schedule+0xedb/0x5af0 kernel/sched/core.c:6688 __schedule_loop kernel/sched/core.c:6763 [inline] schedule+0xe9/0x270 kernel/sched/core.c:6778 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6835 rwsem_down_write_slowpath kernel/locking/rwsem.c:1178 [inline] __down_write_common+0x948/0x1400 kernel/locking/rwsem.c:1306 inode_lock_nested include/linux/fs.h:837 [inline] lock_rename fs/namei.c:3046 [inline] lock_rename fs/namei.c:3043 [inline] do_renameat2+0xb25/0xdc0 fs/namei.c:4935 __do_sys_rename fs/namei.c:5042 [inline] __se_sys_rename fs/namei.c:5040 [inline] __x64_sys_rename+0x81/0xa0 fs/namei.c:5040 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0x40/0x110 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x63/0x6b RIP: 0033:0x7fdaf407cba9 RSP: 002b:00007fdaf4d040c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000052 RAX: ffffffffffffffda RBX: 00007fdaf419c120 RCX: 00007fdaf407cba9 RDX: 0000000000000000 RSI: 0000000020000180 RDI: 0000000020000140 RBP: 00007fdaf40c847a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000006e R14: 00007fdaf419c120 R15: 00007fffd50dd568 Showing all locks held in the system: 1 lock held by khungtaskd/29: #0: ffffffff8cfab760 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:301 [inline] #0: ffffffff8cfab760 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:747 [inline] #0: ffffffff8cfab760 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x75/0x340 kernel/locking/lockdep.c:6614 2 locks held by getty/4825: #0: ffff88802604b0a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x24/0x80 drivers/tty/tty_ldisc.c:243 #1: ffffc900031332f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0xfc6/0x1490 drivers/tty/n_tty.c:2201 2 locks held by syz-executor.1/11028: 2 locks held by syz-executor.1/11045: #0: ffff88804004c418 (sb_writers#13){.+.+}-{0:0}, at: do_renameat2+0x3d5/0xdc0 fs/namei.c:4930 #1: ffff88803ca61180 (&type->i_mutex_dir_key#8/1){+.+.}-{3:3}, at: inode_lock_nested include/linux/fs.h:837 [inline] #1: ffff88803ca61180 (&type->i_mutex_dir_key#8/1){+.+.}-{3:3}, at: lock_rename fs/namei.c:3046 [inline] #1: ffff88803ca61180 (&type->i_mutex_dir_key#8/1){+.+.}-{3:3}, at: lock_rename fs/namei.c:3043 [inline] #1: ffff88803ca61180 (&type->i_mutex_dir_key#8/1){+.+.}-{3:3}, at: do_renameat2+0xb25/0xdc0 fs/namei.c:4935 2 locks held by syz-executor.3/11087: 2 locks held by syz-executor.3/11090: #0: ffff88801824c418 (sb_writers#13){.+.+}-{0:0}, at: do_renameat2+0x3d5/0xdc0 fs/namei.c:4930 #1: ffff888074e5dc20 (&type->i_mutex_dir_key#8/1){+.+.}-{3:3}, at: inode_lock_nested include/linux/fs.h:837 [inline] #1: ffff888074e5dc20 (&type->i_mutex_dir_key#8/1){+.+.}-{3:3}, at: lock_rename fs/namei.c:3046 [inline] #1: ffff888074e5dc20 (&type->i_mutex_dir_key#8/1){+.+.}-{3:3}, at: lock_rename fs/namei.c:3043 [inline] #1: ffff888074e5dc20 (&type->i_mutex_dir_key#8/1){+.+.}-{3:3}, at: do_renameat2+0xb25/0xdc0 fs/namei.c:4935 ============================================= NMI backtrace for cpu 0 CPU: 0 PID: 29 Comm: khungtaskd Not tainted 6.7.0-rc6-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xd9/0x1b0 lib/dump_stack.c:106 nmi_cpu_backtrace+0x277/0x390 lib/nmi_backtrace.c:113 nmi_trigger_cpumask_backtrace+0x299/0x300 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:160 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:222 [inline] watchdog+0xf87/0x1210 kernel/hung_task.c:379 kthread+0x2c6/0x3a0 kernel/kthread.c:388 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:242 Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 PID: 4523 Comm: udevd Not tainted 6.7.0-rc6-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 RIP: 0010:on_stack arch/x86/include/asm/stacktrace.h:58 [inline] RIP: 0010:__unwind_start+0x532/0x880 arch/x86/kernel/unwind_orc.c:758 Code: fc ff df 49 89 c6 49 89 cd 4d 01 e6 4d 01 e5 e9 b6 00 00 00 41 80 7d 00 00 48 8b 43 08 0f 85 cd 01 00 00 48 39 c5 4c 8b 7b 10 <48> 89 04 24 72 5f e8 c3 4f 4d 00 4c 39 fd 73 55 e8 b9 4f 4d 00 48 RSP: 0018:ffffc900031df948 EFLAGS: 00000202 RAX: ffffc900031d8000 RBX: ffffc900031df9a8 RCX: ffffffff813a1f99 RDX: ffff888079338000 RSI: ffffffff813a1fa7 RDI: 0000000000000005 RBP: ffffc900031dfa38 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000002 R12: dffffc0000000000 R13: fffff5200063bf37 R14: fffff5200063bf36 R15: ffffc900031e0000 FS: 00007fe99cd87c80(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000c01f2e1000 CR3: 0000000029370000 CR4: 0000000000350ef0 Call Trace: unwind_start arch/x86/include/asm/unwind.h:64 [inline] arch_stack_walk+0xaf/0x170 arch/x86/kernel/stacktrace.c:24 stack_trace_save+0x96/0xd0 kernel/stacktrace.c:122 kasan_save_stack+0x33/0x50 mm/kasan/common.c:45 __kasan_record_aux_stack+0xbc/0xd0 mm/kasan/generic.c:492 __call_rcu_common.constprop.0+0x9a/0x7a0 kernel/rcu/tree.c:2681 dentry_free+0xc2/0x160 fs/dcache.c:377 __dentry_kill+0x4c1/0x640 fs/dcache.c:621 dentry_kill fs/dcache.c:745 [inline] dput+0x6de/0xd90 fs/dcache.c:913 do_unlinkat+0x34f/0x740 fs/namei.c:4385 __do_sys_unlink fs/namei.c:4430 [inline] __se_sys_unlink fs/namei.c:4428 [inline] __x64_sys_unlink+0xc8/0x110 fs/namei.c:4428 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0x40/0x110 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x63/0x6b RIP: 0033:0x7fe99c917da7 Code: f0 ff ff 73 01 c3 48 8b 0d 7e 90 0d 00 f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 b8 57 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 51 90 0d 00 f7 d8 64 89 01 48 RSP: 002b:00007ffd686f8f38 EFLAGS: 00000202 ORIG_RAX: 0000000000000057 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007fe99c917da7 RDX: 0000000000000000 RSI: 00000000207c0a40 RDI: 00005587bf4520d8 RBP: 00005587bf4a8440 R08: 00000000207ce157 R09: 0000000000000001 R10: 00007ffd6876f080 R11: 0000000000000202 R12: 0000000000000bb8 R13: 00005587bf4a6340 R14: 0000000000000000 R15: 0000000000000000