[ 23.779149][ T244] ip (244) used greatest stack depth: 24640 bytes left [ 27.627759][ T268] tc (268) used greatest stack depth: 24544 bytes left [ 31.062128][ C2] [ 31.062234][ C2] ======================================================== [ 31.062453][ C2] WARNING: possible irq lock inversion dependency detected [ 31.062681][ C2] 6.9.0-rc1-virtme #1 Not tainted [ 31.062829][ C2] -------------------------------------------------------- [ 31.063046][ C2] swapper/2/0 just changed the state of lock: [ 31.063232][ C2] ffff888006593d80 (&ndev->lock){++-.}-{2:2}, at: addrconf_rs_timer+0xa9/0x730 [ 31.063499][ C2] but this lock took another, SOFTIRQ-unsafe lock in the past: [ 31.063716][ C2] (&p->alloc_lock){+.+.}-{2:2} [ 31.063720][ C2] [ 31.063720][ C2] [ 31.063720][ C2] and interrupts could create inverse lock ordering between them. [ 31.063720][ C2] [ 31.064265][ C2] [ 31.064265][ C2] other info that might help us debug this: [ 31.064482][ C2] Possible interrupt unsafe locking scenario: [ 31.064482][ C2] [ 31.064700][ C2] CPU0 CPU1 [ 31.064847][ C2] ---- ---- [ 31.064993][ C2] lock(&p->alloc_lock); [ 31.065111][ C2] local_irq_disable(); [ 31.065294][ C2] lock(&ndev->lock); [ 31.065478][ C2] lock(&p->alloc_lock); [ 31.065666][ C2] [ 31.065777][ C2] lock(&ndev->lock); [ 31.065888][ C2] [ 31.065888][ C2] *** DEADLOCK *** [ 31.065888][ C2] [ 31.066105][ C2] 1 lock held by swapper/2/0: [ 31.066251][ C2] #0: ffffc90000230b68 ((&ndev->rs_timer)){+.-.}-{0:0}, at: call_timer_fn+0xe8/0x230 [ 31.066516][ C2] [ 31.066516][ C2] the shortest dependencies between 2nd lock and 1st lock: [ 31.066778][ C2] -> (&p->alloc_lock){+.+.}-{2:2} { [ 31.066940][ C2] HARDIRQ-ON-W at: [ 31.067056][ C2] __lock_acquire+0x797/0x1570 [ 31.067252][ C2] lock_acquire.part.0+0xeb/0x330 [ 31.067441][ C2] _raw_spin_lock+0x30/0x40 [ 31.067629][ C2] set_mems_allowed+0x1d/0x210 [ 31.067815][ C2] kernel_init_freeable+0x72/0x310 [ 31.068004][ C2] kernel_init+0x20/0x200 [ 31.068192][ C2] ret_from_fork+0x31/0x70 [ 31.068381][ C2] ret_from_fork_asm+0x1a/0x30 [ 31.068567][ C2] SOFTIRQ-ON-W at: [ 31.068679][ C2] __lock_acquire+0x797/0x1570 [ 31.068865][ C2] lock_acquire.part.0+0xeb/0x330 [ 31.069051][ C2] _raw_spin_lock+0x30/0x40 [ 31.069237][ C2] set_mems_allowed+0x1d/0x210 [ 31.069423][ C2] kernel_init_freeable+0x72/0x310 [ 31.069610][ C2] kernel_init+0x20/0x200 [ 31.069795][ C2] ret_from_fork+0x31/0x70 [ 31.069983][ C2] ret_from_fork_asm+0x1a/0x30 [ 31.070169][ C2] INITIAL USE at: [ 31.070281][ C2] __lock_acquire+0x797/0x1570 [ 31.070470][ C2] lock_acquire.part.0+0xeb/0x330 [ 31.070657][ C2] _raw_spin_lock+0x30/0x40 [ 31.070843][ C2] set_mems_allowed+0x1d/0x210 [ 31.071028][ C2] kernel_init_freeable+0x72/0x310 [ 31.071215][ C2] kernel_init+0x20/0x200 [ 31.071405][ C2] ret_from_fork+0x31/0x70 [ 31.071591][ C2] ret_from_fork_asm+0x1a/0x30 [ 31.071777][ C2] } [ 31.071854][ C2] ... key at: [] __key.388+0x0/0x40 [ 31.072078][ C2] ... acquired at: [ 31.072188][ C2] __lock_acquire+0xaf0/0x1570 [ 31.072338][ C2] lock_acquire.part.0+0xeb/0x330 [ 31.072488][ C2] _raw_spin_lock+0x30/0x40 [ 31.072639][ C2] __get_task_comm+0x27/0x70 [ 31.072789][ C2] ref_tracker_alloc+0x2ee/0x490 [ 31.072938][ C2] netdev_get_by_index+0x5e/0x80 [ 31.073087][ C2] fib6_nh_init+0x3d8/0x1580 [ 31.073236][ C2] ip6_route_info_create+0xf18/0x17d0 [ 31.073382][ C2] addrconf_f6i_alloc+0x265/0x560 [ 31.073530][ C2] __ipv6_dev_ac_inc+0x25f/0xb10 [ 31.073681][ C2] addrconf_join_anycast+0x1c0/0x220 [ 31.073830][ C2] dev_forward_change+0x2a6/0x7b0 [ 31.073977][ C2] addrconf_fixup_forwarding+0x23f/0x460 [ 31.074160][ C2] addrconf_sysctl_forward+0x212/0x2b0 [ 31.074310][ C2] proc_sys_call_handler+0x403/0x5e0 [ 31.074459][ C2] vfs_write+0x9e5/0x10a0 [ 31.074608][ C2] ksys_write+0xf5/0x1e0 [ 31.074758][ C2] do_syscall_64+0xc6/0x1e0 [ 31.074907][ C2] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 31.075093][ C2] [ 31.075167][ C2] -> (&ndev->lock){++-.}-{2:2} { [ 31.075319][ C2] HARDIRQ-ON-W at: [ 31.075430][ C2] __lock_acquire+0x797/0x1570 [ 31.075617][ C2] lock_acquire.part.0+0xeb/0x330 [ 31.075803][ C2] _raw_write_lock_bh+0x38/0x50 [ 31.075991][ C2] addrconf_permanent_addr+0x6e/0x670 [ 31.076181][ C2] addrconf_notify+0x749/0xd60 [ 31.076367][ C2] notifier_call_chain+0xcd/0x150 [ 31.076554][ C2] __dev_notify_flags+0xe6/0x250 [ 31.076745][ C2] dev_change_flags+0xec/0x160 [ 31.076936][ C2] do_setlink+0x7d6/0x21e0 [ 31.077125][ C2] __rtnl_newlink+0xaa7/0xd80 [ 31.077313][ C2] rtnl_newlink+0x63/0xa0 [ 31.077497][ C2] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 31.077684][ C2] netlink_rcv_skb+0x130/0x360 [ 31.077871][ C2] netlink_unicast+0x449/0x710 [ 31.078057][ C2] netlink_sendmsg+0x723/0xbe0 [ 31.078244][ C2] ____sys_sendmsg+0x7b2/0xa10 [ 31.078431][ C2] ___sys_sendmsg+0xee/0x170 [ 31.078619][ C2] __sys_sendmsg+0xcd/0x170 [ 31.078804][ C2] do_syscall_64+0xc6/0x1e0 [ 31.078990][ C2] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 31.079215][ C2] HARDIRQ-ON-R at: [ 31.079324][ C2] __lock_acquire+0x797/0x1570 [ 31.079513][ C2] lock_acquire.part.0+0xeb/0x330 [ 31.079702][ C2] _raw_read_lock_bh+0x44/0x80 [ 31.079888][ C2] inet6_fill_ifla6_attrs+0x516/0x740 [ 31.080073][ C2] inet6_fill_link_af+0x5e/0xe0 [ 31.080261][ C2] rtnl_fill_ifinfo+0x1615/0x2a90 [ 31.080445][ C2] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 31.080631][ C2] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 31.080861][ C2] rtmsg_ifinfo+0x5b/0xa0 [ 31.081048][ C2] register_netdevice+0x1177/0x1690 [ 31.081233][ C2] register_netdev+0x20/0x40 [ 31.081420][ C2] vti6_init_net+0x25d/0x380 [ 31.081607][ C2] ops_init+0x9b/0x560 [ 31.081755][ C2] register_pernet_operations+0x2db/0x710 [ 31.081978][ C2] register_pernet_device+0x2a/0x60 [ 31.082167][ C2] vti6_tunnel_init+0x18/0x110 [ 31.082355][ C2] do_one_initcall+0x8d/0x1e0 [ 31.082541][ C2] do_initcalls+0x1b2/0x3e0 [ 31.082728][ C2] kernel_init_freeable+0x232/0x310 [ 31.082911][ C2] kernel_init+0x20/0x200 [ 31.083096][ C2] ret_from_fork+0x31/0x70 [ 31.083287][ C2] ret_from_fork_asm+0x1a/0x30 [ 31.083475][ C2] IN-SOFTIRQ-W at: [ 31.083585][ C2] __lock_acquire+0x797/0x1570 [ 31.083769][ C2] lock_acquire.part.0+0xeb/0x330 [ 31.083956][ C2] _raw_write_lock+0x30/0x40 [ 31.084142][ C2] addrconf_rs_timer+0xa9/0x730 [ 31.084329][ C2] call_timer_fn+0x13b/0x230 [ 31.084517][ C2] __run_timers+0x545/0x810 [ 31.084703][ C2] timer_expire_remote+0x9b/0xe0 [ 31.084889][ C2] tmigr_handle_remote_cpu+0x270/0x430 [ 31.085077][ C2] tmigr_handle_remote_up+0x19f/0x2e0 [ 31.085263][ C2] tmigr_handle_remote+0x21d/0x3a0 [ 31.085449][ C2] __do_softirq+0x1f8/0x5df [ 31.085639][ C2] irq_exit_rcu+0x97/0xc0 [ 31.085824][ C2] sysvec_apic_timer_interrupt+0x75/0x80 [ 31.086051][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 31.086273][ C2] default_idle+0xf/0x20 [ 31.086459][ C2] default_idle_call+0x6d/0xb0 [ 31.086732][ C2] cpuidle_idle_call+0x1f4/0x280 [ 31.086926][ C2] do_idle+0xf9/0x160 [ 31.087074][ C2] cpu_startup_entry+0x54/0x60 [ 31.087340][ C2] start_secondary+0x21c/0x2b0 [ 31.087527][ C2] common_startup_64+0x12c/0x138 [ 31.087713][ C2] INITIAL USE at: [ 31.087823][ C2] __lock_acquire+0x797/0x1570 [ 31.088089][ C2] lock_acquire.part.0+0xeb/0x330 [ 31.088277][ C2] _raw_write_lock_bh+0x38/0x50 [ 31.088462][ C2] addrconf_permanent_addr+0x6e/0x670 [ 31.088647][ C2] addrconf_notify+0x749/0xd60 [ 31.088991][ C2] notifier_call_chain+0xcd/0x150 [ 31.089175][ C2] __dev_notify_flags+0xe6/0x250 [ 31.089360][ C2] dev_change_flags+0xec/0x160 [ 31.089633][ C2] do_setlink+0x7d6/0x21e0 [ 31.089816][ C2] __rtnl_newlink+0xaa7/0xd80 [ 31.090001][ C2] rtnl_newlink+0x63/0xa0 [ 31.090268][ C2] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 31.090453][ C2] netlink_rcv_skb+0x130/0x360 [ 31.090637][ C2] netlink_unicast+0x449/0x710 [ 31.090824][ C2] netlink_sendmsg+0x723/0xbe0 [ 31.091094][ C2] ____sys_sendmsg+0x7b2/0xa10 [ 31.091281][ C2] ___sys_sendmsg+0xee/0x170 [ 31.091467][ C2] __sys_sendmsg+0xcd/0x170 [ 31.091732][ C2] do_syscall_64+0xc6/0x1e0 [ 31.091918][ C2] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 31.092141][ C2] INITIAL READ USE at: [ 31.092254][ C2] __lock_acquire+0x797/0x1570 [ 31.092526][ C2] lock_acquire.part.0+0xeb/0x330 [ 31.092713][ C2] _raw_read_lock_bh+0x44/0x80 [ 31.092901][ C2] inet6_fill_ifla6_attrs+0x516/0x740 [ 31.093209][ C2] inet6_fill_link_af+0x5e/0xe0 [ 31.093395][ C2] rtnl_fill_ifinfo+0x1615/0x2a90 [ 31.093586][ C2] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 31.093808][ C2] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 31.094030][ C2] rtmsg_ifinfo+0x5b/0xa0 [ 31.094215][ C2] register_netdevice+0x1177/0x1690 [ 31.094438][ C2] register_netdev+0x20/0x40 [ 31.094625][ C2] vti6_init_net+0x25d/0x380 [ 31.094815][ C2] ops_init+0x9b/0x560 [ 31.095000][ C2] register_pernet_operations+0x2db/0x710 [ 31.095311][ C2] register_pernet_device+0x2a/0x60 [ 31.095533][ C2] vti6_tunnel_init+0x18/0x110 [ 31.095720][ C2] do_one_initcall+0x8d/0x1e0 [ 31.095906][ C2] do_initcalls+0x1b2/0x3e0 [ 31.096095][ C2] kernel_init_freeable+0x232/0x310 [ 31.096317][ C2] kernel_init+0x20/0x200 [ 31.096500][ C2] ret_from_fork+0x31/0x70 [ 31.096686][ C2] ret_from_fork_asm+0x1a/0x30 [ 31.096883][ C2] } [ 31.096958][ C2] ... key at: [] __key.37+0x0/0x40 [ 31.097260][ C2] ... acquired at: [ 31.097372][ C2] mark_lock+0x28d/0x3e0 [ 31.097517][ C2] mark_usage+0xd9/0x2a0 [ 31.097663][ C2] __lock_acquire+0x797/0x1570 [ 31.097810][ C2] lock_acquire.part.0+0xeb/0x330 [ 31.097956][ C2] _raw_write_lock+0x30/0x40 [ 31.098103][ C2] addrconf_rs_timer+0xa9/0x730 [ 31.098251][ C2] call_timer_fn+0x13b/0x230 [ 31.098399][ C2] __run_timers+0x545/0x810 [ 31.098543][ C2] timer_expire_remote+0x9b/0xe0 [ 31.098693][ C2] tmigr_handle_remote_cpu+0x270/0x430 [ 31.098838][ C2] tmigr_handle_remote_up+0x19f/0x2e0 [ 31.099062][ C2] tmigr_handle_remote+0x21d/0x3a0 [ 31.099211][ C2] __do_softirq+0x1f8/0x5df [ 31.099359][ C2] irq_exit_rcu+0x97/0xc0 [ 31.099505][ C2] sysvec_apic_timer_interrupt+0x75/0x80 [ 31.099845][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 31.100033][ C2] default_idle+0xf/0x20 [ 31.100179][ C2] default_idle_call+0x6d/0xb0 [ 31.100327][ C2] cpuidle_idle_call+0x1f4/0x280 [ 31.100554][ C2] do_idle+0xf9/0x160 [ 31.100666][ C2] cpu_startup_entry+0x54/0x60 [ 31.100812][ C2] start_secondary+0x21c/0x2b0 [ 31.100962][ C2] common_startup_64+0x12c/0x138 [ 31.101109][ C2] [ 31.101259][ C2] [ 31.101259][ C2] stack backtrace: [ 31.101443][ C2] CPU: 2 PID: 0 Comm: swapper/2 Not tainted 6.9.0-rc1-virtme #1 [ 31.101664][ C2] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 31.102067][ C2] Call Trace: [ 31.102181][ C2] [ 31.102258][ C2] dump_stack_lvl+0x82/0xd0 [ 31.102409][ C2] print_irq_inversion_bug.part.0+0x3d9/0x570 [ 31.102669][ C2] ? kernel_text_address+0x17/0xe0 [ 31.102828][ C2] ? __pfx_print_irq_inversion_bug.part.0+0x10/0x10 [ 31.103011][ C2] ? __pfx_usage_skip+0x10/0x10 [ 31.103158][ C2] ? __pfx_usage_match+0x10/0x10 [ 31.103381][ C2] ? arch_stack_walk+0x8c/0xf0 [ 31.103529][ C2] mark_lock_irq+0x4cd/0xa10 [ 31.103676][ C2] ? common_startup_64+0x12c/0x138 [ 31.103823][ C2] ? __pfx_mark_lock_irq+0x10/0x10 [ 31.103975][ C2] ? __pfx_stack_trace_save+0x10/0x10 [ 31.104206][ C2] ? save_trace+0x8f/0x5b0 [ 31.104354][ C2] mark_lock+0x28d/0x3e0 [ 31.104470][ C2] ? __pfx_stack_trace_save+0x10/0x10 [ 31.104617][ C2] mark_usage+0xd9/0x2a0 [ 31.104732][ C2] __lock_acquire+0x797/0x1570 [ 31.104881][ C2] ? __pfx_validate_chain+0x10/0x10 [ 31.105030][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 31.105179][ C2] lock_acquire.part.0+0xeb/0x330 [ 31.105329][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 31.105477][ C2] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 31.105625][ C2] ? trace_lock_acquire+0x135/0x1c0 [ 31.105773][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 31.105918][ C2] ? lock_acquire+0x32/0xc0 [ 31.106145][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 31.106291][ C2] _raw_write_lock+0x30/0x40 [ 31.106438][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 31.106594][ C2] addrconf_rs_timer+0xa9/0x730 [ 31.106748][ C2] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 31.106896][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 31.107045][ C2] ? call_timer_fn+0xe8/0x230 [ 31.107193][ C2] ? lock_acquire+0x32/0xc0 [ 31.107339][ C2] ? call_timer_fn+0xe8/0x230 [ 31.107488][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 31.107634][ C2] call_timer_fn+0x13b/0x230 [ 31.107785][ C2] ? call_timer_fn+0xe8/0x230 [ 31.107933][ C2] ? call_timer_fn+0xe8/0x230 [ 31.108157][ C2] ? __pfx_call_timer_fn+0x10/0x10 [ 31.108303][ C2] ? mark_lock+0x38/0x3e0 [ 31.108417][ C2] __run_timers+0x545/0x810 [ 31.108566][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 31.108789][ C2] ? __pfx___run_timers+0x10/0x10 [ 31.108936][ C2] ? __lock_release+0x103/0x460 [ 31.109082][ C2] ? do_raw_spin_lock+0x131/0x270 [ 31.109234][ C2] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 31.109456][ C2] ? lock_acquire+0x32/0xc0 [ 31.109602][ C2] ? timer_expire_remote+0x93/0xe0 [ 31.109750][ C2] timer_expire_remote+0x9b/0xe0 [ 31.109897][ C2] tmigr_handle_remote_cpu+0x270/0x430 [ 31.110044][ C2] ? __pfx_tmigr_handle_remote_cpu+0x10/0x10 [ 31.110313][ C2] tmigr_handle_remote_up+0x19f/0x2e0 [ 31.110463][ C2] tmigr_handle_remote+0x21d/0x3a0 [ 31.110613][ C2] ? do_raw_spin_lock+0x131/0x270 [ 31.110759][ C2] ? __pfx_tmigr_handle_remote+0x10/0x10 [ 31.110906][ C2] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 31.111056][ C2] ? lockdep_hardirqs_on_prepare.part.0+0x14f/0x370 [ 31.111240][ C2] __do_softirq+0x1f8/0x5df [ 31.111389][ C2] irq_exit_rcu+0x97/0xc0 [ 31.111578][ C2] sysvec_apic_timer_interrupt+0x75/0x80 [ 31.111732][ C2] [ 31.111807][ C2] [ 31.111882][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 31.112064][ C2] RIP: 0010:default_idle+0xf/0x20 [ 31.112299][ 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 d3 eb 32 00 fb f4 c3 cc cc cc cc 66 66 2e 0f 1f 84 00 00 00 00 00 90 90 90 90 90 [ 31.112819][ C2] RSP: 0018:ffffc9000015fdf8 EFLAGS: 00000246 [ 31.113089][ C2] RAX: 00000000000ced99 RBX: 1ffff9200002bfc1 RCX: ffffffff9ad32ea5 [ 31.113313][ C2] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffff984ac1d4 [ 31.113533][ C2] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1005ee709c [ 31.113834][ C2] R10: ffff88802f7384e3 R11: ffff88802f73de40 R12: 0000000000000000 [ 31.114060][ C2] R13: ffff888001b8c5c0 R14: dffffc0000000000 R15: 0000000000000000 [ 31.114364][ C2] ? ct_kernel_exit.constprop.0+0xc5/0xf0 [ 31.114514][ C2] ? cpuidle_idle_call+0x1f4/0x280 [ 31.114661][ C2] default_idle_call+0x6d/0xb0 [ 31.114807][ C2] cpuidle_idle_call+0x1f4/0x280 [ 31.114955][ C2] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 31.115184][ C2] ? tsc_verify_tsc_adjust+0x5e/0x2b0 [ 31.115333][ C2] do_idle+0xf9/0x160 [ 31.115451][ C2] cpu_startup_entry+0x54/0x60 [ 31.115598][ C2] start_secondary+0x21c/0x2b0 [ 31.115747][ C2] ? __pfx_start_secondary+0x10/0x10 [ 31.115894][ C2] common_startup_64+0x12c/0x138 [ 31.116046][ C2] [ 31.189379][ T291] iptables (291) used greatest stack depth: 24080 bytes left