INFO: task kworker/u4:7:5202 blocked for more than 143 seconds. Not tainted 6.4.0-rc7-next-20230623-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:kworker/u4:7 state:D stack:26504 pid:5202 ppid:2 flags:0x00004000 Workqueue: netns cleanup_net Call Trace: context_switch kernel/sched/core.c:5381 [inline] __schedule+0xc9a/0x5880 kernel/sched/core.c:6710 schedule+0xde/0x1a0 kernel/sched/core.c:6786 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6845 __mutex_lock_common kernel/locking/mutex.c:679 [inline] __mutex_lock+0xa3b/0x1350 kernel/locking/mutex.c:747 ip_tunnel_delete_nets+0x94/0x3a0 net/ipv4/ip_tunnel.c:1139 ops_exit_list+0x125/0x170 net/core/net_namespace.c:175 cleanup_net+0x4ee/0xb10 net/core/net_namespace.c:614 process_one_work+0xa34/0x16f0 kernel/workqueue.c:2594 worker_thread+0x67d/0x10c0 kernel/workqueue.c:2745 kthread+0x344/0x440 kernel/kthread.c:389 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 INFO: task kworker/0:9:8925 blocked for more than 143 seconds. Not tainted 6.4.0-rc7-next-20230623-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:kworker/0:9 state:D stack:24504 pid:8925 ppid:2 flags:0x00004000 Workqueue: events_power_efficient reg_check_chans_work Call Trace: context_switch kernel/sched/core.c:5381 [inline] __schedule+0xc9a/0x5880 kernel/sched/core.c:6710 schedule+0xde/0x1a0 kernel/sched/core.c:6786 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6845 __mutex_lock_common kernel/locking/mutex.c:679 [inline] __mutex_lock+0xa3b/0x1350 kernel/locking/mutex.c:747 wiphy_lock include/net/cfg80211.h:5773 [inline] reg_leave_invalid_chans net/wireless/reg.c:2450 [inline] reg_check_chans_work+0x103/0x1040 net/wireless/reg.c:2465 process_one_work+0xa34/0x16f0 kernel/workqueue.c:2594 worker_thread+0x67d/0x10c0 kernel/workqueue.c:2745 kthread+0x344/0x440 kernel/kthread.c:389 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 INFO: task syz-executor.4:11405 blocked for more than 144 seconds. Not tainted 6.4.0-rc7-next-20230623-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.4 state:D stack:26952 pid:11405 ppid:5075 flags:0x00004006 Call Trace: context_switch kernel/sched/core.c:5381 [inline] __schedule+0xc9a/0x5880 kernel/sched/core.c:6710 schedule+0xde/0x1a0 kernel/sched/core.c:6786 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6845 __mutex_lock_common kernel/locking/mutex.c:679 [inline] __mutex_lock+0xa3b/0x1350 kernel/locking/mutex.c:747 tc_action_net_exit include/net/act_api.h:172 [inline] gate_exit_net+0x24/0x130 net/sched/act_gate.c:658 ops_exit_list+0x125/0x170 net/core/net_namespace.c:175 setup_net+0x64c/0xa40 net/core/net_namespace.c:362 copy_net_ns+0x334/0x6c0 net/core/net_namespace.c:491 create_new_namespaces+0x3f6/0xb20 kernel/nsproxy.c:110 unshare_nsproxy_namespaces+0xc1/0x1f0 kernel/nsproxy.c:228 ksys_unshare+0x449/0x920 kernel/fork.c:3437 __do_sys_unshare kernel/fork.c:3508 [inline] __se_sys_unshare kernel/fork.c:3506 [inline] __x64_sys_unshare+0x31/0x40 kernel/fork.c:3506 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f5e7888c389 RSP: 002b:00007f5e773fe168 EFLAGS: 00000246 ORIG_RAX: 0000000000000110 RAX: ffffffffffffffda RBX: 00007f5e789ac050 RCX: 00007f5e7888c389 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000040000000 RBP: 00007f5e788d7493 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffefdf9973f R14: 00007f5e773fe300 R15: 0000000000022000 Showing all locks held in the system: 4 locks held by kworker/0:1/9: 1 lock held by rcu_tasks_kthre/13: #0: ffffffff8c9a2170 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x31/0xd80 kernel/rcu/tasks.h:522 1 lock held by rcu_tasks_trace/14: #0: ffffffff8c9a1e70 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x31/0xd80 kernel/rcu/tasks.h:522 1 lock held by khungtaskd/28: #0: ffffffff8c9a2d80 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x55/0x340 kernel/locking/lockdep.c:6615 2 locks held by kworker/0:2/776: 5 locks held by kworker/0:3/4767: 2 locks held by getty/4780: #0: ffff88802904c098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x26/0x80 drivers/tty/tty_ldisc.c:243 #1: ffffc900015b02f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0xf08/0x13f0 drivers/tty/n_tty.c:2187 3 locks held by kworker/1:8/5126: #0: ffff88802845d138 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:20 [inline] #0: ffff88802845d138 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: raw_atomic64_set include/linux/atomic/atomic-arch-fallback.h:2608 [inline] #0: ffff88802845d138 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: raw_atomic_long_set include/linux/atomic/atomic-long.h:79 [inline] #0: ffff88802845d138 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: atomic_long_set include/linux/atomic/atomic-instrumented.h:3196 [inline] #0: ffff88802845d138 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:675 [inline] #0: ffff88802845d138 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:702 [inline] #0: ffff88802845d138 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: process_one_work+0x8fd/0x16f0 kernel/workqueue.c:2564 #1: ffffc90004a7fdb0 ((work_completion)(&(&net->ipv6.addr_chk_work)->work)){+.+.}-{0:0}, at: process_one_work+0x930/0x16f0 kernel/workqueue.c:2568 #2: ffffffff8e3cdaa8 (rtnl_mutex){+.+.}-{3:3}, at: addrconf_verify_work+0x12/0x30 net/ipv6/addrconf.c:4630 2 locks held by kworker/0:5/5127: 3 locks held by kworker/0:8/5138: #0: ffff88802845d138 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:20 [inline] #0: ffff88802845d138 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: raw_atomic64_set include/linux/atomic/atomic-arch-fallback.h:2608 [inline] #0: ffff88802845d138 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: raw_atomic_long_set include/linux/atomic/atomic-long.h:79 [inline] #0: ffff88802845d138 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: atomic_long_set include/linux/atomic/atomic-instrumented.h:3196 [inline] #0: ffff88802845d138 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:675 [inline] #0: ffff88802845d138 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:702 [inline] #0: ffff88802845d138 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: process_one_work+0x8fd/0x16f0 kernel/workqueue.c:2564 #1: ffffc90004acfdb0 ((work_completion)(&(&net->ipv6.addr_chk_work)->work)){+.+.}-{0:0}, at: process_one_work+0x930/0x16f0 kernel/workqueue.c:2568 #2: ffffffff8e3cdaa8 (rtnl_mutex){+.+.}-{3:3}, at: addrconf_verify_work+0x12/0x30 net/ipv6/addrconf.c:4630 4 locks held by kworker/u4:7/5202: #0: ffff888014667938 ((wq_completion)netns){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:20 [inline] #0: ffff888014667938 ((wq_completion)netns){+.+.}-{0:0}, at: raw_atomic64_set include/linux/atomic/atomic-arch-fallback.h:2608 [inline] #0: ffff888014667938 ((wq_completion)netns){+.+.}-{0:0}, at: raw_atomic_long_set include/linux/atomic/atomic-long.h:79 [inline] #0: ffff888014667938 ((wq_completion)netns){+.+.}-{0:0}, at: atomic_long_set include/linux/atomic/atomic-instrumented.h:3196 [inline] #0: ffff888014667938 ((wq_completion)netns){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:675 [inline] #0: ffff888014667938 ((wq_completion)netns){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:702 [inline] #0: ffff888014667938 ((wq_completion)netns){+.+.}-{0:0}, at: process_one_work+0x8fd/0x16f0 kernel/workqueue.c:2564 #1: ffffc90004f6fdb0 (net_cleanup_work){+.+.}-{0:0}, at: process_one_work+0x930/0x16f0 kernel/workqueue.c:2568 #2: ffffffff8e3b9550 (pernet_ops_rwsem){++++}-{3:3}, at: cleanup_net+0x9f/0xb10 net/core/net_namespace.c:576 #3: ffffffff8e3cdaa8 (rtnl_mutex){+.+.}-{3:3}, at: ip_tunnel_delete_nets+0x94/0x3a0 net/ipv4/ip_tunnel.c:1139 3 locks held by kworker/1:9/6326: #0: ffff888012870d38 ((wq_completion)events){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:20 [inline] #0: ffff888012870d38 ((wq_completion)events){+.+.}-{0:0}, at: raw_atomic64_set include/linux/atomic/atomic-arch-fallback.h:2608 [inline] #0: ffff888012870d38 ((wq_completion)events){+.+.}-{0:0}, at: raw_atomic_long_set include/linux/atomic/atomic-long.h:79 [inline] #0: ffff888012870d38 ((wq_completion)events){+.+.}-{0:0}, at: atomic_long_set include/linux/atomic/atomic-instrumented.h:3196 [inline] #0: ffff888012870d38 ((wq_completion)events){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:675 [inline] #0: ffff888012870d38 ((wq_completion)events){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:702 [inline] #0: ffff888012870d38 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x8fd/0x16f0 kernel/workqueue.c:2564 #1: ffffc900164e7db0 (deferred_process_work){+.+.}-{0:0}, at: process_one_work+0x930/0x16f0 kernel/workqueue.c:2568 #2: ffffffff8e3cdaa8 (rtnl_mutex){+.+.}-{3:3}, at: switchdev_deferred_process_work+0xe/0x20 net/switchdev/switchdev.c:75 4 locks held by kworker/0:9/8925: #0: ffff888012871d38 ((wq_completion)events_power_efficient){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:20 [inline] #0: ffff888012871d38 ((wq_completion)events_power_efficient){+.+.}-{0:0}, at: raw_atomic64_set include/linux/atomic/atomic-arch-fallback.h:2608 [inline] #0: ffff888012871d38 ((wq_completion)events_power_efficient){+.+.}-{0:0}, at: raw_atomic_long_set include/linux/atomic/atomic-long.h:79 [inline] #0: ffff888012871d38 ((wq_completion)events_power_efficient){+.+.}-{0:0}, at: atomic_long_set include/linux/atomic/atomic-instrumented.h:3196 [inline] #0: ffff888012871d38 ((wq_completion)events_power_efficient){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:675 [inline] #0: ffff888012871d38 ((wq_completion)events_power_efficient){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:702 [inline] #0: ffff888012871d38 ((wq_completion)events_power_efficient){+.+.}-{0:0}, at: process_one_work+0x8fd/0x16f0 kernel/workqueue.c:2564 #1: ffffc90005adfdb0 ((reg_check_chans).work){+.+.}-{0:0}, at: process_one_work+0x930/0x16f0 kernel/workqueue.c:2568 #2: ffffffff8e3cdaa8 (rtnl_mutex){+.+.}-{3:3}, at: reg_check_chans_work+0x82/0x1040 net/wireless/reg.c:2462 #3: ffff888090bd0768 (&rdev->wiphy.mtx){+.+.}-{3:3}, at: wiphy_lock include/net/cfg80211.h:5773 [inline] #3: ffff888090bd0768 (&rdev->wiphy.mtx){+.+.}-{3:3}, at: reg_leave_invalid_chans net/wireless/reg.c:2450 [inline] #3: ffff888090bd0768 (&rdev->wiphy.mtx){+.+.}-{3:3}, at: reg_check_chans_work+0x103/0x1040 net/wireless/reg.c:2465 4 locks held by kworker/0:10/8926: 4 locks held by kworker/0:11/8928: 2 locks held by kworker/0:14/8931: 7 locks held by kworker/0:16/8933: 2 locks held by syz-executor.4/11405: #0: ffffffff8e3b9550 (pernet_ops_rwsem){++++}-{3:3}, at: copy_net_ns+0x311/0x6c0 net/core/net_namespace.c:487 #1: ffffffff8e3cdaa8 (rtnl_mutex){+.+.}-{3:3}, at: tc_action_net_exit include/net/act_api.h:172 [inline] #1: ffffffff8e3cdaa8 (rtnl_mutex){+.+.}-{3:3}, at: gate_exit_net+0x24/0x130 net/sched/act_gate.c:658 1 lock held by syz-executor.4/11473: #0: ffffffff8e3cdaa8 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock net/core/rtnetlink.c:78 [inline] #0: ffffffff8e3cdaa8 (rtnl_mutex){+.+.}-{3:3}, at: rtnetlink_rcv_msg+0x3e8/0xd50 net/core/rtnetlink.c:6421 1 lock held by syz-executor.4/11476: #0: ffffffff8e3cdaa8 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock net/core/rtnetlink.c:78 [inline] #0: ffffffff8e3cdaa8 (rtnl_mutex){+.+.}-{3:3}, at: rtnetlink_rcv_msg+0x3e8/0xd50 net/core/rtnetlink.c:6421 ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 28 Comm: khungtaskd Not tainted 6.4.0-rc7-next-20230623-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xd9/0x150 lib/dump_stack.c:106 nmi_cpu_backtrace+0x29c/0x350 lib/nmi_backtrace.c:113 nmi_trigger_cpumask_backtrace+0x2a4/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+0xe16/0x1090 kernel/hung_task.c:379 kthread+0x344/0x440 kernel/kthread.c:389 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 PID: 8933 Comm: kworker/0:16 Not tainted 6.4.0-rc7-next-20230623-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023 Workqueue: events nsim_dev_trap_report_work RIP: 0010:debug_lockdep_rcu_enabled+0x0/0x30 kernel/rcu/update.c:318 Code: 0f 0b 48 c7 c7 c0 73 6c 8a e8 2c 14 00 00 65 c7 05 c1 35 e2 75 00 00 00 00 eb bc e8 da fa ff ff eb bc 0f 1f 84 00 00 00 00 00 0f 1e fa 8b 05 0e 05 8a 04 85 c0 74 21 8b 05 0c 39 8a 04 85 c0 RSP: 0018:ffffc90000007378 EFLAGS: 00000246 RAX: 0000000000000000 RBX: 0000000000000007 RCX: 0000000000000100 RDX: ffff888078b71dc0 RSI: ffffffff88fea197 RDI: 0000000000000005 RBP: 1ffff92000000e76 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000001 R12: 0000000000000002 R13: ffff8880934f1d00 R14: 0000000000000001 R15: ffff888017b41900 FS: 0000000000000000(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00000000200016c0 CR3: 000000000c775000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: rcu_read_lock_held_common kernel/rcu/update.c:104 [inline] rcu_read_lock_held+0x9/0x50 kernel/rcu/update.c:348 nf_hook+0x59c/0x730 include/linux/netfilter.h:244 NF_HOOK include/linux/netfilter.h:301 [inline] __br_forward+0x19a/0x570 net/bridge/br_forward.c:115 deliver_clone net/bridge/br_forward.c:131 [inline] maybe_deliver+0x350/0x450 net/bridge/br_forward.c:189 br_flood+0x173/0x630 net/bridge/br_forward.c:235 br_handle_frame_finish+0xf89/0x1de0 net/bridge/br_input.c:210 br_nf_hook_thresh+0x2fb/0x3f0 net/bridge/br_netfilter_hooks.c:1048 br_nf_pre_routing_finish_ipv6+0x695/0xf30 net/bridge/br_netfilter_ipv6.c:148 NF_HOOK include/linux/netfilter.h:303 [inline] br_nf_pre_routing_ipv6+0x41b/0x830 net/bridge/br_netfilter_ipv6.c:178 br_nf_pre_routing+0xda4/0x1520 net/bridge/br_netfilter_hooks.c:508 nf_hook_entry_hookfn include/linux/netfilter.h:143 [inline] nf_hook_bridge_pre net/bridge/br_input.c:272 [inline] br_handle_frame+0xac1/0x1440 net/bridge/br_input.c:417 __netif_receive_skb_core+0xa10/0x3900 net/core/dev.c:5346 __netif_receive_skb_one_core+0xae/0x180 net/core/dev.c:5450 __netif_receive_skb+0x1f/0x1c0 net/core/dev.c:5566 process_backlog+0x101/0x670 net/core/dev.c:5894 __napi_poll+0xb7/0x6f0 net/core/dev.c:6460 napi_poll net/core/dev.c:6527 [inline] net_rx_action+0x8a9/0xcb0 net/core/dev.c:6660 __do_softirq+0x1d4/0x905 kernel/softirq.c:553 do_softirq.part.0+0x87/0xc0 kernel/softirq.c:454 do_softirq kernel/softirq.c:446 [inline] __local_bh_enable_ip+0x106/0x130 kernel/softirq.c:381 spin_unlock_bh include/linux/spinlock.h:395 [inline] nsim_dev_trap_report drivers/net/netdevsim/dev.c:823 [inline] nsim_dev_trap_report_work+0x874/0xc80 drivers/net/netdevsim/dev.c:853 process_one_work+0xa34/0x16f0 kernel/workqueue.c:2594 worker_thread+0x67d/0x10c0 kernel/workqueue.c:2745 kthread+0x344/0x440 kernel/kthread.c:389 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308