[ 30.373822][ C2] [ 30.373999][ C2] ======================================================== [ 30.374233][ C2] WARNING: possible irq lock inversion dependency detected [ 30.374451][ C2] 6.9.0-rc1-virtme #1 Not tainted [ 30.374610][ C2] -------------------------------------------------------- [ 30.374835][ C2] swapper/2/0 just changed the state of lock: [ 30.375024][ C2] ffff888005ea8d80 (&ndev->lock){++-.}-{2:2}, at: addrconf_rs_timer+0xa9/0x730 [ 30.375306][ C2] but this lock took another, SOFTIRQ-unsafe lock in the past: [ 30.375528][ C2] (&p->alloc_lock){+.+.}-{2:2} [ 30.375532][ C2] [ 30.375532][ C2] [ 30.375532][ C2] and interrupts could create inverse lock ordering between them. [ 30.375532][ C2] [ 30.376065][ C2] [ 30.376065][ C2] other info that might help us debug this: [ 30.376280][ C2] Possible interrupt unsafe locking scenario: [ 30.376280][ C2] [ 30.376501][ C2] CPU0 CPU1 [ 30.376646][ C2] ---- ---- [ 30.376792][ C2] lock(&p->alloc_lock); [ 30.376907][ C2] local_irq_disable(); [ 30.377087][ C2] lock(&ndev->lock); [ 30.377271][ C2] lock(&p->alloc_lock); [ 30.377453][ C2] [ 30.377568][ C2] lock(&ndev->lock); [ 30.377683][ C2] [ 30.377683][ C2] *** DEADLOCK *** [ 30.377683][ C2] [ 30.377898][ C2] 1 lock held by swapper/2/0: [ 30.378046][ C2] #0: ffffc90000230b68 ((&ndev->rs_timer)){+.-.}-{0:0}, at: call_timer_fn+0xe8/0x230 [ 30.378314][ C2] [ 30.378314][ C2] the shortest dependencies between 2nd lock and 1st lock: [ 30.378567][ C2] -> (&p->alloc_lock){+.+.}-{2:2} { [ 30.378723][ C2] HARDIRQ-ON-W at: [ 30.378838][ C2] __lock_acquire+0x797/0x1570 [ 30.379027][ C2] lock_acquire.part.0+0xeb/0x330 [ 30.379212][ C2] _raw_spin_lock+0x30/0x40 [ 30.379401][ C2] set_mems_allowed+0x1d/0x210 [ 30.379589][ C2] kernel_init_freeable+0x72/0x310 [ 30.379780][ C2] kernel_init+0x20/0x200 [ 30.379965][ C2] ret_from_fork+0x31/0x70 [ 30.380155][ C2] ret_from_fork_asm+0x1a/0x30 [ 30.380342][ C2] SOFTIRQ-ON-W at: [ 30.380453][ C2] __lock_acquire+0x797/0x1570 [ 30.380639][ C2] lock_acquire.part.0+0xeb/0x330 [ 30.380829][ C2] _raw_spin_lock+0x30/0x40 [ 30.381016][ C2] set_mems_allowed+0x1d/0x210 [ 30.381200][ C2] kernel_init_freeable+0x72/0x310 [ 30.381386][ C2] kernel_init+0x20/0x200 [ 30.381577][ C2] ret_from_fork+0x31/0x70 [ 30.381763][ C2] ret_from_fork_asm+0x1a/0x30 [ 30.381950][ C2] INITIAL USE at: [ 30.382066][ C2] __lock_acquire+0x797/0x1570 [ 30.382252][ C2] lock_acquire.part.0+0xeb/0x330 [ 30.382437][ C2] _raw_spin_lock+0x30/0x40 [ 30.382623][ C2] set_mems_allowed+0x1d/0x210 [ 30.382815][ C2] kernel_init_freeable+0x72/0x310 [ 30.382999][ C2] kernel_init+0x20/0x200 [ 30.383187][ C2] ret_from_fork+0x31/0x70 [ 30.383379][ C2] ret_from_fork_asm+0x1a/0x30 [ 30.383564][ C2] } [ 30.383640][ C2] ... key at: [] __key.387+0x0/0x40 [ 30.383865][ C2] ... acquired at: [ 30.383975][ C2] __lock_acquire+0xaf0/0x1570 [ 30.384126][ C2] lock_acquire.part.0+0xeb/0x330 [ 30.384278][ C2] _raw_spin_lock+0x30/0x40 [ 30.384434][ C2] __get_task_comm+0x27/0x70 [ 30.384590][ C2] ref_tracker_alloc+0x2ee/0x490 [ 30.384740][ C2] netdev_get_by_index+0x5e/0x80 [ 30.384890][ C2] fib6_nh_init+0x3d8/0x15b0 [ 30.385038][ C2] ip6_route_info_create+0xf18/0x17d0 [ 30.385197][ C2] ip6_route_add+0x1c/0x140 [ 30.385354][ C2] addrconf_prefix_route+0x1cc/0x2b0 [ 30.385508][ C2] addrconf_permanent_addr+0x32f/0x670 [ 30.385662][ C2] addrconf_notify+0x749/0xd60 [ 30.385815][ C2] notifier_call_chain+0xcd/0x150 [ 30.385965][ C2] __dev_notify_flags+0xe6/0x250 [ 30.386113][ C2] dev_change_flags+0xec/0x160 [ 30.386268][ C2] do_setlink+0x7d6/0x21e0 [ 30.386418][ C2] __rtnl_newlink+0xaa7/0xd80 [ 30.386568][ C2] rtnl_newlink+0x63/0xa0 [ 30.386716][ C2] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 30.386873][ C2] netlink_rcv_skb+0x130/0x360 [ 30.387023][ C2] netlink_unicast+0x449/0x710 [ 30.387172][ C2] netlink_sendmsg+0x723/0xbe0 [ 30.387320][ C2] ____sys_sendmsg+0x7b2/0xa10 [ 30.387468][ C2] ___sys_sendmsg+0xee/0x170 [ 30.387617][ C2] __sys_sendmsg+0xcd/0x170 [ 30.387767][ C2] do_syscall_64+0xc6/0x1e0 [ 30.387916][ C2] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 30.388105][ C2] [ 30.388181][ C2] -> (&ndev->lock){++-.}-{2:2} { [ 30.388334][ C2] HARDIRQ-ON-W at: [ 30.388448][ C2] __lock_acquire+0x797/0x1570 [ 30.388636][ C2] lock_acquire.part.0+0xeb/0x330 [ 30.388824][ C2] _raw_write_lock_bh+0x38/0x50 [ 30.389011][ C2] addrconf_permanent_addr+0x6e/0x670 [ 30.389202][ C2] addrconf_notify+0x749/0xd60 [ 30.389394][ C2] notifier_call_chain+0xcd/0x150 [ 30.389580][ C2] __dev_notify_flags+0xe6/0x250 [ 30.389766][ C2] dev_change_flags+0xec/0x160 [ 30.389953][ C2] do_setlink+0x7d6/0x21e0 [ 30.390139][ C2] __rtnl_newlink+0xaa7/0xd80 [ 30.390327][ C2] rtnl_newlink+0x63/0xa0 [ 30.390524][ C2] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 30.390709][ C2] netlink_rcv_skb+0x130/0x360 [ 30.390898][ C2] netlink_unicast+0x449/0x710 [ 30.391085][ C2] netlink_sendmsg+0x723/0xbe0 [ 30.391270][ C2] ____sys_sendmsg+0x7b2/0xa10 [ 30.391455][ C2] ___sys_sendmsg+0xee/0x170 [ 30.391642][ C2] __sys_sendmsg+0xcd/0x170 [ 30.391839][ C2] do_syscall_64+0xc6/0x1e0 [ 30.392025][ C2] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 30.392256][ C2] HARDIRQ-ON-R at: [ 30.392367][ C2] __lock_acquire+0x797/0x1570 [ 30.392567][ C2] lock_acquire.part.0+0xeb/0x330 [ 30.392754][ C2] _raw_read_lock_bh+0x44/0x80 [ 30.392940][ C2] inet6_fill_ifla6_attrs+0x516/0x740 [ 30.393131][ C2] inet6_fill_link_af+0x5e/0xe0 [ 30.393318][ C2] rtnl_fill_ifinfo+0x1612/0x29e0 [ 30.393505][ C2] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 30.393691][ C2] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 30.393915][ C2] rtmsg_ifinfo+0x5b/0xa0 [ 30.394102][ C2] register_netdevice+0x1177/0x1690 [ 30.394297][ C2] register_netdev+0x20/0x40 [ 30.394483][ C2] sit_init_net+0x250/0x4f0 [ 30.394669][ C2] ops_init+0x9b/0x560 [ 30.394819][ C2] register_pernet_operations+0x2db/0x710 [ 30.395041][ C2] register_pernet_device+0x2a/0x60 [ 30.395243][ C2] sit_init+0x23/0xe0 [ 30.395397][ C2] do_one_initcall+0x8d/0x1e0 [ 30.395583][ C2] do_initcalls+0x1b2/0x3e0 [ 30.395769][ C2] kernel_init_freeable+0x232/0x310 [ 30.395957][ C2] kernel_init+0x20/0x200 [ 30.396147][ C2] ret_from_fork+0x31/0x70 [ 30.396340][ C2] ret_from_fork_asm+0x1a/0x30 [ 30.396529][ C2] IN-SOFTIRQ-W at: [ 30.396641][ C2] __lock_acquire+0x797/0x1570 [ 30.396827][ C2] lock_acquire.part.0+0xeb/0x330 [ 30.397018][ C2] _raw_write_lock+0x30/0x40 [ 30.397203][ C2] addrconf_rs_timer+0xa9/0x730 [ 30.397390][ C2] call_timer_fn+0x13b/0x230 [ 30.397575][ C2] __run_timers+0x545/0x810 [ 30.397764][ C2] timer_expire_remote+0x9b/0xe0 [ 30.397950][ C2] tmigr_handle_remote_cpu+0x270/0x430 [ 30.398138][ C2] tmigr_handle_remote_up+0x19f/0x2e0 [ 30.398324][ C2] tmigr_handle_remote+0x21d/0x3a0 [ 30.398517][ C2] __do_softirq+0x1f8/0x5df [ 30.398704][ C2] irq_exit_rcu+0x97/0xc0 [ 30.398891][ C2] sysvec_apic_timer_interrupt+0x75/0x80 [ 30.399113][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 30.399337][ C2] default_idle+0xf/0x20 [ 30.399523][ C2] default_idle_call+0x6d/0xb0 [ 30.399707][ C2] cpuidle_idle_call+0x1f4/0x280 [ 30.399896][ C2] do_idle+0xf9/0x160 [ 30.400046][ C2] cpu_startup_entry+0x54/0x60 [ 30.400231][ C2] start_secondary+0x21c/0x2b0 [ 30.400416][ C2] common_startup_64+0x12c/0x138 [ 30.400604][ C2] INITIAL USE at: [ 30.400716][ C2] __lock_acquire+0x797/0x1570 [ 30.400905][ C2] lock_acquire.part.0+0xeb/0x330 [ 30.401091][ C2] _raw_write_lock_bh+0x38/0x50 [ 30.401280][ C2] addrconf_permanent_addr+0x6e/0x670 [ 30.401464][ C2] addrconf_notify+0x749/0xd60 [ 30.401649][ C2] notifier_call_chain+0xcd/0x150 [ 30.401835][ C2] __dev_notify_flags+0xe6/0x250 [ 30.402022][ C2] dev_change_flags+0xec/0x160 [ 30.402207][ C2] do_setlink+0x7d6/0x21e0 [ 30.402397][ C2] __rtnl_newlink+0xaa7/0xd80 [ 30.402674][ C2] rtnl_newlink+0x63/0xa0 [ 30.402859][ C2] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 30.403045][ C2] netlink_rcv_skb+0x130/0x360 [ 30.403308][ C2] netlink_unicast+0x449/0x710 [ 30.403494][ C2] netlink_sendmsg+0x723/0xbe0 [ 30.403680][ C2] ____sys_sendmsg+0x7b2/0xa10 [ 30.403867][ C2] ___sys_sendmsg+0xee/0x170 [ 30.404130][ C2] __sys_sendmsg+0xcd/0x170 [ 30.404315][ C2] do_syscall_64+0xc6/0x1e0 [ 30.404502][ C2] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 30.404806][ C2] INITIAL READ USE at: [ 30.404916][ C2] __lock_acquire+0x797/0x1570 [ 30.405102][ C2] lock_acquire.part.0+0xeb/0x330 [ 30.405298][ C2] _raw_read_lock_bh+0x44/0x80 [ 30.405642][ C2] inet6_fill_ifla6_attrs+0x516/0x740 [ 30.405862][ C2] inet6_fill_link_af+0x5e/0xe0 [ 30.406049][ C2] rtnl_fill_ifinfo+0x1612/0x29e0 [ 30.406314][ C2] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 30.406551][ C2] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 30.406776][ C2] rtmsg_ifinfo+0x5b/0xa0 [ 30.407045][ C2] register_netdevice+0x1177/0x1690 [ 30.407272][ C2] register_netdev+0x20/0x40 [ 30.407458][ C2] sit_init_net+0x250/0x4f0 [ 30.407730][ C2] ops_init+0x9b/0x560 [ 30.407919][ C2] register_pernet_operations+0x2db/0x710 [ 30.408139][ C2] register_pernet_device+0x2a/0x60 [ 30.408444][ C2] sit_init+0x23/0xe0 [ 30.408630][ C2] do_one_initcall+0x8d/0x1e0 [ 30.408816][ C2] do_initcalls+0x1b2/0x3e0 [ 30.409079][ C2] kernel_init_freeable+0x232/0x310 [ 30.409304][ C2] kernel_init+0x20/0x200 [ 30.409488][ C2] ret_from_fork+0x31/0x70 [ 30.409674][ C2] ret_from_fork_asm+0x1a/0x30 [ 30.409938][ C2] } [ 30.410013][ C2] ... key at: [] __key.36+0x0/0x40 [ 30.410231][ C2] ... acquired at: [ 30.410341][ C2] mark_lock+0x28d/0x3e0 [ 30.410568][ C2] mark_usage+0xd9/0x2a0 [ 30.410720][ C2] __lock_acquire+0x797/0x1570 [ 30.410867][ C2] lock_acquire.part.0+0xeb/0x330 [ 30.411015][ C2] _raw_write_lock+0x30/0x40 [ 30.411239][ C2] addrconf_rs_timer+0xa9/0x730 [ 30.411390][ C2] call_timer_fn+0x13b/0x230 [ 30.411539][ C2] __run_timers+0x545/0x810 [ 30.411686][ C2] timer_expire_remote+0x9b/0xe0 [ 30.411913][ C2] tmigr_handle_remote_cpu+0x270/0x430 [ 30.412064][ C2] tmigr_handle_remote_up+0x19f/0x2e0 [ 30.412213][ C2] tmigr_handle_remote+0x21d/0x3a0 [ 30.412359][ C2] __do_softirq+0x1f8/0x5df [ 30.412506][ C2] irq_exit_rcu+0x97/0xc0 [ 30.412730][ C2] sysvec_apic_timer_interrupt+0x75/0x80 [ 30.412913][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 30.413097][ C2] default_idle+0xf/0x20 [ 30.413321][ C2] default_idle_call+0x6d/0xb0 [ 30.413471][ C2] cpuidle_idle_call+0x1f4/0x280 [ 30.413619][ C2] do_idle+0xf9/0x160 [ 30.413731][ C2] cpu_startup_entry+0x54/0x60 [ 30.413878][ C2] start_secondary+0x21c/0x2b0 [ 30.414103][ C2] common_startup_64+0x12c/0x138 [ 30.414251][ C2] [ 30.414325][ C2] [ 30.414325][ C2] stack backtrace: [ 30.414505][ C2] CPU: 2 PID: 0 Comm: swapper/2 Not tainted 6.9.0-rc1-virtme #1 [ 30.414806][ C2] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 30.415130][ C2] Call Trace: [ 30.415257][ C2] [ 30.415336][ C2] dump_stack_lvl+0x82/0xd0 [ 30.415570][ C2] print_irq_inversion_bug.part.0+0x3d9/0x570 [ 30.415754][ C2] ? kernel_text_address+0x17/0xe0 [ 30.415903][ C2] ? __pfx_print_irq_inversion_bug.part.0+0x10/0x10 [ 30.416171][ C2] ? __pfx_usage_skip+0x10/0x10 [ 30.416318][ C2] ? __pfx_usage_match+0x10/0x10 [ 30.416465][ C2] ? arch_stack_walk+0x8c/0xf0 [ 30.416612][ C2] mark_lock_irq+0x4cd/0xa10 [ 30.416759][ C2] ? common_startup_64+0x12c/0x138 [ 30.417061][ C2] ? __pfx_mark_lock_irq+0x10/0x10 [ 30.417207][ C2] ? __pfx_stack_trace_save+0x10/0x10 [ 30.417357][ C2] ? save_trace+0x8f/0x5b0 [ 30.417507][ C2] mark_lock+0x28d/0x3e0 [ 30.417695][ C2] ? __pfx_stack_trace_save+0x10/0x10 [ 30.417843][ C2] mark_usage+0xd9/0x2a0 [ 30.417956][ C2] __lock_acquire+0x797/0x1570 [ 30.418112][ C2] ? __pfx_validate_chain+0x10/0x10 [ 30.418260][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 30.418486][ C2] lock_acquire.part.0+0xeb/0x330 [ 30.418633][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 30.418783][ C2] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 30.418930][ C2] ? trace_lock_acquire+0x135/0x1c0 [ 30.419154][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 30.419300][ C2] ? lock_acquire+0x32/0xc0 [ 30.419453][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 30.419601][ C2] _raw_write_lock+0x30/0x40 [ 30.419830][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 30.419979][ C2] addrconf_rs_timer+0xa9/0x730 [ 30.420125][ C2] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 30.420277][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 30.420501][ C2] ? call_timer_fn+0xe8/0x230 [ 30.420648][ C2] ? lock_acquire+0x32/0xc0 [ 30.420796][ C2] ? call_timer_fn+0xe8/0x230 [ 30.420943][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 30.421090][ C2] call_timer_fn+0x13b/0x230 [ 30.421312][ C2] ? call_timer_fn+0xe8/0x230 [ 30.421458][ C2] ? call_timer_fn+0xe8/0x230 [ 30.421611][ C2] ? __pfx_call_timer_fn+0x10/0x10 [ 30.421759][ C2] ? mark_lock+0x38/0x3e0 [ 30.421957][ C2] __run_timers+0x545/0x810 [ 30.422104][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 30.422252][ C2] ? __pfx___run_timers+0x10/0x10 [ 30.422398][ C2] ? __lock_release+0x103/0x460 [ 30.422621][ C2] ? do_raw_spin_lock+0x131/0x270 [ 30.422768][ C2] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 30.422914][ C2] ? lock_acquire+0x32/0xc0 [ 30.423064][ C2] ? timer_expire_remote+0x93/0xe0 [ 30.423213][ C2] timer_expire_remote+0x9b/0xe0 [ 30.423440][ C2] tmigr_handle_remote_cpu+0x270/0x430 [ 30.423588][ C2] ? __pfx_tmigr_handle_remote_cpu+0x10/0x10 [ 30.423775][ C2] tmigr_handle_remote_up+0x19f/0x2e0 [ 30.423922][ C2] tmigr_handle_remote+0x21d/0x3a0 [ 30.424149][ C2] ? do_raw_spin_lock+0x131/0x270 [ 30.424297][ C2] ? __pfx_tmigr_handle_remote+0x10/0x10 [ 30.424444][ C2] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 30.424591][ C2] ? lockdep_hardirqs_on_prepare.part.0+0x14f/0x370 [ 30.424854][ C2] __do_softirq+0x1f8/0x5df [ 30.425004][ C2] irq_exit_rcu+0x97/0xc0 [ 30.425115][ C2] sysvec_apic_timer_interrupt+0x75/0x80 [ 30.425272][ C2] [ 30.425352][ C2] [ 30.425503][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 30.425695][ C2] RIP: 0010:default_idle+0xf/0x20 [ 30.425849][ C2] 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 c3 d1 2b 00 fb f4 c3 cc cc cc cc 66 66 2e 0f 1f 84 00 00 00 00 00 90 90 90 90 90 [ 30.426456][ C2] RSP: 0018:ffffc9000015fdf8 EFLAGS: 00000242 [ 30.426645][ C2] RAX: 00000000000bac57 RBX: 1ffff9200002bfc1 RCX: ffffffff851a48b5 [ 30.426949][ C2] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffff82aaa4a4 [ 30.427173][ C2] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c2709c [ 30.427396][ C2] R10: ffff8880361384e3 R11: ffff88803612d9b0 R12: 0000000000000000 [ 30.427694][ C2] R13: ffff888001b845c0 R14: dffffc0000000000 R15: 0000000000000000 [ 30.427918][ C2] ? ct_kernel_exit.constprop.0+0xc5/0xf0 [ 30.428069][ C2] ? cpuidle_idle_call+0x1f4/0x280 [ 30.428218][ C2] default_idle_call+0x6d/0xb0 [ 30.428519][ C2] cpuidle_idle_call+0x1f4/0x280 [ 30.428665][ C2] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 30.428811][ C2] ? tsc_verify_tsc_adjust+0x5e/0x2b0 [ 30.428958][ C2] do_idle+0xf9/0x160 [ 30.429146][ C2] cpu_startup_entry+0x54/0x60 [ 30.429291][ C2] start_secondary+0x21c/0x2b0 [ 30.429440][ C2] ? __pfx_start_secondary+0x10/0x10 [ 30.429587][ C2] common_startup_64+0x12c/0x138 [ 30.429812][ C2] [ 50.548869][ T701] pm_nl_ctl (701) used greatest stack depth: 23824 bytes left