[ 28.927373][ T272] ip (272) used greatest stack depth: 22880 bytes left [ 50.474054][ C0] [ 50.474317][ C0] ======================================================== [ 50.474543][ C0] WARNING: possible irq lock inversion dependency detected [ 50.474764][ C0] 6.9.0-rc1-virtme #1 Not tainted [ 50.474914][ C0] -------------------------------------------------------- [ 50.475134][ C0] swapper/0/0 just changed the state of lock: [ 50.475322][ C0] ffff88801847bd80 (&ndev->lock){++-.}-{2:2}, at: addrconf_rs_timer+0xa9/0x730 [ 50.475590][ C0] but this lock took another, SOFTIRQ-unsafe lock in the past: [ 50.475809][ C0] (&p->alloc_lock){+.+.}-{2:2} [ 50.475813][ C0] [ 50.475813][ C0] [ 50.475813][ C0] and interrupts could create inverse lock ordering between them. [ 50.475813][ C0] [ 50.476354][ C0] [ 50.476354][ C0] other info that might help us debug this: [ 50.476570][ C0] Possible interrupt unsafe locking scenario: [ 50.476570][ C0] [ 50.476789][ C0] CPU0 CPU1 [ 50.476937][ C0] ---- ---- [ 50.477084][ C0] lock(&p->alloc_lock); [ 50.477197][ C0] local_irq_disable(); [ 50.477380][ C0] lock(&ndev->lock); [ 50.477570][ C0] lock(&p->alloc_lock); [ 50.477753][ C0] [ 50.477866][ C0] lock(&ndev->lock); [ 50.477980][ C0] [ 50.477980][ C0] *** DEADLOCK *** [ 50.477980][ C0] [ 50.478196][ C0] 1 lock held by swapper/0/0: [ 50.478350][ C0] #0: ffffc90000007b68 ((&ndev->rs_timer)){+.-.}-{0:0}, at: call_timer_fn+0xe8/0x230 [ 50.478618][ C0] [ 50.478618][ C0] the shortest dependencies between 2nd lock and 1st lock: [ 50.478876][ C0] -> (&p->alloc_lock){+.+.}-{2:2} { [ 50.479030][ C0] HARDIRQ-ON-W at: [ 50.479147][ C0] __lock_acquire+0x797/0x1570 [ 50.479339][ C0] lock_acquire.part.0+0xeb/0x330 [ 50.479528][ C0] _raw_spin_lock+0x30/0x40 [ 50.479715][ C0] set_mems_allowed+0x1d/0x210 [ 50.479901][ C0] kernel_init_freeable+0x72/0x310 [ 50.480090][ C0] kernel_init+0x20/0x200 [ 50.480286][ C0] ret_from_fork+0x31/0x70 [ 50.480477][ C0] ret_from_fork_asm+0x1a/0x30 [ 50.480663][ C0] SOFTIRQ-ON-W at: [ 50.480776][ C0] __lock_acquire+0x797/0x1570 [ 50.480964][ C0] lock_acquire.part.0+0xeb/0x330 [ 50.481151][ C0] _raw_spin_lock+0x30/0x40 [ 50.481337][ C0] set_mems_allowed+0x1d/0x210 [ 50.481528][ C0] kernel_init_freeable+0x72/0x310 [ 50.481714][ C0] kernel_init+0x20/0x200 [ 50.481899][ C0] ret_from_fork+0x31/0x70 [ 50.482092][ C0] ret_from_fork_asm+0x1a/0x30 [ 50.482284][ C0] INITIAL USE at: [ 50.482399][ C0] __lock_acquire+0x797/0x1570 [ 50.482592][ C0] lock_acquire.part.0+0xeb/0x330 [ 50.482781][ C0] _raw_spin_lock+0x30/0x40 [ 50.482978][ C0] set_mems_allowed+0x1d/0x210 [ 50.483165][ C0] kernel_init_freeable+0x72/0x310 [ 50.483354][ C0] kernel_init+0x20/0x200 [ 50.483540][ C0] ret_from_fork+0x31/0x70 [ 50.483727][ C0] ret_from_fork_asm+0x1a/0x30 [ 50.483915][ C0] } [ 50.483994][ C0] ... key at: [] __key.388+0x0/0x40 [ 50.484219][ C0] ... acquired at: [ 50.484329][ C0] __lock_acquire+0xaf0/0x1570 [ 50.484478][ C0] lock_acquire.part.0+0xeb/0x330 [ 50.484628][ C0] _raw_spin_lock+0x30/0x40 [ 50.484775][ C0] __get_task_comm+0x27/0x70 [ 50.484930][ C0] ref_tracker_alloc+0x2ee/0x490 [ 50.485082][ C0] netdev_get_by_index+0x5e/0x80 [ 50.485233][ C0] fib6_nh_init+0x3d8/0x1580 [ 50.485383][ C0] ip6_route_info_create+0xf18/0x17d0 [ 50.485533][ C0] addrconf_f6i_alloc+0x265/0x560 [ 50.485682][ C0] __ipv6_dev_ac_inc+0x25f/0xb10 [ 50.485832][ C0] addrconf_join_anycast+0x1c0/0x220 [ 50.485981][ C0] dev_forward_change+0x2a6/0x7b0 [ 50.486128][ C0] addrconf_fixup_forwarding+0x152/0x460 [ 50.486315][ C0] addrconf_sysctl_forward+0x212/0x2b0 [ 50.486469][ C0] proc_sys_call_handler+0x403/0x5e0 [ 50.486620][ C0] vfs_write+0x9e5/0x10a0 [ 50.486773][ C0] ksys_write+0xf5/0x1e0 [ 50.486922][ C0] do_syscall_64+0xc6/0x1e0 [ 50.487073][ C0] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 50.487259][ C0] [ 50.487335][ C0] -> (&ndev->lock){++-.}-{2:2} { [ 50.487489][ C0] HARDIRQ-ON-W at: [ 50.487604][ C0] __lock_acquire+0x797/0x1570 [ 50.487801][ C0] lock_acquire.part.0+0xeb/0x330 [ 50.487993][ C0] _raw_write_lock_bh+0x38/0x50 [ 50.488180][ C0] addrconf_permanent_addr+0x6e/0x670 [ 50.488370][ C0] addrconf_notify+0x749/0xd60 [ 50.488560][ C0] notifier_call_chain+0xcd/0x150 [ 50.488747][ C0] __dev_notify_flags+0xe6/0x250 [ 50.488944][ C0] dev_change_flags+0xec/0x160 [ 50.489131][ C0] do_setlink+0x7d6/0x21e0 [ 50.489316][ C0] __rtnl_newlink+0xaa7/0xd80 [ 50.489502][ C0] rtnl_newlink+0x63/0xa0 [ 50.489688][ C0] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 50.489874][ C0] netlink_rcv_skb+0x130/0x360 [ 50.490064][ C0] netlink_unicast+0x449/0x710 [ 50.490254][ C0] netlink_sendmsg+0x723/0xbe0 [ 50.490441][ C0] ____sys_sendmsg+0x7b2/0xa10 [ 50.490629][ C0] ___sys_sendmsg+0xee/0x170 [ 50.490816][ C0] __sys_sendmsg+0xcd/0x170 [ 50.491003][ C0] do_syscall_64+0xc6/0x1e0 [ 50.491189][ C0] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 50.491411][ C0] HARDIRQ-ON-R at: [ 50.491526][ C0] __lock_acquire+0x797/0x1570 [ 50.491712][ C0] lock_acquire.part.0+0xeb/0x330 [ 50.491899][ C0] _raw_read_lock_bh+0x44/0x80 [ 50.492086][ C0] inet6_fill_ifla6_attrs+0x516/0x740 [ 50.492271][ C0] inet6_fill_link_af+0x5e/0xe0 [ 50.492458][ C0] rtnl_fill_ifinfo+0x1615/0x2a90 [ 50.492647][ C0] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 50.492831][ C0] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 50.493075][ C0] rtmsg_ifinfo+0x5b/0xa0 [ 50.493261][ C0] register_netdevice+0x1177/0x1690 [ 50.493447][ C0] register_netdev+0x20/0x40 [ 50.493634][ C0] vti6_init_net+0x25d/0x380 [ 50.493822][ C0] ops_init+0x9b/0x560 [ 50.493972][ C0] register_pernet_operations+0x2db/0x710 [ 50.494194][ C0] register_pernet_device+0x2a/0x60 [ 50.494379][ C0] vti6_tunnel_init+0x18/0x110 [ 50.494564][ C0] do_one_initcall+0x8d/0x1e0 [ 50.494749][ C0] do_initcalls+0x1b2/0x3e0 [ 50.494937][ C0] kernel_init_freeable+0x232/0x310 [ 50.495126][ C0] kernel_init+0x20/0x200 [ 50.495310][ C0] ret_from_fork+0x31/0x70 [ 50.495497][ C0] ret_from_fork_asm+0x1a/0x30 [ 50.495682][ C0] IN-SOFTIRQ-W at: [ 50.495792][ C0] __lock_acquire+0x797/0x1570 [ 50.495977][ C0] lock_acquire.part.0+0xeb/0x330 [ 50.496164][ C0] _raw_write_lock+0x30/0x40 [ 50.496354][ C0] addrconf_rs_timer+0xa9/0x730 [ 50.496538][ C0] call_timer_fn+0x13b/0x230 [ 50.496724][ C0] __run_timers+0x545/0x810 [ 50.496912][ C0] timer_expire_remote+0x9b/0xe0 [ 50.497099][ C0] tmigr_handle_remote_cpu+0x270/0x430 [ 50.497284][ C0] tmigr_handle_remote_up+0x19f/0x2e0 [ 50.497473][ C0] tmigr_handle_remote+0x21d/0x3a0 [ 50.497660][ C0] __do_softirq+0x1f8/0x5df [ 50.497847][ C0] irq_exit_rcu+0x97/0xc0 [ 50.498034][ C0] sysvec_apic_timer_interrupt+0x75/0x80 [ 50.498260][ C0] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 50.498483][ C0] default_idle+0xf/0x20 [ 50.498671][ C0] default_idle_call+0x6d/0xb0 [ 50.498856][ C0] cpuidle_idle_call+0x1f4/0x280 [ 50.499042][ C0] do_idle+0xf9/0x160 [ 50.499192][ C0] cpu_startup_entry+0x54/0x60 [ 50.499379][ C0] rest_init+0x14f/0x260 [ 50.499563][ C0] start_kernel+0x318/0x3d0 [ 50.499747][ C0] x86_64_start_reservations+0x18/0x30 [ 50.499936][ C0] x86_64_start_kernel+0xba/0x110 [ 50.500120][ C0] common_startup_64+0x12c/0x138 [ 50.500304][ C0] INITIAL USE at: [ 50.500415][ C0] __lock_acquire+0x797/0x1570 [ 50.500601][ C0] lock_acquire.part.0+0xeb/0x330 [ 50.500785][ C0] _raw_write_lock_bh+0x38/0x50 [ 50.500973][ C0] addrconf_permanent_addr+0x6e/0x670 [ 50.501158][ C0] addrconf_notify+0x749/0xd60 [ 50.501343][ C0] notifier_call_chain+0xcd/0x150 [ 50.501532][ C0] __dev_notify_flags+0xe6/0x250 [ 50.501721][ C0] dev_change_flags+0xec/0x160 [ 50.501906][ C0] do_setlink+0x7d6/0x21e0 [ 50.502095][ C0] __rtnl_newlink+0xaa7/0xd80 [ 50.502282][ C0] rtnl_newlink+0x63/0xa0 [ 50.502468][ C0] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 50.502653][ C0] netlink_rcv_skb+0x130/0x360 [ 50.502838][ C0] netlink_unicast+0x449/0x710 [ 50.503038][ C0] netlink_sendmsg+0x723/0xbe0 [ 50.503225][ C0] ____sys_sendmsg+0x7b2/0xa10 [ 50.503414][ C0] ___sys_sendmsg+0xee/0x170 [ 50.503599][ C0] __sys_sendmsg+0xcd/0x170 [ 50.503786][ C0] do_syscall_64+0xc6/0x1e0 [ 50.503971][ C0] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 50.504191][ C0] INITIAL READ USE at: [ 50.504303][ C0] __lock_acquire+0x797/0x1570 [ 50.504489][ C0] lock_acquire.part.0+0xeb/0x330 [ 50.504678][ C0] _raw_read_lock_bh+0x44/0x80 [ 50.504872][ C0] inet6_fill_ifla6_attrs+0x516/0x740 [ 50.505188][ C0] inet6_fill_link_af+0x5e/0xe0 [ 50.505373][ C0] rtnl_fill_ifinfo+0x1615/0x2a90 [ 50.505563][ C0] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 50.505880][ C0] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 50.506101][ C0] rtmsg_ifinfo+0x5b/0xa0 [ 50.506286][ C0] register_netdevice+0x1177/0x1690 [ 50.506600][ C0] register_netdev+0x20/0x40 [ 50.506784][ C0] vti6_init_net+0x25d/0x380 [ 50.506970][ C0] ops_init+0x9b/0x560 [ 50.507157][ C0] register_pernet_operations+0x2db/0x710 [ 50.507564][ C0] register_pernet_device+0x2a/0x60 [ 50.507785][ C0] vti6_tunnel_init+0x18/0x110 [ 50.507970][ C0] do_one_initcall+0x8d/0x1e0 [ 50.508248][ C0] do_initcalls+0x1b2/0x3e0 [ 50.508433][ C0] kernel_init_freeable+0x232/0x310 [ 50.508657][ C0] kernel_init+0x20/0x200 [ 50.508935][ C0] ret_from_fork+0x31/0x70 [ 50.509122][ C0] ret_from_fork_asm+0x1a/0x30 [ 50.509307][ C0] } [ 50.509382][ C0] ... key at: [] __key.37+0x0/0x40 [ 50.509694][ C0] ... acquired at: [ 50.509803][ C0] mark_lock+0x28d/0x3e0 [ 50.509954][ C0] mark_usage+0xd9/0x2a0 [ 50.510106][ C0] __lock_acquire+0x797/0x1570 [ 50.510345][ C0] lock_acquire.part.0+0xeb/0x330 [ 50.510493][ C0] _raw_write_lock+0x30/0x40 [ 50.510639][ C0] addrconf_rs_timer+0xa9/0x730 [ 50.510786][ C0] call_timer_fn+0x13b/0x230 [ 50.511024][ C0] __run_timers+0x545/0x810 [ 50.511174][ C0] timer_expire_remote+0x9b/0xe0 [ 50.511321][ C0] tmigr_handle_remote_cpu+0x270/0x430 [ 50.511472][ C0] tmigr_handle_remote_up+0x19f/0x2e0 [ 50.511619][ C0] tmigr_handle_remote+0x21d/0x3a0 [ 50.511857][ C0] __do_softirq+0x1f8/0x5df [ 50.512005][ C0] irq_exit_rcu+0x97/0xc0 [ 50.512151][ C0] sysvec_apic_timer_interrupt+0x75/0x80 [ 50.512335][ C0] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 50.512610][ C0] default_idle+0xf/0x20 [ 50.512761][ C0] default_idle_call+0x6d/0xb0 [ 50.512916][ C0] cpuidle_idle_call+0x1f4/0x280 [ 50.513076][ C0] do_idle+0xf9/0x160 [ 50.513278][ C0] cpu_startup_entry+0x54/0x60 [ 50.513425][ C0] rest_init+0x14f/0x260 [ 50.513571][ C0] start_kernel+0x318/0x3d0 [ 50.513720][ C0] x86_64_start_reservations+0x18/0x30 [ 50.513958][ C0] x86_64_start_kernel+0xba/0x110 [ 50.514106][ C0] common_startup_64+0x12c/0x138 [ 50.514256][ C0] [ 50.514331][ C0] [ 50.514331][ C0] stack backtrace: [ 50.514514][ C0] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 6.9.0-rc1-virtme #1 [ 50.514829][ C0] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 50.515154][ C0] Call Trace: [ 50.515273][ C0] [ 50.515350][ C0] dump_stack_lvl+0x82/0xd0 [ 50.515506][ C0] print_irq_inversion_bug.part.0+0x3d9/0x570 [ 50.515689][ C0] ? kernel_text_address+0x17/0xe0 [ 50.515838][ C0] ? __pfx_print_irq_inversion_bug.part.0+0x10/0x10 [ 50.516112][ C0] ? __pfx_usage_skip+0x10/0x10 [ 50.516258][ C0] ? __pfx_usage_match+0x10/0x10 [ 50.516408][ C0] ? arch_stack_walk+0x8c/0xf0 [ 50.516557][ C0] mark_lock_irq+0x4cd/0xa10 [ 50.516796][ C0] ? common_startup_64+0x12c/0x138 [ 50.516947][ C0] ? __pfx_mark_lock_irq+0x10/0x10 [ 50.517094][ C0] ? __pfx_stack_trace_save+0x10/0x10 [ 50.517244][ C0] ? save_trace+0x8f/0x5b0 [ 50.517481][ C0] mark_lock+0x28d/0x3e0 [ 50.517593][ C0] ? __pfx_stack_trace_save+0x10/0x10 [ 50.517741][ C0] mark_usage+0xd9/0x2a0 [ 50.517853][ C0] __lock_acquire+0x797/0x1570 [ 50.518002][ C0] ? __pfx_validate_chain+0x10/0x10 [ 50.518246][ C0] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 50.518392][ C0] lock_acquire.part.0+0xeb/0x330 [ 50.518540][ C0] ? addrconf_rs_timer+0xa9/0x730 [ 50.518687][ C0] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 50.519013][ C0] ? trace_lock_acquire+0x135/0x1c0 [ 50.519160][ C0] ? addrconf_rs_timer+0xa9/0x730 [ 50.519304][ C0] ? lock_acquire+0x32/0xc0 [ 50.519450][ C0] ? addrconf_rs_timer+0xa9/0x730 [ 50.519695][ C0] _raw_write_lock+0x30/0x40 [ 50.519843][ C0] ? addrconf_rs_timer+0xa9/0x730 [ 50.519989][ C0] addrconf_rs_timer+0xa9/0x730 [ 50.520136][ C0] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 50.520282][ C0] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 50.520520][ C0] ? call_timer_fn+0xe8/0x230 [ 50.520667][ C0] ? lock_acquire+0x32/0xc0 [ 50.520814][ C0] ? call_timer_fn+0xe8/0x230 [ 50.520965][ C0] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 50.521200][ C0] call_timer_fn+0x13b/0x230 [ 50.521346][ C0] ? call_timer_fn+0xe8/0x230 [ 50.521493][ C0] ? call_timer_fn+0xe8/0x230 [ 50.521639][ C0] ? __pfx_call_timer_fn+0x10/0x10 [ 50.521876][ C0] ? mark_lock+0x38/0x3e0 [ 50.521992][ C0] __run_timers+0x545/0x810 [ 50.522140][ C0] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 50.522288][ C0] ? __pfx___run_timers+0x10/0x10 [ 50.522438][ C0] ? __lock_release+0x103/0x460 [ 50.522676][ C0] ? do_raw_spin_lock+0x131/0x270 [ 50.522824][ C0] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 50.522984][ C0] ? lock_acquire+0x32/0xc0 [ 50.523130][ C0] ? timer_expire_remote+0x93/0xe0 [ 50.523368][ C0] timer_expire_remote+0x9b/0xe0 [ 50.523514][ C0] tmigr_handle_remote_cpu+0x270/0x430 [ 50.523661][ C0] ? __pfx_tmigr_handle_remote_cpu+0x10/0x10 [ 50.523848][ C0] tmigr_handle_remote_up+0x19f/0x2e0 [ 50.524086][ C0] tmigr_handle_remote+0x21d/0x3a0 [ 50.524232][ C0] ? __pfx_tmigr_handle_remote+0x10/0x10 [ 50.524381][ C0] __do_softirq+0x1f8/0x5df [ 50.524530][ C0] irq_exit_rcu+0x97/0xc0 [ 50.524731][ C0] sysvec_apic_timer_interrupt+0x75/0x80 [ 50.524877][ C0] [ 50.524952][ C0] [ 50.525030][ C0] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 50.525214][ C0] RIP: 0010:default_idle+0xf/0x20 [ 50.525466][ C0] 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 [ 50.525984][ C0] RSP: 0018:ffffffffa7407e00 EFLAGS: 00000242 [ 50.526269][ C0] RAX: 00000000000d24b9 RBX: 1ffffffff4e80fc2 RCX: ffffffffa6532ea5 [ 50.526495][ C0] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffffa3cac1d4 [ 50.526715][ C0] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c0709c [ 50.527026][ C0] R10: ffff8880360384e3 R11: ffff88803602d9b0 R12: 0000000000000000 [ 50.527246][ C0] R13: ffffffffa7431000 R14: dffffc0000000000 R15: 0000000000014770 [ 50.527468][ C0] ? ct_kernel_exit.constprop.0+0xc5/0xf0 [ 50.527711][ C0] ? cpuidle_idle_call+0x1f4/0x280 [ 50.527860][ C0] default_idle_call+0x6d/0xb0 [ 50.528007][ C0] cpuidle_idle_call+0x1f4/0x280 [ 50.528153][ C0] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 50.528391][ C0] ? tsc_verify_tsc_adjust+0x5e/0x2b0 [ 50.528540][ C0] do_idle+0xf9/0x160 [ 50.528652][ C0] cpu_startup_entry+0x54/0x60 [ 50.528798][ C0] rest_init+0x14f/0x260 [ 50.528913][ C0] start_kernel+0x318/0x3d0 [ 50.529150][ C0] x86_64_start_reservations+0x18/0x30 [ 50.529298][ C0] x86_64_start_kernel+0xba/0x110 [ 50.529444][ C0] common_startup_64+0x12c/0x138 [ 50.529593][ C0]