[ 24.601507][ T236] ip (236) used greatest stack depth: 22880 bytes left [ 36.210897][ C1] [ 36.211031][ C1] ======================================================== [ 36.211236][ C1] WARNING: possible irq lock inversion dependency detected [ 36.211444][ C1] 6.9.0-rc1-virtme #1 Not tainted [ 36.211594][ C1] -------------------------------------------------------- [ 36.211795][ C1] swapper/1/0 just changed the state of lock: [ 36.212011][ C1] ffff888004ee2580 (&ndev->lock){++-.}-{2:2}, at: addrconf_rs_timer+0xa9/0x730 [ 36.212275][ C1] but this lock took another, SOFTIRQ-unsafe lock in the past: [ 36.212490][ C1] (&p->alloc_lock){+.+.}-{2:2} [ 36.212494][ C1] [ 36.212494][ C1] [ 36.212494][ C1] and interrupts could create inverse lock ordering between them. [ 36.212494][ C1] [ 36.213026][ C1] [ 36.213026][ C1] other info that might help us debug this: [ 36.213242][ C1] Possible interrupt unsafe locking scenario: [ 36.213242][ C1] [ 36.213449][ C1] CPU0 CPU1 [ 36.213601][ C1] ---- ---- [ 36.213737][ C1] lock(&p->alloc_lock); [ 36.213859][ C1] local_irq_disable(); [ 36.214033][ C1] lock(&ndev->lock); [ 36.214213][ C1] lock(&p->alloc_lock); [ 36.214377][ C1] [ 36.214483][ C1] lock(&ndev->lock); [ 36.214600][ C1] [ 36.214600][ C1] *** DEADLOCK *** [ 36.214600][ C1] [ 36.214789][ C1] 1 lock held by swapper/1/0: [ 36.214974][ C1] #0: ffffc900001d8d68 ((&ndev->rs_timer)){+.-.}-{0:0}, at: call_timer_fn+0xe8/0x230 [ 36.215241][ C1] [ 36.215241][ C1] the shortest dependencies between 2nd lock and 1st lock: [ 36.215502][ C1] -> (&p->alloc_lock){+.+.}-{2:2} { [ 36.215649][ C1] HARDIRQ-ON-W at: [ 36.215755][ C1] __lock_acquire+0x797/0x1570 [ 36.215995][ C1] lock_acquire.part.0+0xeb/0x330 [ 36.216167][ C1] _raw_spin_lock+0x30/0x40 [ 36.216334][ C1] set_mems_allowed+0x1d/0x210 [ 36.216508][ C1] kernel_init_freeable+0x72/0x310 [ 36.216686][ C1] kernel_init+0x20/0x200 [ 36.216866][ C1] ret_from_fork+0x31/0x70 [ 36.217052][ C1] ret_from_fork_asm+0x1a/0x30 [ 36.217220][ C1] SOFTIRQ-ON-W at: [ 36.217321][ C1] __lock_acquire+0x797/0x1570 [ 36.217496][ C1] lock_acquire.part.0+0xeb/0x330 [ 36.217682][ C1] _raw_spin_lock+0x30/0x40 [ 36.217868][ C1] set_mems_allowed+0x1d/0x210 [ 36.218036][ C1] kernel_init_freeable+0x72/0x310 [ 36.218206][ C1] kernel_init+0x20/0x200 [ 36.218379][ C1] ret_from_fork+0x31/0x70 [ 36.218548][ C1] ret_from_fork_asm+0x1a/0x30 [ 36.218723][ C1] INITIAL USE at: [ 36.218822][ C1] __lock_acquire+0x797/0x1570 [ 36.219012][ C1] lock_acquire.part.0+0xeb/0x330 [ 36.219180][ C1] _raw_spin_lock+0x30/0x40 [ 36.219350][ C1] set_mems_allowed+0x1d/0x210 [ 36.219517][ C1] kernel_init_freeable+0x72/0x310 [ 36.219687][ C1] kernel_init+0x20/0x200 [ 36.219858][ C1] ret_from_fork+0x31/0x70 [ 36.220070][ C1] ret_from_fork_asm+0x1a/0x30 [ 36.220244][ C1] } [ 36.220314][ C1] ... key at: [] __key.387+0x0/0x40 [ 36.220516][ C1] ... acquired at: [ 36.220616][ C1] __lock_acquire+0xaf0/0x1570 [ 36.220757][ C1] lock_acquire.part.0+0xeb/0x330 [ 36.220902][ C1] _raw_spin_lock+0x30/0x40 [ 36.221043][ C1] __get_task_comm+0x27/0x70 [ 36.221178][ C1] ref_tracker_alloc+0x2ee/0x490 [ 36.221313][ C1] netdev_get_by_index+0x5e/0x80 [ 36.221448][ C1] fib6_nh_init+0x3d8/0x15b0 [ 36.221584][ C1] ip6_route_info_create+0xf18/0x17d0 [ 36.221716][ C1] addrconf_f6i_alloc+0x265/0x560 [ 36.221854][ C1] __ipv6_dev_ac_inc+0x25f/0xb10 [ 36.222009][ C1] addrconf_join_anycast+0x1c0/0x220 [ 36.222152][ C1] dev_forward_change+0x2a6/0x7b0 [ 36.222301][ C1] addrconf_fixup_forwarding+0x23f/0x460 [ 36.222479][ C1] addrconf_sysctl_forward+0x212/0x2b0 [ 36.222632][ C1] proc_sys_call_handler+0x403/0x5e0 [ 36.222771][ C1] vfs_write+0x9e5/0x10a0 [ 36.222945][ C1] ksys_write+0xf5/0x1e0 [ 36.223079][ C1] do_syscall_64+0xc6/0x1e0 [ 36.223227][ C1] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 36.223394][ C1] [ 36.223463][ C1] -> (&ndev->lock){++-.}-{2:2} { [ 36.223614][ C1] HARDIRQ-ON-W at: [ 36.223715][ C1] __lock_acquire+0x797/0x1570 [ 36.223918][ C1] lock_acquire.part.0+0xeb/0x330 [ 36.224089][ C1] _raw_write_lock_bh+0x38/0x50 [ 36.224261][ C1] addrconf_permanent_addr+0x6e/0x670 [ 36.224426][ C1] addrconf_notify+0x749/0xd60 [ 36.224595][ C1] notifier_call_chain+0xcd/0x150 [ 36.224782][ C1] __dev_notify_flags+0xe6/0x250 [ 36.224967][ C1] dev_change_flags+0xec/0x160 [ 36.225146][ C1] do_setlink+0x7d6/0x21e0 [ 36.225316][ C1] __rtnl_newlink+0xaa7/0xd80 [ 36.225505][ C1] rtnl_newlink+0x63/0xa0 [ 36.225679][ C1] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 36.225870][ C1] netlink_rcv_skb+0x130/0x360 [ 36.226057][ C1] netlink_unicast+0x449/0x710 [ 36.226237][ C1] netlink_sendmsg+0x723/0xbe0 [ 36.226426][ C1] ____sys_sendmsg+0x7b2/0xa10 [ 36.226594][ C1] ___sys_sendmsg+0xee/0x170 [ 36.226778][ C1] __sys_sendmsg+0xcd/0x170 [ 36.226982][ C1] do_syscall_64+0xc6/0x1e0 [ 36.227158][ C1] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 36.227377][ C1] HARDIRQ-ON-R at: [ 36.227484][ C1] __lock_acquire+0x797/0x1570 [ 36.227686][ C1] lock_acquire.part.0+0xeb/0x330 [ 36.227867][ C1] _raw_read_lock_bh+0x44/0x80 [ 36.228069][ C1] inet6_fill_ifla6_attrs+0x516/0x740 [ 36.228256][ C1] inet6_fill_link_af+0x5e/0xe0 [ 36.228429][ C1] rtnl_fill_ifinfo+0x1612/0x29e0 [ 36.228611][ C1] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 36.228784][ C1] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 36.229022][ C1] rtmsg_ifinfo+0x5b/0xa0 [ 36.229207][ C1] register_netdevice+0x1177/0x1690 [ 36.229373][ C1] register_netdev+0x20/0x40 [ 36.229557][ C1] sit_init_net+0x250/0x4f0 [ 36.229737][ C1] ops_init+0x9b/0x560 [ 36.229897][ C1] register_pernet_operations+0x2db/0x710 [ 36.230108][ C1] register_pernet_device+0x2a/0x60 [ 36.230283][ C1] sit_init+0x23/0xe0 [ 36.230418][ C1] do_one_initcall+0x8d/0x1e0 [ 36.230603][ C1] do_initcalls+0x1b2/0x3e0 [ 36.230780][ C1] kernel_init_freeable+0x232/0x310 [ 36.230991][ C1] kernel_init+0x20/0x200 [ 36.231177][ C1] ret_from_fork+0x31/0x70 [ 36.231355][ C1] ret_from_fork_asm+0x1a/0x30 [ 36.231524][ C1] IN-SOFTIRQ-W at: [ 36.231623][ C1] __lock_acquire+0x797/0x1570 [ 36.231791][ C1] lock_acquire.part.0+0xeb/0x330 [ 36.231994][ C1] _raw_write_lock+0x30/0x40 [ 36.232166][ C1] addrconf_rs_timer+0xa9/0x730 [ 36.232331][ C1] call_timer_fn+0x13b/0x230 [ 36.232504][ C1] __run_timers+0x545/0x810 [ 36.232672][ C1] run_timer_softirq+0xe8/0x1b0 [ 36.232854][ C1] __do_softirq+0x1f8/0x5df [ 36.233030][ C1] irq_exit_rcu+0x97/0xc0 [ 36.233211][ C1] sysvec_apic_timer_interrupt+0x75/0x80 [ 36.233415][ C1] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 36.233621][ C1] default_idle+0xf/0x20 [ 36.233808][ C1] default_idle_call+0x6d/0xb0 [ 36.233992][ C1] cpuidle_idle_call+0x1f4/0x280 [ 36.234192][ C1] do_idle+0xf9/0x160 [ 36.234330][ C1] cpu_startup_entry+0x54/0x60 [ 36.234517][ C1] start_secondary+0x21c/0x2b0 [ 36.234686][ C1] common_startup_64+0x12c/0x138 [ 36.234875][ C1] INITIAL USE at: [ 36.234991][ C1] __lock_acquire+0x797/0x1570 [ 36.235194][ C1] lock_acquire.part.0+0xeb/0x330 [ 36.235364][ C1] _raw_write_lock_bh+0x38/0x50 [ 36.235557][ C1] addrconf_permanent_addr+0x6e/0x670 [ 36.235733][ C1] addrconf_notify+0x749/0xd60 [ 36.235927][ C1] notifier_call_chain+0xcd/0x150 [ 36.236111][ C1] __dev_notify_flags+0xe6/0x250 [ 36.236279][ C1] dev_change_flags+0xec/0x160 [ 36.236451][ C1] do_setlink+0x7d6/0x21e0 [ 36.236625][ C1] __rtnl_newlink+0xaa7/0xd80 [ 36.236811][ C1] rtnl_newlink+0x63/0xa0 [ 36.237003][ C1] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 36.237183][ C1] netlink_rcv_skb+0x130/0x360 [ 36.237355][ C1] netlink_unicast+0x449/0x710 [ 36.237541][ C1] netlink_sendmsg+0x723/0xbe0 [ 36.237739][ C1] ____sys_sendmsg+0x7b2/0xa10 [ 36.237923][ C1] ___sys_sendmsg+0xee/0x170 [ 36.238123][ C1] __sys_sendmsg+0xcd/0x170 [ 36.238298][ C1] do_syscall_64+0xc6/0x1e0 [ 36.238468][ C1] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 36.238671][ C1] INITIAL READ USE at: [ 36.238778][ C1] __lock_acquire+0x797/0x1570 [ 36.238973][ C1] lock_acquire.part.0+0xeb/0x330 [ 36.239145][ C1] _raw_read_lock_bh+0x44/0x80 [ 36.239311][ C1] inet6_fill_ifla6_attrs+0x516/0x740 [ 36.239518][ C1] inet6_fill_link_af+0x5e/0xe0 [ 36.239690][ C1] rtnl_fill_ifinfo+0x1612/0x29e0 [ 36.239869][ C1] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 36.240103][ C1] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 36.240304][ C1] rtmsg_ifinfo+0x5b/0xa0 [ 36.240470][ C1] register_netdevice+0x1177/0x1690 [ 36.240670][ C1] register_netdev+0x20/0x40 [ 36.240838][ C1] sit_init_net+0x250/0x4f0 [ 36.241021][ C1] ops_init+0x9b/0x560 [ 36.241190][ C1] register_pernet_operations+0x2db/0x710 [ 36.241390][ C1] register_pernet_device+0x2a/0x60 [ 36.241591][ C1] sit_init+0x23/0xe0 [ 36.241758][ C1] do_one_initcall+0x8d/0x1e0 [ 36.241936][ C1] do_initcalls+0x1b2/0x3e0 [ 36.242106][ C1] kernel_init_freeable+0x232/0x310 [ 36.242303][ C1] kernel_init+0x20/0x200 [ 36.242548][ C1] ret_from_fork+0x31/0x70 [ 36.242722][ C1] ret_from_fork_asm+0x1a/0x30 [ 36.242899][ C1] } [ 36.242968][ C1] ... key at: [] __key.37+0x0/0x40 [ 36.243238][ C1] ... acquired at: [ 36.243338][ C1] mark_lock+0x28d/0x3e0 [ 36.243471][ C1] mark_usage+0xd9/0x2a0 [ 36.243602][ C1] __lock_acquire+0x797/0x1570 [ 36.243811][ C1] lock_acquire.part.0+0xeb/0x330 [ 36.243969][ C1] _raw_write_lock+0x30/0x40 [ 36.244103][ C1] addrconf_rs_timer+0xa9/0x730 [ 36.244338][ C1] call_timer_fn+0x13b/0x230 [ 36.244473][ C1] __run_timers+0x545/0x810 [ 36.244624][ C1] run_timer_softirq+0xe8/0x1b0 [ 36.244871][ C1] __do_softirq+0x1f8/0x5df [ 36.245023][ C1] irq_exit_rcu+0x97/0xc0 [ 36.245163][ C1] sysvec_apic_timer_interrupt+0x75/0x80 [ 36.245332][ C1] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 36.245496][ C1] default_idle+0xf/0x20 [ 36.245649][ C1] default_idle_call+0x6d/0xb0 [ 36.245795][ C1] cpuidle_idle_call+0x1f4/0x280 [ 36.245955][ C1] do_idle+0xf9/0x160 [ 36.246057][ C1] cpu_startup_entry+0x54/0x60 [ 36.246189][ C1] start_secondary+0x21c/0x2b0 [ 36.246404][ C1] common_startup_64+0x12c/0x138 [ 36.246538][ C1] [ 36.246609][ C1] [ 36.246609][ C1] stack backtrace: [ 36.246780][ C1] CPU: 1 PID: 0 Comm: swapper/1 Not tainted 6.9.0-rc1-virtme #1 [ 36.247073][ C1] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 36.247449][ C1] Call Trace: [ 36.247550][ C1] [ 36.247645][ C1] dump_stack_lvl+0x82/0xd0 [ 36.247793][ C1] print_irq_inversion_bug.part.0+0x3d9/0x570 [ 36.248078][ C1] ? kernel_text_address+0x17/0xe0 [ 36.248222][ C1] ? __pfx_print_irq_inversion_bug.part.0+0x10/0x10 [ 36.248403][ C1] ? __pfx_usage_skip+0x10/0x10 [ 36.248533][ C1] ? __pfx_usage_match+0x10/0x10 [ 36.248773][ C1] ? arch_stack_walk+0x8c/0xf0 [ 36.248943][ C1] mark_lock_irq+0x4cd/0xa10 [ 36.249086][ C1] ? common_startup_64+0x12c/0x138 [ 36.249246][ C1] ? __pfx_mark_lock_irq+0x10/0x10 [ 36.249453][ C1] ? __pfx_stack_trace_save+0x10/0x10 [ 36.249605][ C1] ? save_trace+0x8f/0x5b0 [ 36.249740][ C1] mark_lock+0x28d/0x3e0 [ 36.249862][ C1] ? __pfx_stack_trace_save+0x10/0x10 [ 36.250157][ C1] mark_usage+0xd9/0x2a0 [ 36.250260][ C1] __lock_acquire+0x797/0x1570 [ 36.250399][ C1] ? __pfx_validate_chain+0x10/0x10 [ 36.250551][ C1] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 36.250761][ C1] lock_acquire.part.0+0xeb/0x330 [ 36.250904][ C1] ? addrconf_rs_timer+0xa9/0x730 [ 36.251036][ C1] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 36.251171][ C1] ? trace_lock_acquire+0x135/0x1c0 [ 36.251380][ C1] ? addrconf_rs_timer+0xa9/0x730 [ 36.251521][ C1] ? lock_acquire+0x32/0xc0 [ 36.251739][ C1] ? addrconf_rs_timer+0xa9/0x730 [ 36.251882][ C1] _raw_write_lock+0x30/0x40 [ 36.252017][ C1] ? addrconf_rs_timer+0xa9/0x730 [ 36.252150][ C1] addrconf_rs_timer+0xa9/0x730 [ 36.252284][ C1] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 36.252499][ C1] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 36.252632][ C1] ? call_timer_fn+0xe8/0x230 [ 36.252773][ C1] ? lock_acquire+0x32/0xc0 [ 36.252935][ C1] ? call_timer_fn+0xe8/0x230 [ 36.253068][ C1] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 36.253285][ C1] call_timer_fn+0x13b/0x230 [ 36.253416][ C1] ? call_timer_fn+0xe8/0x230 [ 36.253568][ C1] ? call_timer_fn+0xe8/0x230 [ 36.253706][ C1] ? __pfx_call_timer_fn+0x10/0x10 [ 36.253841][ C1] ? mark_lock+0x38/0x3e0 [ 36.254063][ C1] __run_timers+0x545/0x810 [ 36.254197][ C1] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 36.254333][ C1] ? __pfx___run_timers+0x10/0x10 [ 36.254498][ C1] ? do_raw_spin_lock+0x131/0x270 [ 36.254631][ C1] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 36.254848][ C1] ? lock_acquire+0x32/0xc0 [ 36.254994][ C1] ? run_timer_softirq+0xe0/0x1b0 [ 36.255130][ C1] run_timer_softirq+0xe8/0x1b0 [ 36.255264][ C1] __do_softirq+0x1f8/0x5df [ 36.255404][ C1] irq_exit_rcu+0x97/0xc0 [ 36.255510][ C1] sysvec_apic_timer_interrupt+0x75/0x80 [ 36.255723][ C1] [ 36.255795][ C1] [ 36.255871][ C1] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 36.256045][ C1] RIP: 0010:default_idle+0xf/0x20 [ 36.256191][ 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 [ 36.256768][ C1] RSP: 0018:ffffc9000014fdf8 EFLAGS: 00000242 [ 36.256986][ C1] RAX: 0000000000097301 RBX: 1ffff92000029fc1 RCX: ffffffff8a10e9d5 [ 36.257254][ C1] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffff87aaa4a4 [ 36.257610][ C1] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1005f1709c [ 36.257831][ C1] R10: ffff88802f8b84e3 R11: ffff88802f8bdc80 R12: 0000000000000000 [ 36.258056][ C1] R13: ffff888001b7a300 R14: dffffc0000000000 R15: 0000000000000000 [ 36.258337][ C1] ? ct_kernel_exit.constprop.0+0xc5/0xf0 [ 36.258472][ C1] ? cpuidle_idle_call+0x1f4/0x280 [ 36.258605][ C1] default_idle_call+0x6d/0xb0 [ 36.258739][ C1] cpuidle_idle_call+0x1f4/0x280 [ 36.258960][ C1] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 36.259101][ C1] ? tsc_verify_tsc_adjust+0x5e/0x2b0 [ 36.259237][ C1] do_idle+0xf9/0x160 [ 36.259341][ C1] cpu_startup_entry+0x54/0x60 [ 36.259486][ C1] start_secondary+0x21c/0x2b0 [ 36.259704][ C1] ? __pfx_start_secondary+0x10/0x10 [ 36.259861][ C1] common_startup_64+0x12c/0x138 [ 36.260005][ C1]