[ 25.012049][ T247] ip (247) used greatest stack depth: 23056 bytes left [ 27.102349][ T275] 8021q: 802.1Q VLAN Support v1.8 [ 30.951763][ T310] br1: port 1(veth1) entered blocking state [ 30.952185][ T310] br1: port 1(veth1) entered disabled state [ 30.952513][ T310] veth1: entered allmulticast mode [ 30.954451][ T310] veth1: entered promiscuous mode [ 31.070919][ T51] br1: port 1(veth1) entered blocking state [ 31.071282][ T51] br1: port 1(veth1) entered forwarding state [ 36.586099][ C3] [ 36.586359][ C3] ======================================================== [ 36.586565][ C3] WARNING: possible irq lock inversion dependency detected [ 36.586782][ C3] 6.9.0-rc1-virtme #1 Not tainted [ 36.586915][ C3] -------------------------------------------------------- [ 36.587108][ C3] swapper/3/0 just changed the state of lock: [ 36.587276][ C3] ffff888005c6d580 (&ndev->lock){++-.}-{2:2}, at: addrconf_rs_timer+0xa9/0x730 [ 36.587518][ C3] but this lock took another, SOFTIRQ-unsafe lock in the past: [ 36.587722][ C3] (&p->alloc_lock){+.+.}-{2:2} [ 36.587726][ C3] [ 36.587726][ C3] [ 36.587726][ C3] and interrupts could create inverse lock ordering between them. [ 36.587726][ C3] [ 36.588221][ C3] [ 36.588221][ C3] other info that might help us debug this: [ 36.588416][ C3] Possible interrupt unsafe locking scenario: [ 36.588416][ C3] [ 36.588611][ C3] CPU0 CPU1 [ 36.588748][ C3] ---- ---- [ 36.588889][ C3] lock(&p->alloc_lock); [ 36.588994][ C3] local_irq_disable(); [ 36.589170][ C3] lock(&ndev->lock); [ 36.589341][ C3] lock(&p->alloc_lock); [ 36.589514][ C3] [ 36.589613][ C3] lock(&ndev->lock); [ 36.589714][ C3] [ 36.589714][ C3] *** DEADLOCK *** [ 36.589714][ C3] [ 36.589905][ C3] 1 lock held by swapper/3/0: [ 36.590040][ C3] #0: ffffc90000288d68 ((&ndev->rs_timer)){+.-.}-{0:0}, at: call_timer_fn+0xe8/0x230 [ 36.590282][ C3] [ 36.590282][ C3] the shortest dependencies between 2nd lock and 1st lock: [ 36.590510][ C3] -> (&p->alloc_lock){+.+.}-{2:2} { [ 36.590650][ C3] HARDIRQ-ON-W at: [ 36.590753][ C3] __lock_acquire+0x797/0x1570 [ 36.590924][ C3] lock_acquire.part.0+0xeb/0x330 [ 36.591091][ C3] _raw_spin_lock+0x30/0x40 [ 36.591264][ C3] set_mems_allowed+0x1d/0x210 [ 36.591435][ C3] kernel_init_freeable+0x72/0x310 [ 36.591601][ C3] kernel_init+0x20/0x200 [ 36.591770][ C3] ret_from_fork+0x31/0x70 [ 36.591957][ C3] ret_from_fork_asm+0x1a/0x30 [ 36.592125][ C3] SOFTIRQ-ON-W at: [ 36.592226][ C3] __lock_acquire+0x797/0x1570 [ 36.592395][ C3] lock_acquire.part.0+0xeb/0x330 [ 36.592564][ C3] _raw_spin_lock+0x30/0x40 [ 36.592733][ C3] set_mems_allowed+0x1d/0x210 [ 36.592902][ C3] kernel_init_freeable+0x72/0x310 [ 36.593067][ C3] kernel_init+0x20/0x200 [ 36.593235][ C3] ret_from_fork+0x31/0x70 [ 36.593401][ C3] ret_from_fork_asm+0x1a/0x30 [ 36.593571][ C3] INITIAL USE at: [ 36.593672][ C3] __lock_acquire+0x797/0x1570 [ 36.593836][ C3] lock_acquire.part.0+0xeb/0x330 [ 36.594003][ C3] _raw_spin_lock+0x30/0x40 [ 36.594172][ C3] set_mems_allowed+0x1d/0x210 [ 36.594336][ C3] kernel_init_freeable+0x72/0x310 [ 36.594501][ C3] kernel_init+0x20/0x200 [ 36.594680][ C3] ret_from_fork+0x31/0x70 [ 36.594848][ C3] ret_from_fork_asm+0x1a/0x30 [ 36.595013][ C3] } [ 36.595082][ C3] ... key at: [] __key.387+0x0/0x40 [ 36.595288][ C3] ... acquired at: [ 36.595390][ C3] __lock_acquire+0xaf0/0x1570 [ 36.595529][ C3] lock_acquire.part.0+0xeb/0x330 [ 36.595665][ C3] _raw_spin_lock+0x30/0x40 [ 36.595801][ C3] __get_task_comm+0x27/0x70 [ 36.595936][ C3] ref_tracker_alloc+0x2ee/0x490 [ 36.596072][ C3] netdev_get_by_index+0x5e/0x80 [ 36.596207][ C3] fib6_nh_init+0x3d8/0x15b0 [ 36.596342][ C3] ip6_route_info_create+0xf18/0x17d0 [ 36.596474][ C3] addrconf_f6i_alloc+0x265/0x560 [ 36.596610][ C3] __ipv6_dev_ac_inc+0x25f/0xb10 [ 36.596742][ C3] addrconf_join_anycast+0x1c0/0x220 [ 36.596877][ C3] dev_forward_change+0x2a6/0x7b0 [ 36.597009][ C3] addrconf_fixup_forwarding+0x23f/0x460 [ 36.597172][ C3] addrconf_sysctl_forward+0x212/0x2b0 [ 36.597304][ C3] proc_sys_call_handler+0x403/0x5e0 [ 36.597439][ C3] vfs_write+0x9e5/0x10a0 [ 36.597570][ C3] ksys_write+0xf5/0x1e0 [ 36.597707][ C3] do_syscall_64+0xc6/0x1e0 [ 36.597841][ C3] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 36.598007][ C3] [ 36.598074][ C3] -> (&ndev->lock){++-.}-{2:2} { [ 36.598210][ C3] HARDIRQ-ON-W at: [ 36.598310][ C3] __lock_acquire+0x797/0x1570 [ 36.598475][ C3] lock_acquire.part.0+0xeb/0x330 [ 36.598644][ C3] _raw_write_lock_bh+0x38/0x50 [ 36.598815][ C3] addrconf_permanent_addr+0x6e/0x670 [ 36.598980][ C3] addrconf_notify+0x749/0xd60 [ 36.599145][ C3] notifier_call_chain+0xcd/0x150 [ 36.599311][ C3] __dev_notify_flags+0xe6/0x250 [ 36.599477][ C3] dev_change_flags+0xec/0x160 [ 36.599644][ C3] do_setlink+0x7d6/0x21e0 [ 36.599817][ C3] __rtnl_newlink+0xaa7/0xd80 [ 36.599983][ C3] rtnl_newlink+0x63/0xa0 [ 36.600150][ C3] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 36.600317][ C3] netlink_rcv_skb+0x130/0x360 [ 36.600484][ C3] netlink_unicast+0x449/0x710 [ 36.600650][ C3] netlink_sendmsg+0x723/0xbe0 [ 36.600814][ C3] ____sys_sendmsg+0x7b2/0xa10 [ 36.600985][ C3] ___sys_sendmsg+0xee/0x170 [ 36.601150][ C3] __sys_sendmsg+0xcd/0x170 [ 36.601317][ C3] do_syscall_64+0xc6/0x1e0 [ 36.601483][ C3] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 36.601680][ C3] HARDIRQ-ON-R at: [ 36.601778][ C3] __lock_acquire+0x797/0x1570 [ 36.601958][ C3] lock_acquire.part.0+0xeb/0x330 [ 36.602129][ C3] _raw_read_lock_bh+0x44/0x80 [ 36.602294][ C3] inet6_fill_ifla6_attrs+0x516/0x740 [ 36.602460][ C3] inet6_fill_link_af+0x5e/0xe0 [ 36.602626][ C3] rtnl_fill_ifinfo+0x1612/0x29e0 [ 36.602792][ C3] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 36.602962][ C3] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 36.603160][ C3] rtmsg_ifinfo+0x5b/0xa0 [ 36.603325][ C3] register_netdevice+0x1177/0x1690 [ 36.603490][ C3] register_netdev+0x20/0x40 [ 36.603657][ C3] sit_init_net+0x250/0x4f0 [ 36.603829][ C3] ops_init+0x9b/0x560 [ 36.603962][ C3] register_pernet_operations+0x2db/0x710 [ 36.604163][ C3] register_pernet_device+0x2a/0x60 [ 36.604333][ C3] sit_init+0x23/0xe0 [ 36.604468][ C3] do_one_initcall+0x8d/0x1e0 [ 36.604632][ C3] do_initcalls+0x1b2/0x3e0 [ 36.604799][ C3] kernel_init_freeable+0x232/0x310 [ 36.604967][ C3] kernel_init+0x20/0x200 [ 36.605137][ C3] ret_from_fork+0x31/0x70 [ 36.605306][ C3] ret_from_fork_asm+0x1a/0x30 [ 36.605479][ C3] IN-SOFTIRQ-W at: [ 36.605578][ C3] __lock_acquire+0x797/0x1570 [ 36.605744][ C3] lock_acquire.part.0+0xeb/0x330 [ 36.605910][ C3] _raw_write_lock+0x30/0x40 [ 36.606079][ C3] addrconf_rs_timer+0xa9/0x730 [ 36.606250][ C3] call_timer_fn+0x13b/0x230 [ 36.606418][ C3] __run_timers+0x545/0x810 [ 36.606586][ C3] run_timer_softirq+0xe8/0x1b0 [ 36.606751][ C3] __do_softirq+0x1f8/0x5df [ 36.606918][ C3] irq_exit_rcu+0x97/0xc0 [ 36.607085][ C3] sysvec_apic_timer_interrupt+0x75/0x80 [ 36.607287][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 36.607486][ C3] default_idle+0xf/0x20 [ 36.607651][ C3] default_idle_call+0x6d/0xb0 [ 36.607818][ C3] cpuidle_idle_call+0x1f4/0x280 [ 36.607986][ C3] do_idle+0xf9/0x160 [ 36.608127][ C3] cpu_startup_entry+0x54/0x60 [ 36.608293][ C3] start_secondary+0x21c/0x2b0 [ 36.608472][ C3] common_startup_64+0x12c/0x138 [ 36.608640][ C3] INITIAL USE at: [ 36.608739][ C3] __lock_acquire+0x797/0x1570 [ 36.608905][ C3] lock_acquire.part.0+0xeb/0x330 [ 36.609071][ C3] _raw_write_lock_bh+0x38/0x50 [ 36.609238][ C3] addrconf_permanent_addr+0x6e/0x670 [ 36.609407][ C3] addrconf_notify+0x749/0xd60 [ 36.609571][ C3] notifier_call_chain+0xcd/0x150 [ 36.609738][ C3] __dev_notify_flags+0xe6/0x250 [ 36.609902][ C3] dev_change_flags+0xec/0x160 [ 36.610069][ C3] do_setlink+0x7d6/0x21e0 [ 36.610235][ C3] __rtnl_newlink+0xaa7/0xd80 [ 36.610402][ C3] rtnl_newlink+0x63/0xa0 [ 36.610575][ C3] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 36.610742][ C3] netlink_rcv_skb+0x130/0x360 [ 36.610909][ C3] netlink_unicast+0x449/0x710 [ 36.611075][ C3] netlink_sendmsg+0x723/0xbe0 [ 36.611243][ C3] ____sys_sendmsg+0x7b2/0xa10 [ 36.611409][ C3] ___sys_sendmsg+0xee/0x170 [ 36.611575][ C3] __sys_sendmsg+0xcd/0x170 [ 36.611750][ C3] do_syscall_64+0xc6/0x1e0 [ 36.611918][ C3] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 36.612127][ C3] INITIAL READ USE at: [ 36.612229][ C3] __lock_acquire+0x797/0x1570 [ 36.612397][ C3] lock_acquire.part.0+0xeb/0x330 [ 36.612564][ C3] _raw_read_lock_bh+0x44/0x80 [ 36.612737][ C3] inet6_fill_ifla6_attrs+0x516/0x740 [ 36.612942][ C3] inet6_fill_link_af+0x5e/0xe0 [ 36.613109][ C3] rtnl_fill_ifinfo+0x1612/0x29e0 [ 36.613274][ C3] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 36.613474][ C3] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 36.613671][ C3] rtmsg_ifinfo+0x5b/0xa0 [ 36.613842][ C3] register_netdevice+0x1177/0x1690 [ 36.614041][ C3] register_netdev+0x20/0x40 [ 36.614208][ C3] sit_init_net+0x250/0x4f0 [ 36.614374][ C3] ops_init+0x9b/0x560 [ 36.614542][ C3] register_pernet_operations+0x2db/0x710 [ 36.614739][ C3] register_pernet_device+0x2a/0x60 [ 36.614941][ C3] sit_init+0x23/0xe0 [ 36.615109][ C3] do_one_initcall+0x8d/0x1e0 [ 36.615274][ C3] do_initcalls+0x1b2/0x3e0 [ 36.615443][ C3] kernel_init_freeable+0x232/0x310 [ 36.615642][ C3] kernel_init+0x20/0x200 [ 36.615811][ C3] ret_from_fork+0x31/0x70 [ 36.615982][ C3] ret_from_fork_asm+0x1a/0x30 [ 36.616149][ C3] } [ 36.616216][ C3] ... key at: [] __key.37+0x0/0x40 [ 36.616418][ C3] ... acquired at: [ 36.616518][ C3] mark_lock+0x28d/0x3e0 [ 36.616653][ C3] mark_usage+0xd9/0x2a0 [ 36.616787][ C3] __lock_acquire+0x797/0x1570 [ 36.616923][ C3] lock_acquire.part.0+0xeb/0x330 [ 36.617062][ C3] _raw_write_lock+0x30/0x40 [ 36.617196][ C3] addrconf_rs_timer+0xa9/0x730 [ 36.617327][ C3] call_timer_fn+0x13b/0x230 [ 36.617461][ C3] __run_timers+0x545/0x810 [ 36.617592][ C3] run_timer_softirq+0xe8/0x1b0 [ 36.617725][ C3] __do_softirq+0x1f8/0x5df [ 36.617857][ C3] irq_exit_rcu+0x97/0xc0 [ 36.617991][ C3] sysvec_apic_timer_interrupt+0x75/0x80 [ 36.618159][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 36.618322][ C3] default_idle+0xf/0x20 [ 36.618454][ C3] default_idle_call+0x6d/0xb0 [ 36.618588][ C3] cpuidle_idle_call+0x1f4/0x280 [ 36.618722][ C3] do_idle+0xf9/0x160 [ 36.618822][ C3] cpu_startup_entry+0x54/0x60 [ 36.618953][ C3] start_secondary+0x21c/0x2b0 [ 36.619090][ C3] common_startup_64+0x12c/0x138 [ 36.619224][ C3] [ 36.619293][ C3] [ 36.619293][ C3] stack backtrace: [ 36.619457][ C3] CPU: 3 PID: 0 Comm: swapper/3 Not tainted 6.9.0-rc1-virtme #1 [ 36.619659][ C3] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 36.619952][ C3] Call Trace: [ 36.620060][ C3] [ 36.620131][ C3] dump_stack_lvl+0x82/0xd0 [ 36.620271][ C3] print_irq_inversion_bug.part.0+0x3d9/0x570 [ 36.620441][ C3] ? kernel_text_address+0x17/0xe0 [ 36.620578][ C3] ? __pfx_print_irq_inversion_bug.part.0+0x10/0x10 [ 36.620743][ C3] ? __pfx_usage_skip+0x10/0x10 [ 36.620878][ C3] ? __pfx_usage_match+0x10/0x10 [ 36.621010][ C3] ? arch_stack_walk+0x8c/0xf0 [ 36.621143][ C3] mark_lock_irq+0x4cd/0xa10 [ 36.621276][ C3] ? common_startup_64+0x12c/0x138 [ 36.621412][ C3] ? __pfx_mark_lock_irq+0x10/0x10 [ 36.621550][ C3] ? __pfx_stack_trace_save+0x10/0x10 [ 36.621686][ C3] ? save_trace+0x8f/0x5b0 [ 36.621820][ C3] mark_lock+0x28d/0x3e0 [ 36.621920][ C3] ? __pfx_stack_trace_save+0x10/0x10 [ 36.622063][ C3] mark_usage+0xd9/0x2a0 [ 36.622164][ C3] __lock_acquire+0x797/0x1570 [ 36.622299][ C3] ? __pfx_validate_chain+0x10/0x10 [ 36.622432][ C3] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 36.622570][ C3] lock_acquire.part.0+0xeb/0x330 [ 36.622710][ C3] ? addrconf_rs_timer+0xa9/0x730 [ 36.622842][ C3] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 36.622976][ C3] ? trace_lock_acquire+0x135/0x1c0 [ 36.623110][ C3] ? addrconf_rs_timer+0xa9/0x730 [ 36.623244][ C3] ? lock_acquire+0x32/0xc0 [ 36.623377][ C3] ? addrconf_rs_timer+0xa9/0x730 [ 36.623508][ C3] _raw_write_lock+0x30/0x40 [ 36.623645][ C3] ? addrconf_rs_timer+0xa9/0x730 [ 36.623777][ C3] addrconf_rs_timer+0xa9/0x730 [ 36.623908][ C3] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 36.624041][ C3] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 36.624173][ C3] ? call_timer_fn+0xe8/0x230 [ 36.624307][ C3] ? lock_acquire+0x32/0xc0 [ 36.624440][ C3] ? call_timer_fn+0xe8/0x230 [ 36.624572][ C3] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 36.624709][ C3] call_timer_fn+0x13b/0x230 [ 36.624843][ C3] ? call_timer_fn+0xe8/0x230 [ 36.624975][ C3] ? call_timer_fn+0xe8/0x230 [ 36.625107][ C3] ? __pfx_call_timer_fn+0x10/0x10 [ 36.625238][ C3] ? mark_lock+0x38/0x3e0 [ 36.625342][ C3] __run_timers+0x545/0x810 [ 36.625476][ C3] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 36.625610][ C3] ? __pfx___run_timers+0x10/0x10 [ 36.625742][ C3] ? do_raw_spin_lock+0x131/0x270 [ 36.625882][ C3] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 36.626014][ C3] ? lock_acquire+0x32/0xc0 [ 36.626145][ C3] ? run_timer_softirq+0xe0/0x1b0 [ 36.626276][ C3] run_timer_softirq+0xe8/0x1b0 [ 36.626410][ C3] __do_softirq+0x1f8/0x5df [ 36.626544][ C3] irq_exit_rcu+0x97/0xc0 [ 36.626645][ C3] sysvec_apic_timer_interrupt+0x75/0x80 [ 36.626778][ C3] [ 36.626846][ C3] [ 36.626918][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 36.627088][ C3] RIP: 0010:default_idle+0xf/0x20 [ 36.627226][ C3] Code: 4c 01 c7 4c 29 c2 e9 72 ff ff ff 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa 66 90 0f 00 2d 93 20 35 00 fb f4 c3 cc cc cc cc 66 66 2e 0f 1f 84 00 00 00 00 00 90 90 90 90 90 [ 36.627694][ C3] RSP: 0018:ffffc9000016fdf8 EFLAGS: 00000242 [ 36.627868][ C3] RAX: 0000000000091bf7 RBX: 1ffff9200002dfc1 RCX: ffffffffae50f9e5 [ 36.628068][ C3] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffffabeaa4a4 [ 36.628267][ C3] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c3709c [ 36.628465][ C3] R10: ffff8880361b84e3 R11: ffff8880361ad9b0 R12: 0000000000000000 [ 36.628662][ C3] R13: ffff888001b88040 R14: dffffc0000000000 R15: 0000000000000000 [ 36.628862][ C3] ? ct_kernel_exit.constprop.0+0xc5/0xf0 [ 36.628996][ C3] ? cpuidle_idle_call+0x1f4/0x280 [ 36.629127][ C3] default_idle_call+0x6d/0xb0 [ 36.629259][ C3] cpuidle_idle_call+0x1f4/0x280 [ 36.629393][ C3] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 36.629527][ C3] ? tsc_verify_tsc_adjust+0x5e/0x2b0 [ 36.629661][ C3] do_idle+0xf9/0x160 [ 36.629761][ C3] cpu_startup_entry+0x54/0x60 [ 36.629894][ C3] start_secondary+0x21c/0x2b0 [ 36.630032][ C3] ? __pfx_start_secondary+0x10/0x10 [ 36.630167][ C3] common_startup_64+0x12c/0x138 [ 36.630302][ C3] [ 62.799354][ T401] br1: port 1(veth1) entered disabled state [ 62.904512][ T402] veth1: left allmulticast mode [ 62.904699][ T402] veth1: left promiscuous mode [ 62.904992][ T402] br1: port 1(veth1) entered disabled state