[ 23.116266][ T239] gre: GRE over IPv4 demultiplexor driver [ 24.885363][ T263] ip_gre: GRE over IPv4 tunneling driver [ 76.725476][ T837] ip6_gre: GRE over IPv6 tunneling driver [ 113.011152][ C1] ip6_tunnel: tep0 xmit: Local address not yet configured! [ 118.195081][ C3] ip6_tunnel: tep0 xmit: Local address not yet configured! [ 122.547124][ C2] ip6_tunnel: tep0 xmit: Local address not yet configured! [ 127.731064][ C2] ip6_tunnel: tep0 xmit: Local address not yet configured! [ 135.589080][ T70] [ 135.589178][ T70] ===================================================== [ 135.589343][ T70] WARNING: SOFTIRQ-safe -> SOFTIRQ-unsafe lock order detected [ 135.589550][ T70] 6.9.0-rc1-virtme #1 Not tainted [ 135.589680][ T70] ----------------------------------------------------- [ 135.589843][ T70] kworker/u16:1/70 [HC0[0]:SC0[2]:HE1:SE0] is trying to acquire: [ 135.590039][ T70] ffff888005218968 (&p->alloc_lock){+.+.}-{2:2}, at: __get_task_comm+0x27/0x70 [ 135.590280][ T70] [ 135.590280][ T70] and this task is already holding: [ 135.590480][ T70] ffff8880360bf198 (&ul->lock#2){+.-.}-{2:2}, at: rt_flush_dev+0x13b/0x670 [ 135.590718][ T70] which would create a new lock dependency: [ 135.590878][ T70] (&ul->lock#2){+.-.}-{2:2} -> (&p->alloc_lock){+.+.}-{2:2} [ 135.591077][ T70] [ 135.591077][ T70] but this new dependency connects a SOFTIRQ-irq-safe lock: [ 135.591298][ T70] (&ul->lock#2){+.-.}-{2:2} [ 135.591303][ T70] [ 135.591303][ T70] ... which became SOFTIRQ-irq-safe at: [ 135.591617][ T70] __lock_acquire+0x797/0x1570 [ 135.591757][ T70] lock_acquire.part.0+0xeb/0x330 [ 135.591885][ T70] _raw_spin_lock_bh+0x38/0x50 [ 135.592013][ T70] rt_del_uncached_list+0x77/0x200 [ 135.592139][ T70] dst_destroy+0xbc/0x370 [ 135.592271][ T70] rcu_do_batch+0x3c0/0xfb0 [ 135.592398][ T70] rcu_core+0x2be/0x500 [ 135.592496][ T70] __do_softirq+0x1f8/0x5df [ 135.592629][ T70] irq_exit_rcu+0x97/0xc0 [ 135.592759][ T70] sysvec_apic_timer_interrupt+0x75/0x80 [ 135.592891][ T70] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 135.593049][ T70] default_idle+0xf/0x20 [ 135.593145][ T70] default_idle_call+0x6d/0xb0 [ 135.593272][ T70] cpuidle_idle_call+0x1f4/0x280 [ 135.593399][ T70] do_idle+0xf9/0x160 [ 135.593494][ T70] cpu_startup_entry+0x54/0x60 [ 135.593620][ T70] start_secondary+0x21c/0x2b0 [ 135.593749][ T70] common_startup_64+0x12c/0x138 [ 135.593877][ T70] [ 135.593877][ T70] to a SOFTIRQ-irq-unsafe lock: [ 135.594037][ T70] (&p->alloc_lock){+.+.}-{2:2} [ 135.594041][ T70] [ 135.594041][ T70] ... which became SOFTIRQ-irq-unsafe at: [ 135.594349][ T70] ... [ 135.594350][ T70] __lock_acquire+0x797/0x1570 [ 135.594544][ T70] lock_acquire.part.0+0xeb/0x330 [ 135.594679][ T70] _raw_spin_lock+0x30/0x40 [ 135.594808][ T70] set_mems_allowed+0x1d/0x210 [ 135.594937][ T70] kernel_init_freeable+0x72/0x310 [ 135.595071][ T70] kernel_init+0x20/0x200 [ 135.595199][ T70] ret_from_fork+0x31/0x70 [ 135.595329][ T70] ret_from_fork_asm+0x1a/0x30 [ 135.595460][ T70] [ 135.595460][ T70] other info that might help us debug this: [ 135.595460][ T70] [ 135.595717][ T70] Possible interrupt unsafe locking scenario: [ 135.595717][ T70] [ 135.595908][ T70] CPU0 CPU1 [ 135.596036][ T70] ---- ---- [ 135.596164][ T70] lock(&p->alloc_lock); [ 135.596265][ T70] local_irq_disable(); [ 135.596424][ T70] lock(&ul->lock#2); [ 135.596585][ T70] lock(&p->alloc_lock); [ 135.596744][ T70] [ 135.596841][ T70] lock(&ul->lock#2); [ 135.596942][ T70] [ 135.596942][ T70] *** DEADLOCK *** [ 135.596942][ T70] [ 135.597140][ T70] 5 locks held by kworker/u16:1/70: [ 135.597275][ T70] #0: ffff88800190a948 ((wq_completion)netns){+.+.}-{0:0}, at: process_one_work+0xda6/0x1730 [ 135.597538][ T70] #1: ffffc900004bfda0 (net_cleanup_work){+.+.}-{0:0}, at: process_one_work+0xde2/0x1730 [ 135.597767][ T70] #2: ffffffffbb99bc50 (pernet_ops_rwsem){++++}-{3:3}, at: cleanup_net+0xbc/0xb60 [ 135.598007][ T70] #3: ffffffffbb9b7208 (rtnl_mutex){+.+.}-{3:3}, at: default_device_exit_batch+0x81/0x2d0 [ 135.598272][ T70] #4: ffff8880360bf198 (&ul->lock#2){+.-.}-{2:2}, at: rt_flush_dev+0x13b/0x670 [ 135.598498][ T70] [ 135.598498][ T70] the dependencies between SOFTIRQ-irq-safe lock and the holding lock: [ 135.598746][ T70] -> (&ul->lock#2){+.-.}-{2:2} { [ 135.598883][ T70] HARDIRQ-ON-W at: [ 135.598986][ T70] __lock_acquire+0x797/0x1570 [ 135.599158][ T70] lock_acquire.part.0+0xeb/0x330 [ 135.599325][ T70] _raw_spin_lock_bh+0x38/0x50 [ 135.599486][ T70] rt_add_uncached_list+0x55/0x1b0 [ 135.599660][ T70] rt_cache_route+0xfd/0x150 [ 135.599823][ T70] rt_set_nexthop.constprop.0+0x283/0xe90 [ 135.600025][ T70] __mkroute_output+0x4fa/0x1210 [ 135.600190][ T70] ip_route_output_key_hash+0x15d/0x2b0 [ 135.600387][ T70] ip_route_output_flow+0x23/0x140 [ 135.600552][ T70] ip_tunnel_xmit+0x7b7/0x2890 [ 135.600720][ T70] __gre_xmit+0x4af/0xa40 [ip_gre] [ 135.600899][ T70] gre_tap_xmit+0x431/0x580 [ip_gre] [ 135.601062][ T70] dev_hard_start_xmit+0x10e/0x360 [ 135.601229][ T70] sch_direct_xmit+0x203/0x11c0 [ 135.601399][ T70] __dev_xmit_skb+0x936/0xfa0 [ 135.601562][ T70] __dev_queue_xmit+0x8be/0x16e0 [ 135.601728][ T70] ip6_finish_output2+0x512/0xf60 [ 135.601896][ T70] ip6_finish_output+0x553/0xdf0 [ 135.602056][ T70] ip6_output+0x1f3/0x770 [ 135.602217][ T70] NF_HOOK.constprop.0+0xe2/0x680 [ 135.602381][ T70] mld_sendpack+0x62d/0xbc0 [ 135.602627][ T70] mld_ifc_work+0x32/0x1f0 [ 135.602789][ T70] process_one_work+0xe2c/0x1730 [ 135.602955][ T70] worker_thread+0x587/0xd30 [ 135.603196][ T70] kthread+0x28a/0x350 [ 135.603333][ T70] ret_from_fork+0x31/0x70 [ 135.603496][ T70] ret_from_fork_asm+0x1a/0x30 [ 135.603739][ T70] IN-SOFTIRQ-W at: [ 135.603835][ T70] __lock_acquire+0x797/0x1570 [ 135.604003][ T70] lock_acquire.part.0+0xeb/0x330 [ 135.604248][ T70] _raw_spin_lock_bh+0x38/0x50 [ 135.604411][ T70] rt_del_uncached_list+0x77/0x200 [ 135.604574][ T70] dst_destroy+0xbc/0x370 [ 135.604744][ T70] rcu_do_batch+0x3c0/0xfb0 [ 135.604990][ T70] rcu_core+0x2be/0x500 [ 135.605161][ T70] __do_softirq+0x1f8/0x5df [ 135.605327][ T70] irq_exit_rcu+0x97/0xc0 [ 135.605571][ T70] sysvec_apic_timer_interrupt+0x75/0x80 [ 135.605771][ T70] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 135.606050][ T70] default_idle+0xf/0x20 [ 135.606212][ T70] default_idle_call+0x6d/0xb0 [ 135.606377][ T70] cpuidle_idle_call+0x1f4/0x280 [ 135.606540][ T70] do_idle+0xf9/0x160 [ 135.606671][ T70] cpu_startup_entry+0x54/0x60 [ 135.606921][ T70] start_secondary+0x21c/0x2b0 [ 135.607085][ T70] common_startup_64+0x12c/0x138 [ 135.607247][ T70] INITIAL USE at: [ 135.607347][ T70] __lock_acquire+0x797/0x1570 [ 135.607592][ T70] lock_acquire.part.0+0xeb/0x330 [ 135.607754][ T70] _raw_spin_lock_bh+0x38/0x50 [ 135.607918][ T70] rt_add_uncached_list+0x55/0x1b0 [ 135.608083][ T70] rt_cache_route+0xfd/0x150 [ 135.608248][ T70] rt_set_nexthop.constprop.0+0x283/0xe90 [ 135.608527][ T70] __mkroute_output+0x4fa/0x1210 [ 135.608694][ T70] ip_route_output_key_hash+0x15d/0x2b0 [ 135.608857][ T70] ip_route_output_flow+0x23/0x140 [ 135.609023][ T70] ip_tunnel_xmit+0x7b7/0x2890 [ 135.609185][ T70] __gre_xmit+0x4af/0xa40 [ip_gre] [ 135.609433][ T70] gre_tap_xmit+0x431/0x580 [ip_gre] [ 135.609602][ T70] dev_hard_start_xmit+0x10e/0x360 [ 135.609765][ T70] sch_direct_xmit+0x203/0x11c0 [ 135.610014][ T70] __dev_xmit_skb+0x936/0xfa0 [ 135.610177][ T70] __dev_queue_xmit+0x8be/0x16e0 [ 135.610338][ T70] ip6_finish_output2+0x512/0xf60 [ 135.610503][ T70] ip6_finish_output+0x553/0xdf0 [ 135.610663][ T70] ip6_output+0x1f3/0x770 [ 135.610823][ T70] NF_HOOK.constprop.0+0xe2/0x680 [ 135.610982][ T70] mld_sendpack+0x62d/0xbc0 [ 135.611298][ T70] mld_ifc_work+0x32/0x1f0 [ 135.611459][ T70] process_one_work+0xe2c/0x1730 [ 135.611619][ T70] worker_thread+0x587/0xd30 [ 135.611857][ T70] kthread+0x28a/0x350 [ 135.611990][ T70] ret_from_fork+0x31/0x70 [ 135.612152][ T70] ret_from_fork_asm+0x1a/0x30 [ 135.612313][ T70] } [ 135.612452][ T70] ... key at: [] __key.7+0x0/0x40 [ 135.612616][ T70] [ 135.612616][ T70] the dependencies between the lock to be acquired [ 135.612617][ T70] and SOFTIRQ-irq-unsafe lock: [ 135.612962][ T70] -> (&p->alloc_lock){+.+.}-{2:2} { [ 135.613179][ T70] HARDIRQ-ON-W at: [ 135.613284][ T70] __lock_acquire+0x797/0x1570 [ 135.613456][ T70] lock_acquire.part.0+0xeb/0x330 [ 135.613623][ T70] _raw_spin_lock+0x30/0x40 [ 135.613789][ T70] set_mems_allowed+0x1d/0x210 [ 135.613952][ T70] kernel_init_freeable+0x72/0x310 [ 135.614115][ T70] kernel_init+0x20/0x200 [ 135.614354][ T70] ret_from_fork+0x31/0x70 [ 135.614518][ T70] ret_from_fork_asm+0x1a/0x30 [ 135.614768][ T70] SOFTIRQ-ON-W at: [ 135.614869][ T70] __lock_acquire+0x797/0x1570 [ 135.615117][ T70] lock_acquire.part.0+0xeb/0x330 [ 135.615280][ T70] _raw_spin_lock+0x30/0x40 [ 135.615445][ T70] set_mems_allowed+0x1d/0x210 [ 135.615687][ T70] kernel_init_freeable+0x72/0x310 [ 135.615850][ T70] kernel_init+0x20/0x200 [ 135.616095][ T70] ret_from_fork+0x31/0x70 [ 135.616266][ T70] ret_from_fork_asm+0x1a/0x30 [ 135.616433][ T70] INITIAL USE at: [ 135.616532][ T70] __lock_acquire+0x797/0x1570 [ 135.616693][ T70] lock_acquire.part.0+0xeb/0x330 [ 135.616943][ T70] _raw_spin_lock+0x30/0x40 [ 135.617106][ T70] set_mems_allowed+0x1d/0x210 [ 135.617269][ T70] kernel_init_freeable+0x72/0x310 [ 135.617433][ T70] kernel_init+0x20/0x200 [ 135.617672][ T70] ret_from_fork+0x31/0x70 [ 135.617837][ T70] ret_from_fork_asm+0x1a/0x30 [ 135.618007][ T70] } [ 135.618077][ T70] ... key at: [] __key.388+0x0/0x40 [ 135.618426][ T70] ... acquired at: [ 135.618524][ T70] check_prev_add+0x194/0xce0 [ 135.618659][ T70] validate_chain+0x71d/0x9b0 [ 135.618790][ T70] __lock_acquire+0xaf0/0x1570 [ 135.619007][ T70] lock_acquire.part.0+0xeb/0x330 [ 135.619136][ T70] _raw_spin_lock+0x30/0x40 [ 135.619265][ T70] __get_task_comm+0x27/0x70 [ 135.619396][ T70] ref_tracker_alloc+0x2ee/0x490 [ 135.619528][ T70] rt_flush_dev+0x371/0x670 [ 135.619666][ T70] fib_netdev_event+0x248/0x5a0 [ 135.619799][ T70] notifier_call_chain+0xcd/0x150 [ 135.619931][ T70] unregister_netdevice_many_notify+0x548/0x1190 [ 135.620096][ T70] default_device_exit_batch+0x234/0x2d0 [ 135.620266][ T70] cleanup_net+0x4f3/0xb60 [ 135.620395][ T70] process_one_work+0xe2c/0x1730 [ 135.620519][ T70] worker_thread+0x587/0xd30 [ 135.620732][ T70] kthread+0x28a/0x350 [ 135.620831][ T70] ret_from_fork+0x31/0x70 [ 135.620958][ T70] ret_from_fork_asm+0x1a/0x30 [ 135.621093][ T70] [ 135.621158][ T70] [ 135.621158][ T70] stack backtrace: [ 135.621394][ T70] CPU: 0 PID: 70 Comm: kworker/u16:1 Not tainted 6.9.0-rc1-virtme #1 [ 135.621587][ T70] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 135.621955][ T70] Workqueue: netns cleanup_net [ 135.622092][ T70] Call Trace: [ 135.622199][ T70] [ 135.622268][ T70] dump_stack_lvl+0x82/0xd0 [ 135.622488][ T70] print_bad_irq_dependency+0x957/0xd40 [ 135.622621][ T70] ? __pfx_print_bad_irq_dependency+0x10/0x10 [ 135.622791][ T70] ? __pfx_usage_skip+0x10/0x10 [ 135.622923][ T70] ? __bfs+0x246/0x650 [ 135.623025][ T70] ? __pfx_usage_match+0x10/0x10 [ 135.623157][ T70] check_irq_usage+0x596/0x850 [ 135.623362][ T70] ? arch_stack_walk+0x8c/0xf0 [ 135.623497][ T70] ? __pfx_check_irq_usage+0x10/0x10 [ 135.623628][ T70] ? __bfs+0x246/0x650 [ 135.623726][ T70] ? __pfx_hlock_conflict+0x10/0x10 [ 135.623935][ T70] ? check_path.constprop.0+0x24/0x50 [ 135.624068][ T70] ? check_noncircular+0x14c/0x3e0 [ 135.624203][ T70] ? __pfx_check_noncircular+0x10/0x10 [ 135.624334][ T70] ? find_held_lock+0x2c/0x110 [ 135.624544][ T70] ? check_prev_add+0x194/0xce0 [ 135.624683][ T70] check_prev_add+0x194/0xce0 [ 135.624816][ T70] ? validate_chain+0x130/0x9b0 [ 135.624947][ T70] validate_chain+0x71d/0x9b0 [ 135.625079][ T70] ? mark_lock+0x38/0x3e0 [ 135.625256][ T70] ? __pfx_validate_chain+0x10/0x10 [ 135.625385][ T70] ? hlock_class+0x4e/0x130 [ 135.625513][ T70] ? mark_lock+0x38/0x3e0 [ 135.625613][ T70] __lock_acquire+0xaf0/0x1570 [ 135.625819][ T70] lock_acquire.part.0+0xeb/0x330 [ 135.625949][ T70] ? __get_task_comm+0x27/0x70 [ 135.626080][ T70] ? mark_lock+0x38/0x3e0 [ 135.626181][ T70] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 135.626315][ T70] ? trace_lock_acquire+0x135/0x1c0 [ 135.626528][ T70] ? __get_task_comm+0x27/0x70 [ 135.626657][ T70] ? lock_acquire+0x32/0xc0 [ 135.626786][ T70] ? __get_task_comm+0x27/0x70 [ 135.626909][ T70] _raw_spin_lock+0x30/0x40 [ 135.627040][ T70] ? __get_task_comm+0x27/0x70 [ 135.627169][ T70] __get_task_comm+0x27/0x70 [ 135.627372][ T70] ref_tracker_alloc+0x2ee/0x490 [ 135.627506][ T70] ? lock_acquire.part.0+0xeb/0x330 [ 135.627638][ T70] ? __pfx_ref_tracker_alloc+0x10/0x10 [ 135.627765][ T70] ? rt_flush_dev+0x371/0x670 [ 135.627897][ T70] ? fib_netdev_event+0x248/0x5a0 [ 135.628032][ T70] ? notifier_call_chain+0xcd/0x150 [ 135.628232][ T70] ? unregister_netdevice_many_notify+0x548/0x1190 [ 135.628475][ T70] ? default_device_exit_batch+0x234/0x2d0 [ 135.628637][ T70] ? cleanup_net+0x4f3/0xb60 [ 135.628766][ T70] ? process_one_work+0xe2c/0x1730 [ 135.628967][ T70] ? worker_thread+0x587/0xd30 [ 135.629094][ T70] ? kthread+0x28a/0x350 [ 135.629194][ T70] ? ret_from_fork+0x31/0x70 [ 135.629323][ T70] ? ret_from_fork_asm+0x1a/0x30 [ 135.629455][ T70] ? do_raw_spin_lock+0x131/0x270 [ 135.629584][ T70] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 135.629716][ T70] ? lock_acquire+0x32/0xc0 [ 135.629925][ T70] ? rt_flush_dev+0x13b/0x670 [ 135.630064][ T70] rt_flush_dev+0x371/0x670 [ 135.630194][ T70] ? __timer_delete_sync+0xd3/0x110 [ 135.630328][ T70] ? __timer_delete_sync+0xa7/0x110 [ 135.630456][ T70] fib_netdev_event+0x248/0x5a0 [ 135.630584][ T70] notifier_call_chain+0xcd/0x150 [ 135.630787][ T70] unregister_netdevice_many_notify+0x548/0x1190 [ 135.630956][ T70] ? mutex_is_locked+0x17/0x50 [ 135.631089][ T70] ? __pfx_unregister_netdevice_many_notify+0x10/0x10 [ 135.631248][ T70] ? __pfx_unregister_netdevice_queue+0x10/0x10 [ 135.631549][ T70] default_device_exit_batch+0x234/0x2d0 [ 135.631677][ T70] ? __pfx_default_device_exit_batch+0x10/0x10 [ 135.631838][ T70] ? ops_exit_list+0xb4/0x170 [ 135.631970][ T70] cleanup_net+0x4f3/0xb60 [ 135.632172][ T70] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 135.632304][ T70] ? __pfx_cleanup_net+0x10/0x10 [ 135.632432][ T70] ? trace_lock_acquire+0x135/0x1c0 [ 135.632562][ T70] ? process_one_work+0xde2/0x1730 [ 135.632765][ T70] ? lock_acquire+0x32/0xc0 [ 135.632893][ T70] ? process_one_work+0xde2/0x1730 [ 135.633025][ T70] process_one_work+0xe2c/0x1730 [ 135.633154][ T70] ? __pfx___lock_release+0x10/0x10 [ 135.633353][ T70] ? __pfx_process_one_work+0x10/0x10 [ 135.633484][ T70] ? assign_work+0x16c/0x240 [ 135.633612][ T70] worker_thread+0x587/0xd30 [ 135.633741][ T70] ? lockdep_hardirqs_on_prepare.part.0+0x1af/0x370 [ 135.633974][ T70] ? __pfx_worker_thread+0x10/0x10 [ 135.634111][ T70] ? __pfx_worker_thread+0x10/0x10 [ 135.634240][ T70] kthread+0x28a/0x350 [ 135.634340][ T70] ? __pfx_kthread+0x10/0x10 [ 135.634470][ T70] ret_from_fork+0x31/0x70 [ 135.634599][ T70] ? __pfx_kthread+0x10/0x10 [ 135.634731][ T70] ret_from_fork_asm+0x1a/0x30 [ 135.634861][ T70]