[ 231.355339][ T2683] gre: GRE over IPv4 demultiplexor driver [ 232.652333][ T2707] ip_gre: GRE over IPv4 tunneling driver [ 237.271898][ T66] [ 237.272057][ T66] ============================================ [ 237.272255][ T66] WARNING: possible recursive locking detected [ 237.272436][ T66] 6.13.0-rc5-virtme #1 Not tainted [ 237.272576][ T66] -------------------------------------------- [ 237.272775][ T66] kworker/u16:1/66 is trying to acquire lock: [ 237.272961][ T66] ffffffff8cdf6a70 ((netdev_chain).rwsem){++++}-{4:4}, at: blocking_notifier_call_chain+0x50/0x90 [ 237.273295][ T66] [ 237.273295][ T66] but task is already holding lock: [ 237.273512][ T66] ffffffff8cdf6a70 ((netdev_chain).rwsem){++++}-{4:4}, at: blocking_notifier_call_chain+0x50/0x90 [ 237.273829][ T66] [ 237.273829][ T66] other info that might help us debug this: [ 237.274057][ T66] Possible unsafe locking scenario: [ 237.274057][ T66] [ 237.274271][ T66] CPU0 [ 237.274379][ T66] ---- [ 237.274500][ T66] lock((netdev_chain).rwsem); [ 237.274674][ T66] lock((netdev_chain).rwsem); [ 237.274815][ T66] [ 237.274815][ T66] *** DEADLOCK *** [ 237.274815][ T66] [ 237.275029][ T66] May be due to missing lock nesting notation [ 237.275029][ T66] [ 237.275237][ T66] 5 locks held by kworker/u16:1/66: [ 237.275392][ T66] #0: ffff8880010b5948 ((wq_completion)netns){+.+.}-{0:0}, at: process_one_work+0x7ec/0x16d0 [ 237.275706][ T66] #1: ffffc90000477da0 (net_cleanup_work){+.+.}-{0:0}, at: process_one_work+0xe0b/0x16d0 [ 237.275966][ T66] #2: ffffffff8cdec4d0 (pernet_ops_rwsem){++++}-{4:4}, at: cleanup_net+0xbc/0xba0 [ 237.276226][ T66] #3: ffffffff8ce07e88 (rtnl_mutex){+.+.}-{4:4}, at: cleanup_net+0x45e/0xba0 [ 237.276487][ T66] #4: ffffffff8cdf6a70 ((netdev_chain).rwsem){++++}-{4:4}, at: blocking_notifier_call_chain+0x50/0x90 [ 237.276779][ T66] [ 237.276779][ T66] stack backtrace: [ 237.276967][ T66] CPU: 0 UID: 0 PID: 66 Comm: kworker/u16:1 Not tainted 6.13.0-rc5-virtme #1 [ 237.277220][ T66] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 237.277395][ T66] Workqueue: netns cleanup_net [ 237.277551][ T66] Call Trace: [ 237.277678][ T66] [ 237.277759][ T66] dump_stack_lvl+0x82/0xd0 [ 237.277924][ T66] print_deadlock_bug+0x40a/0x650 [ 237.278081][ T66] validate_chain+0x5bf/0xae0 [ 237.278223][ T66] ? __pfx_validate_chain+0x10/0x10 [ 237.278366][ T66] ? hlock_class+0x4e/0x130 [ 237.278508][ T66] ? mark_lock+0x38/0x3e0 [ 237.278629][ T66] __lock_acquire+0xb9a/0x1680 [ 237.278770][ T66] ? spin_bug+0x191/0x1d0 [ 237.278896][ T66] ? debug_object_assert_init+0x2a9/0x370 [ 237.279039][ T66] lock_acquire.part.0+0xeb/0x330 [ 237.279178][ T66] ? blocking_notifier_call_chain+0x50/0x90 [ 237.279371][ T66] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 237.279508][ T66] ? trace_lock_acquire+0x14c/0x1f0 [ 237.279660][ T66] ? lock_acquire+0x32/0xc0 [ 237.279810][ T66] ? blocking_notifier_call_chain+0x50/0x90 [ 237.279996][ T66] down_read+0x9f/0x340 [ 237.280118][ T66] ? blocking_notifier_call_chain+0x50/0x90 [ 237.280298][ T66] ? __pfx_down_read+0x10/0x10 [ 237.280443][ T66] blocking_notifier_call_chain+0x50/0x90 [ 237.280599][ T66] __dev_close_many+0xdf/0x2d0 [ 237.280746][ T66] ? __pfx___dev_close_many+0x10/0x10 [ 237.280894][ T66] dev_close_many+0x202/0x650 [ 237.281052][ T66] ? __pfx_dev_close_many+0x10/0x10 [ 237.281196][ T66] ? ipv6_mc_down+0x1d8/0x3a0 [ 237.281341][ T66] vlan_device_event+0x143b/0x2130 [ 237.281487][ T66] ? __pfx_vlan_device_event+0x10/0x10 [ 237.281637][ T66] ? __pfx_br_device_event+0x10/0x10 [ 237.281780][ T66] ? packet_notifier+0x3b0/0x810 [ 237.281930][ T66] notifier_call_chain+0xcd/0x150 [ 237.282081][ T66] blocking_notifier_call_chain+0x66/0x90 [ 237.282228][ T66] dev_close_many+0x2d8/0x650 [ 237.282381][ T66] ? __pfx_dev_close_many+0x10/0x10 [ 237.282524][ T66] unregister_netdevice_many_notify+0x8ed/0x1580 [ 237.282704][ T66] ? __lock_release+0x103/0x460 [ 237.282862][ T66] ? net_generic+0xb1/0x1f0 [ 237.283019][ T66] ? __pfx_unregister_netdevice_many_notify+0x10/0x10 [ 237.283211][ T66] ? rtnl_is_locked+0x15/0x20 [ 237.283353][ T66] ? unregister_netdevice_queue+0x70/0x410 [ 237.283523][ T66] ? __pfx_unregister_netdevice_queue+0x10/0x10 [ 237.283696][ T66] ? net_generic+0xb1/0x1f0 [ 237.283855][ T66] ? mutex_is_locked+0x1c/0x60 [ 237.283996][ T66] ? nexthop_net_exit_batch_rtnl+0x83/0x210 [ 237.284168][ T66] cleanup_net+0x4cf/0xba0 [ 237.284331][ T66] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 237.284471][ T66] ? __pfx_cleanup_net+0x10/0x10 [ 237.284629][ T66] ? trace_lock_acquire+0x14c/0x1f0 [ 237.284769][ T66] ? lock_acquire+0x32/0xc0 [ 237.284924][ T66] ? process_one_work+0xe0b/0x16d0 [ 237.285067][ T66] process_one_work+0xe55/0x16d0 [ 237.285208][ T66] ? __pfx___lock_release+0x10/0x10 [ 237.285371][ T66] ? __pfx_process_one_work+0x10/0x10 [ 237.285516][ T66] ? assign_work+0x16c/0x240 [ 237.285666][ T66] worker_thread+0x58c/0xce0 [ 237.285818][ T66] ? lockdep_hardirqs_on_prepare+0x275/0x410 [ 237.286005][ T66] ? __pfx_worker_thread+0x10/0x10 [ 237.286143][ T66] ? __pfx_worker_thread+0x10/0x10 [ 237.286283][ T66] kthread+0x28a/0x350 [ 237.286402][ T66] ? __pfx_kthread+0x10/0x10 [ 237.286544][ T66] ret_from_fork+0x31/0x70 [ 237.286696][ T66] ? __pfx_kthread+0x10/0x10 [ 237.286849][ T66] ret_from_fork_asm+0x1a/0x30 [ 237.286997][ T66] [ 262.257433][ T3282] ip6_gre: GRE over IPv6 tunneling driver [ 277.484306][ T3625] ping (3625) used greatest stack depth: 23600 bytes left [ 281.178153][ C1] ip6_tunnel: tep0 xmit: Local address not yet configured! [ 284.250140][ C0] ip6_tunnel: tep0 xmit: Local address not yet configured! [ 286.874143][ C2] ip6_tunnel: tep0 xmit: Local address not yet configured! [ 289.947137][ C2] ip6_tunnel: tep0 xmit: Local address not yet configured!