[ 10.091024][ T258] gre: GRE over IPv4 demultiplexor driver [ 11.239410][ T281] ip_gre: GRE over IPv4 tunneling driver [ 15.416609][ T67] [ 15.416748][ T67] ============================================ [ 15.416941][ T67] WARNING: possible recursive locking detected [ 15.417119][ T67] 6.13.0-rc5-virtme #1 Not tainted [ 15.417257][ T67] -------------------------------------------- [ 15.417434][ T67] kworker/u16:1/67 is trying to acquire lock: [ 15.417611][ T67] ffffffffa0df6a70 ((netdev_chain).rwsem){++++}-{4:4}, at: blocking_notifier_call_chain+0x50/0x90 [ 15.417923][ T67] [ 15.417923][ T67] but task is already holding lock: [ 15.418122][ T67] ffffffffa0df6a70 ((netdev_chain).rwsem){++++}-{4:4}, at: blocking_notifier_call_chain+0x50/0x90 [ 15.418394][ T67] [ 15.418394][ T67] other info that might help us debug this: [ 15.418617][ T67] Possible unsafe locking scenario: [ 15.418617][ T67] [ 15.418820][ T67] CPU0 [ 15.418928][ T67] ---- [ 15.419052][ T67] lock((netdev_chain).rwsem); [ 15.419191][ T67] lock((netdev_chain).rwsem); [ 15.419329][ T67] [ 15.419329][ T67] *** DEADLOCK *** [ 15.419329][ T67] [ 15.419531][ T67] May be due to missing lock nesting notation [ 15.419531][ T67] [ 15.419729][ T67] 5 locks held by kworker/u16:1/67: [ 15.419867][ T67] #0: ffff8880010b5948 ((wq_completion)netns){+.+.}-{0:0}, at: process_one_work+0x7ec/0x16d0 [ 15.420153][ T67] #1: ffffc90000487da0 (net_cleanup_work){+.+.}-{0:0}, at: process_one_work+0xe0b/0x16d0 [ 15.420396][ T67] #2: ffffffffa0dec4d0 (pernet_ops_rwsem){++++}-{4:4}, at: cleanup_net+0xbc/0xba0 [ 15.420644][ T67] #3: ffffffffa0e07e88 (rtnl_mutex){+.+.}-{4:4}, at: cleanup_net+0x45e/0xba0 [ 15.420886][ T67] #4: ffffffffa0df6a70 ((netdev_chain).rwsem){++++}-{4:4}, at: blocking_notifier_call_chain+0x50/0x90 [ 15.421160][ T67] [ 15.421160][ T67] stack backtrace: [ 15.421328][ T67] CPU: 1 UID: 0 PID: 67 Comm: kworker/u16:1 Not tainted 6.13.0-rc5-virtme #1 [ 15.421571][ T67] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 15.421740][ T67] Workqueue: netns cleanup_net [ 15.421881][ T67] Call Trace: [ 15.421988][ T67] [ 15.422061][ T67] dump_stack_lvl+0x82/0xd0 [ 15.422202][ T67] print_deadlock_bug+0x40a/0x650 [ 15.422341][ T67] validate_chain+0x5bf/0xae0 [ 15.422480][ T67] ? __pfx_validate_chain+0x10/0x10 [ 15.422625][ T67] ? hlock_class+0x4e/0x130 [ 15.422765][ T67] ? mark_lock+0x38/0x3e0 [ 15.422871][ T67] __lock_acquire+0xb9a/0x1680 [ 15.423008][ T67] ? spin_bug+0x191/0x1d0 [ 15.423115][ T67] ? debug_object_assert_init+0x2a9/0x370 [ 15.423255][ T67] lock_acquire.part.0+0xeb/0x330 [ 15.423395][ T67] ? blocking_notifier_call_chain+0x50/0x90 [ 15.423566][ T67] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 15.423709][ T67] ? trace_lock_acquire+0x14c/0x1f0 [ 15.423847][ T67] ? lock_acquire+0x32/0xc0 [ 15.423983][ T67] ? blocking_notifier_call_chain+0x50/0x90 [ 15.424174][ T67] down_read+0x9f/0x340 [ 15.424283][ T67] ? blocking_notifier_call_chain+0x50/0x90 [ 15.424457][ T67] ? __pfx_down_read+0x10/0x10 [ 15.424599][ T67] blocking_notifier_call_chain+0x50/0x90 [ 15.424744][ T67] __dev_close_many+0xdf/0x2d0 [ 15.424886][ T67] ? __pfx___dev_close_many+0x10/0x10 [ 15.425029][ T67] dev_close_many+0x202/0x650 [ 15.425179][ T67] ? __pfx_dev_close_many+0x10/0x10 [ 15.425315][ T67] ? ipv6_mc_down+0x1d8/0x3a0 [ 15.425457][ T67] vlan_device_event+0x143b/0x2130 [ 15.425597][ T67] ? __pfx_vlan_device_event+0x10/0x10 [ 15.425745][ T67] ? __pfx_br_device_event+0x10/0x10 [ 15.425883][ T67] ? packet_notifier+0x3b0/0x810 [ 15.426021][ T67] notifier_call_chain+0xcd/0x150 [ 15.426159][ T67] blocking_notifier_call_chain+0x66/0x90 [ 15.426293][ T67] dev_close_many+0x2d8/0x650 [ 15.426430][ T67] ? __pfx_dev_close_many+0x10/0x10 [ 15.426568][ T67] unregister_netdevice_many_notify+0x8ed/0x1580 [ 15.426764][ T67] ? __lock_release+0x103/0x460 [ 15.426909][ T67] ? net_generic+0xb1/0x1f0 [ 15.427051][ T67] ? __pfx_unregister_netdevice_many_notify+0x10/0x10 [ 15.427224][ T67] ? rtnl_is_locked+0x15/0x20 [ 15.427364][ T67] ? unregister_netdevice_queue+0x70/0x410 [ 15.427535][ T67] ? __pfx_unregister_netdevice_queue+0x10/0x10 [ 15.427715][ T67] ? net_generic+0xb1/0x1f0 [ 15.427866][ T67] ? mutex_is_locked+0x1c/0x60 [ 15.428006][ T67] ? nexthop_net_exit_batch_rtnl+0x83/0x210 [ 15.428178][ T67] cleanup_net+0x4cf/0xba0 [ 15.428317][ T67] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 15.428454][ T67] ? __pfx_cleanup_net+0x10/0x10 [ 15.428587][ T67] ? trace_lock_acquire+0x14c/0x1f0 [ 15.428722][ T67] ? lock_acquire+0x32/0xc0 [ 15.428865][ T67] ? process_one_work+0xe0b/0x16d0 [ 15.429002][ T67] process_one_work+0xe55/0x16d0 [ 15.429143][ T67] ? __pfx___lock_release+0x10/0x10 [ 15.429281][ T67] ? __pfx_process_one_work+0x10/0x10 [ 15.429421][ T67] ? assign_work+0x16c/0x240 [ 15.429563][ T67] worker_thread+0x58c/0xce0 [ 15.429699][ T67] ? lockdep_hardirqs_on_prepare+0x275/0x410 [ 15.429875][ T67] ? __pfx_worker_thread+0x10/0x10 [ 15.430012][ T67] ? __pfx_worker_thread+0x10/0x10 [ 15.430147][ T67] kthread+0x28a/0x350 [ 15.430254][ T67] ? __pfx_kthread+0x10/0x10 [ 15.430391][ T67] ret_from_fork+0x31/0x70 [ 15.430530][ T67] ? __pfx_kthread+0x10/0x10 [ 15.430668][ T67] ret_from_fork_asm+0x1a/0x30 [ 15.430817][ T67] [ 39.129603][ T853] ip6_gre: GRE over IPv6 tunneling driver [ 49.508395][ T1102] ping (1102) used greatest stack depth: 23600 bytes left [ 53.719487][ T25] ip6_tunnel: tep1 xmit: Local address not yet configured! [ 56.984413][ C3] ip6_tunnel: tep0 xmit: Local address not yet configured! [ 59.991420][ C2] ip6_tunnel: tep0 xmit: Local address not yet configured! [ 62.616423][ C2] ip6_tunnel: tep0 xmit: Local address not yet configured! [ 65.687433][ C0] ip6_tunnel: tep0 xmit: Local address not yet configured!