[ 67.380338][ C0] [ 67.380496][ C0] ======================================================== [ 67.380837][ C0] WARNING: possible irq lock inversion dependency detected [ 67.381084][ C0] 6.9.0-rc1-virtme #1 Not tainted [ 67.381254][ C0] -------------------------------------------------------- [ 67.381480][ C0] swapper/0/0 just changed the state of lock: [ 67.381663][ C0] ffff88800576a580 (&ndev->lock){++-.}-{2:2}, at: addrconf_rs_timer+0xa9/0x730 [ 67.381971][ C0] but this lock took another, SOFTIRQ-unsafe lock in the past: [ 67.382202][ C0] (&p->alloc_lock){+.+.}-{2:2} [ 67.382207][ C0] [ 67.382207][ C0] [ 67.382207][ C0] and interrupts could create inverse lock ordering between them. [ 67.382207][ C0] [ 67.382763][ C0] [ 67.382763][ C0] other info that might help us debug this: [ 67.383004][ C0] Possible interrupt unsafe locking scenario: [ 67.383004][ C0] [ 67.383252][ C0] CPU0 CPU1 [ 67.383408][ C0] ---- ---- [ 67.383578][ C0] lock(&p->alloc_lock); [ 67.383708][ C0] local_irq_disable(); [ 67.383889][ C0] lock(&ndev->lock); [ 67.384124][ C0] lock(&p->alloc_lock); [ 67.384309][ C0] [ 67.384420][ C0] lock(&ndev->lock); [ 67.384535][ C0] [ 67.384535][ C0] *** DEADLOCK *** [ 67.384535][ C0] [ 67.384770][ C0] 1 lock held by swapper/0/0: [ 67.384918][ C0] #0: ffffc90000007b68 ((&ndev->rs_timer)){+.-.}-{0:0}, at: call_timer_fn+0xe8/0x230 [ 67.385210][ C0] [ 67.385210][ C0] the shortest dependencies between 2nd lock and 1st lock: [ 67.385482][ C0] -> (&p->alloc_lock){+.+.}-{2:2} { [ 67.385648][ C0] HARDIRQ-ON-W at: [ 67.385769][ C0] __lock_acquire+0x797/0x1570 [ 67.385961][ C0] lock_acquire.part.0+0xeb/0x330 [ 67.386154][ C0] _raw_spin_lock+0x30/0x40 [ 67.386358][ C0] set_mems_allowed+0x1d/0x210 [ 67.386547][ C0] kernel_init_freeable+0x72/0x310 [ 67.386750][ C0] kernel_init+0x20/0x200 [ 67.386955][ C0] ret_from_fork+0x31/0x70 [ 67.387187][ C0] ret_from_fork_asm+0x1a/0x30 [ 67.387404][ C0] SOFTIRQ-ON-W at: [ 67.387516][ C0] __lock_acquire+0x797/0x1570 [ 67.387717][ C0] lock_acquire.part.0+0xeb/0x330 [ 67.387913][ C0] _raw_spin_lock+0x30/0x40 [ 67.388140][ C0] set_mems_allowed+0x1d/0x210 [ 67.388333][ C0] kernel_init_freeable+0x72/0x310 [ 67.388521][ C0] kernel_init+0x20/0x200 [ 67.388711][ C0] ret_from_fork+0x31/0x70 [ 67.388900][ C0] ret_from_fork_asm+0x1a/0x30 [ 67.389096][ C0] INITIAL USE at: [ 67.389208][ C0] __lock_acquire+0x797/0x1570 [ 67.389400][ C0] lock_acquire.part.0+0xeb/0x330 [ 67.389588][ C0] _raw_spin_lock+0x30/0x40 [ 67.389777][ C0] set_mems_allowed+0x1d/0x210 [ 67.389964][ C0] kernel_init_freeable+0x72/0x310 [ 67.390161][ C0] kernel_init+0x20/0x200 [ 67.390349][ C0] ret_from_fork+0x31/0x70 [ 67.390542][ C0] ret_from_fork_asm+0x1a/0x30 [ 67.390729][ C0] } [ 67.390806][ C0] ... key at: [] __key.387+0x0/0x40 [ 67.391052][ C0] ... acquired at: [ 67.391164][ C0] __lock_acquire+0xaf0/0x1570 [ 67.391316][ C0] lock_acquire.part.0+0xeb/0x330 [ 67.391469][ C0] _raw_spin_lock+0x30/0x40 [ 67.391620][ C0] __get_task_comm+0x27/0x70 [ 67.391774][ C0] ref_tracker_alloc+0x2ee/0x490 [ 67.391923][ C0] netdev_get_by_index+0x5e/0x80 [ 67.392106][ C0] fib6_nh_init+0x3d8/0x15b0 [ 67.392259][ C0] ip6_route_info_create+0xf18/0x17d0 [ 67.392408][ C0] addrconf_f6i_alloc+0x265/0x560 [ 67.392554][ C0] __ipv6_dev_ac_inc+0x25f/0xb10 [ 67.392706][ C0] addrconf_join_anycast+0x1c0/0x220 [ 67.392854][ C0] __ipv6_ifa_notify+0x6b3/0xaf0 [ 67.393011][ C0] add_addr+0x1fb/0x2d0 [ 67.393126][ C0] add_v4_addrs+0x400/0x800 [ 67.393274][ C0] addrconf_gre_config+0x69/0x140 [ 67.393423][ C0] addrconf_notify+0xb0e/0xd60 [ 67.393582][ C0] notifier_call_chain+0xcd/0x150 [ 67.393730][ C0] __dev_notify_flags+0xe6/0x250 [ 67.393878][ C0] dev_change_flags+0xec/0x160 [ 67.394047][ C0] do_setlink+0x7d6/0x21e0 [ 67.394206][ C0] __rtnl_newlink+0xaa7/0xd80 [ 67.394365][ C0] rtnl_newlink+0x63/0xa0 [ 67.394517][ C0] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 67.394668][ C0] netlink_rcv_skb+0x130/0x360 [ 67.394816][ C0] netlink_unicast+0x449/0x710 [ 67.394964][ C0] netlink_sendmsg+0x723/0xbe0 [ 67.395144][ C0] ____sys_sendmsg+0x7b2/0xa10 [ 67.395298][ C0] ___sys_sendmsg+0xee/0x170 [ 67.395463][ C0] __sys_sendmsg+0xcd/0x170 [ 67.395628][ C0] do_syscall_64+0xc6/0x1e0 [ 67.395778][ C0] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 67.395978][ C0] [ 67.396076][ C0] -> (&ndev->lock){++-.}-{2:2} { [ 67.396230][ C0] HARDIRQ-ON-W at: [ 67.396343][ C0] __lock_acquire+0x797/0x1570 [ 67.396533][ C0] lock_acquire.part.0+0xeb/0x330 [ 67.396731][ C0] _raw_write_lock_bh+0x38/0x50 [ 67.396924][ C0] addrconf_permanent_addr+0x6e/0x670 [ 67.397133][ C0] addrconf_notify+0x749/0xd60 [ 67.397332][ C0] notifier_call_chain+0xcd/0x150 [ 67.397530][ C0] __dev_notify_flags+0xe6/0x250 [ 67.397716][ C0] dev_change_flags+0xec/0x160 [ 67.397913][ C0] do_setlink+0x7d6/0x21e0 [ 67.398111][ C0] __rtnl_newlink+0xaa7/0xd80 [ 67.398298][ C0] rtnl_newlink+0x63/0xa0 [ 67.398485][ C0] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 67.398672][ C0] netlink_rcv_skb+0x130/0x360 [ 67.398858][ C0] netlink_unicast+0x449/0x710 [ 67.399057][ C0] netlink_sendmsg+0x723/0xbe0 [ 67.399254][ C0] ____sys_sendmsg+0x7b2/0xa10 [ 67.399448][ C0] ___sys_sendmsg+0xee/0x170 [ 67.399634][ C0] __sys_sendmsg+0xcd/0x170 [ 67.399822][ C0] do_syscall_64+0xc6/0x1e0 [ 67.400034][ C0] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 67.400258][ C0] HARDIRQ-ON-R at: [ 67.400370][ C0] __lock_acquire+0x797/0x1570 [ 67.400560][ C0] lock_acquire.part.0+0xeb/0x330 [ 67.400751][ C0] _raw_read_lock_bh+0x44/0x80 [ 67.400942][ C0] inet6_fill_ifla6_attrs+0x516/0x740 [ 67.401137][ C0] inet6_fill_link_af+0x5e/0xe0 [ 67.401324][ C0] rtnl_fill_ifinfo+0x1612/0x29e0 [ 67.401510][ C0] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 67.401701][ C0] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 67.401925][ C0] rtmsg_ifinfo+0x5b/0xa0 [ 67.402116][ C0] register_netdevice+0x1177/0x1690 [ 67.402300][ C0] register_netdev+0x20/0x40 [ 67.402485][ C0] sit_init_net+0x250/0x4f0 [ 67.402674][ C0] ops_init+0x9b/0x560 [ 67.402824][ C0] register_pernet_operations+0x2db/0x710 [ 67.403065][ C0] register_pernet_device+0x2a/0x60 [ 67.403252][ C0] sit_init+0x23/0xe0 [ 67.403403][ C0] do_one_initcall+0x8d/0x1e0 [ 67.403596][ C0] do_initcalls+0x1b2/0x3e0 [ 67.403786][ C0] kernel_init_freeable+0x232/0x310 [ 67.403972][ C0] kernel_init+0x20/0x200 [ 67.404173][ C0] ret_from_fork+0x31/0x70 [ 67.404363][ C0] ret_from_fork_asm+0x1a/0x30 [ 67.404552][ C0] IN-SOFTIRQ-W at: [ 67.404663][ C0] __lock_acquire+0x797/0x1570 [ 67.404851][ C0] lock_acquire.part.0+0xeb/0x330 [ 67.405042][ C0] _raw_write_lock+0x30/0x40 [ 67.405232][ C0] addrconf_rs_timer+0xa9/0x730 [ 67.405423][ C0] call_timer_fn+0x13b/0x230 [ 67.405628][ C0] __run_timers+0x545/0x810 [ 67.405828][ C0] timer_expire_remote+0x9b/0xe0 [ 67.406036][ C0] tmigr_handle_remote_cpu+0x270/0x430 [ 67.406232][ C0] tmigr_handle_remote_up+0x19f/0x2e0 [ 67.406430][ C0] tmigr_handle_remote+0x21d/0x3a0 [ 67.406634][ C0] __do_softirq+0x1f8/0x5df [ 67.406834][ C0] irq_exit_rcu+0x97/0xc0 [ 67.407052][ C0] sysvec_apic_timer_interrupt+0x75/0x80 [ 67.407297][ C0] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 67.407533][ C0] default_idle+0xf/0x20 [ 67.407730][ C0] default_idle_call+0x6d/0xb0 [ 67.407948][ C0] cpuidle_idle_call+0x1f4/0x280 [ 67.408164][ C0] do_idle+0xf9/0x160 [ 67.408314][ C0] cpu_startup_entry+0x54/0x60 [ 67.408532][ C0] rest_init+0x14f/0x260 [ 67.408719][ C0] start_kernel+0x318/0x3d0 [ 67.408906][ C0] x86_64_start_reservations+0x18/0x30 [ 67.409103][ C0] x86_64_start_kernel+0xba/0x110 [ 67.409295][ C0] common_startup_64+0x12c/0x138 [ 67.409481][ C0] INITIAL USE at: [ 67.409594][ C0] __lock_acquire+0x797/0x1570 [ 67.409781][ C0] lock_acquire.part.0+0xeb/0x330 [ 67.409970][ C0] _raw_write_lock_bh+0x38/0x50 [ 67.410165][ C0] addrconf_permanent_addr+0x6e/0x670 [ 67.410354][ C0] addrconf_notify+0x749/0xd60 [ 67.410541][ C0] notifier_call_chain+0xcd/0x150 [ 67.410726][ C0] __dev_notify_flags+0xe6/0x250 [ 67.410913][ C0] dev_change_flags+0xec/0x160 [ 67.411112][ C0] do_setlink+0x7d6/0x21e0 [ 67.411300][ C0] __rtnl_newlink+0xaa7/0xd80 [ 67.411488][ C0] rtnl_newlink+0x63/0xa0 [ 67.411677][ C0] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 67.411864][ C0] netlink_rcv_skb+0x130/0x360 [ 67.412079][ C0] netlink_unicast+0x449/0x710 [ 67.412265][ C0] netlink_sendmsg+0x723/0xbe0 [ 67.412452][ C0] ____sys_sendmsg+0x7b2/0xa10 [ 67.412735][ C0] ___sys_sendmsg+0xee/0x170 [ 67.412925][ C0] __sys_sendmsg+0xcd/0x170 [ 67.413119][ C0] do_syscall_64+0xc6/0x1e0 [ 67.413407][ C0] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 67.413647][ C0] INITIAL READ USE at: [ 67.413760][ C0] __lock_acquire+0x797/0x1570 [ 67.413949][ C0] lock_acquire.part.0+0xeb/0x330 [ 67.414147][ C0] _raw_read_lock_bh+0x44/0x80 [ 67.414335][ C0] inet6_fill_ifla6_attrs+0x516/0x740 [ 67.414559][ C0] inet6_fill_link_af+0x5e/0xe0 [ 67.414933][ C0] rtnl_fill_ifinfo+0x1612/0x29e0 [ 67.415138][ C0] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 67.415361][ C0] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 67.415701][ C0] rtmsg_ifinfo+0x5b/0xa0 [ 67.415889][ C0] register_netdevice+0x1177/0x1690 [ 67.416136][ C0] register_netdev+0x20/0x40 [ 67.416419][ C0] sit_init_net+0x250/0x4f0 [ 67.416620][ C0] ops_init+0x9b/0x560 [ 67.416817][ C0] register_pernet_operations+0x2db/0x710 [ 67.417174][ C0] register_pernet_device+0x2a/0x60 [ 67.417409][ C0] sit_init+0x23/0xe0 [ 67.417600][ C0] do_one_initcall+0x8d/0x1e0 [ 67.417882][ C0] do_initcalls+0x1b2/0x3e0 [ 67.418078][ C0] kernel_init_freeable+0x232/0x310 [ 67.418303][ C0] kernel_init+0x20/0x200 [ 67.418493][ C0] ret_from_fork+0x31/0x70 [ 67.418773][ C0] ret_from_fork_asm+0x1a/0x30 [ 67.418961][ C0] } [ 67.419051][ C0] ... key at: [] __key.37+0x0/0x40 [ 67.419364][ C0] ... acquired at: [ 67.419476][ C0] mark_lock+0x28d/0x3e0 [ 67.419625][ C0] mark_usage+0xd9/0x2a0 [ 67.419773][ C0] __lock_acquire+0x797/0x1570 [ 67.419927][ C0] lock_acquire.part.0+0xeb/0x330 [ 67.420176][ C0] _raw_write_lock+0x30/0x40 [ 67.420325][ C0] addrconf_rs_timer+0xa9/0x730 [ 67.420473][ C0] call_timer_fn+0x13b/0x230 [ 67.420624][ C0] __run_timers+0x545/0x810 [ 67.420864][ C0] timer_expire_remote+0x9b/0xe0 [ 67.421017][ C0] tmigr_handle_remote_cpu+0x270/0x430 [ 67.421166][ C0] tmigr_handle_remote_up+0x19f/0x2e0 [ 67.421318][ C0] tmigr_handle_remote+0x21d/0x3a0 [ 67.421563][ C0] __do_softirq+0x1f8/0x5df [ 67.421710][ C0] irq_exit_rcu+0x97/0xc0 [ 67.421859][ C0] sysvec_apic_timer_interrupt+0x75/0x80 [ 67.422054][ C0] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 67.422338][ C0] default_idle+0xf/0x20 [ 67.422486][ C0] default_idle_call+0x6d/0xb0 [ 67.422634][ C0] cpuidle_idle_call+0x1f4/0x280 [ 67.422787][ C0] do_idle+0xf9/0x160 [ 67.422904][ C0] cpu_startup_entry+0x54/0x60 [ 67.423078][ C0] rest_init+0x14f/0x260 [ 67.423252][ C0] start_kernel+0x318/0x3d0 [ 67.423401][ C0] x86_64_start_reservations+0x18/0x30 [ 67.423575][ C0] x86_64_start_kernel+0xba/0x110 [ 67.423831][ C0] common_startup_64+0x12c/0x138 [ 67.423979][ C0] [ 67.424084][ C0] [ 67.424084][ C0] stack backtrace: [ 67.424271][ C0] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 6.9.0-rc1-virtme #1 [ 67.424595][ C0] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 67.424926][ C0] Call Trace: [ 67.425046][ C0] [ 67.425124][ C0] dump_stack_lvl+0x82/0xd0 [ 67.425372][ C0] print_irq_inversion_bug.part.0+0x3d9/0x570 [ 67.425559][ C0] ? kernel_text_address+0x17/0xe0 [ 67.425717][ C0] ? __pfx_print_irq_inversion_bug.part.0+0x10/0x10 [ 67.425899][ C0] ? __pfx_usage_skip+0x10/0x10 [ 67.426057][ C0] ? __pfx_usage_match+0x10/0x10 [ 67.426204][ C0] ? arch_stack_walk+0x8c/0xf0 [ 67.426355][ C0] mark_lock_irq+0x4cd/0xa10 [ 67.426504][ C0] ? common_startup_64+0x12c/0x138 [ 67.426840][ C0] ? __pfx_mark_lock_irq+0x10/0x10 [ 67.427009][ C0] ? __pfx_stack_trace_save+0x10/0x10 [ 67.427172][ C0] ? save_trace+0x8f/0x5b0 [ 67.427327][ C0] mark_lock+0x28d/0x3e0 [ 67.427540][ C0] ? __pfx_stack_trace_save+0x10/0x10 [ 67.427698][ C0] mark_usage+0xd9/0x2a0 [ 67.427811][ C0] __lock_acquire+0x797/0x1570 [ 67.427975][ C0] ? __pfx_validate_chain+0x10/0x10 [ 67.428137][ C0] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 67.428403][ C0] lock_acquire.part.0+0xeb/0x330 [ 67.428552][ C0] ? addrconf_rs_timer+0xa9/0x730 [ 67.428700][ C0] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 67.428861][ C0] ? trace_lock_acquire+0x135/0x1c0 [ 67.429018][ C0] ? addrconf_rs_timer+0xa9/0x730 [ 67.429184][ C0] ? lock_acquire+0x32/0xc0 [ 67.429334][ C0] ? addrconf_rs_timer+0xa9/0x730 [ 67.429494][ C0] _raw_write_lock+0x30/0x40 [ 67.429748][ C0] ? addrconf_rs_timer+0xa9/0x730 [ 67.429904][ C0] addrconf_rs_timer+0xa9/0x730 [ 67.430068][ C0] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 67.430223][ C0] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 67.430485][ C0] ? call_timer_fn+0xe8/0x230 [ 67.430634][ C0] ? lock_acquire+0x32/0xc0 [ 67.430791][ C0] ? call_timer_fn+0xe8/0x230 [ 67.430944][ C0] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 67.431111][ C0] call_timer_fn+0x13b/0x230 [ 67.431372][ C0] ? call_timer_fn+0xe8/0x230 [ 67.431531][ C0] ? call_timer_fn+0xe8/0x230 [ 67.431679][ C0] ? __pfx_call_timer_fn+0x10/0x10 [ 67.431836][ C0] ? mark_lock+0x38/0x3e0 [ 67.431965][ C0] __run_timers+0x545/0x810 [ 67.432150][ C0] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 67.432300][ C0] ? __pfx___run_timers+0x10/0x10 [ 67.432449][ C0] ? __lock_release+0x103/0x460 [ 67.432705][ C0] ? do_raw_spin_lock+0x131/0x270 [ 67.432867][ C0] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 67.433030][ C0] ? lock_acquire+0x32/0xc0 [ 67.433197][ C0] ? timer_expire_remote+0x93/0xe0 [ 67.433346][ C0] timer_expire_remote+0x9b/0xe0 [ 67.433617][ C0] tmigr_handle_remote_cpu+0x270/0x430 [ 67.433769][ C0] ? __pfx_tmigr_handle_remote_cpu+0x10/0x10 [ 67.433974][ C0] tmigr_handle_remote_up+0x19f/0x2e0 [ 67.434153][ C0] tmigr_handle_remote+0x21d/0x3a0 [ 67.434426][ C0] ? __pfx_tmigr_handle_remote+0x10/0x10 [ 67.434588][ C0] __do_softirq+0x1f8/0x5df [ 67.434741][ C0] irq_exit_rcu+0x97/0xc0 [ 67.434863][ C0] sysvec_apic_timer_interrupt+0x75/0x80 [ 67.435031][ C0] [ 67.435110][ C0] [ 67.435185][ C0] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 67.435371][ C0] RIP: 0010:default_idle+0xf/0x20 [ 67.435531][ C0] 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 [ 67.436198][ C0] RSP: 0018:ffffffff8b807e00 EFLAGS: 00000246 [ 67.436386][ C0] RAX: 000000000010394d RBX: 1ffffffff1700fc2 RCX: ffffffff8a90f9e5 [ 67.436699][ C0] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffff882aa4a4 [ 67.436929][ C0] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c0709c [ 67.437251][ C0] R10: ffff8880360384e3 R11: ffff88803602d9b0 R12: 0000000000000000 [ 67.437474][ C0] R13: ffffffff8b81d000 R14: dffffc0000000000 R15: 0000000000014770 [ 67.437696][ C0] ? ct_kernel_exit.constprop.0+0xc5/0xf0 [ 67.437847][ C0] ? cpuidle_idle_call+0x1f4/0x280 [ 67.438008][ C0] default_idle_call+0x6d/0xb0 [ 67.438156][ C0] cpuidle_idle_call+0x1f4/0x280 [ 67.438307][ C0] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 67.438456][ C0] ? tsc_verify_tsc_adjust+0x5e/0x2b0 [ 67.438788][ C0] do_idle+0xf9/0x160 [ 67.438902][ C0] cpu_startup_entry+0x54/0x60 [ 67.439066][ C0] rest_init+0x14f/0x260 [ 67.439178][ C0] start_kernel+0x318/0x3d0 [ 67.439329][ C0] x86_64_start_reservations+0x18/0x30 [ 67.439575][ C0] x86_64_start_kernel+0xba/0x110 [ 67.439727][ C0] common_startup_64+0x12c/0x138 [ 67.439879][ C0]