INFO: task syz-executor.0:5108 blocked for more than 143 seconds. Not tainted 5.15.158-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.0 state:D stack:28032 pid: 5108 ppid: 3529 flags:0x00004006 Call Trace: context_switch kernel/sched/core.c:5030 [inline] __schedule+0x12c4/0x45b0 kernel/sched/core.c:6376 schedule+0x11b/0x1f0 kernel/sched/core.c:6459 d_wait_lookup+0x1f0/0x2c0 fs/dcache.c:2563 d_alloc_parallel+0xa5e/0x1390 fs/dcache.c:2645 __lookup_slow+0x111/0x3d0 fs/namei.c:1648 lookup_slow+0x53/0x70 fs/namei.c:1680 walk_component+0x48c/0x610 fs/namei.c:1976 lookup_last fs/namei.c:2431 [inline] path_lookupat+0x16f/0x450 fs/namei.c:2455 filename_lookup+0x230/0x5c0 fs/namei.c:2484 user_path_at_empty+0x40/0x180 fs/namei.c:2883 user_path_at include/linux/namei.h:57 [inline] do_fchmodat fs/open.c:619 [inline] __do_sys_fchmodat fs/open.c:634 [inline] __se_sys_fchmodat fs/open.c:631 [inline] __x64_sys_fchmodat+0xfd/0x1a0 fs/open.c:631 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7fed2034bca9 RSP: 002b:00007fed1e89d0c8 EFLAGS: 00000246 ORIG_RAX: 000000000000010c RAX: ffffffffffffffda RBX: 00007fed2047a050 RCX: 00007fed2034bca9 RDX: 0000000000000000 RSI: 0000000020000440 RDI: ffffffffffffff9c RBP: 00007fed2039747e R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000006e R14: 00007fed2047a050 R15: 00007fff59e9ce08 Showing all locks held in the system: 1 lock held by khungtaskd/27: #0: ffffffff8c91fae0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x0/0x30 1 lock held by udevd/2963: 3 locks held by kworker/0:3/3248: 2 locks held by getty/3258: #0: ffff88814b20f098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x21/0x70 drivers/tty/tty_ldisc.c:252 #1: ffffc90002bab2e8 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6af/0x1db0 drivers/tty/n_tty.c:2158 2 locks held by syz-fuzzer/3503: 1 lock held by syz-executor.4/4309: #0: ffff8880239e0308 (&xt[i].mutex){+.+.}-{3:3}, at: xt_find_target+0x6d/0x200 net/netfilter/x_tables.c:254 1 lock held by syz-executor.0/5096: 1 lock held by syz-executor.0/5108: #0: ffff88805f044188 (&type->i_mutex_dir_key#19){.+.+}-{3:3}, at: inode_lock_shared include/linux/fs.h:799 [inline] #0: ffff88805f044188 (&type->i_mutex_dir_key#19){.+.+}-{3:3}, at: lookup_slow+0x45/0x70 fs/namei.c:1679 1 lock held by syz-executor.0/5266: #0: ffff8880239e0308 (&xt[i].mutex){+.+.}-{3:3}, at: xt_find_table_lock+0x48/0x3a0 net/netfilter/x_tables.c:1242 2 locks held by syz-executor.1/5313: 1 lock held by syz-executor.1/5319: #0: ffff888025acc188 (&type->i_mutex_dir_key#19){.+.+}-{3:3}, at: inode_lock_shared include/linux/fs.h:799 [inline] #0: ffff888025acc188 (&type->i_mutex_dir_key#19){.+.+}-{3:3}, at: lookup_slow+0x45/0x70 fs/namei.c:1679 1 lock held by syz-executor.2/5415: 2 locks held by kworker/u4:18/6254: 7 locks held by syz-executor.3/6594: ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 27 Comm: khungtaskd Not tainted 5.15.158-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e3/0x2d0 lib/dump_stack.c:106 nmi_cpu_backtrace+0x46a/0x4a0 lib/nmi_backtrace.c:111 nmi_trigger_cpumask_backtrace+0x181/0x2a0 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:148 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:210 [inline] watchdog+0xe72/0xeb0 kernel/hung_task.c:295 kthread+0x3f6/0x4f0 kernel/kthread.c:334 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:300 Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 PID: 3248 Comm: kworker/0:3 Not tainted 5.15.158-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 Workqueue: events_power_efficient wg_ratelimiter_gc_entries RIP: 0010:__lock_is_held kernel/locking/lockdep.c:5363 [inline] RIP: 0010:lock_is_held_type+0x7d/0x180 kernel/locking/lockdep.c:5666 Code: 41 89 f6 49 89 ff 48 c7 04 24 00 00 00 00 9c 8f 04 24 4c 8b 24 24 fa 48 c7 c7 80 37 8b 8a e8 0a 12 00 00 65 ff 05 83 a8 e4 75 <41> 83 bd e8 0a 00 00 00 7e 47 4c 89 ed 48 81 c5 f0 0a 00 00 31 db RSP: 0018:ffffc90002d67a98 EFLAGS: 00000002 RAX: 0000000000000000 RBX: 0000000000000a33 RCX: ffff8880135ad940 RDX: 0000000000000000 RSI: ffffffff8a8b3780 RDI: ffffffff8ad8f600 RBP: 00000000ffffffff R08: dffffc0000000000 R09: fffffbfff1a4aa95 R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000246 R13: ffff8880135ad940 R14: 00000000ffffffff R15: ffffffff8c91fb40 FS: 0000000000000000(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ff04e1a05e3 CR3: 000000007eddb000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: lock_is_held include/linux/lockdep.h:287 [inline] ___might_sleep+0xa2/0x6a0 kernel/sched/core.c:9592 wg_ratelimiter_gc_entries+0x3c9/0x470 drivers/net/wireguard/ratelimiter.c:78 process_one_work+0x8a1/0x10c0 kernel/workqueue.c:2310 worker_thread+0xaca/0x1280 kernel/workqueue.c:2457 kthread+0x3f6/0x4f0 kernel/kthread.c:334 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:300