INFO: task syz-executor.4:8431 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.4 state:D stack:28112 pid: 8431 ppid: 7856 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 rwsem_down_write_slowpath+0xf0c/0x16a0 kernel/locking/rwsem.c:1165 inode_lock_nested include/linux/fs.h:824 [inline] filename_create+0x25c/0x530 fs/namei.c:3835 do_mkdirat+0xb3/0x520 fs/namei.c:4080 __do_sys_mkdirat fs/namei.c:4105 [inline] __se_sys_mkdirat fs/namei.c:4103 [inline] __x64_sys_mkdirat+0x85/0x90 fs/namei.c:4103 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:0x7f347bd39867 RSP: 002b:00007f347a28bef8 EFLAGS: 00000246 ORIG_RAX: 0000000000000102 RAX: ffffffffffffffda RBX: 00007f347a28bf80 RCX: 00007f347bd39867 RDX: 00000000000001ff RSI: 0000000020000100 RDI: 00000000ffffff9c RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000020000100 R13: 00007f347a28bf40 R14: 0000000000000000 R15: 0000000000000000 INFO: task syz-executor.4:8433 blocked for more than 144 seconds. Not tainted 5.15.158-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.4 state:D stack:27856 pid: 8433 ppid: 7856 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 rwsem_down_write_slowpath+0xf0c/0x16a0 kernel/locking/rwsem.c:1165 inode_lock include/linux/fs.h:789 [inline] open_last_lookups fs/namei.c:3529 [inline] path_openat+0x824/0x2f20 fs/namei.c:3739 do_filp_open+0x21c/0x460 fs/namei.c:3769 do_sys_openat2+0x13b/0x500 fs/open.c:1253 do_sys_open fs/open.c:1269 [inline] __do_sys_open fs/open.c:1277 [inline] __se_sys_open fs/open.c:1273 [inline] __x64_sys_open+0x221/0x270 fs/open.c:1273 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:0x7f347bd3ad69 RSP: 002b:00007f347a26b0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 RAX: ffffffffffffffda RBX: 00007f347be69120 RCX: 00007f347bd3ad69 RDX: 0000000000000000 RSI: 00000000001eb142 RDI: 0000000020000100 RBP: 00007f347bd8749e R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000006e R14: 00007f347be69120 R15: 00007fff48036d08 Showing all locks held in the system: 2 locks held by kworker/u4:0/9: 1 lock held by khungtaskd/27: #0: ffffffff8c91fae0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x0/0x30 4 locks held by kworker/u4:2/154: #0: ffff8881429bc938 ((wq_completion)writeback){+.+.}-{0:0}, at: process_one_work+0x78a/0x10c0 kernel/workqueue.c:2283 #1: ffffc90001c57d20 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_one_work+0x7d0/0x10c0 kernel/workqueue.c:2285 #2: ffff88807873a0e0 (&type->s_umount_key#93){++++}-{3:3}, at: trylock_super+0x1b/0xf0 fs/super.c:418 #3: ffff88805a598b08 (&jfs_ip->commit_mutex){+.+.}-{3:3}, at: jfs_commit_inode+0x242/0x580 fs/jfs/inode.c:102 4 locks held by kworker/u4:3/662: #0: ffff8881429bc938 ((wq_completion)writeback){+.+.}-{0:0}, at: process_one_work+0x78a/0x10c0 kernel/workqueue.c:2283 #1: ffffc90002b47d20 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_one_work+0x7d0/0x10c0 kernel/workqueue.c:2285 #2: ffff888078dce0e0 (&type->s_umount_key#93){++++}-{3:3}, at: trylock_super+0x1b/0xf0 fs/super.c:418 #3: ffff888073bf8b08 (&jfs_ip->commit_mutex){+.+.}-{3:3}, at: jfs_commit_inode+0x242/0x580 fs/jfs/inode.c:102 2 locks held by getty/3257: #0: ffff888024208098 (&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 3 locks held by kworker/0:5/3558: #0: ffff888011c70938 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x78a/0x10c0 kernel/workqueue.c:2283 #1: ffffc90003167d20 ((work_completion)(&data->fib_event_work)){+.+.}-{0:0}, at: process_one_work+0x7d0/0x10c0 kernel/workqueue.c:2285 #2: ffff8880721fd240 (&data->fib_lock){+.+.}-{3:3}, at: nsim_fib_event_work+0x2cd/0x4120 drivers/net/netdevsim/fib.c:1478 3 locks held by kworker/1:4/3559: #0: ffff88814b422138 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: process_one_work+0x78a/0x10c0 kernel/workqueue.c:2283 #1: ffffc90003177d20 ((work_completion)(&(&ifa->dad_work)->work)){+.+.}-{0:0}, at: process_one_work+0x7d0/0x10c0 kernel/workqueue.c:2285 #2: ffffffff8d9e7b08 (rtnl_mutex){+.+.}-{3:3}, at: addrconf_dad_work+0xcc/0x1720 net/ipv6/addrconf.c:4112 4 locks held by kworker/u4:5/3630: #0: ffff8881429bc938 ((wq_completion)writeback){+.+.}-{0:0}, at: process_one_work+0x78a/0x10c0 kernel/workqueue.c:2283 #1: ffffc900044c7d20 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_one_work+0x7d0/0x10c0 kernel/workqueue.c:2285 #2: ffff88805c69e0e0 (&type->s_umount_key#93){++++}-{3:3}, at: trylock_super+0x1b/0xf0 fs/super.c:418 #3: ffff888073bfde48 (&jfs_ip->commit_mutex){+.+.}-{3:3}, at: jfs_commit_inode+0x242/0x580 fs/jfs/inode.c:102 4 locks held by kworker/u4:6/4006: #0: ffff888011dcd138 ((wq_completion)netns){+.+.}-{0:0}, at: process_one_work+0x78a/0x10c0 kernel/workqueue.c:2283 #1: ffffc90004877d20 (net_cleanup_work){+.+.}-{0:0}, at: process_one_work+0x7d0/0x10c0 kernel/workqueue.c:2285 #2: ffffffff8d9dbf50 (pernet_ops_rwsem){++++}-{3:3}, at: cleanup_net+0xf1/0xb60 net/core/net_namespace.c:558 #3: ffffffff8d9e7b08 (rtnl_mutex){+.+.}-{3:3}, at: fib6_rules_net_exit+0xe/0x50 net/ipv6/fib6_rules.c:502 4 locks held by kworker/u4:9/4202: #0: ffff8881429bc938 ((wq_completion)writeback){+.+.}-{0:0}, at: process_one_work+0x78a/0x10c0 kernel/workqueue.c:2283 #1: ffffc90003457d20 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_one_work+0x7d0/0x10c0 kernel/workqueue.c:2285 #2: ffff8880161e00e0 (&type->s_umount_key#93){++++}-{3:3}, at: trylock_super+0x1b/0xf0 fs/super.c:418 #3: ffff88805a77b948 (&jfs_ip->commit_mutex){+.+.}-{3:3}, at: jfs_commit_inode+0x242/0x580 fs/jfs/inode.c:102 3 locks held by kworker/1:11/5162: #0: ffff88814b422138 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: process_one_work+0x78a/0x10c0 kernel/workqueue.c:2283 #1: ffffc90004a3fd20 ((work_completion)(&(&ifa->dad_work)->work)){+.+.}-{0:0}, at: process_one_work+0x7d0/0x10c0 kernel/workqueue.c:2285 #2: ffffffff8d9e7b08 (rtnl_mutex){+.+.}-{3:3} , at: addrconf_dad_work+0xcc/0x1720 net/ipv6/addrconf.c:4112 3 locks held by kworker/0:15/5474: #0: ffff888011c70938 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x78a/0x10c0 kernel/workqueue.c:2283 #1: ffffc90004517d20 (fqdir_free_work){+.+.}-{0:0}, at: process_one_work+0x7d0/0x10c0 kernel/workqueue.c:2285 #2: ffffffff8c923fb0 (rcu_state.barrier_mutex){+.+.}-{3:3}, at: rcu_barrier+0x9c/0x4e0 kernel/rcu/tree.c:4039 4 locks held by syz-executor.4/8403: 2 locks held by syz-executor.4/8431: #0: ffff88807873a460 (sb_writers#32){.+.+}-{0:0}, at: mnt_want_write+0x3b/0x80 fs/namespace.c:377 #1: ffff88805a598ec0 (&type->i_mutex_dir_key#22/1){+.+.}-{3:3}, at: inode_lock_nested include/linux/fs.h:824 [inline] #1: ffff88805a598ec0 (&type->i_mutex_dir_key#22/1){+.+.}-{3:3}, at: filename_create+0x25c/0x530 fs/namei.c:3835 2 locks held by syz-executor.4/8433: #0: ffff88807873a460 (sb_writers#32){.+.+}-{0:0}, at: mnt_want_write+0x3b/0x80 fs/namespace.c:377 #1: ffff88805a598ec0 (&type->i_mutex_dir_key#22){++++}-{3:3}, at: inode_lock include/linux/fs.h:789 [inline] #1: ffff88805a598ec0 (&type->i_mutex_dir_key#22){++++}-{3:3}, at: open_last_lookups fs/namei.c:3529 [inline] #1: ffff88805a598ec0 (&type->i_mutex_dir_key#22){++++}-{3:3}, at: path_openat+0x824/0x2f20 fs/namei.c:3739 4 locks held by syz-executor.1/8640: 2 locks held by syz-executor.1/8665: #0: ffff8880161e0460 (sb_writers#32){.+.+}-{0:0}, at: mnt_want_write+0x3b/0x80 fs/namespace.c:377 #1: ffff88805a77bd00 (&type->i_mutex_dir_key#22/1){+.+.}-{3:3}, at: inode_lock_nested include/linux/fs.h:824 [inline] #1: ffff88805a77bd00 (&type->i_mutex_dir_key#22/1){+.+.}-{3:3}, at: filename_create+0x25c/0x530 fs/namei.c:3835 2 locks held by syz-executor.1/8666: #0: ffff8880161e0460 (sb_writers#32){.+.+}-{0:0}, at: mnt_want_write+0x3b/0x80 fs/namespace.c:377 #1: ffff88805a77bd00 (&type->i_mutex_dir_key#22){++++}-{3:3}, at: inode_lock include/linux/fs.h:789 [inline] #1: ffff88805a77bd00 (&type->i_mutex_dir_key#22){++++}-{3:3}, at: open_last_lookups fs/namei.c:3529 [inline] #1: ffff88805a77bd00 (&type->i_mutex_dir_key#22){++++}-{3:3}, at: path_openat+0x824/0x2f20 fs/namei.c:3739 2 locks held by kworker/0:22/8739: #0: ffff888011c72138 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: process_one_work+0x78a/0x10c0 kernel/workqueue.c:2283 #1: ffffc90002c97d20 ((work_completion)(&rew.rew_work)){+.+.}-{0:0}, at: process_one_work+0x7d0/0x10c0 kernel/workqueue.c:2285 4 locks held by syz-executor.2/8863: 2 locks held by syz-executor.2/8883: #0: ffff888078dce460 (sb_writers#32){.+.+}-{0:0}, at: mnt_want_write+0x3b/0x80 fs/namespace.c:377 #1: ffff888073bf8ec0 (&type->i_mutex_dir_key#22/1){+.+.}-{3:3}, at: inode_lock_nested include/linux/fs.h:824 [inline] #1: ffff888073bf8ec0 (&type->i_mutex_dir_key#22/1){+.+.}-{3:3}, at: filename_create+0x25c/0x530 fs/namei.c:3835 2 locks held by syz-executor.2/8884: #0: ffff888078dce460 (sb_writers#32){.+.+}-{0:0}, at: mnt_want_write+0x3b/0x80 fs/namespace.c:377 #1: ffff888073bf8ec0 (&type->i_mutex_dir_key#22){++++}-{3:3}, at: inode_lock include/linux/fs.h:789 [inline] #1: ffff888073bf8ec0 (&type->i_mutex_dir_key#22){++++}-{3:3}, at: open_last_lookups fs/namei.c:3529 [inline] #1: ffff888073bf8ec0 (&type->i_mutex_dir_key#22){++++}-{3:3}, at: path_openat+0x824/0x2f20 fs/namei.c:3739 7 locks held by syz-executor.3/9278: 2 locks held by syz-executor.3/9303: #0: ffff88805c69e460 (sb_writers#32){.+.+}-{0:0}, at: mnt_want_write+0x3b/0x80 fs/namespace.c:377 #1: ffff888073bfe200 (&type->i_mutex_dir_key#22/1){+.+.}-{3:3}, at: inode_lock_nested include/linux/fs.h:824 [inline] #1: ffff888073bfe200 (&type->i_mutex_dir_key#22/1){+.+.}-{3:3}, at: filename_create+0x25c/0x530 fs/namei.c:3835 2 locks held by syz-executor.3/9304: #0: ffff88805c69e460 (sb_writers#32){.+.+}-{0:0}, at: mnt_want_write+0x3b/0x80 fs/namespace.c:377 #1: ffff888073bfe200 (&type->i_mutex_dir_key#22){++++}-{3:3}, at: inode_lock include/linux/fs.h:789 [inline] #1: ffff888073bfe200 (&type->i_mutex_dir_key#22){++++}-{3:3}, at: open_last_lookups fs/namei.c:3529 [inline] #1: ffff888073bfe200 (&type->i_mutex_dir_key#22){++++}-{3:3}, at: path_openat+0x824/0x2f20 fs/namei.c:3739 3 locks held by syz-executor.4/9519: #0: ffffffff8d9e7b08 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock net/core/rtnetlink.c:72 [inline] #0: ffffffff8d9e7b08 (rtnl_mutex){+.+.}-{3:3}, at: rtnetlink_rcv_msg+0x94c/0xee0 net/core/rtnetlink.c:5626 #1: ffff888052df53e8 (&wg->device_update_lock){+.+.}-{3:3}, at: wg_open+0x224/0x410 drivers/net/wireguard/device.c:49 #2: ffffffff8c9240a8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:322 [inline] #2: ffffffff8c9240a8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x350/0x740 kernel/rcu/tree_exp.h:845 ============================================= NMI backtrace for cpu 0 CPU: 0 PID: 27 Comm: khungtaskd Not tainted 5.15.158-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/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 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 PID: 4006 Comm: kworker/u4:6 Not tainted 5.15.158-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024 Workqueue: netns cleanup_net RIP: 0010:__lock_is_held kernel/locking/lockdep.c:5366 [inline] RIP: 0010:lock_is_held_type+0xa4/0x180 kernel/locking/lockdep.c:5666 Code: 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 48 83 fb 31 73 24 48 89 ef 4c 89 fe e8 fc 01 00 00 <85> c0 75 2a 48 ff c3 49 63 85 e8 0a 00 00 48 83 c5 28 48 39 c3 7c RSP: 0018:ffffc90004877af0 EFLAGS: 00000046 RAX: 0000000000000001 RBX: 0000000000000003 RCX: ffff888021f75940 RDX: ffff888021f75940 RSI: ffffffff8daa75b8 RDI: ffff888021f764a8 RBP: ffff888021f764a8 R08: ffffffff88ca4ceb R09: 0000000000000003 R10: ffffffffffffffff R11: dffffc0000000001 R12: 0000000000000246 R13: ffff888021f75940 R14: 00000000ffffffff R15: ffffffff8daa75b8 FS: 0000000000000000(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f40b7cc2038 CR3: 0000000073fb8000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: lock_is_held include/linux/lockdep.h:287 [inline] tcp_metrics_flush_all+0x80/0x330 net/ipv4/tcp_metrics.c:906 ops_exit_list net/core/net_namespace.c:174 [inline] cleanup_net+0x763/0xb60 net/core/net_namespace.c:596 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