[ 31.983188][ C2] [ 31.983385][ C2] ======================================================== [ 31.983589][ C2] WARNING: possible irq lock inversion dependency detected [ 31.983785][ C2] 6.9.0-rc1-virtme #1 Not tainted [ 31.983918][ C2] -------------------------------------------------------- [ 31.984116][ C2] swapper/2/0 just changed the state of lock: [ 31.984282][ C2] ffff888005b8d580 (&ndev->lock){++-.}-{2:2}, at: addrconf_rs_timer+0xa9/0x730 [ 31.984547][ C2] but this lock took another, SOFTIRQ-unsafe lock in the past: [ 31.984745][ C2] (&p->alloc_lock){+.+.}-{2:2} [ 31.984750][ C2] [ 31.984750][ C2] [ 31.984750][ C2] and interrupts could create inverse lock ordering between them. [ 31.984750][ C2] [ 31.985239][ C2] [ 31.985239][ C2] other info that might help us debug this: [ 31.985438][ C2] Possible interrupt unsafe locking scenario: [ 31.985438][ C2] [ 31.985646][ C2] CPU0 CPU1 [ 31.985781][ C2] ---- ---- [ 31.985915][ C2] lock(&p->alloc_lock); [ 31.986023][ C2] local_irq_disable(); [ 31.986198][ C2] lock(&ndev->lock); [ 31.986370][ C2] lock(&p->alloc_lock); [ 31.986548][ C2] [ 31.986648][ C2] lock(&ndev->lock); [ 31.986752][ C2] [ 31.986752][ C2] *** DEADLOCK *** [ 31.986752][ C2] [ 31.986947][ C2] 1 lock held by swapper/2/0: [ 31.987080][ C2] #0: ffffc90000230d68 ((&ndev->rs_timer)){+.-.}-{0:0}, at: call_timer_fn+0xe8/0x230 [ 31.987343][ C2] [ 31.987343][ C2] the shortest dependencies between 2nd lock and 1st lock: [ 31.987582][ C2] -> (&p->alloc_lock){+.+.}-{2:2} { [ 31.987722][ C2] HARDIRQ-ON-W at: [ 31.987824][ C2] __lock_acquire+0x797/0x1570 [ 31.987997][ C2] lock_acquire.part.0+0xeb/0x330 [ 31.988163][ C2] _raw_spin_lock+0x30/0x40 [ 31.988335][ C2] set_mems_allowed+0x1d/0x210 [ 31.988507][ C2] kernel_init_freeable+0x72/0x310 [ 31.988679][ C2] kernel_init+0x20/0x200 [ 31.988844][ C2] ret_from_fork+0x31/0x70 [ 31.989013][ C2] ret_from_fork_asm+0x1a/0x30 [ 31.989189][ C2] SOFTIRQ-ON-W at: [ 31.989291][ C2] __lock_acquire+0x797/0x1570 [ 31.989456][ C2] lock_acquire.part.0+0xeb/0x330 [ 31.989623][ C2] _raw_spin_lock+0x30/0x40 [ 31.989790][ C2] set_mems_allowed+0x1d/0x210 [ 31.989956][ C2] kernel_init_freeable+0x72/0x310 [ 31.990121][ C2] kernel_init+0x20/0x200 [ 31.990290][ C2] ret_from_fork+0x31/0x70 [ 31.990456][ C2] ret_from_fork_asm+0x1a/0x30 [ 31.990619][ C2] INITIAL USE at: [ 31.990719][ C2] __lock_acquire+0x797/0x1570 [ 31.990881][ C2] lock_acquire.part.0+0xeb/0x330 [ 31.991048][ C2] _raw_spin_lock+0x30/0x40 [ 31.991212][ C2] set_mems_allowed+0x1d/0x210 [ 31.991382][ C2] kernel_init_freeable+0x72/0x310 [ 31.991551][ C2] kernel_init+0x20/0x200 [ 31.991713][ C2] ret_from_fork+0x31/0x70 [ 31.991883][ C2] ret_from_fork_asm+0x1a/0x30 [ 31.992047][ C2] } [ 31.992116][ C2] ... key at: [] __key.387+0x0/0x40 [ 31.992320][ C2] ... acquired at: [ 31.992423][ C2] __lock_acquire+0xaf0/0x1570 [ 31.992558][ C2] lock_acquire.part.0+0xeb/0x330 [ 31.992690][ C2] _raw_spin_lock+0x30/0x40 [ 31.992822][ C2] __get_task_comm+0x27/0x70 [ 31.992960][ C2] ref_tracker_alloc+0x2ee/0x490 [ 31.993098][ C2] netdev_get_by_index+0x5e/0x80 [ 31.993235][ C2] fib6_nh_init+0x3d8/0x15b0 [ 31.993378][ C2] ip6_route_info_create+0xf18/0x17d0 [ 31.993511][ C2] ip6_route_add+0x1c/0x140 [ 31.993646][ C2] addrconf_prefix_route+0x1cc/0x2b0 [ 31.993781][ C2] addrconf_permanent_addr+0x32f/0x670 [ 31.993912][ C2] addrconf_notify+0x749/0xd60 [ 31.994045][ C2] notifier_call_chain+0xcd/0x150 [ 31.994181][ C2] __dev_notify_flags+0xe6/0x250 [ 31.994314][ C2] dev_change_flags+0xec/0x160 [ 31.994451][ C2] do_setlink+0x7d6/0x21e0 [ 31.994586][ C2] __rtnl_newlink+0xaa7/0xd80 [ 31.994725][ C2] rtnl_newlink+0x63/0xa0 [ 31.994857][ C2] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 31.994991][ C2] netlink_rcv_skb+0x130/0x360 [ 31.995126][ C2] netlink_unicast+0x449/0x710 [ 31.995260][ C2] netlink_sendmsg+0x723/0xbe0 [ 31.995397][ C2] ____sys_sendmsg+0x7b2/0xa10 [ 31.995529][ C2] ___sys_sendmsg+0xee/0x170 [ 31.995667][ C2] __sys_sendmsg+0xcd/0x170 [ 31.995799][ C2] do_syscall_64+0xc6/0x1e0 [ 31.995937][ C2] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 31.996107][ C2] [ 31.996175][ C2] -> (&ndev->lock){++-.}-{2:2} { [ 31.996310][ C2] HARDIRQ-ON-W at: [ 31.996410][ C2] __lock_acquire+0x797/0x1570 [ 31.996579][ C2] lock_acquire.part.0+0xeb/0x330 [ 31.996744][ C2] _raw_write_lock_bh+0x38/0x50 [ 31.996914][ C2] addrconf_permanent_addr+0x6e/0x670 [ 31.997159][ C2] addrconf_notify+0x749/0xd60 [ 31.997327][ C2] notifier_call_chain+0xcd/0x150 [ 31.997503][ C2] __dev_notify_flags+0xe6/0x250 [ 31.997668][ C2] dev_change_flags+0xec/0x160 [ 31.997833][ C2] do_setlink+0x7d6/0x21e0 [ 31.998002][ C2] __rtnl_newlink+0xaa7/0xd80 [ 31.998169][ C2] rtnl_newlink+0x63/0xa0 [ 31.998408][ C2] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 31.998572][ C2] netlink_rcv_skb+0x130/0x360 [ 31.998735][ C2] netlink_unicast+0x449/0x710 [ 31.999057][ C2] netlink_sendmsg+0x723/0xbe0 [ 31.999228][ C2] ____sys_sendmsg+0x7b2/0xa10 [ 31.999394][ C2] ___sys_sendmsg+0xee/0x170 [ 31.999560][ C2] __sys_sendmsg+0xcd/0x170 [ 31.999799][ C2] do_syscall_64+0xc6/0x1e0 [ 31.999962][ C2] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 32.000160][ C2] HARDIRQ-ON-R at: [ 32.000332][ C2] __lock_acquire+0x797/0x1570 [ 32.000500][ C2] lock_acquire.part.0+0xeb/0x330 [ 32.000665][ C2] _raw_read_lock_bh+0x44/0x80 [ 32.000830][ C2] inet6_fill_ifla6_attrs+0x516/0x740 [ 32.001069][ C2] inet6_fill_link_af+0x5e/0xe0 [ 32.001233][ C2] rtnl_fill_ifinfo+0x1612/0x29e0 [ 32.001396][ C2] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 32.001639][ C2] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 32.001835][ C2] rtmsg_ifinfo+0x5b/0xa0 [ 32.002002][ C2] register_netdevice+0x1177/0x1690 [ 32.002245][ C2] register_netdev+0x20/0x40 [ 32.002410][ C2] sit_init_net+0x250/0x4f0 [ 32.002575][ C2] ops_init+0x9b/0x560 [ 32.002708][ C2] register_pernet_operations+0x2db/0x710 [ 32.002985][ C2] register_pernet_device+0x2a/0x60 [ 32.003150][ C2] sit_init+0x23/0xe0 [ 32.003283][ C2] do_one_initcall+0x8d/0x1e0 [ 32.003522][ C2] do_initcalls+0x1b2/0x3e0 [ 32.003686][ C2] kernel_init_freeable+0x232/0x310 [ 32.003849][ C2] kernel_init+0x20/0x200 [ 32.004018][ C2] ret_from_fork+0x31/0x70 [ 32.004271][ C2] ret_from_fork_asm+0x1a/0x30 [ 32.004442][ C2] IN-SOFTIRQ-W at: [ 32.004541][ C2] __lock_acquire+0x797/0x1570 [ 32.004708][ C2] lock_acquire.part.0+0xeb/0x330 [ 32.004872][ C2] _raw_write_lock+0x30/0x40 [ 32.005037][ C2] addrconf_rs_timer+0xa9/0x730 [ 32.005204][ C2] call_timer_fn+0x13b/0x230 [ 32.005446][ C2] __run_timers+0x545/0x810 [ 32.005611][ C2] run_timer_softirq+0xe8/0x1b0 [ 32.005774][ C2] __do_softirq+0x1f8/0x5df [ 32.006013][ C2] irq_exit_rcu+0x97/0xc0 [ 32.006181][ C2] sysvec_apic_timer_interrupt+0x75/0x80 [ 32.006383][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 32.006656][ C2] default_idle+0xf/0x20 [ 32.006821][ C2] default_idle_call+0x6d/0xb0 [ 32.006985][ C2] cpuidle_idle_call+0x1f4/0x280 [ 32.007152][ C2] do_idle+0xf9/0x160 [ 32.007366][ C2] cpu_startup_entry+0x54/0x60 [ 32.007531][ C2] start_secondary+0x21c/0x2b0 [ 32.007703][ C2] common_startup_64+0x12c/0x138 [ 32.007943][ C2] INITIAL USE at: [ 32.008042][ C2] __lock_acquire+0x797/0x1570 [ 32.008208][ C2] lock_acquire.part.0+0xeb/0x330 [ 32.008373][ C2] _raw_write_lock_bh+0x38/0x50 [ 32.008611][ C2] addrconf_permanent_addr+0x6e/0x670 [ 32.008776][ C2] addrconf_notify+0x749/0xd60 [ 32.008945][ C2] notifier_call_chain+0xcd/0x150 [ 32.009110][ C2] __dev_notify_flags+0xe6/0x250 [ 32.009369][ C2] dev_change_flags+0xec/0x160 [ 32.009533][ C2] do_setlink+0x7d6/0x21e0 [ 32.009696][ C2] __rtnl_newlink+0xaa7/0xd80 [ 32.009860][ C2] rtnl_newlink+0x63/0xa0 [ 32.010028][ C2] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 32.010193][ C2] netlink_rcv_skb+0x130/0x360 [ 32.010437][ C2] netlink_unicast+0x449/0x710 [ 32.010601][ C2] netlink_sendmsg+0x723/0xbe0 [ 32.010763][ C2] ____sys_sendmsg+0x7b2/0xa10 [ 32.010926][ C2] ___sys_sendmsg+0xee/0x170 [ 32.011168][ C2] __sys_sendmsg+0xcd/0x170 [ 32.011332][ C2] do_syscall_64+0xc6/0x1e0 [ 32.011495][ C2] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 32.011766][ C2] INITIAL READ USE at: [ 32.011865][ C2] __lock_acquire+0x797/0x1570 [ 32.012027][ C2] lock_acquire.part.0+0xeb/0x330 [ 32.012191][ C2] _raw_read_lock_bh+0x44/0x80 [ 32.012435][ C2] inet6_fill_ifla6_attrs+0x516/0x740 [ 32.012629][ C2] inet6_fill_link_af+0x5e/0xe0 [ 32.012793][ C2] rtnl_fill_ifinfo+0x1612/0x29e0 [ 32.013031][ C2] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 32.013229][ C2] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 32.013429][ C2] rtmsg_ifinfo+0x5b/0xa0 [ 32.013667][ C2] register_netdevice+0x1177/0x1690 [ 32.013870][ C2] register_netdev+0x20/0x40 [ 32.014033][ C2] sit_init_net+0x250/0x4f0 [ 32.014275][ C2] ops_init+0x9b/0x560 [ 32.014440][ C2] register_pernet_operations+0x2db/0x710 [ 32.014640][ C2] register_pernet_device+0x2a/0x60 [ 32.014913][ C2] sit_init+0x23/0xe0 [ 32.015075][ C2] do_one_initcall+0x8d/0x1e0 [ 32.015238][ C2] do_initcalls+0x1b2/0x3e0 [ 32.015403][ C2] kernel_init_freeable+0x232/0x310 [ 32.015673][ C2] kernel_init+0x20/0x200 [ 32.015840][ C2] ret_from_fork+0x31/0x70 [ 32.016006][ C2] ret_from_fork_asm+0x1a/0x30 [ 32.016256][ C2] } [ 32.016324][ C2] ... key at: [] __key.36+0x0/0x40 [ 32.016520][ C2] ... acquired at: [ 32.016619][ C2] mark_lock+0x28d/0x3e0 [ 32.016754][ C2] mark_usage+0xd9/0x2a0 [ 32.016886][ C2] __lock_acquire+0x797/0x1570 [ 32.017019][ C2] lock_acquire.part.0+0xeb/0x330 [ 32.017149][ C2] _raw_write_lock+0x30/0x40 [ 32.017360][ C2] addrconf_rs_timer+0xa9/0x730 [ 32.017493][ C2] call_timer_fn+0x13b/0x230 [ 32.017625][ C2] __run_timers+0x545/0x810 [ 32.017756][ C2] run_timer_softirq+0xe8/0x1b0 [ 32.017888][ C2] __do_softirq+0x1f8/0x5df [ 32.018094][ C2] irq_exit_rcu+0x97/0xc0 [ 32.018225][ C2] sysvec_apic_timer_interrupt+0x75/0x80 [ 32.018391][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 32.018628][ C2] default_idle+0xf/0x20 [ 32.018760][ C2] default_idle_call+0x6d/0xb0 [ 32.018889][ C2] cpuidle_idle_call+0x1f4/0x280 [ 32.019021][ C2] do_idle+0xf9/0x160 [ 32.019122][ C2] cpu_startup_entry+0x54/0x60 [ 32.019403][ C2] start_secondary+0x21c/0x2b0 [ 32.019535][ C2] common_startup_64+0x12c/0x138 [ 32.019668][ C2] [ 32.019733][ C2] [ 32.019733][ C2] stack backtrace: [ 32.019966][ C2] CPU: 2 PID: 0 Comm: swapper/2 Not tainted 6.9.0-rc1-virtme #1 [ 32.020163][ C2] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 32.020453][ C2] Call Trace: [ 32.020637][ C2] [ 32.020707][ C2] dump_stack_lvl+0x82/0xd0 [ 32.020846][ C2] print_irq_inversion_bug.part.0+0x3d9/0x570 [ 32.021011][ C2] ? kernel_text_address+0x17/0xe0 [ 32.021146][ C2] ? __pfx_print_irq_inversion_bug.part.0+0x10/0x10 [ 32.021383][ C2] ? __pfx_usage_skip+0x10/0x10 [ 32.021514][ C2] ? __pfx_usage_match+0x10/0x10 [ 32.021645][ C2] ? arch_stack_walk+0x8c/0xf0 [ 32.021777][ C2] mark_lock_irq+0x4cd/0xa10 [ 32.021983][ C2] ? common_startup_64+0x12c/0x138 [ 32.022120][ C2] ? __pfx_mark_lock_irq+0x10/0x10 [ 32.022251][ C2] ? __pfx_stack_trace_save+0x10/0x10 [ 32.022388][ C2] ? save_trace+0x8f/0x5b0 [ 32.022593][ C2] mark_lock+0x28d/0x3e0 [ 32.022697][ C2] ? __pfx_stack_trace_save+0x10/0x10 [ 32.022830][ C2] mark_usage+0xd9/0x2a0 [ 32.022930][ C2] __lock_acquire+0x797/0x1570 [ 32.023063][ C2] ? __pfx_validate_chain+0x10/0x10 [ 32.023282][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 32.023413][ C2] lock_acquire.part.0+0xeb/0x330 [ 32.023542][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 32.023673][ C2] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 32.023806][ C2] ? trace_lock_acquire+0x135/0x1c0 [ 32.023937][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 32.024067][ C2] ? lock_acquire+0x32/0xc0 [ 32.024196][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 32.024405][ C2] _raw_write_lock+0x30/0x40 [ 32.024539][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 32.024668][ C2] addrconf_rs_timer+0xa9/0x730 [ 32.024799][ C2] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 32.025005][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 32.025135][ C2] ? call_timer_fn+0xe8/0x230 [ 32.025268][ C2] ? lock_acquire+0x32/0xc0 [ 32.025398][ C2] ? call_timer_fn+0xe8/0x230 [ 32.025528][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 32.025734][ C2] call_timer_fn+0x13b/0x230 [ 32.025870][ C2] ? call_timer_fn+0xe8/0x230 [ 32.026004][ C2] ? call_timer_fn+0xe8/0x230 [ 32.026134][ C2] ? __pfx_call_timer_fn+0x10/0x10 [ 32.026337][ C2] ? mark_lock+0x38/0x3e0 [ 32.026440][ C2] __run_timers+0x545/0x810 [ 32.026570][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 32.026702][ C2] ? __pfx___run_timers+0x10/0x10 [ 32.026906][ C2] ? do_raw_spin_lock+0x131/0x270 [ 32.027040][ C2] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 32.027170][ C2] ? lock_acquire+0x32/0xc0 [ 32.027299][ C2] ? run_timer_softirq+0xe0/0x1b0 [ 32.027436][ C2] run_timer_softirq+0xe8/0x1b0 [ 32.027640][ C2] __do_softirq+0x1f8/0x5df [ 32.027772][ C2] irq_exit_rcu+0x97/0xc0 [ 32.027871][ C2] sysvec_apic_timer_interrupt+0x75/0x80 [ 32.028002][ C2] [ 32.028070][ C2] [ 32.028229][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 32.028391][ C2] RIP: 0010:default_idle+0xf/0x20 [ 32.028528][ 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 [ 32.028990][ C2] RSP: 0018:ffffc9000015fdf8 EFLAGS: 00000242 [ 32.029160][ C2] RAX: 00000000000dea31 RBX: 1ffff9200002bfc1 RCX: ffffffff881a48b5 [ 32.029513][ C2] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffff85aaa4a4 [ 32.029710][ C2] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c2709c [ 32.029907][ C2] R10: ffff8880361384e3 R11: ffff88803613de40 R12: 0000000000000000 [ 32.030180][ C2] R13: ffff888001b845c0 R14: dffffc0000000000 R15: 0000000000000000 [ 32.030383][ C2] ? ct_kernel_exit.constprop.0+0xc5/0xf0 [ 32.030515][ C2] ? cpuidle_idle_call+0x1f4/0x280 [ 32.030647][ C2] default_idle_call+0x6d/0xb0 [ 32.030851][ C2] cpuidle_idle_call+0x1f4/0x280 [ 32.030981][ C2] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 32.031114][ C2] ? tsc_verify_tsc_adjust+0x5e/0x2b0 [ 32.031246][ C2] do_idle+0xf9/0x160 [ 32.031421][ C2] cpu_startup_entry+0x54/0x60 [ 32.031555][ C2] start_secondary+0x21c/0x2b0 [ 32.031686][ C2] ? __pfx_start_secondary+0x10/0x10 [ 32.031817][ C2] common_startup_64+0x12c/0x138 [ 32.032034][ C2]