[ 31.848814][ T245] ip (245) used greatest stack depth: 23344 bytes left [ 44.041946][ C0] [ 44.042163][ C0] ======================================================== [ 44.042424][ C0] WARNING: possible irq lock inversion dependency detected [ 44.042673][ C0] 6.9.0-rc1-virtme #1 Not tainted [ 44.042850][ C0] -------------------------------------------------------- [ 44.043110][ C0] swapper/0/0 just changed the state of lock: [ 44.043315][ C0] ffff8880027e3d80 (&ndev->lock){++-.}-{2:2}, at: addrconf_rs_timer+0xa9/0x730 [ 44.043620][ C0] but this lock took another, SOFTIRQ-unsafe lock in the past: [ 44.043865][ C0] (&p->alloc_lock){+.+.}-{2:2} [ 44.043869][ C0] [ 44.043869][ C0] [ 44.043869][ C0] and interrupts could create inverse lock ordering between them. [ 44.043869][ C0] [ 44.044478][ C0] [ 44.044478][ C0] other info that might help us debug this: [ 44.044725][ C0] Possible interrupt unsafe locking scenario: [ 44.044725][ C0] [ 44.044985][ C0] CPU0 CPU1 [ 44.045150][ C0] ---- ---- [ 44.045312][ C0] lock(&p->alloc_lock); [ 44.045441][ C0] local_irq_disable(); [ 44.045650][ C0] lock(&ndev->lock); [ 44.045854][ C0] lock(&p->alloc_lock); [ 44.046064][ C0] [ 44.046194][ C0] lock(&ndev->lock); [ 44.046346][ C0] [ 44.046346][ C0] *** DEADLOCK *** [ 44.046346][ C0] [ 44.046599][ C0] 1 lock held by swapper/0/0: [ 44.046765][ C0] #0: ffffc90000007b68 ((&ndev->rs_timer)){+.-.}-{0:0}, at: call_timer_fn+0xe8/0x230 [ 44.047074][ C0] [ 44.047074][ C0] the shortest dependencies between 2nd lock and 1st lock: [ 44.047362][ C0] -> (&p->alloc_lock){+.+.}-{2:2} { [ 44.047531][ C0] HARDIRQ-ON-W at: [ 44.047662][ C0] __lock_acquire+0x797/0x1570 [ 44.047879][ C0] lock_acquire.part.0+0xeb/0x330 [ 44.048088][ C0] _raw_spin_lock+0x30/0x40 [ 44.048305][ C0] set_mems_allowed+0x1d/0x210 [ 44.048518][ C0] kernel_init_freeable+0x72/0x310 [ 44.048725][ C0] kernel_init+0x20/0x200 [ 44.048936][ C0] ret_from_fork+0x31/0x70 [ 44.049147][ C0] ret_from_fork_asm+0x1a/0x30 [ 44.049356][ C0] SOFTIRQ-ON-W at: [ 44.049487][ C0] __lock_acquire+0x797/0x1570 [ 44.049706][ C0] lock_acquire.part.0+0xeb/0x330 [ 44.049915][ C0] _raw_spin_lock+0x30/0x40 [ 44.050143][ C0] set_mems_allowed+0x1d/0x210 [ 44.050332][ C0] kernel_init_freeable+0x72/0x310 [ 44.050524][ C0] kernel_init+0x20/0x200 [ 44.050719][ C0] ret_from_fork+0x31/0x70 [ 44.050924][ C0] ret_from_fork_asm+0x1a/0x30 [ 44.051113][ C0] INITIAL USE at: [ 44.051228][ C0] __lock_acquire+0x797/0x1570 [ 44.051416][ C0] lock_acquire.part.0+0xeb/0x330 [ 44.051604][ C0] _raw_spin_lock+0x30/0x40 [ 44.051814][ C0] set_mems_allowed+0x1d/0x210 [ 44.052007][ C0] kernel_init_freeable+0x72/0x310 [ 44.052215][ C0] kernel_init+0x20/0x200 [ 44.052407][ C0] ret_from_fork+0x31/0x70 [ 44.052607][ C0] ret_from_fork_asm+0x1a/0x30 [ 44.052795][ C0] } [ 44.052873][ C0] ... key at: [] __key.387+0x0/0x40 [ 44.053115][ C0] ... acquired at: [ 44.053234][ C0] __lock_acquire+0xaf0/0x1570 [ 44.053386][ C0] lock_acquire.part.0+0xeb/0x330 [ 44.053539][ C0] _raw_spin_lock+0x30/0x40 [ 44.053689][ C0] __get_task_comm+0x27/0x70 [ 44.053843][ C0] ref_tracker_alloc+0x2ee/0x490 [ 44.053999][ C0] netdev_get_by_index+0x5e/0x80 [ 44.054152][ C0] fib6_nh_init+0x3d8/0x15b0 [ 44.054325][ C0] ip6_route_info_create+0xf18/0x17d0 [ 44.054491][ C0] addrconf_f6i_alloc+0x265/0x560 [ 44.054643][ C0] __ipv6_dev_ac_inc+0x25f/0xb10 [ 44.054797][ C0] addrconf_join_anycast+0x1c0/0x220 [ 44.054960][ C0] dev_forward_change+0x2a6/0x7b0 [ 44.055114][ C0] addrconf_fixup_forwarding+0x23f/0x460 [ 44.055304][ C0] addrconf_sysctl_forward+0x212/0x2b0 [ 44.055460][ C0] proc_sys_call_handler+0x403/0x5e0 [ 44.055615][ C0] vfs_write+0x9e5/0x10a0 [ 44.055769][ C0] ksys_write+0xf5/0x1e0 [ 44.055925][ C0] do_syscall_64+0xc6/0x1e0 [ 44.056080][ C0] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 44.056268][ C0] [ 44.056345][ C0] -> (&ndev->lock){++-.}-{2:2} { [ 44.056502][ C0] HARDIRQ-ON-W at: [ 44.056617][ C0] __lock_acquire+0x797/0x1570 [ 44.056813][ C0] lock_acquire.part.0+0xeb/0x330 [ 44.057007][ C0] _raw_write_lock_bh+0x38/0x50 [ 44.057204][ C0] addrconf_permanent_addr+0x6e/0x670 [ 44.057393][ C0] addrconf_notify+0x749/0xd60 [ 44.057584][ C0] notifier_call_chain+0xcd/0x150 [ 44.057777][ C0] __dev_notify_flags+0xe6/0x250 [ 44.057975][ C0] dev_change_flags+0xec/0x160 [ 44.058164][ C0] do_setlink+0x7d6/0x21e0 [ 44.058367][ C0] __rtnl_newlink+0xaa7/0xd80 [ 44.058561][ C0] rtnl_newlink+0x63/0xa0 [ 44.058752][ C0] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 44.058939][ C0] netlink_rcv_skb+0x130/0x360 [ 44.059167][ C0] netlink_unicast+0x449/0x710 [ 44.059387][ C0] netlink_sendmsg+0x723/0xbe0 [ 44.059576][ C0] ____sys_sendmsg+0x7b2/0xa10 [ 44.059768][ C0] ___sys_sendmsg+0xee/0x170 [ 44.059960][ C0] __sys_sendmsg+0xcd/0x170 [ 44.060149][ C0] do_syscall_64+0xc6/0x1e0 [ 44.060341][ C0] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 44.060574][ C0] HARDIRQ-ON-R at: [ 44.060687][ C0] __lock_acquire+0x797/0x1570 [ 44.060876][ C0] lock_acquire.part.0+0xeb/0x330 [ 44.061064][ C0] _raw_read_lock_bh+0x44/0x80 [ 44.061264][ C0] inet6_fill_ifla6_attrs+0x516/0x740 [ 44.061454][ C0] inet6_fill_link_af+0x5e/0xe0 [ 44.061662][ C0] rtnl_fill_ifinfo+0x1612/0x29e0 [ 44.061856][ C0] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 44.062044][ C0] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 44.062295][ C0] rtmsg_ifinfo+0x5b/0xa0 [ 44.062488][ C0] register_netdevice+0x1177/0x1690 [ 44.062690][ C0] register_netdev+0x20/0x40 [ 44.062886][ C0] sit_init_net+0x250/0x4f0 [ 44.063081][ C0] ops_init+0x9b/0x560 [ 44.063244][ C0] register_pernet_operations+0x2db/0x710 [ 44.063531][ C0] register_pernet_device+0x2a/0x60 [ 44.063727][ C0] sit_init+0x23/0xe0 [ 44.063885][ C0] do_one_initcall+0x8d/0x1e0 [ 44.064080][ C0] do_initcalls+0x1b2/0x3e0 [ 44.064281][ C0] kernel_init_freeable+0x232/0x310 [ 44.064478][ C0] kernel_init+0x20/0x200 [ 44.064716][ C0] ret_from_fork+0x31/0x70 [ 44.065058][ C0] ret_from_fork_asm+0x1a/0x30 [ 44.065281][ C0] IN-SOFTIRQ-W at: [ 44.065416][ C0] __lock_acquire+0x797/0x1570 [ 44.065626][ C0] lock_acquire.part.0+0xeb/0x330 [ 44.065849][ C0] _raw_write_lock+0x30/0x40 [ 44.066069][ C0] addrconf_rs_timer+0xa9/0x730 [ 44.066288][ C0] call_timer_fn+0x13b/0x230 [ 44.066502][ C0] __run_timers+0x545/0x810 [ 44.066711][ C0] timer_expire_remote+0x9b/0xe0 [ 44.066924][ C0] tmigr_handle_remote_cpu+0x270/0x430 [ 44.067140][ C0] tmigr_handle_remote_up+0x19f/0x2e0 [ 44.067360][ C0] tmigr_handle_remote+0x21d/0x3a0 [ 44.067586][ C0] __do_softirq+0x1f8/0x5df [ 44.067799][ C0] irq_exit_rcu+0x97/0xc0 [ 44.068106][ C0] sysvec_apic_timer_interrupt+0x75/0x80 [ 44.068456][ C0] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 44.068791][ C0] default_idle+0xf/0x20 [ 44.069135][ C0] default_idle_call+0x6d/0xb0 [ 44.069422][ C0] cpuidle_idle_call+0x1f4/0x280 [ 44.069766][ C0] do_idle+0xf9/0x160 [ 44.070026][ C0] cpu_startup_entry+0x54/0x60 [ 44.070330][ C0] rest_init+0x14f/0x260 [ 44.070630][ C0] start_kernel+0x318/0x3d0 [ 44.070954][ C0] x86_64_start_reservations+0x18/0x30 [ 44.071254][ C0] x86_64_start_kernel+0xba/0x110 [ 44.071549][ C0] common_startup_64+0x12c/0x138 [ 44.071853][ C0] INITIAL USE at: [ 44.072029][ C0] __lock_acquire+0x797/0x1570 [ 44.072325][ C0] lock_acquire.part.0+0xeb/0x330 [ 44.072622][ C0] _raw_write_lock_bh+0x38/0x50 [ 44.072918][ C0] addrconf_permanent_addr+0x6e/0x670 [ 44.073211][ C0] addrconf_notify+0x749/0xd60 [ 44.073513][ C0] notifier_call_chain+0xcd/0x150 [ 44.073827][ C0] __dev_notify_flags+0xe6/0x250 [ 44.074155][ C0] dev_change_flags+0xec/0x160 [ 44.074471][ C0] do_setlink+0x7d6/0x21e0 [ 44.074793][ C0] __rtnl_newlink+0xaa7/0xd80 [ 44.075138][ C0] rtnl_newlink+0x63/0xa0 [ 44.075445][ C0] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 44.075742][ C0] netlink_rcv_skb+0x130/0x360 [ 44.076047][ C0] netlink_unicast+0x449/0x710 [ 44.076344][ C0] netlink_sendmsg+0x723/0xbe0 [ 44.076652][ C0] ____sys_sendmsg+0x7b2/0xa10 [ 44.076955][ C0] ___sys_sendmsg+0xee/0x170 [ 44.077297][ C0] __sys_sendmsg+0xcd/0x170 [ 44.077620][ C0] do_syscall_64+0xc6/0x1e0 [ 44.077905][ C0] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 44.078247][ C0] INITIAL READ USE at: [ 44.078412][ C0] __lock_acquire+0x797/0x1570 [ 44.078719][ C0] lock_acquire.part.0+0xeb/0x330 [ 44.079021][ C0] _raw_read_lock_bh+0x44/0x80 [ 44.079235][ C0] inet6_fill_ifla6_attrs+0x516/0x740 [ 44.079493][ C0] inet6_fill_link_af+0x5e/0xe0 [ 44.079727][ C0] rtnl_fill_ifinfo+0x1612/0x29e0 [ 44.079957][ C0] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 44.080324][ C0] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 44.080651][ C0] rtmsg_ifinfo+0x5b/0xa0 [ 44.080959][ C0] register_netdevice+0x1177/0x1690 [ 44.081341][ C0] register_netdev+0x20/0x40 [ 44.081659][ C0] sit_init_net+0x250/0x4f0 [ 44.082017][ C0] ops_init+0x9b/0x560 [ 44.082322][ C0] register_pernet_operations+0x2db/0x710 [ 44.082684][ C0] register_pernet_device+0x2a/0x60 [ 44.083042][ C0] sit_init+0x23/0xe0 [ 44.083359][ C0] do_one_initcall+0x8d/0x1e0 [ 44.083677][ C0] do_initcalls+0x1b2/0x3e0 [ 44.083982][ C0] kernel_init_freeable+0x232/0x310 [ 44.084351][ C0] kernel_init+0x20/0x200 [ 44.084649][ C0] ret_from_fork+0x31/0x70 [ 44.084992][ C0] ret_from_fork_asm+0x1a/0x30 [ 44.085296][ C0] } [ 44.085420][ C0] ... key at: [] __key.37+0x0/0x40 [ 44.085783][ C0] ... acquired at: [ 44.086017][ C0] mark_lock+0x28d/0x3e0 [ 44.086266][ C0] mark_usage+0xd9/0x2a0 [ 44.086510][ C0] __lock_acquire+0x797/0x1570 [ 44.086746][ C0] lock_acquire.part.0+0xeb/0x330 [ 44.086988][ C0] _raw_write_lock+0x30/0x40 [ 44.087224][ C0] addrconf_rs_timer+0xa9/0x730 [ 44.087461][ C0] call_timer_fn+0x13b/0x230 [ 44.087712][ C0] __run_timers+0x545/0x810 [ 44.087954][ C0] timer_expire_remote+0x9b/0xe0 [ 44.088224][ C0] tmigr_handle_remote_cpu+0x270/0x430 [ 44.088467][ C0] tmigr_handle_remote_up+0x19f/0x2e0 [ 44.088706][ C0] tmigr_handle_remote+0x21d/0x3a0 [ 44.088958][ C0] __do_softirq+0x1f8/0x5df [ 44.089206][ C0] irq_exit_rcu+0x97/0xc0 [ 44.089473][ C0] sysvec_apic_timer_interrupt+0x75/0x80 [ 44.089771][ C0] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 44.090068][ C0] default_idle+0xf/0x20 [ 44.090486][ C0] default_idle_call+0x6d/0xb0 [ 44.090727][ C0] cpuidle_idle_call+0x1f4/0x280 [ 44.090967][ C0] do_idle+0xf9/0x160 [ 44.091147][ C0] cpu_startup_entry+0x54/0x60 [ 44.091382][ C0] rest_init+0x14f/0x260 [ 44.091755][ C0] start_kernel+0x318/0x3d0 [ 44.091972][ C0] x86_64_start_reservations+0x18/0x30 [ 44.092215][ C0] x86_64_start_kernel+0xba/0x110 [ 44.092463][ C0] common_startup_64+0x12c/0x138 [ 44.092832][ C0] [ 44.092910][ C0] [ 44.092910][ C0] stack backtrace: [ 44.093129][ C0] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 6.9.0-rc1-virtme #1 [ 44.093404][ C0] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 44.093838][ C0] Call Trace: [ 44.093958][ C0] [ 44.094042][ C0] dump_stack_lvl+0x82/0xd0 [ 44.094205][ C0] print_irq_inversion_bug.part.0+0x3d9/0x570 [ 44.094519][ C0] ? kernel_text_address+0x17/0xe0 [ 44.094683][ C0] ? __pfx_print_irq_inversion_bug.part.0+0x10/0x10 [ 44.094896][ C0] ? __pfx_usage_skip+0x10/0x10 [ 44.095051][ C0] ? __pfx_usage_match+0x10/0x10 [ 44.095305][ C0] ? arch_stack_walk+0x8c/0xf0 [ 44.095459][ C0] mark_lock_irq+0x4cd/0xa10 [ 44.095620][ C0] ? common_startup_64+0x12c/0x138 [ 44.095777][ C0] ? __pfx_mark_lock_irq+0x10/0x10 [ 44.096039][ C0] ? __pfx_stack_trace_save+0x10/0x10 [ 44.096192][ C0] ? save_trace+0x8f/0x5b0 [ 44.096366][ C0] mark_lock+0x28d/0x3e0 [ 44.096493][ C0] ? __pfx_stack_trace_save+0x10/0x10 [ 44.096843][ C0] mark_usage+0xd9/0x2a0 [ 44.096959][ C0] __lock_acquire+0x797/0x1570 [ 44.097136][ C0] ? __pfx_validate_chain+0x10/0x10 [ 44.097306][ C0] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 44.097461][ C0] lock_acquire.part.0+0xeb/0x330 [ 44.097707][ C0] ? addrconf_rs_timer+0xa9/0x730 [ 44.097874][ C0] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 44.098029][ C0] ? trace_lock_acquire+0x135/0x1c0 [ 44.098184][ C0] ? addrconf_rs_timer+0xa9/0x730 [ 44.098438][ C0] ? lock_acquire+0x32/0xc0 [ 44.098595][ C0] ? addrconf_rs_timer+0xa9/0x730 [ 44.098748][ C0] _raw_write_lock+0x30/0x40 [ 44.098900][ C0] ? addrconf_rs_timer+0xa9/0x730 [ 44.099143][ C0] addrconf_rs_timer+0xa9/0x730 [ 44.099299][ C0] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 44.099455][ C0] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 44.099603][ C0] ? call_timer_fn+0xe8/0x230 [ 44.099757][ C0] ? lock_acquire+0x32/0xc0 [ 44.100002][ C0] ? call_timer_fn+0xe8/0x230 [ 44.100165][ C0] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 44.100320][ C0] call_timer_fn+0x13b/0x230 [ 44.100472][ C0] ? call_timer_fn+0xe8/0x230 [ 44.100715][ C0] ? call_timer_fn+0xe8/0x230 [ 44.100864][ C0] ? __pfx_call_timer_fn+0x10/0x10 [ 44.101013][ C0] ? mark_lock+0x38/0x3e0 [ 44.101129][ C0] __run_timers+0x545/0x810 [ 44.101375][ C0] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 44.101529][ C0] ? __pfx___run_timers+0x10/0x10 [ 44.101677][ C0] ? __lock_release+0x103/0x460 [ 44.101828][ C0] ? do_raw_spin_lock+0x131/0x270 [ 44.101980][ C0] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 44.102220][ C0] ? lock_acquire+0x32/0xc0 [ 44.102408][ C0] ? timer_expire_remote+0x93/0xe0 [ 44.102565][ C0] timer_expire_remote+0x9b/0xe0 [ 44.102715][ C0] tmigr_handle_remote_cpu+0x270/0x430 [ 44.102962][ C0] ? __pfx_tmigr_handle_remote_cpu+0x10/0x10 [ 44.103164][ C0] tmigr_handle_remote_up+0x19f/0x2e0 [ 44.103329][ C0] tmigr_handle_remote+0x21d/0x3a0 [ 44.103483][ C0] ? do_raw_spin_lock+0x131/0x270 [ 44.103730][ C0] ? __pfx_tmigr_handle_remote+0x10/0x10 [ 44.103884][ C0] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 44.104036][ C0] ? lockdep_hardirqs_on_prepare.part.0+0x14f/0x370 [ 44.104232][ C0] __do_softirq+0x1f8/0x5df [ 44.104490][ C0] irq_exit_rcu+0x97/0xc0 [ 44.104607][ C0] sysvec_apic_timer_interrupt+0x75/0x80 [ 44.104760][ C0] [ 44.104840][ C0] [ 44.105005][ C0] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 44.105317][ C0] RIP: 0010:default_idle+0xf/0x20 [ 44.105495][ 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 [ 44.106185][ C0] RSP: 0018:ffffffffb5807e00 EFLAGS: 00000246 [ 44.106396][ C0] RAX: 000000000009c52b RBX: 1ffffffff6b00fc2 RCX: ffffffffb490f9e5 [ 44.106643][ C0] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffffb22aa4a4 [ 44.107098][ C0] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c0709c [ 44.107451][ C0] R10: ffff8880360384e3 R11: ffff88803602d9b0 R12: 0000000000000000 [ 44.107691][ C0] R13: ffffffffb581d000 R14: dffffc0000000000 R15: 0000000000014770 [ 44.108024][ C0] ? ct_kernel_exit.constprop.0+0xc5/0xf0 [ 44.108179][ C0] ? cpuidle_idle_call+0x1f4/0x280 [ 44.108358][ C0] default_idle_call+0x6d/0xb0 [ 44.108521][ C0] cpuidle_idle_call+0x1f4/0x280 [ 44.108797][ C0] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 44.108967][ C0] ? tsc_verify_tsc_adjust+0x5e/0x2b0 [ 44.109139][ C0] do_idle+0xf9/0x160 [ 44.109264][ C0] cpu_startup_entry+0x54/0x60 [ 44.109610][ C0] rest_init+0x14f/0x260 [ 44.109737][ C0] start_kernel+0x318/0x3d0 [ 44.109903][ C0] x86_64_start_reservations+0x18/0x30 [ 44.110069][ C0] x86_64_start_kernel+0xba/0x110 [ 44.110232][ C0] common_startup_64+0x12c/0x138 [ 44.110494][ C0]