INFO: task kworker/u4:22:9299 blocked for more than 143 seconds. Not tainted 6.1.0-rc4-syzkaller-00362-gfef7fd48922d #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:kworker/u4:22 state:D stack:25368 pid:9299 ppid:2 flags:0x00004000 Workqueue: netns cleanup_net Call Trace: context_switch kernel/sched/core.c:5191 [inline] __schedule+0xae9/0x53f0 kernel/sched/core.c:6503 schedule+0xda/0x1b0 kernel/sched/core.c:6579 rwsem_down_write_slowpath+0x5fc/0x12d0 kernel/locking/rwsem.c:1190 __down_write_common kernel/locking/rwsem.c:1305 [inline] __down_write_common kernel/locking/rwsem.c:1302 [inline] __down_write kernel/locking/rwsem.c:1314 [inline] down_write+0x1e4/0x220 kernel/locking/rwsem.c:1563 kernfs_remove_by_name_ns+0x85/0x120 fs/kernfs/dir.c:1621 kernfs_remove_by_name include/linux/kernfs.h:618 [inline] remove_files+0x96/0x1c0 fs/sysfs/group.c:28 sysfs_remove_group+0x87/0x170 fs/sysfs/group.c:288 sysfs_remove_groups fs/sysfs/group.c:312 [inline] sysfs_remove_groups+0x5c/0xa0 fs/sysfs/group.c:304 destroy_gid_attrs drivers/infiniband/core/sysfs.c:1189 [inline] ib_free_port_attrs+0x1dd/0x460 drivers/infiniband/core/sysfs.c:1409 remove_one_compat_dev drivers/infiniband/core/device.c:1002 [inline] rdma_dev_exit_net+0x2b2/0x550 drivers/infiniband/core/device.c:1140 ops_exit_list+0xb0/0x170 net/core/net_namespace.c:169 cleanup_net+0x4ea/0xb00 net/core/net_namespace.c:601 process_one_work+0x9bf/0x1710 kernel/workqueue.c:2289 worker_thread+0x665/0x1080 kernel/workqueue.c:2436 kthread+0x2e4/0x3a0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306 INFO: task syz-executor.1:14734 blocked for more than 143 seconds. Not tainted 6.1.0-rc4-syzkaller-00362-gfef7fd48922d #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.1 state:D stack:24720 pid:14734 ppid:1 flags:0x00000004 Call Trace: context_switch kernel/sched/core.c:5191 [inline] __schedule+0xae9/0x53f0 kernel/sched/core.c:6503 schedule+0xda/0x1b0 kernel/sched/core.c:6579 rwsem_down_read_slowpath+0x59f/0xb10 kernel/locking/rwsem.c:1095 __down_read_common kernel/locking/rwsem.c:1260 [inline] __down_read kernel/locking/rwsem.c:1269 [inline] down_read+0xe2/0x450 kernel/locking/rwsem.c:1511 kernfs_iop_permission+0xc1/0x130 fs/kernfs/inode.c:290 do_inode_permission fs/namei.c:458 [inline] inode_permission.part.0+0x3d6/0x670 fs/namei.c:525 inode_permission fs/namei.c:506 [inline] may_lookup fs/namei.c:1715 [inline] link_path_walk.part.0+0x83c/0xe20 fs/namei.c:2262 link_path_walk fs/namei.c:2245 [inline] path_openat+0x262/0x2860 fs/namei.c:3709 do_filp_open+0x1b6/0x400 fs/namei.c:3740 do_sys_openat2+0x16d/0x4c0 fs/open.c:1310 do_sys_open fs/open.c:1326 [inline] __do_sys_openat fs/open.c:1342 [inline] __se_sys_openat fs/open.c:1337 [inline] __x64_sys_openat+0x13f/0x1f0 fs/open.c:1337 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7ff95848b178 RSP: 002b:00007ffc0b3b4930 EFLAGS: 00000287 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 000000000000025c RCX: 00007ff95848b178 RDX: 0000000000090800 RSI: 00007ff9584e58ca RDI: 00000000ffffff9c RBP: 00007ffc0b3b49fc R08: 0000000000090800 R09: 00007ff9584e58ca R10: 0000000000000000 R11: 0000000000000287 R12: 0000000000000000 R13: 0000000000131b49 R14: 0000000000000011 R15: 00007ffc0b3b4a60 INFO: task syz-executor.0:19166 blocked for more than 144 seconds. Not tainted 6.1.0-rc4-syzkaller-00362-gfef7fd48922d #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.0 state:D stack:25888 pid:19166 ppid:3626 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:5191 [inline] __schedule+0xae9/0x53f0 kernel/sched/core.c:6503 schedule+0xda/0x1b0 kernel/sched/core.c:6579 schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:6638 __mutex_lock_common kernel/locking/mutex.c:679 [inline] __mutex_lock+0xa44/0x1350 kernel/locking/mutex.c:747 ip_tunnel_init_net+0x2d9/0x9f0 net/ipv4/ip_tunnel.c:1072 ops_init+0xb9/0x680 net/core/net_namespace.c:135 setup_net+0x5d1/0xc50 net/core/net_namespace.c:332 copy_net_ns+0x318/0x760 net/core/net_namespace.c:478 create_new_namespaces+0x3f6/0xb20 kernel/nsproxy.c:110 copy_namespaces+0x391/0x450 kernel/nsproxy.c:178 copy_process+0x306e/0x7190 kernel/fork.c:2256 kernel_clone+0xe7/0x980 kernel/fork.c:2671 __do_sys_clone+0xba/0x100 kernel/fork.c:2812 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fd9b1e8b639 RSP: 002b:00007fd9b2bf5118 EFLAGS: 00000206 ORIG_RAX: 0000000000000038 RAX: ffffffffffffffda RBX: 00007fd9b1fabf80 RCX: 00007fd9b1e8b639 RDX: 00000000200000c0 RSI: 0000000020001600 RDI: 0000000040000000 RBP: 00007fd9b1ee67e1 R08: 0000000020000140 R09: 0000000020000140 R10: 0000000000000000 R11: 0000000000000206 R12: 0000000000000000 R13: 00007ffd2de5a30f R14: 00007fd9b2bf5300 R15: 0000000000022000 Showing all locks held in the system: 1 lock held by rcu_tasks_kthre/11: #0: ffffffff8bf85030 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x26/0xc70 kernel/rcu/tasks.h:507 1 lock held by rcu_tasks_trace/12: #0: ffffffff8bf84d30 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x26/0xc70 kernel/rcu/tasks.h:507 1 lock held by khungtaskd/27: #0: ffffffff8bf85b80 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x53/0x260 kernel/locking/lockdep.c:6494 2 locks held by getty/3283: #0: ffff88814b1b1098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x22/0x80 drivers/tty/tty_ldisc.c:244 #1: ffffc900020282f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0xef0/0x13e0 drivers/tty/n_tty.c:2177 3 locks held by kworker/0:25/8628: #0: ffff888027f4b138 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline] #0: ffff888027f4b138 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: arch_atomic_long_set include/linux/atomic/atomic-long.h:41 [inline] #0: ffff888027f4b138 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: atomic_long_set include/linux/atomic/atomic-instrumented.h:1280 [inline] #0: ffff888027f4b138 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:636 [inline] #0: ffff888027f4b138 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:663 [inline] #0: ffff888027f4b138 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: process_one_work+0x86d/0x1710 kernel/workqueue.c:2260 #1: ffffc90014fb7da8 ((work_completion)(&(&net->ipv6.addr_chk_work)->work)){+.+.}-{0:0}, at: process_one_work+0x8a1/0x1710 kernel/workqueue.c:2264 #2: ffffffff8d7af528 (rtnl_mutex){+.+.}-{3:3}, at: addrconf_verify_work+0xe/0x20 net/ipv6/addrconf.c:4624 4 locks held by kworker/u4:22/9299: #0: ffff888011bea938 ((wq_completion)netns){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline] #0: ffff888011bea938 ((wq_completion)netns){+.+.}-{0:0}, at: arch_atomic_long_set include/linux/atomic/atomic-long.h:41 [inline] #0: ffff888011bea938 ((wq_completion)netns){+.+.}-{0:0}, at: atomic_long_set include/linux/atomic/atomic-instrumented.h:1280 [inline] #0: ffff888011bea938 ((wq_completion)netns){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:636 [inline] #0: ffff888011bea938 ((wq_completion)netns){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:663 [inline] #0: ffff888011bea938 ((wq_completion)netns){+.+.}-{0:0}, at: process_one_work+0x86d/0x1710 kernel/workqueue.c:2260 #1: ffffc9000552fda8 (net_cleanup_work){+.+.}-{0:0}, at: process_one_work+0x8a1/0x1710 kernel/workqueue.c:2264 #2: ffffffff8d79bb90 (pernet_ops_rwsem){++++}-{3:3}, at: cleanup_net+0x9b/0xb00 net/core/net_namespace.c:563 #3: ffff88814008e548 (&root->kernfs_rwsem){++++}-{3:3}, at: kernfs_remove_by_name_ns+0x85/0x120 fs/kernfs/dir.c:1621 1 lock held by syz-executor.1/14734: #0: ffff88814008e548 (&root->kernfs_rwsem){++++}-{3:3}, at: kernfs_iop_permission+0xc1/0x130 fs/kernfs/inode.c:290 3 locks held by kworker/1:24/15919: #0: ffff888027f4b138 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline] #0: ffff888027f4b138 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: arch_atomic_long_set include/linux/atomic/atomic-long.h:41 [inline] #0: ffff888027f4b138 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: atomic_long_set include/linux/atomic/atomic-instrumented.h:1280 [inline] #0: ffff888027f4b138 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:636 [inline] #0: ffff888027f4b138 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:663 [inline] #0: ffff888027f4b138 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: process_one_work+0x86d/0x1710 kernel/workqueue.c:2260 #1: ffffc90003fefda8 ((work_completion)(&(&net->ipv6.addr_chk_work)->work)){+.+.}-{0:0}, at: process_one_work+0x8a1/0x1710 kernel/workqueue.c:2264 #2: ffffffff8d7af528 (rtnl_mutex){+.+.}-{3:3}, at: addrconf_verify_work+0xe/0x20 net/ipv6/addrconf.c:4624 2 locks held by syz-executor.0/19166: #0: ffffffff8d79bb90 (pernet_ops_rwsem){++++}-{3:3}, at: copy_net_ns+0x2f5/0x760 net/core/net_namespace.c:474 #1: ffffffff8d7af528 (rtnl_mutex){+.+.}-{3:3}, at: ip_tunnel_init_net+0x2d9/0x9f0 net/ipv4/ip_tunnel.c:1072 3 locks held by syz-executor.3/19186: #0: ffffffff8d79bb90 (pernet_ops_rwsem){++++}-{3:3}, at: copy_net_ns+0x2f5/0x760 net/core/net_namespace.c:474 #1: ffffffff8d7af528 (rtnl_mutex){+.+.}-{3:3}, at: ip_tunnel_init_net+0x2d9/0x9f0 net/ipv4/ip_tunnel.c:1072 #2: ffff88814008e548 (&root->kernfs_rwsem){++++}-{3:3}, at: kernfs_add_one+0xa3/0x4e0 fs/kernfs/dir.c:738 5 locks held by syz-executor.1/19196: 1 lock held by syz-executor.0/19217: #0: ffff88814008e548 (&root->kernfs_rwsem){++++}-{3:3}, at: kernfs_iop_permission+0xc1/0x130 fs/kernfs/inode.c:290 1 lock held by syz-executor.3/19218: #0: ffff88814008e548 (&root->kernfs_rwsem){++++}-{3:3}, at: kernfs_iop_permission+0xc1/0x130 fs/kernfs/inode.c:290 ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 27 Comm: khungtaskd Not tainted 6.1.0-rc4-syzkaller-00362-gfef7fd48922d #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xcd/0x134 lib/dump_stack.c:106 nmi_cpu_backtrace.cold+0x24/0x18a lib/nmi_backtrace.c:111 nmi_trigger_cpumask_backtrace+0x32f/0x3c0 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:148 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:220 [inline] watchdog+0xc71/0xfc0 kernel/hung_task.c:377 kthread+0x2e4/0x3a0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306 Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 PID: 19186 Comm: syz-executor.3 Not tainted 6.1.0-rc4-syzkaller-00362-gfef7fd48922d #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 RIP: 0010:__kasan_check_write+0x4/0x10 mm/kasan/shadow.c:37 Code: 00 48 89 fb 48 39 c7 0f 82 4f 52 84 07 eb e1 cc cc cc cc cc cc cc 48 8b 0c 24 89 f6 31 d2 e9 93 f8 ff ff 0f 1f 00 48 8b 0c 24 <89> f6 ba 01 00 00 00 e9 80 f8 ff ff 55 53 48 8b 07 48 89 fb 48 85 RSP: 0018:ffffc9000459f0d0 EFLAGS: 00000046 RAX: 0000000000000001 RBX: 1ffff920008b3e1c RCX: ffffffff815f5120 RDX: ffffed1028011c9f RSI: 0000000000000004 RDI: ffffc9000459f100 RBP: ffff88814008e4f0 R08: 0000000000000001 R09: ffff88814008e4f3 R10: ffffed1028011c9e R11: 0000000000000000 R12: ffff88814008e4f8 R13: ffff88814008e500 R14: 0000000000000004 R15: ffff88814008e4f0 FS: 00007f51b3e8b700(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000c002e7a7f8 CR3: 000000004c949000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: instrument_atomic_read_write include/linux/instrumented.h:102 [inline] atomic_try_cmpxchg_acquire include/linux/atomic/atomic-instrumented.h:542 [inline] queued_spin_lock include/asm-generic/qspinlock.h:111 [inline] do_raw_spin_lock+0x120/0x2a0 kernel/locking/spinlock_debug.c:115 rwsem_down_write_slowpath+0x653/0x12d0 kernel/locking/rwsem.c:1194 __down_write_common kernel/locking/rwsem.c:1305 [inline] __down_write_common kernel/locking/rwsem.c:1302 [inline] __down_write kernel/locking/rwsem.c:1314 [inline] down_write+0x1e4/0x220 kernel/locking/rwsem.c:1563 kernfs_add_one+0xa3/0x4e0 fs/kernfs/dir.c:738 __kernfs_create_file+0x29c/0x350 fs/kernfs/file.c:1072 sysfs_add_file_mode_ns+0x20f/0x3f0 fs/sysfs/file.c:294 sysfs_merge_group+0x196/0x310 fs/sysfs/group.c:342 dpm_sysfs_add+0x241/0x290 drivers/base/power/sysfs.c:707 device_add+0xa82/0x1e90 drivers/base/core.c:3474 netdev_register_kobject+0x181/0x400 net/core/net-sysfs.c:2015 register_netdevice+0xd95/0x1670 net/core/dev.c:10057 __ip_tunnel_create+0x398/0x570 net/ipv4/ip_tunnel.c:267 ip_tunnel_init_net+0x2e8/0x9f0 net/ipv4/ip_tunnel.c:1073 ops_init+0xb9/0x680 net/core/net_namespace.c:135 setup_net+0x5d1/0xc50 net/core/net_namespace.c:332 copy_net_ns+0x318/0x760 net/core/net_namespace.c:478 create_new_namespaces+0x3f6/0xb20 kernel/nsproxy.c:110 copy_namespaces+0x391/0x450 kernel/nsproxy.c:178 copy_process+0x306e/0x7190 kernel/fork.c:2256 kernel_clone+0xe7/0x980 kernel/fork.c:2671 __do_sys_clone3+0x1cd/0x2e0 kernel/fork.c:2970 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f51b308b639 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 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f51b3e8b038 EFLAGS: 00000246 ORIG_RAX: 00000000000001b3 RAX: ffffffffffffffda RBX: 00007f51b31ac120 RCX: 00007f51b308b639 RDX: 0000000000000000 RSI: 0000000000000058 RDI: 00007f51b3e8b050 RBP: 00007f51b30e67e1 R08: 0000000000000000 R09: 0000000000000058 R10: 00007f51b3e8b050 R11: 0000000000000246 R12: 0000000000000058 R13: 00007ffe4b17f40f R14: 00007f51b3e8b300 R15: 0000000000022000