[ 33.191999][ C1] [ 33.192170][ C1] ======================================================== [ 33.192412][ C1] WARNING: possible irq lock inversion dependency detected [ 33.192631][ C1] 6.9.0-rc1-virtme #1 Not tainted [ 33.192775][ C1] -------------------------------------------------------- [ 33.192992][ C1] swapper/1/0 just changed the state of lock: [ 33.193186][ C1] ffff888004aa5580 (&ndev->lock){++-.}-{2:2}, at: addrconf_rs_timer+0xa9/0x730 [ 33.193435][ C1] but this lock took another, SOFTIRQ-unsafe lock in the past: [ 33.193637][ C1] (&p->alloc_lock){+.+.}-{2:2} [ 33.193644][ C1] [ 33.193644][ C1] [ 33.193644][ C1] and interrupts could create inverse lock ordering between them. [ 33.193644][ C1] [ 33.194182][ C1] [ 33.194182][ C1] other info that might help us debug this: [ 33.194390][ C1] Possible interrupt unsafe locking scenario: [ 33.194390][ C1] [ 33.194600][ C1] CPU0 CPU1 [ 33.194742][ C1] ---- ---- [ 33.194897][ C1] lock(&p->alloc_lock); [ 33.195002][ C1] local_irq_disable(); [ 33.195189][ C1] lock(&ndev->lock); [ 33.195365][ C1] lock(&p->alloc_lock); [ 33.195545][ C1] [ 33.195671][ C1] lock(&ndev->lock); [ 33.195775][ C1] [ 33.195775][ C1] *** DEADLOCK *** [ 33.195775][ C1] [ 33.196001][ C1] 1 lock held by swapper/1/0: [ 33.196145][ C1] #0: ffffc900001d8b68 ((&ndev->rs_timer)){+.-.}-{0:0}, at: call_timer_fn+0xe8/0x230 [ 33.196401][ C1] [ 33.196401][ C1] the shortest dependencies between 2nd lock and 1st lock: [ 33.196642][ C1] -> (&p->alloc_lock){+.+.}-{2:2} { [ 33.196795][ C1] HARDIRQ-ON-W at: [ 33.196923][ C1] __lock_acquire+0x797/0x1570 [ 33.197106][ C1] lock_acquire.part.0+0xeb/0x330 [ 33.197293][ C1] _raw_spin_lock+0x30/0x40 [ 33.197479][ C1] set_mems_allowed+0x1d/0x210 [ 33.197673][ C1] kernel_init_freeable+0x72/0x310 [ 33.197867][ C1] kernel_init+0x20/0x200 [ 33.198060][ C1] ret_from_fork+0x31/0x70 [ 33.198235][ C1] ret_from_fork_asm+0x1a/0x30 [ 33.198406][ C1] SOFTIRQ-ON-W at: [ 33.198508][ C1] __lock_acquire+0x797/0x1570 [ 33.198679][ C1] lock_acquire.part.0+0xeb/0x330 [ 33.198867][ C1] _raw_spin_lock+0x30/0x40 [ 33.199071][ C1] set_mems_allowed+0x1d/0x210 [ 33.199247][ C1] kernel_init_freeable+0x72/0x310 [ 33.199440][ C1] kernel_init+0x20/0x200 [ 33.199610][ C1] ret_from_fork+0x31/0x70 [ 33.199783][ C1] ret_from_fork_asm+0x1a/0x30 [ 33.199953][ C1] INITIAL USE at: [ 33.200056][ C1] __lock_acquire+0x797/0x1570 [ 33.200243][ C1] lock_acquire.part.0+0xeb/0x330 [ 33.200437][ C1] _raw_spin_lock+0x30/0x40 [ 33.200609][ C1] set_mems_allowed+0x1d/0x210 [ 33.200787][ C1] kernel_init_freeable+0x72/0x310 [ 33.200975][ C1] kernel_init+0x20/0x200 [ 33.201175][ C1] ret_from_fork+0x31/0x70 [ 33.201345][ C1] ret_from_fork_asm+0x1a/0x30 [ 33.201550][ C1] } [ 33.201621][ C1] ... key at: [] __key.387+0x0/0x40 [ 33.201845][ C1] ... acquired at: [ 33.201962][ C1] __lock_acquire+0xaf0/0x1570 [ 33.202104][ C1] lock_acquire.part.0+0xeb/0x330 [ 33.202241][ C1] _raw_spin_lock+0x30/0x40 [ 33.202381][ C1] __get_task_comm+0x27/0x70 [ 33.202520][ C1] ref_tracker_alloc+0x2ee/0x490 [ 33.202685][ C1] netdev_get_by_index+0x5e/0x80 [ 33.202821][ C1] fib6_nh_init+0x3d8/0x15b0 [ 33.202962][ C1] ip6_route_info_create+0xf18/0x17d0 [ 33.203100][ C1] addrconf_f6i_alloc+0x265/0x560 [ 33.203241][ C1] __ipv6_dev_ac_inc+0x25f/0xb10 [ 33.203393][ C1] addrconf_join_anycast+0x1c0/0x220 [ 33.203538][ C1] dev_forward_change+0x2a6/0x7b0 [ 33.203692][ C1] addrconf_fixup_forwarding+0x23f/0x460 [ 33.203866][ C1] addrconf_sysctl_forward+0x212/0x2b0 [ 33.204004][ C1] proc_sys_call_handler+0x403/0x5e0 [ 33.204142][ C1] vfs_write+0x9e5/0x10a0 [ 33.204279][ C1] ksys_write+0xf5/0x1e0 [ 33.204415][ C1] do_syscall_64+0xc6/0x1e0 [ 33.204553][ C1] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 33.204723][ C1] [ 33.204794][ C1] -> (&ndev->lock){++-.}-{2:2} { [ 33.204935][ C1] HARDIRQ-ON-W at: [ 33.205043][ C1] __lock_acquire+0x797/0x1570 [ 33.205214][ C1] lock_acquire.part.0+0xeb/0x330 [ 33.205385][ C1] _raw_write_lock_bh+0x38/0x50 [ 33.205554][ C1] addrconf_permanent_addr+0x6e/0x670 [ 33.205723][ C1] addrconf_notify+0x749/0xd60 [ 33.205894][ C1] notifier_call_chain+0xcd/0x150 [ 33.206067][ C1] __dev_notify_flags+0xe6/0x250 [ 33.206237][ C1] dev_change_flags+0xec/0x160 [ 33.206408][ C1] do_setlink+0x7d6/0x21e0 [ 33.206580][ C1] __rtnl_newlink+0xaa7/0xd80 [ 33.206751][ C1] rtnl_newlink+0x63/0xa0 [ 33.206920][ C1] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 33.207093][ C1] netlink_rcv_skb+0x130/0x360 [ 33.207266][ C1] netlink_unicast+0x449/0x710 [ 33.207436][ C1] netlink_sendmsg+0x723/0xbe0 [ 33.207606][ C1] ____sys_sendmsg+0x7b2/0xa10 [ 33.207778][ C1] ___sys_sendmsg+0xee/0x170 [ 33.207950][ C1] __sys_sendmsg+0xcd/0x170 [ 33.208121][ C1] do_syscall_64+0xc6/0x1e0 [ 33.208290][ C1] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 33.208491][ C1] HARDIRQ-ON-R at: [ 33.208593][ C1] __lock_acquire+0x797/0x1570 [ 33.208763][ C1] lock_acquire.part.0+0xeb/0x330 [ 33.208945][ C1] _raw_read_lock_bh+0x44/0x80 [ 33.209119][ C1] inet6_fill_ifla6_attrs+0x516/0x740 [ 33.209305][ C1] inet6_fill_link_af+0x5e/0xe0 [ 33.209490][ C1] rtnl_fill_ifinfo+0x1612/0x29e0 [ 33.209670][ C1] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 33.209853][ C1] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 33.210090][ C1] rtmsg_ifinfo+0x5b/0xa0 [ 33.210262][ C1] register_netdevice+0x1177/0x1690 [ 33.210435][ C1] register_netdev+0x20/0x40 [ 33.210622][ C1] sit_init_net+0x250/0x4f0 [ 33.210812][ C1] ops_init+0x9b/0x560 [ 33.210949][ C1] register_pernet_operations+0x2db/0x710 [ 33.211178][ C1] register_pernet_device+0x2a/0x60 [ 33.211348][ C1] sit_init+0x23/0xe0 [ 33.211487][ C1] do_one_initcall+0x8d/0x1e0 [ 33.211678][ C1] do_initcalls+0x1b2/0x3e0 [ 33.211850][ C1] kernel_init_freeable+0x232/0x310 [ 33.212042][ C1] kernel_init+0x20/0x200 [ 33.212227][ C1] ret_from_fork+0x31/0x70 [ 33.212404][ C1] ret_from_fork_asm+0x1a/0x30 [ 33.212593][ C1] IN-SOFTIRQ-W at: [ 33.212720][ C1] __lock_acquire+0x797/0x1570 [ 33.212919][ C1] lock_acquire.part.0+0xeb/0x330 [ 33.213101][ C1] _raw_write_lock+0x30/0x40 [ 33.213295][ C1] addrconf_rs_timer+0xa9/0x730 [ 33.213483][ C1] call_timer_fn+0x13b/0x230 [ 33.213655][ C1] __run_timers+0x545/0x810 [ 33.213854][ C1] timer_expire_remote+0x9b/0xe0 [ 33.214030][ C1] tmigr_handle_remote_cpu+0x270/0x430 [ 33.214205][ C1] tmigr_handle_remote_up+0x19f/0x2e0 [ 33.214374][ C1] tmigr_handle_remote+0x21d/0x3a0 [ 33.214567][ C1] __do_softirq+0x1f8/0x5df [ 33.214756][ C1] irq_exit_rcu+0x97/0xc0 [ 33.214927][ C1] sysvec_apic_timer_interrupt+0x75/0x80 [ 33.215153][ C1] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 33.215367][ C1] default_idle+0xf/0x20 [ 33.215577][ C1] default_idle_call+0x6d/0xb0 [ 33.215768][ C1] cpuidle_idle_call+0x1f4/0x280 [ 33.215939][ C1] do_idle+0xf9/0x160 [ 33.216093][ C1] cpu_startup_entry+0x54/0x60 [ 33.216280][ C1] start_secondary+0x21c/0x2b0 [ 33.216453][ C1] common_startup_64+0x12c/0x138 [ 33.216637][ C1] INITIAL USE at: [ 33.216753][ C1] __lock_acquire+0x797/0x1570 [ 33.216938][ C1] lock_acquire.part.0+0xeb/0x330 [ 33.217132][ C1] _raw_write_lock_bh+0x38/0x50 [ 33.217305][ C1] addrconf_permanent_addr+0x6e/0x670 [ 33.217476][ C1] addrconf_notify+0x749/0xd60 [ 33.217647][ C1] notifier_call_chain+0xcd/0x150 [ 33.217835][ C1] __dev_notify_flags+0xe6/0x250 [ 33.218010][ C1] dev_change_flags+0xec/0x160 [ 33.218179][ C1] do_setlink+0x7d6/0x21e0 [ 33.218349][ C1] __rtnl_newlink+0xaa7/0xd80 [ 33.218524][ C1] rtnl_newlink+0x63/0xa0 [ 33.218709][ C1] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 33.218896][ C1] netlink_rcv_skb+0x130/0x360 [ 33.219133][ C1] netlink_unicast+0x449/0x710 [ 33.219326][ C1] netlink_sendmsg+0x723/0xbe0 [ 33.219498][ C1] ____sys_sendmsg+0x7b2/0xa10 [ 33.219702][ C1] ___sys_sendmsg+0xee/0x170 [ 33.219893][ C1] __sys_sendmsg+0xcd/0x170 [ 33.220065][ C1] do_syscall_64+0xc6/0x1e0 [ 33.220259][ C1] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 33.220495][ C1] INITIAL READ USE at: [ 33.220598][ C1] __lock_acquire+0x797/0x1570 [ 33.220772][ C1] lock_acquire.part.0+0xeb/0x330 [ 33.220944][ C1] _raw_read_lock_bh+0x44/0x80 [ 33.221134][ C1] inet6_fill_ifla6_attrs+0x516/0x740 [ 33.221347][ C1] inet6_fill_link_af+0x5e/0xe0 [ 33.221535][ C1] rtnl_fill_ifinfo+0x1612/0x29e0 [ 33.221716][ C1] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 33.221933][ C1] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 33.222167][ C1] rtmsg_ifinfo+0x5b/0xa0 [ 33.222343][ C1] register_netdevice+0x1177/0x1690 [ 33.222587][ C1] register_netdev+0x20/0x40 [ 33.222776][ C1] sit_init_net+0x250/0x4f0 [ 33.222960][ C1] ops_init+0x9b/0x560 [ 33.223141][ C1] register_pernet_operations+0x2db/0x710 [ 33.223351][ C1] register_pernet_device+0x2a/0x60 [ 33.223553][ C1] sit_init+0x23/0xe0 [ 33.223724][ C1] do_one_initcall+0x8d/0x1e0 [ 33.223896][ C1] do_initcalls+0x1b2/0x3e0 [ 33.224066][ C1] kernel_init_freeable+0x232/0x310 [ 33.224268][ C1] kernel_init+0x20/0x200 [ 33.224443][ C1] ret_from_fork+0x31/0x70 [ 33.224620][ C1] ret_from_fork_asm+0x1a/0x30 [ 33.224791][ C1] } [ 33.224868][ C1] ... key at: [] __key.37+0x0/0x40 [ 33.225076][ C1] ... acquired at: [ 33.225175][ C1] mark_lock+0x28d/0x3e0 [ 33.225312][ C1] mark_usage+0xd9/0x2a0 [ 33.225450][ C1] __lock_acquire+0x797/0x1570 [ 33.225587][ C1] lock_acquire.part.0+0xeb/0x330 [ 33.225724][ C1] _raw_write_lock+0x30/0x40 [ 33.225862][ C1] addrconf_rs_timer+0xa9/0x730 [ 33.225998][ C1] call_timer_fn+0x13b/0x230 [ 33.226139][ C1] __run_timers+0x545/0x810 [ 33.226279][ C1] timer_expire_remote+0x9b/0xe0 [ 33.226422][ C1] tmigr_handle_remote_cpu+0x270/0x430 [ 33.226558][ C1] tmigr_handle_remote_up+0x19f/0x2e0 [ 33.226694][ C1] tmigr_handle_remote+0x21d/0x3a0 [ 33.226829][ C1] __do_softirq+0x1f8/0x5df [ 33.226965][ C1] irq_exit_rcu+0x97/0xc0 [ 33.227100][ C1] sysvec_apic_timer_interrupt+0x75/0x80 [ 33.227273][ C1] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 33.227442][ C1] default_idle+0xf/0x20 [ 33.227582][ C1] default_idle_call+0x6d/0xb0 [ 33.227716][ C1] cpuidle_idle_call+0x1f4/0x280 [ 33.227856][ C1] do_idle+0xf9/0x160 [ 33.227960][ C1] cpu_startup_entry+0x54/0x60 [ 33.228094][ C1] start_secondary+0x21c/0x2b0 [ 33.228231][ C1] common_startup_64+0x12c/0x138 [ 33.228367][ C1] [ 33.228435][ C1] [ 33.228435][ C1] stack backtrace: [ 33.228605][ C1] CPU: 1 PID: 0 Comm: swapper/1 Not tainted 6.9.0-rc1-virtme #1 [ 33.228837][ C1] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 33.229155][ C1] Call Trace: [ 33.229259][ C1] [ 33.229332][ C1] dump_stack_lvl+0x82/0xd0 [ 33.229476][ C1] print_irq_inversion_bug.part.0+0x3d9/0x570 [ 33.229644][ C1] ? kernel_text_address+0x17/0xe0 [ 33.229785][ C1] ? __pfx_print_irq_inversion_bug.part.0+0x10/0x10 [ 33.229956][ C1] ? __pfx_usage_skip+0x10/0x10 [ 33.230090][ C1] ? __pfx_usage_match+0x10/0x10 [ 33.230224][ C1] ? arch_stack_walk+0x8c/0xf0 [ 33.230390][ C1] mark_lock_irq+0x4cd/0xa10 [ 33.230525][ C1] ? common_startup_64+0x12c/0x138 [ 33.230661][ C1] ? __pfx_mark_lock_irq+0x10/0x10 [ 33.230795][ C1] ? __pfx_stack_trace_save+0x10/0x10 [ 33.230934][ C1] ? save_trace+0x8f/0x5b0 [ 33.231072][ C1] mark_lock+0x28d/0x3e0 [ 33.231176][ C1] ? __pfx_stack_trace_save+0x10/0x10 [ 33.231312][ C1] mark_usage+0xd9/0x2a0 [ 33.231415][ C1] __lock_acquire+0x797/0x1570 [ 33.231553][ C1] ? __pfx_validate_chain+0x10/0x10 [ 33.231689][ C1] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 33.231824][ C1] lock_acquire.part.0+0xeb/0x330 [ 33.231958][ C1] ? addrconf_rs_timer+0xa9/0x730 [ 33.232093][ C1] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 33.232232][ C1] ? trace_lock_acquire+0x135/0x1c0 [ 33.232371][ C1] ? addrconf_rs_timer+0xa9/0x730 [ 33.232504][ C1] ? lock_acquire+0x32/0xc0 [ 33.232639][ C1] ? addrconf_rs_timer+0xa9/0x730 [ 33.232777][ C1] _raw_write_lock+0x30/0x40 [ 33.232911][ C1] ? addrconf_rs_timer+0xa9/0x730 [ 33.233045][ C1] addrconf_rs_timer+0xa9/0x730 [ 33.233180][ C1] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 33.233322][ C1] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 33.233457][ C1] ? call_timer_fn+0xe8/0x230 [ 33.233592][ C1] ? lock_acquire+0x32/0xc0 [ 33.233725][ C1] ? call_timer_fn+0xe8/0x230 [ 33.233862][ C1] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 33.233995][ C1] call_timer_fn+0x13b/0x230 [ 33.234147][ C1] ? call_timer_fn+0xe8/0x230 [ 33.234281][ C1] ? call_timer_fn+0xe8/0x230 [ 33.234437][ C1] ? __pfx_call_timer_fn+0x10/0x10 [ 33.234573][ C1] ? mark_lock+0x38/0x3e0 [ 33.234679][ C1] __run_timers+0x545/0x810 [ 33.234814][ C1] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 33.234968][ C1] ? __pfx___run_timers+0x10/0x10 [ 33.235105][ C1] ? __lock_release+0x103/0x460 [ 33.235240][ C1] ? do_raw_spin_lock+0x131/0x270 [ 33.235379][ C1] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 33.235514][ C1] ? lock_acquire+0x32/0xc0 [ 33.235660][ C1] ? timer_expire_remote+0x93/0xe0 [ 33.235806][ C1] timer_expire_remote+0x9b/0xe0 [ 33.235965][ C1] tmigr_handle_remote_cpu+0x270/0x430 [ 33.236102][ C1] ? __pfx_tmigr_handle_remote_cpu+0x10/0x10 [ 33.236292][ C1] tmigr_handle_remote_up+0x19f/0x2e0 [ 33.236445][ C1] tmigr_handle_remote+0x21d/0x3a0 [ 33.236580][ C1] ? do_raw_spin_lock+0x131/0x270 [ 33.236732][ C1] ? __pfx_tmigr_handle_remote+0x10/0x10 [ 33.236892][ C1] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 33.237027][ C1] ? lockdep_hardirqs_on_prepare.part.0+0x14f/0x370 [ 33.237215][ C1] __do_softirq+0x1f8/0x5df [ 33.237353][ C1] irq_exit_rcu+0x97/0xc0 [ 33.237462][ C1] sysvec_apic_timer_interrupt+0x75/0x80 [ 33.237600][ C1] [ 33.237670][ C1] [ 33.237738][ C1] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 33.237919][ C1] RIP: 0010:default_idle+0xf/0x20 [ 33.238064][ C1] 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 [ 33.238543][ C1] RSP: 0018:ffffc9000014fdf8 EFLAGS: 00000246 [ 33.238717][ C1] RAX: 0000000000067a39 RBX: 1ffff92000029fc1 RCX: ffffffff8730e9d5 [ 33.238935][ C1] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffff84caa4a4 [ 33.239144][ C1] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c1709c [ 33.239350][ C1] R10: ffff8880360b84e3 R11: ffff8880360ad9b0 R12: 0000000000000000 [ 33.239551][ C1] R13: ffff888001b7a300 R14: dffffc0000000000 R15: 0000000000000000 [ 33.239777][ C1] ? ct_kernel_exit.constprop.0+0xc5/0xf0 [ 33.239926][ C1] ? cpuidle_idle_call+0x1f4/0x280 [ 33.240107][ C1] default_idle_call+0x6d/0xb0 [ 33.240253][ C1] cpuidle_idle_call+0x1f4/0x280 [ 33.240400][ C1] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 33.240544][ C1] ? tsc_verify_tsc_adjust+0x5e/0x2b0 [ 33.240696][ C1] do_idle+0xf9/0x160 [ 33.240799][ C1] cpu_startup_entry+0x54/0x60 [ 33.240952][ C1] start_secondary+0x21c/0x2b0 [ 33.241088][ C1] ? __pfx_start_secondary+0x10/0x10 [ 33.241232][ C1] common_startup_64+0x12c/0x138 [ 33.241370][ C1]