[ 25.211740][ T236] ip (236) used greatest stack depth: 22880 bytes left [ 37.127633][ C0] [ 37.127762][ C0] ======================================================== [ 37.128002][ C0] WARNING: possible irq lock inversion dependency detected [ 37.128244][ C0] 6.9.0-rc1-virtme #1 Not tainted [ 37.128396][ C0] -------------------------------------------------------- [ 37.128618][ C0] swapper/0/0 just changed the state of lock: [ 37.128807][ C0] ffff888004e2a580 (&ndev->lock){++-.}-{2:2}, at: addrconf_rs_timer+0xa9/0x730 [ 37.129077][ C0] but this lock took another, SOFTIRQ-unsafe lock in the past: [ 37.129301][ C0] (&p->alloc_lock){+.+.}-{2:2} [ 37.129305][ C0] [ 37.129305][ C0] [ 37.129305][ C0] and interrupts could create inverse lock ordering between them. [ 37.129305][ C0] [ 37.129861][ C0] [ 37.129861][ C0] other info that might help us debug this: [ 37.130082][ C0] Possible interrupt unsafe locking scenario: [ 37.130082][ C0] [ 37.130308][ C0] CPU0 CPU1 [ 37.130459][ C0] ---- ---- [ 37.130603][ C0] lock(&p->alloc_lock); [ 37.130721][ C0] local_irq_disable(); [ 37.130899][ C0] lock(&ndev->lock); [ 37.131116][ C0] lock(&p->alloc_lock); [ 37.131303][ C0] <Interrupt> [ 37.131416][ C0] lock(&ndev->lock); [ 37.131528][ C0] [ 37.131528][ C0] *** DEADLOCK *** [ 37.131528][ C0] [ 37.131745][ C0] 1 lock held by swapper/0/0: [ 37.131897][ C0] #0: ffffc90000007d68 ((&ndev->rs_timer)){+.-.}-{0:0}, at: call_timer_fn+0xe8/0x230 [ 37.132178][ C0] [ 37.132178][ C0] the shortest dependencies between 2nd lock and 1st lock: [ 37.132432][ C0] -> (&p->alloc_lock){+.+.}-{2:2} { [ 37.132588][ C0] HARDIRQ-ON-W at: [ 37.132703][ C0] __lock_acquire+0x797/0x1570 [ 37.132890][ C0] lock_acquire.part.0+0xeb/0x330 [ 37.133075][ C0] _raw_spin_lock+0x30/0x40 [ 37.133264][ C0] set_mems_allowed+0x1d/0x210 [ 37.133471][ C0] kernel_init_freeable+0x72/0x310 [ 37.133665][ C0] kernel_init+0x20/0x200 [ 37.133855][ C0] ret_from_fork+0x31/0x70 [ 37.134045][ C0] ret_from_fork_asm+0x1a/0x30 [ 37.134234][ C0] SOFTIRQ-ON-W at: [ 37.134347][ C0] __lock_acquire+0x797/0x1570 [ 37.134543][ C0] lock_acquire.part.0+0xeb/0x330 [ 37.134727][ C0] _raw_spin_lock+0x30/0x40 [ 37.134921][ C0] set_mems_allowed+0x1d/0x210 [ 37.135110][ C0] kernel_init_freeable+0x72/0x310 [ 37.135296][ C0] kernel_init+0x20/0x200 [ 37.135485][ C0] ret_from_fork+0x31/0x70 [ 37.135678][ C0] ret_from_fork_asm+0x1a/0x30 [ 37.135862][ C0] INITIAL USE at: [ 37.135976][ C0] __lock_acquire+0x797/0x1570 [ 37.136159][ C0] lock_acquire.part.0+0xeb/0x330 [ 37.136346][ C0] _raw_spin_lock+0x30/0x40 [ 37.136571][ C0] set_mems_allowed+0x1d/0x210 [ 37.136783][ C0] kernel_init_freeable+0x72/0x310 [ 37.136986][ C0] kernel_init+0x20/0x200 [ 37.137180][ C0] ret_from_fork+0x31/0x70 [ 37.137378][ C0] ret_from_fork_asm+0x1a/0x30 [ 37.137573][ C0] } [ 37.137654][ C0] ... key at: [<ffffffffb2fffd20>] __key.387+0x0/0x40 [ 37.137893][ C0] ... acquired at: [ 37.138005][ C0] __lock_acquire+0xaf0/0x1570 [ 37.138170][ C0] lock_acquire.part.0+0xeb/0x330 [ 37.138336][ C0] _raw_spin_lock+0x30/0x40 [ 37.138507][ C0] __get_task_comm+0x27/0x70 [ 37.138669][ C0] ref_tracker_alloc+0x2ee/0x490 [ 37.138816][ C0] netdev_get_by_index+0x5e/0x80 [ 37.138965][ C0] fib6_nh_init+0x3d8/0x15b0 [ 37.139133][ C0] ip6_route_info_create+0xf18/0x17d0 [ 37.139289][ C0] addrconf_f6i_alloc+0x265/0x560 [ 37.139463][ C0] __ipv6_dev_ac_inc+0x25f/0xb10 [ 37.139625][ C0] addrconf_join_anycast+0x1c0/0x220 [ 37.139779][ C0] dev_forward_change+0x2a6/0x7b0 [ 37.139923][ C0] addrconf_fixup_forwarding+0x23f/0x460 [ 37.140115][ C0] addrconf_sysctl_forward+0x212/0x2b0 [ 37.140262][ C0] proc_sys_call_handler+0x403/0x5e0 [ 37.140529][ C0] vfs_write+0x9e5/0x10a0 [ 37.140688][ C0] ksys_write+0xf5/0x1e0 [ 37.140836][ C0] do_syscall_64+0xc6/0x1e0 [ 37.140986][ C0] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 37.141271][ C0] [ 37.141347][ C0] -> (&ndev->lock){++-.}-{2:2} { [ 37.141514][ C0] HARDIRQ-ON-W at: [ 37.141630][ C0] __lock_acquire+0x797/0x1570 [ 37.141820][ C0] lock_acquire.part.0+0xeb/0x330 [ 37.142100][ C0] _raw_write_lock_bh+0x38/0x50 [ 37.142294][ C0] addrconf_permanent_addr+0x6e/0x670 [ 37.142493][ C0] addrconf_notify+0x749/0xd60 [ 37.142770][ C0] notifier_call_chain+0xcd/0x150 [ 37.142954][ C0] __dev_notify_flags+0xe6/0x250 [ 37.143149][ C0] dev_change_flags+0xec/0x160 [ 37.143344][ C0] do_setlink+0x7d6/0x21e0 [ 37.143536][ C0] __rtnl_newlink+0xaa7/0xd80 [ 37.143735][ C0] rtnl_newlink+0x63/0xa0 [ 37.143932][ C0] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 37.144214][ C0] netlink_rcv_skb+0x130/0x360 [ 37.144406][ C0] netlink_unicast+0x449/0x710 [ 37.144598][ C0] netlink_sendmsg+0x723/0xbe0 [ 37.144888][ C0] ____sys_sendmsg+0x7b2/0xa10 [ 37.145087][ C0] ___sys_sendmsg+0xee/0x170 [ 37.145318][ C0] __sys_sendmsg+0xcd/0x170 [ 37.145529][ C0] do_syscall_64+0xc6/0x1e0 [ 37.145828][ C0] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 37.146052][ C0] HARDIRQ-ON-R at: [ 37.146186][ C0] __lock_acquire+0x797/0x1570 [ 37.146397][ C0] lock_acquire.part.0+0xeb/0x330 [ 37.146617][ C0] _raw_read_lock_bh+0x44/0x80 [ 37.146916][ C0] inet6_fill_ifla6_attrs+0x516/0x740 [ 37.147121][ C0] inet6_fill_link_af+0x5e/0xe0 [ 37.147418][ C0] rtnl_fill_ifinfo+0x1612/0x29e0 [ 37.147706][ C0] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 37.147905][ C0] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 37.148232][ C0] rtmsg_ifinfo+0x5b/0xa0 [ 37.148424][ C0] register_netdevice+0x1177/0x1690 [ 37.148609][ C0] register_netdev+0x20/0x40 [ 37.148800][ C0] sit_init_net+0x250/0x4f0 [ 37.149097][ C0] ops_init+0x9b/0x560 [ 37.149263][ C0] register_pernet_operations+0x2db/0x710 [ 37.149517][ C0] register_pernet_device+0x2a/0x60 [ 37.149836][ C0] sit_init+0x23/0xe0 [ 37.149999][ C0] do_one_initcall+0x8d/0x1e0 [ 37.150202][ C0] do_initcalls+0x1b2/0x3e0 [ 37.150413][ C0] kernel_init_freeable+0x232/0x310 [ 37.150615][ C0] kernel_init+0x20/0x200 [ 37.150832][ C0] ret_from_fork+0x31/0x70 [ 37.151042][ C0] ret_from_fork_asm+0x1a/0x30 [ 37.151343][ C0] IN-SOFTIRQ-W at: [ 37.151471][ C0] __lock_acquire+0x797/0x1570 [ 37.151686][ C0] lock_acquire.part.0+0xeb/0x330 [ 37.151898][ C0] _raw_write_lock+0x30/0x40 [ 37.152285][ C0] addrconf_rs_timer+0xa9/0x730 [ 37.152509][ C0] call_timer_fn+0x13b/0x230 [ 37.152720][ C0] __run_timers+0x545/0x810 [ 37.153019][ C0] run_timer_softirq+0xe8/0x1b0 [ 37.153221][ C0] __do_softirq+0x1f8/0x5df [ 37.153419][ C0] irq_exit_rcu+0x97/0xc0 [ 37.153812][ C0] sysvec_apic_timer_interrupt+0x75/0x80 [ 37.154058][ C0] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 37.154306][ C0] default_idle+0xf/0x20 [ 37.154603][ C0] default_idle_call+0x6d/0xb0 [ 37.154805][ C0] cpuidle_idle_call+0x1f4/0x280 [ 37.154992][ C0] do_idle+0xf9/0x160 [ 37.155152][ C0] cpu_startup_entry+0x54/0x60 [ 37.155430][ C0] rest_init+0x14f/0x260 [ 37.155619][ C0] start_kernel+0x318/0x3d0 [ 37.155805][ C0] x86_64_start_reservations+0x18/0x30 [ 37.156095][ C0] x86_64_start_kernel+0xba/0x110 [ 37.156293][ C0] common_startup_64+0x12c/0x138 [ 37.156520][ C0] INITIAL USE at: [ 37.156633][ C0] __lock_acquire+0x797/0x1570 [ 37.156915][ C0] lock_acquire.part.0+0xeb/0x330 [ 37.157110][ C0] _raw_write_lock_bh+0x38/0x50 [ 37.157297][ C0] addrconf_permanent_addr+0x6e/0x670 [ 37.157590][ C0] addrconf_notify+0x749/0xd60 [ 37.157789][ C0] notifier_call_chain+0xcd/0x150 [ 37.157989][ C0] __dev_notify_flags+0xe6/0x250 [ 37.158172][ C0] dev_change_flags+0xec/0x160 [ 37.158474][ C0] do_setlink+0x7d6/0x21e0 [ 37.158661][ C0] __rtnl_newlink+0xaa7/0xd80 [ 37.158859][ C0] rtnl_newlink+0x63/0xa0 [ 37.159154][ C0] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 37.159342][ C0] netlink_rcv_skb+0x130/0x360 [ 37.159530][ C0] netlink_unicast+0x449/0x710 [ 37.159712][ C0] netlink_sendmsg+0x723/0xbe0 [ 37.160083][ C0] ____sys_sendmsg+0x7b2/0xa10 [ 37.160274][ C0] ___sys_sendmsg+0xee/0x170 [ 37.160468][ C0] __sys_sendmsg+0xcd/0x170 [ 37.160758][ C0] do_syscall_64+0xc6/0x1e0 [ 37.160972][ C0] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 37.161221][ C0] INITIAL READ USE at: [ 37.161342][ C0] __lock_acquire+0x797/0x1570 [ 37.161526][ C0] lock_acquire.part.0+0xeb/0x330 [ 37.161725][ C0] _raw_read_lock_bh+0x44/0x80 [ 37.161909][ C0] inet6_fill_ifla6_attrs+0x516/0x740 [ 37.162266][ C0] inet6_fill_link_af+0x5e/0xe0 [ 37.162456][ C0] rtnl_fill_ifinfo+0x1612/0x29e0 [ 37.162651][ C0] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 37.162981][ C0] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 37.163224][ C0] rtmsg_ifinfo+0x5b/0xa0 [ 37.163425][ C0] register_netdevice+0x1177/0x1690 [ 37.163753][ C0] register_netdev+0x20/0x40 [ 37.163949][ C0] sit_init_net+0x250/0x4f0 [ 37.164236][ C0] ops_init+0x9b/0x560 [ 37.164435][ C0] register_pernet_operations+0x2db/0x710 [ 37.164797][ C0] register_pernet_device+0x2a/0x60 [ 37.165030][ C0] sit_init+0x23/0xe0 [ 37.165218][ C0] do_one_initcall+0x8d/0x1e0 [ 37.165410][ C0] do_initcalls+0x1b2/0x3e0 [ 37.165599][ C0] kernel_init_freeable+0x232/0x310 [ 37.165823][ C0] kernel_init+0x20/0x200 [ 37.166014][ C0] ret_from_fork+0x31/0x70 [ 37.166202][ C0] ret_from_fork_asm+0x1a/0x30 [ 37.166387][ C0] } [ 37.166483][ C0] ... key at: [<ffffffffb4058300>] __key.37+0x0/0x40 [ 37.166840][ C0] ... acquired at: [ 37.166959][ C0] mark_lock+0x28d/0x3e0 [ 37.167114][ C0] mark_usage+0xd9/0x2a0 [ 37.167261][ C0] __lock_acquire+0x797/0x1570 [ 37.167415][ C0] lock_acquire.part.0+0xeb/0x330 [ 37.167570][ C0] _raw_write_lock+0x30/0x40 [ 37.167732][ C0] addrconf_rs_timer+0xa9/0x730 [ 37.167881][ C0] call_timer_fn+0x13b/0x230 [ 37.168132][ C0] __run_timers+0x545/0x810 [ 37.168285][ C0] run_timer_softirq+0xe8/0x1b0 [ 37.168436][ C0] __do_softirq+0x1f8/0x5df [ 37.168590][ C0] irq_exit_rcu+0x97/0xc0 [ 37.168844][ C0] sysvec_apic_timer_interrupt+0x75/0x80 [ 37.169031][ C0] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 37.169221][ C0] default_idle+0xf/0x20 [ 37.169376][ C0] default_idle_call+0x6d/0xb0 [ 37.169621][ C0] cpuidle_idle_call+0x1f4/0x280 [ 37.169769][ C0] do_idle+0xf9/0x160 [ 37.169882][ C0] cpu_startup_entry+0x54/0x60 [ 37.170035][ C0] rest_init+0x14f/0x260 [ 37.170187][ C0] start_kernel+0x318/0x3d0 [ 37.170338][ C0] x86_64_start_reservations+0x18/0x30 [ 37.170485][ C0] x86_64_start_kernel+0xba/0x110 [ 37.170670][ C0] common_startup_64+0x12c/0x138 [ 37.170836][ C0] [ 37.171000][ C0] [ 37.171000][ C0] stack backtrace: [ 37.171194][ C0] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 6.9.0-rc1-virtme #1 [ 37.171433][ C0] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 37.171900][ C0] Call Trace: [ 37.172050][ C0] <IRQ> [ 37.172133][ C0] dump_stack_lvl+0x82/0xd0 [ 37.172295][ C0] print_irq_inversion_bug.part.0+0x3d9/0x570 [ 37.172487][ C0] ? kernel_text_address+0x17/0xe0 [ 37.172684][ C0] ? __pfx_print_irq_inversion_bug.part.0+0x10/0x10 [ 37.172880][ C0] ? __pfx_usage_skip+0x10/0x10 [ 37.173144][ C0] ? __pfx_usage_match+0x10/0x10 [ 37.173301][ C0] ? arch_stack_walk+0x8c/0xf0 [ 37.173492][ C0] mark_lock_irq+0x4cd/0xa10 [ 37.173638][ C0] ? common_startup_64+0x12c/0x138 [ 37.173891][ C0] ? __pfx_mark_lock_irq+0x10/0x10 [ 37.174041][ C0] ? __pfx_stack_trace_save+0x10/0x10 [ 37.174192][ C0] ? save_trace+0x8f/0x5b0 [ 37.174359][ C0] mark_lock+0x28d/0x3e0 [ 37.174578][ C0] ? __pfx_stack_trace_save+0x10/0x10 [ 37.174732][ C0] mark_usage+0xd9/0x2a0 [ 37.174860][ C0] __lock_acquire+0x797/0x1570 [ 37.175113][ C0] ? __pfx_validate_chain+0x10/0x10 [ 37.175284][ C0] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 37.175439][ C0] lock_acquire.part.0+0xeb/0x330 [ 37.175588][ C0] ? addrconf_rs_timer+0xa9/0x730 [ 37.175843][ C0] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 37.175996][ C0] ? trace_lock_acquire+0x135/0x1c0 [ 37.176152][ C0] ? addrconf_rs_timer+0xa9/0x730 [ 37.176298][ C0] ? lock_acquire+0x32/0xc0 [ 37.176474][ C0] ? addrconf_rs_timer+0xa9/0x730 [ 37.176627][ C0] _raw_write_lock+0x30/0x40 [ 37.176778][ C0] ? addrconf_rs_timer+0xa9/0x730 [ 37.176933][ C0] addrconf_rs_timer+0xa9/0x730 [ 37.177173][ C0] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 37.177334][ C0] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 37.177490][ C0] ? call_timer_fn+0xe8/0x230 [ 37.177645][ C0] ? lock_acquire+0x32/0xc0 [ 37.177890][ C0] ? call_timer_fn+0xe8/0x230 [ 37.178037][ C0] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 37.178190][ C0] call_timer_fn+0x13b/0x230 [ 37.178360][ C0] ? call_timer_fn+0xe8/0x230 [ 37.178513][ C0] ? call_timer_fn+0xe8/0x230 [ 37.178791][ C0] ? __pfx_call_timer_fn+0x10/0x10 [ 37.178941][ C0] ? mark_lock+0x38/0x3e0 [ 37.179068][ C0] __run_timers+0x545/0x810 [ 37.179215][ C0] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 37.179370][ C0] ? __pfx___run_timers+0x10/0x10 [ 37.179520][ C0] ? do_raw_spin_lock+0x131/0x270 [ 37.179667][ C0] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 37.179813][ C0] ? lock_acquire+0x32/0xc0 [ 37.179974][ C0] ? run_timer_softirq+0xe0/0x1b0 [ 37.180130][ C0] run_timer_softirq+0xe8/0x1b0 [ 37.180288][ C0] __do_softirq+0x1f8/0x5df [ 37.180450][ C0] irq_exit_rcu+0x97/0xc0 [ 37.180570][ C0] sysvec_apic_timer_interrupt+0x75/0x80 [ 37.180813][ C0] </IRQ> [ 37.180988][ C0] <TASK> [ 37.181069][ C0] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 37.181256][ C0] RIP: 0010:default_idle+0xf/0x20 [ 37.181418][ 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 <fa> c3 cc cc cc cc 66 66 2e 0f 1f 84 00 00 00 00 00 90 90 90 90 90 [ 37.182087][ C0] RSP: 0018:ffffffffb1407e00 EFLAGS: 00000246 [ 37.182286][ C0] RAX: 00000000000b3f55 RBX: 1ffffffff6280fc2 RCX: ffffffffb050e9d5 [ 37.182512][ C0] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffffadeaa4a4 [ 37.182737][ C0] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c0709c [ 37.182967][ C0] R10: ffff8880360384e3 R11: ffff88803603dc80 R12: 0000000000000000 [ 37.183191][ C0] R13: ffffffffb141d000 R14: dffffc0000000000 R15: 0000000000014770 [ 37.183425][ C0] ? ct_kernel_exit.constprop.0+0xc5/0xf0 [ 37.183697][ C0] ? cpuidle_idle_call+0x1f4/0x280 [ 37.183847][ C0] default_idle_call+0x6d/0xb0 [ 37.183998][ C0] cpuidle_idle_call+0x1f4/0x280 [ 37.184153][ C0] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 37.184308][ C0] ? tsc_verify_tsc_adjust+0x5e/0x2b0 [ 37.184462][ C0] do_idle+0xf9/0x160 [ 37.184580][ C0] cpu_startup_entry+0x54/0x60 [ 37.184731][ C0] rest_init+0x14f/0x260 [ 37.184848][ C0] start_kernel+0x318/0x3d0 [ 37.185000][ C0] x86_64_start_reservations+0x18/0x30 [ 37.185246][ C0] x86_64_start_kernel+0xba/0x110 [ 37.185396][ C0] common_startup_64+0x12c/0x138 [ 37.185548][ C0] </TASK>