[ 9.911308][ T257] gre: GRE over IPv4 demultiplexor driver [ 10.480991][ T273] ip (273) used greatest stack depth: 24176 bytes left [ 11.076174][ T282] ip_gre: GRE over IPv4 tunneling driver [ 15.116821][ T11] [ 15.116928][ T11] ============================================ [ 15.117098][ T11] WARNING: possible recursive locking detected [ 15.117263][ T11] 6.13.0-rc5-virtme #1 Not tainted [ 15.117400][ T11] -------------------------------------------- [ 15.117566][ T11] kworker/u16:0/11 is trying to acquire lock: [ 15.117735][ T11] ffffffffa47f6a70 ((netdev_chain).rwsem){++++}-{4:4}, at: blocking_notifier_call_chain+0x50/0x90 [ 15.118016][ T11] [ 15.118016][ T11] but task is already holding lock: [ 15.118221][ T11] ffffffffa47f6a70 ((netdev_chain).rwsem){++++}-{4:4}, at: blocking_notifier_call_chain+0x50/0x90 [ 15.118490][ T11] [ 15.118490][ T11] other info that might help us debug this: [ 15.118696][ T11] Possible unsafe locking scenario: [ 15.118696][ T11] [ 15.118892][ T11] CPU0 [ 15.118992][ T11] ---- [ 15.119099][ T11] lock((netdev_chain).rwsem); [ 15.119232][ T11] lock((netdev_chain).rwsem); [ 15.119372][ T11] [ 15.119372][ T11] *** DEADLOCK *** [ 15.119372][ T11] [ 15.119568][ T11] May be due to missing lock nesting notation [ 15.119568][ T11] [ 15.119761][ T11] 5 locks held by kworker/u16:0/11: [ 15.119902][ T11] #0: ffff8880010b5948 ((wq_completion)netns){+.+.}-{0:0}, at: process_one_work+0x7ec/0x16d0 [ 15.120185][ T11] #1: ffffc900000b7da0 (net_cleanup_work){+.+.}-{0:0}, at: process_one_work+0xe0b/0x16d0 [ 15.120426][ T11] #2: ffffffffa47ec4d0 (pernet_ops_rwsem){++++}-{4:4}, at: cleanup_net+0xbc/0xba0 [ 15.120671][ T11] #3: ffffffffa4807e88 (rtnl_mutex){+.+.}-{4:4}, at: cleanup_net+0x45e/0xba0 [ 15.120910][ T11] #4: ffffffffa47f6a70 ((netdev_chain).rwsem){++++}-{4:4}, at: blocking_notifier_call_chain+0x50/0x90 [ 15.121187][ T11] [ 15.121187][ T11] stack backtrace: [ 15.121352][ T11] CPU: 2 UID: 0 PID: 11 Comm: kworker/u16:0 Not tainted 6.13.0-rc5-virtme #1 [ 15.121601][ T11] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 15.121769][ T11] Workqueue: netns cleanup_net [ 15.121914][ T11] Call Trace: [ 15.122016][ T11] [ 15.122086][ T11] dump_stack_lvl+0x82/0xd0 [ 15.122247][ T11] print_deadlock_bug+0x40a/0x650 [ 15.122382][ T11] validate_chain+0x5bf/0xae0 [ 15.122519][ T11] ? __pfx_validate_chain+0x10/0x10 [ 15.122655][ T11] ? hlock_class+0x4e/0x130 [ 15.122787][ T11] ? mark_lock+0x38/0x3e0 [ 15.122890][ T11] __lock_acquire+0xb9a/0x1680 [ 15.123027][ T11] ? spin_bug+0x191/0x1d0 [ 15.123129][ T11] ? debug_object_assert_init+0x2a9/0x370 [ 15.123269][ T11] lock_acquire.part.0+0xeb/0x330 [ 15.123401][ T11] ? blocking_notifier_call_chain+0x50/0x90 [ 15.123568][ T11] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 15.123700][ T11] ? trace_lock_acquire+0x14c/0x1f0 [ 15.123833][ T11] ? lock_acquire+0x32/0xc0 [ 15.123966][ T11] ? blocking_notifier_call_chain+0x50/0x90 [ 15.124134][ T11] down_read+0x9f/0x340 [ 15.124240][ T11] ? blocking_notifier_call_chain+0x50/0x90 [ 15.124403][ T11] ? __pfx_down_read+0x10/0x10 [ 15.124538][ T11] blocking_notifier_call_chain+0x50/0x90 [ 15.124673][ T11] __dev_close_many+0xdf/0x2d0 [ 15.124807][ T11] ? __pfx___dev_close_many+0x10/0x10 [ 15.124942][ T11] dev_close_many+0x202/0x650 [ 15.125075][ T11] ? __pfx_dev_close_many+0x10/0x10 [ 15.125214][ T11] ? ipv6_mc_down+0x1d8/0x3a0 [ 15.125352][ T11] vlan_device_event+0x143b/0x2130 [ 15.125488][ T11] ? __pfx_vlan_device_event+0x10/0x10 [ 15.125622][ T11] ? __pfx_br_device_event+0x10/0x10 [ 15.125759][ T11] ? packet_notifier+0x3b0/0x810 [ 15.125896][ T11] notifier_call_chain+0xcd/0x150 [ 15.126031][ T11] blocking_notifier_call_chain+0x66/0x90 [ 15.126167][ T11] dev_close_many+0x2d8/0x650 [ 15.126303][ T11] ? __pfx_dev_close_many+0x10/0x10 [ 15.126446][ T11] unregister_netdevice_many_notify+0x8ed/0x1580 [ 15.126611][ T11] ? __lock_release+0x103/0x460 [ 15.126746][ T11] ? net_generic+0xb1/0x1f0 [ 15.126883][ T11] ? __pfx_unregister_netdevice_many_notify+0x10/0x10 [ 15.127047][ T11] ? rtnl_is_locked+0x15/0x20 [ 15.127182][ T11] ? unregister_netdevice_queue+0x70/0x410 [ 15.127348][ T11] ? __pfx_unregister_netdevice_queue+0x10/0x10 [ 15.127512][ T11] ? net_generic+0xb1/0x1f0 [ 15.127646][ T11] ? mutex_is_locked+0x1c/0x60 [ 15.127779][ T11] ? nexthop_net_exit_batch_rtnl+0x83/0x210 [ 15.127946][ T11] cleanup_net+0x4cf/0xba0 [ 15.128078][ T11] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 15.128216][ T11] ? __pfx_cleanup_net+0x10/0x10 [ 15.128348][ T11] ? trace_lock_acquire+0x14c/0x1f0 [ 15.128482][ T11] ? lock_acquire+0x32/0xc0 [ 15.128614][ T11] ? process_one_work+0xe0b/0x16d0 [ 15.128748][ T11] process_one_work+0xe55/0x16d0 [ 15.128883][ T11] ? __pfx___lock_release+0x10/0x10 [ 15.129018][ T11] ? __pfx_process_one_work+0x10/0x10 [ 15.129157][ T11] ? assign_work+0x16c/0x240 [ 15.129293][ T11] worker_thread+0x58c/0xce0 [ 15.129428][ T11] ? __pfx_worker_thread+0x10/0x10 [ 15.129563][ T11] kthread+0x28a/0x350 [ 15.129664][ T11] ? __pfx_kthread+0x10/0x10 [ 15.129797][ T11] ret_from_fork+0x31/0x70 [ 15.129932][ T11] ? __pfx_kthread+0x10/0x10 [ 15.130066][ T11] ret_from_fork_asm+0x1a/0x30 [ 15.130207][ T11] [ 38.021658][ T854] ip6_gre: GRE over IPv6 tunneling driver [ 41.176435][ T62] ip6_tunnel: tep1 xmit: Local address not yet configured! [ 42.839431][ T9] ip6_tunnel: tep1 xmit: Local address not yet configured! [ 46.999450][ T62] ip6_tunnel: tep1 xmit: Local address not yet configured! [ 56.215369][ C1] ip6_tunnel: tep0 xmit: Local address not yet configured! [ 59.159369][ C1] ip6_tunnel: tep0 xmit: Local address not yet configured! [ 61.783377][ C2] ip6_tunnel: tep0 xmit: Local address not yet configured! [ 64.791400][ C1] ip6_tunnel: tep0 xmit: Local address not yet configured! [ 102.369891][ T2239] ping (2239) used greatest stack depth: 23952 bytes left