[ 35.951809][ C3] [ 35.951986][ C3] ======================================================== [ 35.952210][ C3] WARNING: possible irq lock inversion dependency detected [ 35.952428][ C3] 6.9.0-rc1-virtme #1 Not tainted [ 35.952571][ C3] -------------------------------------------------------- [ 35.952783][ C3] swapper/3/0 just changed the state of lock: [ 35.952975][ C3] ffff88800289ed80 (&ndev->lock){++-.}-{2:2}, at: addrconf_rs_timer+0xa9/0x730 [ 35.953262][ C3] but this lock took another, SOFTIRQ-unsafe lock in the past: [ 35.953478][ C3] (&p->alloc_lock){+.+.}-{2:2} [ 35.953482][ C3] [ 35.953482][ C3] [ 35.953482][ C3] and interrupts could create inverse lock ordering between them. [ 35.953482][ C3] [ 35.954012][ C3] [ 35.954012][ C3] other info that might help us debug this: [ 35.954226][ C3] Possible interrupt unsafe locking scenario: [ 35.954226][ C3] [ 35.954450][ C3] CPU0 CPU1 [ 35.954597][ C3] ---- ---- [ 35.954741][ C3] lock(&p->alloc_lock); [ 35.954859][ C3] local_irq_disable(); [ 35.955040][ C3] lock(&ndev->lock); [ 35.955223][ C3] lock(&p->alloc_lock); [ 35.955404][ C3] [ 35.955515][ C3] lock(&ndev->lock); [ 35.955632][ C3] [ 35.955632][ C3] *** DEADLOCK *** [ 35.955632][ C3] [ 35.955895][ C3] 1 lock held by swapper/3/0: [ 35.956049][ C3] #0: ffffc90000288d68 ((&ndev->rs_timer)){+.-.}-{0:0}, at: call_timer_fn+0xe8/0x230 [ 35.956320][ C3] [ 35.956320][ C3] the shortest dependencies between 2nd lock and 1st lock: [ 35.956579][ C3] -> (&p->alloc_lock){+.+.}-{2:2} { [ 35.956744][ C3] HARDIRQ-ON-W at: [ 35.956859][ C3] __lock_acquire+0x797/0x1570 [ 35.957048][ C3] lock_acquire.part.0+0xeb/0x330 [ 35.957244][ C3] _raw_spin_lock+0x30/0x40 [ 35.957439][ C3] set_mems_allowed+0x1d/0x210 [ 35.957624][ C3] kernel_init_freeable+0x72/0x310 [ 35.957810][ C3] kernel_init+0x20/0x200 [ 35.957996][ C3] ret_from_fork+0x31/0x70 [ 35.958185][ C3] ret_from_fork_asm+0x1a/0x30 [ 35.958379][ C3] SOFTIRQ-ON-W at: [ 35.958496][ C3] __lock_acquire+0x797/0x1570 [ 35.958679][ C3] lock_acquire.part.0+0xeb/0x330 [ 35.958860][ C3] _raw_spin_lock+0x30/0x40 [ 35.959042][ C3] set_mems_allowed+0x1d/0x210 [ 35.959225][ C3] kernel_init_freeable+0x72/0x310 [ 35.959408][ C3] kernel_init+0x20/0x200 [ 35.959595][ C3] ret_from_fork+0x31/0x70 [ 35.959785][ C3] ret_from_fork_asm+0x1a/0x30 [ 35.959965][ C3] INITIAL USE at: [ 35.960074][ C3] __lock_acquire+0x797/0x1570 [ 35.960253][ C3] lock_acquire.part.0+0xeb/0x330 [ 35.960456][ C3] _raw_spin_lock+0x30/0x40 [ 35.960712][ C3] set_mems_allowed+0x1d/0x210 [ 35.960974][ C3] kernel_init_freeable+0x72/0x310 [ 35.961237][ C3] kernel_init+0x20/0x200 [ 35.961496][ C3] ret_from_fork+0x31/0x70 [ 35.961757][ C3] ret_from_fork_asm+0x1a/0x30 [ 35.962018][ C3] } [ 35.962136][ C3] ... key at: [] __key.387+0x0/0x40 [ 35.962484][ C3] ... acquired at: [ 35.962639][ C3] __lock_acquire+0xaf0/0x1570 [ 35.962852][ C3] lock_acquire.part.0+0xeb/0x330 [ 35.963049][ C3] _raw_spin_lock+0x30/0x40 [ 35.963230][ C3] __get_task_comm+0x27/0x70 [ 35.963382][ C3] ref_tracker_alloc+0x2ee/0x490 [ 35.963539][ C3] netdev_get_by_index+0x5e/0x80 [ 35.963684][ C3] fib6_nh_init+0x3d8/0x15b0 [ 35.963841][ C3] ip6_route_info_create+0xf18/0x17d0 [ 35.963984][ C3] addrconf_f6i_alloc+0x265/0x560 [ 35.964129][ C3] __ipv6_dev_ac_inc+0x25f/0xb10 [ 35.964273][ C3] addrconf_join_anycast+0x1c0/0x220 [ 35.964427][ C3] dev_forward_change+0x2a6/0x7b0 [ 35.964573][ C3] addrconf_fixup_forwarding+0x23f/0x460 [ 35.964750][ C3] addrconf_sysctl_forward+0x212/0x2b0 [ 35.964905][ C3] proc_sys_call_handler+0x403/0x5e0 [ 35.965052][ C3] vfs_write+0x9e5/0x10a0 [ 35.965197][ C3] ksys_write+0xf5/0x1e0 [ 35.965339][ C3] do_syscall_64+0xc6/0x1e0 [ 35.965489][ C3] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 35.965674][ C3] [ 35.965746][ C3] -> (&ndev->lock){++-.}-{2:2} { [ 35.965896][ C3] HARDIRQ-ON-W at: [ 35.966008][ C3] __lock_acquire+0x797/0x1570 [ 35.966193][ C3] lock_acquire.part.0+0xeb/0x330 [ 35.966385][ C3] _raw_write_lock_bh+0x38/0x50 [ 35.966624][ C3] addrconf_permanent_addr+0x6e/0x670 [ 35.966841][ C3] addrconf_notify+0x749/0xd60 [ 35.967037][ C3] notifier_call_chain+0xcd/0x150 [ 35.967220][ C3] __dev_notify_flags+0xe6/0x250 [ 35.967412][ C3] dev_change_flags+0xec/0x160 [ 35.967606][ C3] do_setlink+0x7d6/0x21e0 [ 35.967790][ C3] __rtnl_newlink+0xaa7/0xd80 [ 35.967971][ C3] rtnl_newlink+0x63/0xa0 [ 35.968153][ C3] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 35.968339][ C3] netlink_rcv_skb+0x130/0x360 [ 35.968587][ C3] netlink_unicast+0x449/0x710 [ 35.968862][ C3] netlink_sendmsg+0x723/0xbe0 [ 35.969143][ C3] ____sys_sendmsg+0x7b2/0xa10 [ 35.969427][ C3] ___sys_sendmsg+0xee/0x170 [ 35.969705][ C3] __sys_sendmsg+0xcd/0x170 [ 35.969992][ C3] do_syscall_64+0xc6/0x1e0 [ 35.970278][ C3] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 35.970623][ C3] HARDIRQ-ON-R at: [ 35.970794][ C3] __lock_acquire+0x797/0x1570 [ 35.971094][ C3] lock_acquire.part.0+0xeb/0x330 [ 35.971382][ C3] _raw_read_lock_bh+0x44/0x80 [ 35.971663][ C3] inet6_fill_ifla6_attrs+0x516/0x740 [ 35.971947][ C3] inet6_fill_link_af+0x5e/0xe0 [ 35.972230][ C3] rtnl_fill_ifinfo+0x1612/0x29e0 [ 35.972520][ C3] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 35.972805][ C3] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 35.973150][ C3] rtmsg_ifinfo+0x5b/0xa0 [ 35.973437][ C3] register_netdevice+0x1177/0x1690 [ 35.973715][ C3] register_netdev+0x20/0x40 [ 35.974005][ C3] sit_init_net+0x250/0x4f0 [ 35.974299][ C3] ops_init+0x9b/0x560 [ 35.974522][ C3] register_pernet_operations+0x2db/0x710 [ 35.974866][ C3] register_pernet_device+0x2a/0x60 [ 35.975156][ C3] sit_init+0x23/0xe0 [ 35.975386][ C3] do_one_initcall+0x8d/0x1e0 [ 35.975673][ C3] do_initcalls+0x1b2/0x3e0 [ 35.975969][ C3] kernel_init_freeable+0x232/0x310 [ 35.976254][ C3] kernel_init+0x20/0x200 [ 35.976534][ C3] ret_from_fork+0x31/0x70 [ 35.976828][ C3] ret_from_fork_asm+0x1a/0x30 [ 35.977112][ C3] IN-SOFTIRQ-W at: [ 35.977280][ C3] __lock_acquire+0x797/0x1570 [ 35.977558][ C3] lock_acquire.part.0+0xeb/0x330 [ 35.977854][ C3] _raw_write_lock+0x30/0x40 [ 35.978144][ C3] addrconf_rs_timer+0xa9/0x730 [ 35.978424][ C3] call_timer_fn+0x13b/0x230 [ 35.978711][ C3] __run_timers+0x545/0x810 [ 35.978998][ C3] run_timer_softirq+0xe8/0x1b0 [ 35.979308][ C3] __do_softirq+0x1f8/0x5df [ 35.979602][ C3] irq_exit_rcu+0x97/0xc0 [ 35.979890][ C3] sysvec_apic_timer_interrupt+0x75/0x80 [ 35.980229][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 35.980596][ C3] default_idle+0xf/0x20 [ 35.980895][ C3] default_idle_call+0x6d/0xb0 [ 35.981181][ C3] cpuidle_idle_call+0x1f4/0x280 [ 35.981455][ C3] do_idle+0xf9/0x160 [ 35.981691][ C3] cpu_startup_entry+0x54/0x60 [ 35.981974][ C3] start_secondary+0x21c/0x2b0 [ 35.982255][ C3] common_startup_64+0x12c/0x138 [ 35.982531][ C3] INITIAL USE at: [ 35.982705][ C3] __lock_acquire+0x797/0x1570 [ 35.982999][ C3] lock_acquire.part.0+0xeb/0x330 [ 35.983284][ C3] _raw_write_lock_bh+0x38/0x50 [ 35.983567][ C3] addrconf_permanent_addr+0x6e/0x670 [ 35.983848][ C3] addrconf_notify+0x749/0xd60 [ 35.984130][ C3] notifier_call_chain+0xcd/0x150 [ 35.984406][ C3] __dev_notify_flags+0xe6/0x250 [ 35.984687][ C3] dev_change_flags+0xec/0x160 [ 35.984976][ C3] do_setlink+0x7d6/0x21e0 [ 35.985263][ C3] __rtnl_newlink+0xaa7/0xd80 [ 35.985543][ C3] rtnl_newlink+0x63/0xa0 [ 35.985827][ C3] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 35.986106][ C3] netlink_rcv_skb+0x130/0x360 [ 35.986384][ C3] netlink_unicast+0x449/0x710 [ 35.986668][ C3] netlink_sendmsg+0x723/0xbe0 [ 35.986963][ C3] ____sys_sendmsg+0x7b2/0xa10 [ 35.987254][ C3] ___sys_sendmsg+0xee/0x170 [ 35.987539][ C3] __sys_sendmsg+0xcd/0x170 [ 35.987825][ C3] do_syscall_64+0xc6/0x1e0 [ 35.988104][ C3] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 35.988441][ C3] INITIAL READ USE at: [ 35.988615][ C3] __lock_acquire+0x797/0x1570 [ 35.988910][ C3] lock_acquire.part.0+0xeb/0x330 [ 35.989192][ C3] _raw_read_lock_bh+0x44/0x80 [ 35.989473][ C3] inet6_fill_ifla6_attrs+0x516/0x740 [ 35.989811][ C3] inet6_fill_link_af+0x5e/0xe0 [ 35.990097][ C3] rtnl_fill_ifinfo+0x1612/0x29e0 [ 35.990377][ C3] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 35.990733][ C3] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 35.991091][ C3] rtmsg_ifinfo+0x5b/0xa0 [ 35.991380][ C3] register_netdevice+0x1177/0x1690 [ 35.991728][ C3] register_netdev+0x20/0x40 [ 35.992018][ C3] sit_init_net+0x250/0x4f0 [ 35.992311][ C3] ops_init+0x9b/0x560 [ 35.992607][ C3] register_pernet_operations+0x2db/0x710 [ 35.992949][ C3] register_pernet_device+0x2a/0x60 [ 35.993293][ C3] sit_init+0x23/0xe0 [ 35.993586][ C3] do_one_initcall+0x8d/0x1e0 [ 35.993872][ C3] do_initcalls+0x1b2/0x3e0 [ 35.994160][ C3] kernel_init_freeable+0x232/0x310 [ 35.994501][ C3] kernel_init+0x20/0x200 [ 35.994790][ C3] ret_from_fork+0x31/0x70 [ 35.995085][ C3] ret_from_fork_asm+0x1a/0x30 [ 35.995377][ C3] } [ 35.995498][ C3] ... key at: [] __key.37+0x0/0x40 [ 35.995852][ C3] ... acquired at: [ 35.996026][ C3] mark_lock+0x28d/0x3e0 [ 35.996266][ C3] mark_usage+0xd9/0x2a0 [ 35.996486][ C3] __lock_acquire+0x797/0x1570 [ 35.996717][ C3] lock_acquire.part.0+0xeb/0x330 [ 35.996947][ C3] _raw_write_lock+0x30/0x40 [ 35.997163][ C3] addrconf_rs_timer+0xa9/0x730 [ 35.997379][ C3] call_timer_fn+0x13b/0x230 [ 35.997598][ C3] __run_timers+0x545/0x810 [ 35.997817][ C3] run_timer_softirq+0xe8/0x1b0 [ 35.998031][ C3] __do_softirq+0x1f8/0x5df [ 35.998250][ C3] irq_exit_rcu+0x97/0xc0 [ 35.998467][ C3] sysvec_apic_timer_interrupt+0x75/0x80 [ 35.998731][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 35.999005][ C3] default_idle+0xf/0x20 [ 35.999227][ C3] default_idle_call+0x6d/0xb0 [ 35.999440][ C3] cpuidle_idle_call+0x1f4/0x280 [ 35.999659][ C3] do_idle+0xf9/0x160 [ 35.999830][ C3] cpu_startup_entry+0x54/0x60 [ 36.000052][ C3] start_secondary+0x21c/0x2b0 [ 36.000272][ C3] common_startup_64+0x12c/0x138 [ 36.000487][ C3] [ 36.000596][ C3] [ 36.000596][ C3] stack backtrace: [ 36.000877][ C3] CPU: 3 PID: 0 Comm: swapper/3 Not tainted 6.9.0-rc1-virtme #1 [ 36.001226][ C3] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 36.001733][ C3] Call Trace: [ 36.001907][ C3] [ 36.002029][ C3] dump_stack_lvl+0x82/0xd0 [ 36.002265][ C3] print_irq_inversion_bug.part.0+0x3d9/0x570 [ 36.002535][ C3] ? kernel_text_address+0x17/0xe0 [ 36.002756][ C3] ? __pfx_print_irq_inversion_bug.part.0+0x10/0x10 [ 36.003017][ C3] ? __pfx_usage_skip+0x10/0x10 [ 36.003237][ C3] ? __pfx_usage_match+0x10/0x10 [ 36.003482][ C3] ? arch_stack_walk+0x8c/0xf0 [ 36.003719][ C3] mark_lock_irq+0x4cd/0xa10 [ 36.003938][ C3] ? common_startup_64+0x12c/0x138 [ 36.004161][ C3] ? __pfx_mark_lock_irq+0x10/0x10 [ 36.004378][ C3] ? __pfx_stack_trace_save+0x10/0x10 [ 36.004604][ C3] ? save_trace+0x8f/0x5b0 [ 36.004836][ C3] mark_lock+0x28d/0x3e0 [ 36.005009][ C3] ? __pfx_stack_trace_save+0x10/0x10 [ 36.005235][ C3] mark_usage+0xd9/0x2a0 [ 36.005440][ C3] __lock_acquire+0x797/0x1570 [ 36.005662][ C3] ? __pfx_validate_chain+0x10/0x10 [ 36.005882][ C3] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 36.006106][ C3] lock_acquire.part.0+0xeb/0x330 [ 36.006317][ C3] ? addrconf_rs_timer+0xa9/0x730 [ 36.006536][ C3] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 36.006752][ C3] ? trace_lock_acquire+0x135/0x1c0 [ 36.006976][ C3] ? addrconf_rs_timer+0xa9/0x730 [ 36.007204][ C3] ? lock_acquire+0x32/0xc0 [ 36.007425][ C3] ? addrconf_rs_timer+0xa9/0x730 [ 36.007646][ C3] _raw_write_lock+0x30/0x40 [ 36.007865][ C3] ? addrconf_rs_timer+0xa9/0x730 [ 36.008086][ C3] addrconf_rs_timer+0xa9/0x730 [ 36.008304][ C3] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 36.008506][ C3] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 36.008717][ C3] ? call_timer_fn+0xe8/0x230 [ 36.008942][ C3] ? lock_acquire+0x32/0xc0 [ 36.009165][ C3] ? call_timer_fn+0xe8/0x230 [ 36.009391][ C3] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 36.009610][ C3] call_timer_fn+0x13b/0x230 [ 36.009834][ C3] ? call_timer_fn+0xe8/0x230 [ 36.010051][ C3] ? call_timer_fn+0xe8/0x230 [ 36.010270][ C3] ? __pfx_call_timer_fn+0x10/0x10 [ 36.010487][ C3] ? mark_lock+0x38/0x3e0 [ 36.010656][ C3] __run_timers+0x545/0x810 [ 36.010900][ C3] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 36.011121][ C3] ? __pfx___run_timers+0x10/0x10 [ 36.011346][ C3] ? do_raw_spin_lock+0x131/0x270 [ 36.011573][ C3] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 36.011805][ C3] ? lock_acquire+0x32/0xc0 [ 36.012034][ C3] ? run_timer_softirq+0xe0/0x1b0 [ 36.012265][ C3] run_timer_softirq+0xe8/0x1b0 [ 36.012494][ C3] __do_softirq+0x1f8/0x5df [ 36.012731][ C3] irq_exit_rcu+0x97/0xc0 [ 36.012920][ C3] sysvec_apic_timer_interrupt+0x75/0x80 [ 36.013126][ C3] [ 36.013239][ C3] [ 36.013345][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 36.013610][ C3] RIP: 0010:default_idle+0xf/0x20 [ 36.013831][ C3] 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 a3 30 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 [ 36.014561][ C3] RSP: 0018:ffffc9000016fdf8 EFLAGS: 00000242 [ 36.014831][ C3] RAX: 0000000000086de3 RBX: 1ffff9200002dfc1 RCX: ffffffffb770e9d5 [ 36.015135][ C3] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffffb50aa4a4 [ 36.015445][ C3] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c3709c [ 36.015764][ C3] R10: ffff8880361b84e3 R11: ffff8880361ad9b0 R12: 0000000000000000 [ 36.016092][ C3] R13: ffff888001b88040 R14: dffffc0000000000 R15: 0000000000000000 [ 36.016411][ C3] ? ct_kernel_exit.constprop.0+0xc5/0xf0 [ 36.016621][ C3] ? cpuidle_idle_call+0x1f4/0x280 [ 36.016837][ C3] default_idle_call+0x6d/0xb0 [ 36.017062][ C3] cpuidle_idle_call+0x1f4/0x280 [ 36.017269][ C3] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 36.017471][ C3] ? tsc_verify_tsc_adjust+0x5e/0x2b0 [ 36.017690][ C3] do_idle+0xf9/0x160 [ 36.017851][ C3] cpu_startup_entry+0x54/0x60 [ 36.018060][ C3] start_secondary+0x21c/0x2b0 [ 36.018285][ C3] ? __pfx_start_secondary+0x10/0x10 [ 36.018513][ C3] common_startup_64+0x12c/0x138 [ 36.018742][ C3]