[ 24.106846][ T235] ip (235) used greatest stack depth: 23328 bytes left [ 36.598682][ C0] [ 36.598884][ C0] ======================================================== [ 36.599124][ C0] WARNING: possible irq lock inversion dependency detected [ 36.599357][ C0] 6.9.0-rc1-virtme #1 Not tainted [ 36.599509][ C0] -------------------------------------------------------- [ 36.599735][ C0] swapper/0/0 just changed the state of lock: [ 36.599926][ C0] ffff888005443d80 (&ndev->lock){++-.}-{2:2}, at: addrconf_rs_timer+0xa9/0x730 [ 36.600201][ C0] but this lock took another, SOFTIRQ-unsafe lock in the past: [ 36.600422][ C0] (&p->alloc_lock){+.+.}-{2:2} [ 36.600426][ C0] [ 36.600426][ C0] [ 36.600426][ C0] and interrupts could create inverse lock ordering between them. [ 36.600426][ C0] [ 36.600979][ C0] [ 36.600979][ C0] other info that might help us debug this: [ 36.601199][ C0] Possible interrupt unsafe locking scenario: [ 36.601199][ C0] [ 36.601430][ C0] CPU0 CPU1 [ 36.601587][ C0] ---- ---- [ 36.601739][ C0] lock(&p->alloc_lock); [ 36.601859][ C0] local_irq_disable(); [ 36.602055][ C0] lock(&ndev->lock); [ 36.602254][ C0] lock(&p->alloc_lock); [ 36.602443][ C0] [ 36.602562][ C0] lock(&ndev->lock); [ 36.602699][ C0] [ 36.602699][ C0] *** DEADLOCK *** [ 36.602699][ C0] [ 36.602926][ C0] 1 lock held by swapper/0/0: [ 36.603078][ C0] #0: ffffc90000007b68 ((&ndev->rs_timer)){+.-.}-{0:0}, at: call_timer_fn+0xe8/0x230 [ 36.603361][ C0] [ 36.603361][ C0] the shortest dependencies between 2nd lock and 1st lock: [ 36.603620][ C0] -> (&p->alloc_lock){+.+.}-{2:2} { [ 36.603774][ C0] HARDIRQ-ON-W at: [ 36.603887][ C0] __lock_acquire+0x797/0x1570 [ 36.604081][ C0] lock_acquire.part.0+0xeb/0x330 [ 36.604272][ C0] _raw_spin_lock+0x30/0x40 [ 36.604465][ C0] set_mems_allowed+0x1d/0x210 [ 36.604661][ C0] kernel_init_freeable+0x72/0x310 [ 36.604853][ C0] kernel_init+0x20/0x200 [ 36.605044][ C0] ret_from_fork+0x31/0x70 [ 36.605236][ C0] ret_from_fork_asm+0x1a/0x30 [ 36.605429][ C0] SOFTIRQ-ON-W at: [ 36.605541][ C0] __lock_acquire+0x797/0x1570 [ 36.605727][ C0] lock_acquire.part.0+0xeb/0x330 [ 36.605914][ C0] _raw_spin_lock+0x30/0x40 [ 36.606106][ C0] set_mems_allowed+0x1d/0x210 [ 36.606294][ C0] kernel_init_freeable+0x72/0x310 [ 36.606479][ C0] kernel_init+0x20/0x200 [ 36.606675][ C0] ret_from_fork+0x31/0x70 [ 36.606862][ C0] ret_from_fork_asm+0x1a/0x30 [ 36.607049][ C0] INITIAL USE at: [ 36.607162][ C0] __lock_acquire+0x797/0x1570 [ 36.607354][ C0] lock_acquire.part.0+0xeb/0x330 [ 36.607541][ C0] _raw_spin_lock+0x30/0x40 [ 36.607731][ C0] set_mems_allowed+0x1d/0x210 [ 36.607924][ C0] kernel_init_freeable+0x72/0x310 [ 36.608111][ C0] kernel_init+0x20/0x200 [ 36.608296][ C0] ret_from_fork+0x31/0x70 [ 36.608500][ C0] ret_from_fork_asm+0x1a/0x30 [ 36.608689][ C0] } [ 36.608768][ C0] ... key at: [] __key.387+0x0/0x40 [ 36.608998][ C0] ... acquired at: [ 36.609112][ C0] __lock_acquire+0xaf0/0x1570 [ 36.609266][ C0] lock_acquire.part.0+0xeb/0x330 [ 36.609416][ C0] _raw_spin_lock+0x30/0x40 [ 36.609567][ C0] __get_task_comm+0x27/0x70 [ 36.609718][ C0] ref_tracker_alloc+0x2ee/0x490 [ 36.609874][ C0] netdev_get_by_index+0x5e/0x80 [ 36.610026][ C0] fib6_nh_init+0x3d8/0x15b0 [ 36.610185][ C0] ip6_route_info_create+0xf18/0x17d0 [ 36.610337][ C0] addrconf_f6i_alloc+0x265/0x560 [ 36.610488][ C0] __ipv6_dev_ac_inc+0x25f/0xb10 [ 36.610640][ C0] addrconf_join_anycast+0x1c0/0x220 [ 36.610789][ C0] dev_forward_change+0x2a6/0x7b0 [ 36.610938][ C0] addrconf_fixup_forwarding+0x23f/0x460 [ 36.611126][ C0] addrconf_sysctl_forward+0x212/0x2b0 [ 36.611281][ C0] proc_sys_call_handler+0x403/0x5e0 [ 36.611431][ C0] vfs_write+0x9e5/0x10a0 [ 36.611583][ C0] ksys_write+0xf5/0x1e0 [ 36.611732][ C0] do_syscall_64+0xc6/0x1e0 [ 36.611883][ C0] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 36.612072][ C0] [ 36.612148][ C0] -> (&ndev->lock){++-.}-{2:2} { [ 36.612302][ C0] HARDIRQ-ON-W at: [ 36.612418][ C0] __lock_acquire+0x797/0x1570 [ 36.612609][ C0] lock_acquire.part.0+0xeb/0x330 [ 36.612798][ C0] _raw_write_lock_bh+0x38/0x50 [ 36.612984][ C0] addrconf_permanent_addr+0x6e/0x670 [ 36.613174][ C0] addrconf_notify+0x749/0xd60 [ 36.613362][ C0] notifier_call_chain+0xcd/0x150 [ 36.613551][ C0] __dev_notify_flags+0xe6/0x250 [ 36.613742][ C0] dev_change_flags+0xec/0x160 [ 36.613929][ C0] do_setlink+0x7d6/0x21e0 [ 36.614116][ C0] __rtnl_newlink+0xaa7/0xd80 [ 36.614303][ C0] rtnl_newlink+0x63/0xa0 [ 36.614495][ C0] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 36.614683][ C0] netlink_rcv_skb+0x130/0x360 [ 36.614874][ C0] netlink_unicast+0x449/0x710 [ 36.615063][ C0] netlink_sendmsg+0x723/0xbe0 [ 36.615249][ C0] ____sys_sendmsg+0x7b2/0xa10 [ 36.615441][ C0] ___sys_sendmsg+0xee/0x170 [ 36.615631][ C0] __sys_sendmsg+0xcd/0x170 [ 36.615818][ C0] do_syscall_64+0xc6/0x1e0 [ 36.616006][ C0] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 36.616241][ C0] HARDIRQ-ON-R at: [ 36.616357][ C0] __lock_acquire+0x797/0x1570 [ 36.616545][ C0] lock_acquire.part.0+0xeb/0x330 [ 36.616733][ C0] _raw_read_lock_bh+0x44/0x80 [ 36.616924][ C0] inet6_fill_ifla6_attrs+0x516/0x740 [ 36.617110][ C0] inet6_fill_link_af+0x5e/0xe0 [ 36.617302][ C0] rtnl_fill_ifinfo+0x1612/0x29e0 [ 36.617487][ C0] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 36.617677][ C0] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 36.617898][ C0] rtmsg_ifinfo+0x5b/0xa0 [ 36.618083][ C0] register_netdevice+0x1177/0x1690 [ 36.618273][ C0] register_netdev+0x20/0x40 [ 36.618478][ C0] sit_init_net+0x250/0x4f0 [ 36.618670][ C0] ops_init+0x9b/0x560 [ 36.618820][ C0] register_pernet_operations+0x2db/0x710 [ 36.619045][ C0] register_pernet_device+0x2a/0x60 [ 36.619234][ C0] sit_init+0x23/0xe0 [ 36.619388][ C0] do_one_initcall+0x8d/0x1e0 [ 36.619580][ C0] do_initcalls+0x1b2/0x3e0 [ 36.619772][ C0] kernel_init_freeable+0x232/0x310 [ 36.619958][ C0] kernel_init+0x20/0x200 [ 36.620149][ C0] ret_from_fork+0x31/0x70 [ 36.620342][ C0] ret_from_fork_asm+0x1a/0x30 [ 36.620535][ C0] IN-SOFTIRQ-W at: [ 36.620649][ C0] __lock_acquire+0x797/0x1570 [ 36.620841][ C0] lock_acquire.part.0+0xeb/0x330 [ 36.621030][ C0] _raw_write_lock+0x30/0x40 [ 36.621219][ C0] addrconf_rs_timer+0xa9/0x730 [ 36.621405][ C0] call_timer_fn+0x13b/0x230 [ 36.621595][ C0] __run_timers+0x545/0x810 [ 36.621785][ C0] timer_expire_remote+0x9b/0xe0 [ 36.621971][ C0] tmigr_handle_remote_cpu+0x270/0x430 [ 36.622165][ C0] tmigr_handle_remote_up+0x19f/0x2e0 [ 36.622353][ C0] tmigr_handle_remote+0x21d/0x3a0 [ 36.622543][ C0] __do_softirq+0x1f8/0x5df [ 36.622732][ C0] irq_exit_rcu+0x97/0xc0 [ 36.622923][ C0] sysvec_apic_timer_interrupt+0x75/0x80 [ 36.623147][ C0] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 36.623377][ C0] default_idle+0xf/0x20 [ 36.623567][ C0] default_idle_call+0x6d/0xb0 [ 36.623774][ C0] cpuidle_idle_call+0x1f4/0x280 [ 36.623969][ C0] do_idle+0xf9/0x160 [ 36.624122][ C0] cpu_startup_entry+0x54/0x60 [ 36.624314][ C0] rest_init+0x14f/0x260 [ 36.624503][ C0] start_kernel+0x318/0x3d0 [ 36.624700][ C0] x86_64_start_reservations+0x18/0x30 [ 36.624888][ C0] x86_64_start_kernel+0xba/0x110 [ 36.625074][ C0] common_startup_64+0x12c/0x138 [ 36.625262][ C0] INITIAL USE at: [ 36.625382][ C0] __lock_acquire+0x797/0x1570 [ 36.625646][ C0] lock_acquire.part.0+0xeb/0x330 [ 36.625934][ C0] _raw_write_lock_bh+0x38/0x50 [ 36.626150][ C0] addrconf_permanent_addr+0x6e/0x670 [ 36.626342][ C0] addrconf_notify+0x749/0xd60 [ 36.626533][ C0] notifier_call_chain+0xcd/0x150 [ 36.626722][ C0] __dev_notify_flags+0xe6/0x250 [ 36.626914][ C0] dev_change_flags+0xec/0x160 [ 36.627124][ C0] do_setlink+0x7d6/0x21e0 [ 36.627313][ C0] __rtnl_newlink+0xaa7/0xd80 [ 36.627502][ C0] rtnl_newlink+0x63/0xa0 [ 36.627691][ C0] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 36.627880][ C0] netlink_rcv_skb+0x130/0x360 [ 36.628071][ C0] netlink_unicast+0x449/0x710 [ 36.628260][ C0] netlink_sendmsg+0x723/0xbe0 [ 36.628459][ C0] ____sys_sendmsg+0x7b2/0xa10 [ 36.628663][ C0] ___sys_sendmsg+0xee/0x170 [ 36.628853][ C0] __sys_sendmsg+0xcd/0x170 [ 36.629043][ C0] do_syscall_64+0xc6/0x1e0 [ 36.629231][ C0] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 36.629459][ C0] INITIAL READ USE at: [ 36.629573][ C0] __lock_acquire+0x797/0x1570 [ 36.629767][ C0] lock_acquire.part.0+0xeb/0x330 [ 36.629953][ C0] _raw_read_lock_bh+0x44/0x80 [ 36.630144][ C0] inet6_fill_ifla6_attrs+0x516/0x740 [ 36.630367][ C0] inet6_fill_link_af+0x5e/0xe0 [ 36.630554][ C0] rtnl_fill_ifinfo+0x1612/0x29e0 [ 36.630747][ C0] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 36.630970][ C0] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 36.631194][ C0] rtmsg_ifinfo+0x5b/0xa0 [ 36.631385][ C0] register_netdevice+0x1177/0x1690 [ 36.631609][ C0] register_netdev+0x20/0x40 [ 36.631796][ C0] sit_init_net+0x250/0x4f0 [ 36.631985][ C0] ops_init+0x9b/0x560 [ 36.632176][ C0] register_pernet_operations+0x2db/0x710 [ 36.632401][ C0] register_pernet_device+0x2a/0x60 [ 36.632625][ C0] sit_init+0x23/0xe0 [ 36.632816][ C0] do_one_initcall+0x8d/0x1e0 [ 36.633005][ C0] do_initcalls+0x1b2/0x3e0 [ 36.633197][ C0] kernel_init_freeable+0x232/0x310 [ 36.633425][ C0] kernel_init+0x20/0x200 [ 36.633619][ C0] ret_from_fork+0x31/0x70 [ 36.633809][ C0] ret_from_fork_asm+0x1a/0x30 [ 36.633999][ C0] } [ 36.634076][ C0] ... key at: [] __key.37+0x0/0x40 [ 36.634305][ C0] ... acquired at: [ 36.634437][ C0] mark_lock+0x28d/0x3e0 [ 36.634592][ C0] mark_usage+0xd9/0x2a0 [ 36.634746][ C0] __lock_acquire+0x797/0x1570 [ 36.634911][ C0] lock_acquire.part.0+0xeb/0x330 [ 36.635062][ C0] _raw_write_lock+0x30/0x40 [ 36.635215][ C0] addrconf_rs_timer+0xa9/0x730 [ 36.635378][ C0] call_timer_fn+0x13b/0x230 [ 36.635533][ C0] __run_timers+0x545/0x810 [ 36.635694][ C0] timer_expire_remote+0x9b/0xe0 [ 36.635896][ C0] tmigr_handle_remote_cpu+0x270/0x430 [ 36.636093][ C0] tmigr_handle_remote_up+0x19f/0x2e0 [ 36.636245][ C0] tmigr_handle_remote+0x21d/0x3a0 [ 36.636446][ C0] __do_softirq+0x1f8/0x5df [ 36.636658][ C0] irq_exit_rcu+0x97/0xc0 [ 36.636873][ C0] sysvec_apic_timer_interrupt+0x75/0x80 [ 36.637277][ C0] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 36.637546][ C0] default_idle+0xf/0x20 [ 36.637755][ C0] default_idle_call+0x6d/0xb0 [ 36.638098][ C0] cpuidle_idle_call+0x1f4/0x280 [ 36.638310][ C0] do_idle+0xf9/0x160 [ 36.638475][ C0] cpu_startup_entry+0x54/0x60 [ 36.638681][ C0] rest_init+0x14f/0x260 [ 36.638913][ C0] start_kernel+0x318/0x3d0 [ 36.639326][ C0] x86_64_start_reservations+0x18/0x30 [ 36.639554][ C0] x86_64_start_kernel+0xba/0x110 [ 36.639803][ C0] common_startup_64+0x12c/0x138 [ 36.640047][ C0] [ 36.640171][ C0] [ 36.640171][ C0] stack backtrace: [ 36.640798][ C0] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 6.9.0-rc1-virtme #1 [ 36.641169][ C0] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 36.641876][ C0] Call Trace: [ 36.642076][ C0] [ 36.642203][ C0] dump_stack_lvl+0x82/0xd0 [ 36.642457][ C0] print_irq_inversion_bug.part.0+0x3d9/0x570 [ 36.642758][ C0] ? kernel_text_address+0x17/0xe0 [ 36.643184][ C0] ? __pfx_print_irq_inversion_bug.part.0+0x10/0x10 [ 36.643486][ C0] ? __pfx_usage_skip+0x10/0x10 [ 36.643727][ C0] ? __pfx_usage_match+0x10/0x10 [ 36.643973][ C0] ? arch_stack_walk+0x8c/0xf0 [ 36.644349][ C0] mark_lock_irq+0x4cd/0xa10 [ 36.644588][ C0] ? common_startup_64+0x12c/0x138 [ 36.644747][ C0] ? __pfx_mark_lock_irq+0x10/0x10 [ 36.644896][ C0] ? __pfx_stack_trace_save+0x10/0x10 [ 36.645139][ C0] ? save_trace+0x8f/0x5b0 [ 36.645288][ C0] mark_lock+0x28d/0x3e0 [ 36.645402][ C0] ? __pfx_stack_trace_save+0x10/0x10 [ 36.645549][ C0] mark_usage+0xd9/0x2a0 [ 36.645666][ C0] __lock_acquire+0x797/0x1570 [ 36.645917][ C0] ? __pfx_validate_chain+0x10/0x10 [ 36.646066][ C0] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 36.646215][ C0] lock_acquire.part.0+0xeb/0x330 [ 36.646363][ C0] ? addrconf_rs_timer+0xa9/0x730 [ 36.646605][ C0] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 36.646763][ C0] ? trace_lock_acquire+0x135/0x1c0 [ 36.646913][ C0] ? addrconf_rs_timer+0xa9/0x730 [ 36.647059][ C0] ? lock_acquire+0x32/0xc0 [ 36.647303][ C0] ? addrconf_rs_timer+0xa9/0x730 [ 36.647454][ C0] _raw_write_lock+0x30/0x40 [ 36.647606][ C0] ? addrconf_rs_timer+0xa9/0x730 [ 36.647758][ C0] addrconf_rs_timer+0xa9/0x730 [ 36.648001][ C0] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 36.648152][ C0] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 36.648301][ C0] ? call_timer_fn+0xe8/0x230 [ 36.648451][ C0] ? lock_acquire+0x32/0xc0 [ 36.648625][ C0] ? call_timer_fn+0xe8/0x230 [ 36.648866][ C0] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 36.649014][ C0] call_timer_fn+0x13b/0x230 [ 36.649161][ C0] ? call_timer_fn+0xe8/0x230 [ 36.649309][ C0] ? call_timer_fn+0xe8/0x230 [ 36.649552][ C0] ? __pfx_call_timer_fn+0x10/0x10 [ 36.649706][ C0] ? mark_lock+0x38/0x3e0 [ 36.649821][ C0] __run_timers+0x545/0x810 [ 36.649968][ C0] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 36.650211][ C0] ? __pfx___run_timers+0x10/0x10 [ 36.650359][ C0] ? __lock_release+0x103/0x460 [ 36.650508][ C0] ? do_raw_spin_lock+0x131/0x270 [ 36.650659][ C0] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 36.650807][ C0] ? lock_acquire+0x32/0xc0 [ 36.651047][ C0] ? timer_expire_remote+0x93/0xe0 [ 36.651197][ C0] timer_expire_remote+0x9b/0xe0 [ 36.651358][ C0] tmigr_handle_remote_cpu+0x270/0x430 [ 36.651515][ C0] ? __pfx_tmigr_handle_remote_cpu+0x10/0x10 [ 36.651803][ C0] tmigr_handle_remote_up+0x19f/0x2e0 [ 36.651954][ C0] tmigr_handle_remote+0x21d/0x3a0 [ 36.652102][ C0] ? do_raw_spin_lock+0x131/0x270 [ 36.652252][ C0] ? __pfx_tmigr_handle_remote+0x10/0x10 [ 36.652492][ C0] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 36.652649][ C0] ? lockdep_hardirqs_on_prepare.part.0+0x14f/0x370 [ 36.652842][ C0] __do_softirq+0x1f8/0x5df [ 36.652993][ C0] irq_exit_rcu+0x97/0xc0 [ 36.653198][ C0] sysvec_apic_timer_interrupt+0x75/0x80 [ 36.653349][ C0] [ 36.653425][ C0] [ 36.653502][ C0] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 36.653695][ C0] RIP: 0010:default_idle+0xf/0x20 [ 36.654057][ 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 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.654588][ C0] RSP: 0018:ffffffffbb407e00 EFLAGS: 00000242 [ 36.654880][ C0] RAX: 00000000000b23fb RBX: 1ffffffff7680fc2 RCX: ffffffffba50e9d5 [ 36.655102][ C0] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffffb7eaa4a4 [ 36.655327][ C0] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c0709c [ 36.655660][ C0] R10: ffff8880360384e3 R11: ffff88803602d9b0 R12: 0000000000000000 [ 36.655885][ C0] R13: ffffffffbb41d000 R14: dffffc0000000000 R15: 0000000000014770 [ 36.656109][ C0] ? ct_kernel_exit.constprop.0+0xc5/0xf0 [ 36.656350][ C0] ? cpuidle_idle_call+0x1f4/0x280 [ 36.656501][ C0] default_idle_call+0x6d/0xb0 [ 36.656656][ C0] cpuidle_idle_call+0x1f4/0x280 [ 36.656808][ C0] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 36.657047][ C0] ? tsc_verify_tsc_adjust+0x5e/0x2b0 [ 36.657199][ C0] do_idle+0xf9/0x160 [ 36.657312][ C0] cpu_startup_entry+0x54/0x60 [ 36.657464][ C0] rest_init+0x14f/0x260 [ 36.657577][ C0] start_kernel+0x318/0x3d0 [ 36.657823][ C0] x86_64_start_reservations+0x18/0x30 [ 36.657973][ C0] x86_64_start_kernel+0xba/0x110 [ 36.658123][ C0] common_startup_64+0x12c/0x138 [ 36.658282][ C0]