[ 24.766189][ T259] ip (259) used greatest stack depth: 23168 bytes left [ 35.627550][ C2] [ 35.627714][ C2] ======================================================== [ 35.627934][ C2] WARNING: possible irq lock inversion dependency detected [ 35.628212][ C2] 6.9.0-rc1-virtme #1 Not tainted [ 35.628348][ C2] -------------------------------------------------------- [ 35.628547][ C2] swapper/2/0 just changed the state of lock: [ 35.628717][ C2] ffff88800601ed80 (&ndev->lock){++-.}-{2:2}, at: addrconf_rs_timer+0xa9/0x730 [ 35.628957][ C2] but this lock took another, SOFTIRQ-unsafe lock in the past: [ 35.629149][ C2] (&p->alloc_lock){+.+.}-{2:2} [ 35.629153][ C2] [ 35.629153][ C2] [ 35.629153][ C2] and interrupts could create inverse lock ordering between them. [ 35.629153][ C2] [ 35.629624][ C2] [ 35.629624][ C2] other info that might help us debug this: [ 35.629822][ C2] Possible interrupt unsafe locking scenario: [ 35.629822][ C2] [ 35.630015][ C2] CPU0 CPU1 [ 35.630148][ C2] ---- ---- [ 35.630277][ C2] lock(&p->alloc_lock); [ 35.630377][ C2] local_irq_disable(); [ 35.630543][ C2] lock(&ndev->lock); [ 35.630709][ C2] lock(&p->alloc_lock); [ 35.630875][ C2] [ 35.630995][ C2] lock(&ndev->lock); [ 35.631100][ C2] [ 35.631100][ C2] *** DEADLOCK *** [ 35.631100][ C2] [ 35.631297][ C2] 1 lock held by swapper/2/0: [ 35.631430][ C2] #0: ffffc90000230d68 ((&ndev->rs_timer)){+.-.}-{0:0}, at: call_timer_fn+0xe8/0x230 [ 35.631734][ C2] [ 35.631734][ C2] the shortest dependencies between 2nd lock and 1st lock: [ 35.631970][ C2] -> (&p->alloc_lock){+.+.}-{2:2} { [ 35.632109][ C2] HARDIRQ-ON-W at: [ 35.632212][ C2] __lock_acquire+0x797/0x1570 [ 35.632401][ C2] lock_acquire.part.0+0xeb/0x330 [ 35.632569][ C2] _raw_spin_lock+0x30/0x40 [ 35.632737][ C2] set_mems_allowed+0x1d/0x210 [ 35.632907][ C2] kernel_init_freeable+0x72/0x310 [ 35.633074][ C2] kernel_init+0x20/0x200 [ 35.633242][ C2] ret_from_fork+0x31/0x70 [ 35.633411][ C2] ret_from_fork_asm+0x1a/0x30 [ 35.633583][ C2] SOFTIRQ-ON-W at: [ 35.633681][ C2] __lock_acquire+0x797/0x1570 [ 35.633842][ C2] lock_acquire.part.0+0xeb/0x330 [ 35.634007][ C2] _raw_spin_lock+0x30/0x40 [ 35.634179][ C2] set_mems_allowed+0x1d/0x210 [ 35.634356][ C2] kernel_init_freeable+0x72/0x310 [ 35.634521][ C2] kernel_init+0x20/0x200 [ 35.634684][ C2] ret_from_fork+0x31/0x70 [ 35.634852][ C2] ret_from_fork_asm+0x1a/0x30 [ 35.635014][ C2] INITIAL USE at: [ 35.635113][ C2] __lock_acquire+0x797/0x1570 [ 35.635279][ C2] lock_acquire.part.0+0xeb/0x330 [ 35.635450][ C2] _raw_spin_lock+0x30/0x40 [ 35.635614][ C2] set_mems_allowed+0x1d/0x210 [ 35.635777][ C2] kernel_init_freeable+0x72/0x310 [ 35.635941][ C2] kernel_init+0x20/0x200 [ 35.636105][ C2] ret_from_fork+0x31/0x70 [ 35.636270][ C2] ret_from_fork_asm+0x1a/0x30 [ 35.636438][ C2] } [ 35.636506][ C2] ... key at: [] __key.387+0x0/0x40 [ 35.636706][ C2] ... acquired at: [ 35.636805][ C2] __lock_acquire+0xaf0/0x1570 [ 35.636941][ C2] lock_acquire.part.0+0xeb/0x330 [ 35.637074][ C2] _raw_spin_lock+0x30/0x40 [ 35.637206][ C2] __get_task_comm+0x27/0x70 [ 35.637341][ C2] ref_tracker_alloc+0x2ee/0x490 [ 35.637486][ C2] netdev_get_by_index+0x5e/0x80 [ 35.637629][ C2] fib6_nh_init+0x3d8/0x15b0 [ 35.637765][ C2] ip6_route_info_create+0xf18/0x17d0 [ 35.637897][ C2] addrconf_f6i_alloc+0x265/0x560 [ 35.638030][ C2] __ipv6_dev_ac_inc+0x25f/0xb10 [ 35.638166][ C2] addrconf_join_anycast+0x1c0/0x220 [ 35.638298][ C2] dev_forward_change+0x2a6/0x7b0 [ 35.638442][ C2] addrconf_fixup_forwarding+0x23f/0x460 [ 35.638607][ C2] addrconf_sysctl_forward+0x212/0x2b0 [ 35.638741][ C2] proc_sys_call_handler+0x403/0x5e0 [ 35.638872][ C2] vfs_write+0x9e5/0x10a0 [ 35.639006][ C2] ksys_write+0xf5/0x1e0 [ 35.639137][ C2] do_syscall_64+0xc6/0x1e0 [ 35.639278][ C2] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 35.639445][ C2] [ 35.639513][ C2] -> (&ndev->lock){++-.}-{2:2} { [ 35.639654][ C2] HARDIRQ-ON-W at: [ 35.639754][ C2] __lock_acquire+0x797/0x1570 [ 35.639922][ C2] lock_acquire.part.0+0xeb/0x330 [ 35.640086][ C2] _raw_write_lock_bh+0x38/0x50 [ 35.640252][ C2] addrconf_permanent_addr+0x6e/0x670 [ 35.640425][ C2] addrconf_notify+0x749/0xd60 [ 35.640593][ C2] notifier_call_chain+0xcd/0x150 [ 35.640758][ C2] __dev_notify_flags+0xe6/0x250 [ 35.640933][ C2] dev_change_flags+0xec/0x160 [ 35.641113][ C2] do_setlink+0x7d6/0x21e0 [ 35.641277][ C2] __rtnl_newlink+0xaa7/0xd80 [ 35.641441][ C2] rtnl_newlink+0x63/0xa0 [ 35.641606][ C2] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 35.641771][ C2] netlink_rcv_skb+0x130/0x360 [ 35.641943][ C2] netlink_unicast+0x449/0x710 [ 35.642107][ C2] netlink_sendmsg+0x723/0xbe0 [ 35.642272][ C2] ____sys_sendmsg+0x7b2/0xa10 [ 35.642435][ C2] ___sys_sendmsg+0xee/0x170 [ 35.642604][ C2] __sys_sendmsg+0xcd/0x170 [ 35.642772][ C2] do_syscall_64+0xc6/0x1e0 [ 35.642951][ C2] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 35.643149][ C2] HARDIRQ-ON-R at: [ 35.643248][ C2] __lock_acquire+0x797/0x1570 [ 35.643421][ C2] lock_acquire.part.0+0xeb/0x330 [ 35.643584][ C2] _raw_read_lock_bh+0x44/0x80 [ 35.643748][ C2] inet6_fill_ifla6_attrs+0x516/0x740 [ 35.643918][ C2] inet6_fill_link_af+0x5e/0xe0 [ 35.644088][ C2] rtnl_fill_ifinfo+0x1612/0x29e0 [ 35.644249][ C2] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 35.644414][ C2] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 35.644611][ C2] rtmsg_ifinfo+0x5b/0xa0 [ 35.644777][ C2] register_netdevice+0x1177/0x1690 [ 35.644944][ C2] register_netdev+0x20/0x40 [ 35.645107][ C2] sit_init_net+0x250/0x4f0 [ 35.645273][ C2] ops_init+0x9b/0x560 [ 35.645403][ C2] register_pernet_operations+0x2db/0x710 [ 35.645610][ C2] register_pernet_device+0x2a/0x60 [ 35.645773][ C2] sit_init+0x23/0xe0 [ 35.645908][ C2] do_one_initcall+0x8d/0x1e0 [ 35.646076][ C2] do_initcalls+0x1b2/0x3e0 [ 35.646243][ C2] kernel_init_freeable+0x232/0x310 [ 35.646408][ C2] kernel_init+0x20/0x200 [ 35.646575][ C2] ret_from_fork+0x31/0x70 [ 35.646743][ C2] ret_from_fork_asm+0x1a/0x30 [ 35.646908][ C2] IN-SOFTIRQ-W at: [ 35.647009][ C2] __lock_acquire+0x797/0x1570 [ 35.647177][ C2] lock_acquire.part.0+0xeb/0x330 [ 35.647344][ C2] _raw_write_lock+0x30/0x40 [ 35.647509][ C2] addrconf_rs_timer+0xa9/0x730 [ 35.647672][ C2] call_timer_fn+0x13b/0x230 [ 35.647839][ C2] __run_timers+0x545/0x810 [ 35.648003][ C2] run_timer_softirq+0xe8/0x1b0 [ 35.648171][ C2] __do_softirq+0x1f8/0x5df [ 35.648336][ C2] irq_exit_rcu+0x97/0xc0 [ 35.648502][ C2] sysvec_apic_timer_interrupt+0x75/0x80 [ 35.648704][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 35.648902][ C2] default_idle+0xf/0x20 [ 35.649067][ C2] default_idle_call+0x6d/0xb0 [ 35.649235][ C2] cpuidle_idle_call+0x1f4/0x280 [ 35.649399][ C2] do_idle+0xf9/0x160 [ 35.649532][ C2] cpu_startup_entry+0x54/0x60 [ 35.649695][ C2] start_secondary+0x21c/0x2b0 [ 35.649863][ C2] common_startup_64+0x12c/0x138 [ 35.650026][ C2] INITIAL USE at: [ 35.650126][ C2] __lock_acquire+0x797/0x1570 [ 35.650300][ C2] lock_acquire.part.0+0xeb/0x330 [ 35.650463][ C2] _raw_write_lock_bh+0x38/0x50 [ 35.650631][ C2] addrconf_permanent_addr+0x6e/0x670 [ 35.650795][ C2] addrconf_notify+0x749/0xd60 [ 35.650970][ C2] notifier_call_chain+0xcd/0x150 [ 35.651134][ C2] __dev_notify_flags+0xe6/0x250 [ 35.651302][ C2] dev_change_flags+0xec/0x160 [ 35.651476][ C2] do_setlink+0x7d6/0x21e0 [ 35.651641][ C2] __rtnl_newlink+0xaa7/0xd80 [ 35.651810][ C2] rtnl_newlink+0x63/0xa0 [ 35.651975][ C2] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 35.652145][ C2] netlink_rcv_skb+0x130/0x360 [ 35.652320][ C2] netlink_unicast+0x449/0x710 [ 35.652491][ C2] netlink_sendmsg+0x723/0xbe0 [ 35.652654][ C2] ____sys_sendmsg+0x7b2/0xa10 [ 35.652817][ C2] ___sys_sendmsg+0xee/0x170 [ 35.652983][ C2] __sys_sendmsg+0xcd/0x170 [ 35.653154][ C2] do_syscall_64+0xc6/0x1e0 [ 35.653321][ C2] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 35.653523][ C2] INITIAL READ USE at: [ 35.653622][ C2] __lock_acquire+0x797/0x1570 [ 35.653791][ C2] lock_acquire.part.0+0xeb/0x330 [ 35.653955][ C2] _raw_read_lock_bh+0x44/0x80 [ 35.654122][ C2] inet6_fill_ifla6_attrs+0x516/0x740 [ 35.654320][ C2] inet6_fill_link_af+0x5e/0xe0 [ 35.654494][ C2] rtnl_fill_ifinfo+0x1612/0x29e0 [ 35.654661][ C2] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 35.654855][ C2] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 35.655051][ C2] rtmsg_ifinfo+0x5b/0xa0 [ 35.655220][ C2] register_netdevice+0x1177/0x1690 [ 35.655416][ C2] register_netdev+0x20/0x40 [ 35.655582][ C2] sit_init_net+0x250/0x4f0 [ 35.655746][ C2] ops_init+0x9b/0x560 [ 35.655912][ C2] register_pernet_operations+0x2db/0x710 [ 35.656107][ C2] register_pernet_device+0x2a/0x60 [ 35.656308][ C2] sit_init+0x23/0xe0 [ 35.656471][ C2] do_one_initcall+0x8d/0x1e0 [ 35.656644][ C2] do_initcalls+0x1b2/0x3e0 [ 35.656816][ C2] kernel_init_freeable+0x232/0x310 [ 35.657013][ C2] kernel_init+0x20/0x200 [ 35.657176][ C2] ret_from_fork+0x31/0x70 [ 35.657340][ C2] ret_from_fork_asm+0x1a/0x30 [ 35.657508][ C2] } [ 35.657576][ C2] ... key at: [] __key.37+0x0/0x40 [ 35.657775][ C2] ... acquired at: [ 35.657872][ C2] mark_lock+0x28d/0x3e0 [ 35.658013][ C2] mark_usage+0xd9/0x2a0 [ 35.658150][ C2] __lock_acquire+0x797/0x1570 [ 35.658280][ C2] lock_acquire.part.0+0xeb/0x330 [ 35.658410][ C2] _raw_write_lock+0x30/0x40 [ 35.658542][ C2] addrconf_rs_timer+0xa9/0x730 [ 35.658675][ C2] call_timer_fn+0x13b/0x230 [ 35.658815][ C2] __run_timers+0x545/0x810 [ 35.658946][ C2] run_timer_softirq+0xe8/0x1b0 [ 35.659078][ C2] __do_softirq+0x1f8/0x5df [ 35.659211][ C2] irq_exit_rcu+0x97/0xc0 [ 35.659343][ C2] sysvec_apic_timer_interrupt+0x75/0x80 [ 35.659511][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 35.659672][ C2] default_idle+0xf/0x20 [ 35.659803][ C2] default_idle_call+0x6d/0xb0 [ 35.659934][ C2] cpuidle_idle_call+0x1f4/0x280 [ 35.660069][ C2] do_idle+0xf9/0x160 [ 35.660168][ C2] cpu_startup_entry+0x54/0x60 [ 35.660300][ C2] start_secondary+0x21c/0x2b0 [ 35.660432][ C2] common_startup_64+0x12c/0x138 [ 35.660564][ C2] [ 35.660631][ C2] [ 35.660631][ C2] stack backtrace: [ 35.660793][ C2] CPU: 2 PID: 0 Comm: swapper/2 Not tainted 6.9.0-rc1-virtme #1 [ 35.661002][ C2] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 35.661293][ C2] Call Trace: [ 35.661395][ C2] [ 35.661465][ C2] dump_stack_lvl+0x82/0xd0 [ 35.661602][ C2] print_irq_inversion_bug.part.0+0x3d9/0x570 [ 35.661763][ C2] ? kernel_text_address+0x17/0xe0 [ 35.661896][ C2] ? __pfx_print_irq_inversion_bug.part.0+0x10/0x10 [ 35.662060][ C2] ? __pfx_usage_skip+0x10/0x10 [ 35.662195][ C2] ? __pfx_usage_match+0x10/0x10 [ 35.662328][ C2] ? arch_stack_walk+0x8c/0xf0 [ 35.662461][ C2] mark_lock_irq+0x4cd/0xa10 [ 35.662594][ C2] ? common_startup_64+0x12c/0x138 [ 35.662724][ C2] ? __pfx_mark_lock_irq+0x10/0x10 [ 35.662854][ C2] ? __pfx_stack_trace_save+0x10/0x10 [ 35.662987][ C2] ? save_trace+0x8f/0x5b0 [ 35.663120][ C2] mark_lock+0x28d/0x3e0 [ 35.663222][ C2] ? __pfx_stack_trace_save+0x10/0x10 [ 35.663351][ C2] mark_usage+0xd9/0x2a0 [ 35.663450][ C2] __lock_acquire+0x797/0x1570 [ 35.663582][ C2] ? __pfx_validate_chain+0x10/0x10 [ 35.663714][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 35.663844][ C2] lock_acquire.part.0+0xeb/0x330 [ 35.663974][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 35.664104][ C2] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 35.664238][ C2] ? trace_lock_acquire+0x135/0x1c0 [ 35.664368][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 35.664504][ C2] ? lock_acquire+0x32/0xc0 [ 35.664634][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 35.664766][ C2] _raw_write_lock+0x30/0x40 [ 35.664899][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 35.665029][ C2] addrconf_rs_timer+0xa9/0x730 [ 35.665159][ C2] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 35.665291][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 35.665424][ C2] ? call_timer_fn+0xe8/0x230 [ 35.665554][ C2] ? lock_acquire+0x32/0xc0 [ 35.665684][ C2] ? call_timer_fn+0xe8/0x230 [ 35.665815][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 35.665951][ C2] call_timer_fn+0x13b/0x230 [ 35.666081][ C2] ? call_timer_fn+0xe8/0x230 [ 35.666212][ C2] ? call_timer_fn+0xe8/0x230 [ 35.666342][ C2] ? __pfx_call_timer_fn+0x10/0x10 [ 35.666479][ C2] ? mark_lock+0x38/0x3e0 [ 35.666586][ C2] __run_timers+0x545/0x810 [ 35.666718][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 35.666850][ C2] ? __pfx___run_timers+0x10/0x10 [ 35.666980][ C2] ? do_raw_spin_lock+0x131/0x270 [ 35.667113][ C2] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 35.667244][ C2] ? lock_acquire+0x32/0xc0 [ 35.667374][ C2] ? run_timer_softirq+0xe0/0x1b0 [ 35.667507][ C2] run_timer_softirq+0xe8/0x1b0 [ 35.667643][ C2] __do_softirq+0x1f8/0x5df [ 35.667780][ C2] irq_exit_rcu+0x97/0xc0 [ 35.667879][ C2] sysvec_apic_timer_interrupt+0x75/0x80 [ 35.668017][ C2] [ 35.668084][ C2] [ 35.668153][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 35.668316][ C2] RIP: 0010:default_idle+0xf/0x20 [ 35.668456][ 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 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 [ 35.668925][ C2] RSP: 0018:ffffc9000015fdf8 EFLAGS: 00000246 [ 35.669095][ C2] RAX: 00000000000ff009 RBX: 1ffff9200002bfc1 RCX: ffffffff8cb0f9e5 [ 35.669304][ C2] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffff8a4aa4a4 [ 35.669497][ C2] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c2709c [ 35.669697][ C2] R10: ffff8880361384e3 R11: ffff88803612d9b0 R12: 0000000000000000 [ 35.669898][ C2] R13: ffff888001b7c5c0 R14: dffffc0000000000 R15: 0000000000000000 [ 35.670102][ C2] ? ct_kernel_exit.constprop.0+0xc5/0xf0 [ 35.670233][ C2] ? cpuidle_idle_call+0x1f4/0x280 [ 35.670366][ C2] default_idle_call+0x6d/0xb0 [ 35.670498][ C2] cpuidle_idle_call+0x1f4/0x280 [ 35.670638][ C2] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 35.670770][ C2] ? tsc_verify_tsc_adjust+0x5e/0x2b0 [ 35.670904][ C2] do_idle+0xf9/0x160 [ 35.671021][ C2] cpu_startup_entry+0x54/0x60 [ 35.671151][ C2] start_secondary+0x21c/0x2b0 [ 35.671282][ C2] ? __pfx_start_secondary+0x10/0x10 [ 35.671418][ C2] common_startup_64+0x12c/0x138 [ 35.671553][ C2]