[ 28.324361][ T262] ip (262) used greatest stack depth: 22752 bytes left [ 34.472002][ C2] [ 34.472119][ C2] ======================================================== [ 34.472333][ C2] WARNING: possible irq lock inversion dependency detected [ 34.472539][ C2] 6.9.0-rc1-virtme #1 Not tainted [ 34.472676][ C2] -------------------------------------------------------- [ 34.472881][ C2] swapper/2/0 just changed the state of lock: [ 34.473053][ C2] ffff8880070fbd80 (&ndev->lock){++-.}-{2:2}, at: addrconf_rs_timer+0xa9/0x730 [ 34.473312][ C2] but this lock took another, SOFTIRQ-unsafe lock in the past: [ 34.473529][ C2] (&p->alloc_lock){+.+.}-{2:2} [ 34.473534][ C2] [ 34.473534][ C2] [ 34.473534][ C2] and interrupts could create inverse lock ordering between them. [ 34.473534][ C2] [ 34.474048][ C2] [ 34.474048][ C2] other info that might help us debug this: [ 34.474245][ C2] Possible interrupt unsafe locking scenario: [ 34.474245][ C2] [ 34.474473][ C2] CPU0 CPU1 [ 34.474613][ C2] ---- ---- [ 34.474763][ C2] lock(&p->alloc_lock); [ 34.474865][ C2] local_irq_disable(); [ 34.475052][ C2] lock(&ndev->lock); [ 34.475232][ C2] lock(&p->alloc_lock); [ 34.475407][ C2] [ 34.475518][ C2] lock(&ndev->lock); [ 34.475641][ C2] [ 34.475641][ C2] *** DEADLOCK *** [ 34.475641][ C2] [ 34.475831][ C2] 1 lock held by swapper/2/0: [ 34.475975][ C2] #0: ffffc90000230d68 ((&ndev->rs_timer)){+.-.}-{0:0}, at: call_timer_fn+0xe8/0x230 [ 34.476231][ C2] [ 34.476231][ C2] the shortest dependencies between 2nd lock and 1st lock: [ 34.476489][ C2] -> (&p->alloc_lock){+.+.}-{2:2} { [ 34.476629][ C2] HARDIRQ-ON-W at: [ 34.476731][ C2] __lock_acquire+0x797/0x1570 [ 34.476916][ C2] lock_acquire.part.0+0xeb/0x330 [ 34.477084][ C2] _raw_spin_lock+0x30/0x40 [ 34.477265][ C2] set_mems_allowed+0x1d/0x210 [ 34.477442][ C2] kernel_init_freeable+0x72/0x310 [ 34.477634][ C2] kernel_init+0x20/0x200 [ 34.477820][ C2] ret_from_fork+0x31/0x70 [ 34.477988][ C2] ret_from_fork_asm+0x1a/0x30 [ 34.478188][ C2] SOFTIRQ-ON-W at: [ 34.478289][ C2] __lock_acquire+0x797/0x1570 [ 34.478482][ C2] lock_acquire.part.0+0xeb/0x330 [ 34.478678][ C2] _raw_spin_lock+0x30/0x40 [ 34.478846][ C2] set_mems_allowed+0x1d/0x210 [ 34.479031][ C2] kernel_init_freeable+0x72/0x310 [ 34.479199][ C2] kernel_init+0x20/0x200 [ 34.479385][ C2] ret_from_fork+0x31/0x70 [ 34.479589][ C2] ret_from_fork_asm+0x1a/0x30 [ 34.479767][ C2] INITIAL USE at: [ 34.479882][ C2] __lock_acquire+0x797/0x1570 [ 34.480054][ C2] lock_acquire.part.0+0xeb/0x330 [ 34.480248][ C2] _raw_spin_lock+0x30/0x40 [ 34.480436][ C2] set_mems_allowed+0x1d/0x210 [ 34.480614][ C2] kernel_init_freeable+0x72/0x310 [ 34.480799][ C2] kernel_init+0x20/0x200 [ 34.480974][ C2] ret_from_fork+0x31/0x70 [ 34.481157][ C2] ret_from_fork_asm+0x1a/0x30 [ 34.481340][ C2] } [ 34.481410][ C2] ... key at: [] __key.387+0x0/0x40 [ 34.481645][ C2] ... acquired at: [ 34.481746][ C2] __lock_acquire+0xaf0/0x1570 [ 34.481895][ C2] lock_acquire.part.0+0xeb/0x330 [ 34.482033][ C2] _raw_spin_lock+0x30/0x40 [ 34.482179][ C2] __get_task_comm+0x27/0x70 [ 34.482315][ C2] ref_tracker_alloc+0x2ee/0x490 [ 34.482481][ C2] netdev_get_by_index+0x5e/0x80 [ 34.482617][ C2] fib6_nh_init+0x3d8/0x15b0 [ 34.482764][ C2] ip6_route_info_create+0xf18/0x17d0 [ 34.482911][ C2] ip6_route_add+0x1c/0x140 [ 34.483058][ C2] addrconf_prefix_route+0x1cc/0x2b0 [ 34.483196][ C2] addrconf_permanent_addr+0x32f/0x670 [ 34.483341][ C2] addrconf_notify+0x749/0xd60 [ 34.483491][ C2] notifier_call_chain+0xcd/0x150 [ 34.483638][ C2] __dev_notify_flags+0xe6/0x250 [ 34.483779][ C2] dev_change_flags+0xec/0x160 [ 34.483927][ C2] do_setlink+0x7d6/0x21e0 [ 34.484062][ C2] __rtnl_newlink+0xaa7/0xd80 [ 34.484210][ C2] rtnl_newlink+0x63/0xa0 [ 34.484350][ C2] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 34.484507][ C2] netlink_rcv_skb+0x130/0x360 [ 34.484640][ C2] netlink_unicast+0x449/0x710 [ 34.484785][ C2] netlink_sendmsg+0x723/0xbe0 [ 34.484922][ C2] ____sys_sendmsg+0x7b2/0xa10 [ 34.485072][ C2] ___sys_sendmsg+0xee/0x170 [ 34.485205][ C2] __sys_sendmsg+0xcd/0x170 [ 34.485352][ C2] do_syscall_64+0xc6/0x1e0 [ 34.485504][ C2] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 34.485691][ C2] [ 34.485761][ C2] -> (&ndev->lock){++-.}-{2:2} { [ 34.485898][ C2] HARDIRQ-ON-W at: [ 34.486003][ C2] __lock_acquire+0x797/0x1570 [ 34.486175][ C2] lock_acquire.part.0+0xeb/0x330 [ 34.486348][ C2] _raw_write_lock_bh+0x38/0x50 [ 34.486527][ C2] addrconf_permanent_addr+0x6e/0x670 [ 34.486703][ C2] addrconf_notify+0x749/0xd60 [ 34.486874][ C2] notifier_call_chain+0xcd/0x150 [ 34.487043][ C2] __dev_notify_flags+0xe6/0x250 [ 34.487215][ C2] dev_change_flags+0xec/0x160 [ 34.487383][ C2] do_setlink+0x7d6/0x21e0 [ 34.487562][ C2] __rtnl_newlink+0xaa7/0xd80 [ 34.487734][ C2] rtnl_newlink+0x63/0xa0 [ 34.487910][ C2] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 34.488078][ C2] netlink_rcv_skb+0x130/0x360 [ 34.488246][ C2] netlink_unicast+0x449/0x710 [ 34.488430][ C2] netlink_sendmsg+0x723/0xbe0 [ 34.488603][ C2] ____sys_sendmsg+0x7b2/0xa10 [ 34.488770][ C2] ___sys_sendmsg+0xee/0x170 [ 34.488942][ C2] __sys_sendmsg+0xcd/0x170 [ 34.489119][ C2] do_syscall_64+0xc6/0x1e0 [ 34.489289][ C2] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 34.489503][ C2] HARDIRQ-ON-R at: [ 34.489605][ C2] __lock_acquire+0x797/0x1570 [ 34.489778][ C2] lock_acquire.part.0+0xeb/0x330 [ 34.489950][ C2] _raw_read_lock_bh+0x44/0x80 [ 34.490124][ C2] inet6_fill_ifla6_attrs+0x516/0x740 [ 34.490308][ C2] inet6_fill_link_af+0x5e/0xe0 [ 34.490500][ C2] rtnl_fill_ifinfo+0x1612/0x29e0 [ 34.490690][ C2] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 34.490874][ C2] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 34.491078][ C2] rtmsg_ifinfo+0x5b/0xa0 [ 34.491264][ C2] register_netdevice+0x1177/0x1690 [ 34.491470][ C2] register_netdev+0x20/0x40 [ 34.491644][ C2] sit_init_net+0x250/0x4f0 [ 34.491824][ C2] ops_init+0x9b/0x560 [ 34.491963][ C2] register_pernet_operations+0x2db/0x710 [ 34.492180][ C2] register_pernet_device+0x2a/0x60 [ 34.492361][ C2] sit_init+0x23/0xe0 [ 34.492514][ C2] do_one_initcall+0x8d/0x1e0 [ 34.492707][ C2] do_initcalls+0x1b2/0x3e0 [ 34.492903][ C2] kernel_init_freeable+0x232/0x310 [ 34.493073][ C2] kernel_init+0x20/0x200 [ 34.493257][ C2] ret_from_fork+0x31/0x70 [ 34.493532][ C2] ret_from_fork_asm+0x1a/0x30 [ 34.493705][ C2] IN-SOFTIRQ-W at: [ 34.493817][ C2] __lock_acquire+0x797/0x1570 [ 34.493991][ C2] lock_acquire.part.0+0xeb/0x330 [ 34.494247][ C2] _raw_write_lock+0x30/0x40 [ 34.494427][ C2] addrconf_rs_timer+0xa9/0x730 [ 34.494690][ C2] call_timer_fn+0x13b/0x230 [ 34.494933][ C2] __run_timers+0x545/0x810 [ 34.495120][ C2] run_timer_softirq+0xe8/0x1b0 [ 34.495287][ C2] __do_softirq+0x1f8/0x5df [ 34.495475][ C2] irq_exit_rcu+0x97/0xc0 [ 34.495730][ C2] sysvec_apic_timer_interrupt+0x75/0x80 [ 34.495941][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 34.496141][ C2] default_idle+0xf/0x20 [ 34.496403][ C2] default_idle_call+0x6d/0xb0 [ 34.496597][ C2] cpuidle_idle_call+0x1f4/0x280 [ 34.496764][ C2] do_idle+0xf9/0x160 [ 34.496990][ C2] cpu_startup_entry+0x54/0x60 [ 34.497166][ C2] start_secondary+0x21c/0x2b0 [ 34.497336][ C2] common_startup_64+0x12c/0x138 [ 34.497545][ C2] INITIAL USE at: [ 34.497660][ C2] __lock_acquire+0x797/0x1570 [ 34.497840][ C2] lock_acquire.part.0+0xeb/0x330 [ 34.498019][ C2] _raw_write_lock_bh+0x38/0x50 [ 34.498186][ C2] addrconf_permanent_addr+0x6e/0x670 [ 34.498366][ C2] addrconf_notify+0x749/0xd60 [ 34.498555][ C2] notifier_call_chain+0xcd/0x150 [ 34.498725][ C2] __dev_notify_flags+0xe6/0x250 [ 34.498891][ C2] dev_change_flags+0xec/0x160 [ 34.499056][ C2] do_setlink+0x7d6/0x21e0 [ 34.499222][ C2] __rtnl_newlink+0xaa7/0xd80 [ 34.499481][ C2] rtnl_newlink+0x63/0xa0 [ 34.499647][ C2] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 34.499828][ C2] netlink_rcv_skb+0x130/0x360 [ 34.500007][ C2] netlink_unicast+0x449/0x710 [ 34.500250][ C2] netlink_sendmsg+0x723/0xbe0 [ 34.500444][ C2] ____sys_sendmsg+0x7b2/0xa10 [ 34.500629][ C2] ___sys_sendmsg+0xee/0x170 [ 34.500878][ C2] __sys_sendmsg+0xcd/0x170 [ 34.501046][ C2] do_syscall_64+0xc6/0x1e0 [ 34.501229][ C2] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 34.501612][ C2] INITIAL READ USE at: [ 34.501715][ C2] __lock_acquire+0x797/0x1570 [ 34.501896][ C2] lock_acquire.part.0+0xeb/0x330 [ 34.502071][ C2] _raw_read_lock_bh+0x44/0x80 [ 34.502325][ C2] inet6_fill_ifla6_attrs+0x516/0x740 [ 34.502541][ C2] inet6_fill_link_af+0x5e/0xe0 [ 34.502727][ C2] rtnl_fill_ifinfo+0x1612/0x29e0 [ 34.503000][ C2] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 34.503200][ C2] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 34.503411][ C2] rtmsg_ifinfo+0x5b/0xa0 [ 34.503613][ C2] register_netdevice+0x1177/0x1690 [ 34.503827][ C2] register_netdev+0x20/0x40 [ 34.503994][ C2] sit_init_net+0x250/0x4f0 [ 34.504162][ C2] ops_init+0x9b/0x560 [ 34.504326][ C2] register_pernet_operations+0x2db/0x710 [ 34.504533][ C2] register_pernet_device+0x2a/0x60 [ 34.504809][ C2] sit_init+0x23/0xe0 [ 34.504979][ C2] do_one_initcall+0x8d/0x1e0 [ 34.505147][ C2] do_initcalls+0x1b2/0x3e0 [ 34.505313][ C2] kernel_init_freeable+0x232/0x310 [ 34.505609][ C2] kernel_init+0x20/0x200 [ 34.505776][ C2] ret_from_fork+0x31/0x70 [ 34.505945][ C2] ret_from_fork_asm+0x1a/0x30 [ 34.506191][ C2] } [ 34.506259][ C2] ... key at: [] __key.36+0x0/0x40 [ 34.506468][ C2] ... acquired at: [ 34.506574][ C2] mark_lock+0x28d/0x3e0 [ 34.506782][ C2] mark_usage+0xd9/0x2a0 [ 34.506916][ C2] __lock_acquire+0x797/0x1570 [ 34.507050][ C2] lock_acquire.part.0+0xeb/0x330 [ 34.507182][ C2] _raw_write_lock+0x30/0x40 [ 34.507315][ C2] addrconf_rs_timer+0xa9/0x730 [ 34.507581][ C2] call_timer_fn+0x13b/0x230 [ 34.507716][ C2] __run_timers+0x545/0x810 [ 34.507850][ C2] run_timer_softirq+0xe8/0x1b0 [ 34.507982][ C2] __do_softirq+0x1f8/0x5df [ 34.508189][ C2] irq_exit_rcu+0x97/0xc0 [ 34.508320][ C2] sysvec_apic_timer_interrupt+0x75/0x80 [ 34.508495][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 34.508664][ C2] default_idle+0xf/0x20 [ 34.508874][ C2] default_idle_call+0x6d/0xb0 [ 34.509007][ C2] cpuidle_idle_call+0x1f4/0x280 [ 34.509140][ C2] do_idle+0xf9/0x160 [ 34.509240][ C2] cpu_startup_entry+0x54/0x60 [ 34.509483][ C2] start_secondary+0x21c/0x2b0 [ 34.509617][ C2] common_startup_64+0x12c/0x138 [ 34.509769][ C2] [ 34.509835][ C2] [ 34.509835][ C2] stack backtrace: [ 34.510007][ C2] CPU: 2 PID: 0 Comm: swapper/2 Not tainted 6.9.0-rc1-virtme #1 [ 34.510296][ C2] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 34.510618][ C2] Call Trace: [ 34.510806][ C2] [ 34.510887][ C2] dump_stack_lvl+0x82/0xd0 [ 34.511029][ C2] print_irq_inversion_bug.part.0+0x3d9/0x570 [ 34.511205][ C2] ? kernel_text_address+0x17/0xe0 [ 34.511339][ C2] ? __pfx_print_irq_inversion_bug.part.0+0x10/0x10 [ 34.511603][ C2] ? __pfx_usage_skip+0x10/0x10 [ 34.511740][ C2] ? __pfx_usage_match+0x10/0x10 [ 34.511883][ C2] ? arch_stack_walk+0x8c/0xf0 [ 34.512027][ C2] mark_lock_irq+0x4cd/0xa10 [ 34.512321][ C2] ? common_startup_64+0x12c/0x138 [ 34.512469][ C2] ? __pfx_mark_lock_irq+0x10/0x10 [ 34.512611][ C2] ? __pfx_stack_trace_save+0x10/0x10 [ 34.512761][ C2] ? save_trace+0x8f/0x5b0 [ 34.513010][ C2] mark_lock+0x28d/0x3e0 [ 34.513112][ C2] ? __pfx_stack_trace_save+0x10/0x10 [ 34.513262][ C2] mark_usage+0xd9/0x2a0 [ 34.513362][ C2] __lock_acquire+0x797/0x1570 [ 34.513526][ C2] ? __pfx_validate_chain+0x10/0x10 [ 34.513663][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 34.513807][ C2] lock_acquire.part.0+0xeb/0x330 [ 34.513938][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 34.514085][ C2] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 34.514221][ C2] ? trace_lock_acquire+0x135/0x1c0 [ 34.514353][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 34.514539][ C2] ? lock_acquire+0x32/0xc0 [ 34.514672][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 34.514804][ C2] _raw_write_lock+0x30/0x40 [ 34.514937][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 34.515068][ C2] addrconf_rs_timer+0xa9/0x730 [ 34.515202][ C2] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 34.515346][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 34.515575][ C2] ? call_timer_fn+0xe8/0x230 [ 34.515728][ C2] ? lock_acquire+0x32/0xc0 [ 34.515859][ C2] ? call_timer_fn+0xe8/0x230 [ 34.515992][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 34.516209][ C2] call_timer_fn+0x13b/0x230 [ 34.516356][ C2] ? call_timer_fn+0xe8/0x230 [ 34.516501][ C2] ? call_timer_fn+0xe8/0x230 [ 34.516657][ C2] ? __pfx_call_timer_fn+0x10/0x10 [ 34.516870][ C2] ? mark_lock+0x38/0x3e0 [ 34.516986][ C2] __run_timers+0x545/0x810 [ 34.517118][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 34.517262][ C2] ? __pfx___run_timers+0x10/0x10 [ 34.517397][ C2] ? do_raw_spin_lock+0x131/0x270 [ 34.517633][ C2] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 34.517764][ C2] ? lock_acquire+0x32/0xc0 [ 34.517913][ C2] ? run_timer_softirq+0xe0/0x1b0 [ 34.518048][ C2] run_timer_softirq+0xe8/0x1b0 [ 34.518254][ C2] __do_softirq+0x1f8/0x5df [ 34.518388][ C2] irq_exit_rcu+0x97/0xc0 [ 34.518503][ C2] sysvec_apic_timer_interrupt+0x75/0x80 [ 34.518637][ C2] [ 34.518705][ C2] [ 34.518847][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 34.519024][ C2] RIP: 0010:default_idle+0xf/0x20 [ 34.519173][ 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 c3 d1 2b 00 fb f4 c3 cc cc cc cc 66 66 2e 0f 1f 84 00 00 00 00 00 90 90 90 90 90 [ 34.519767][ C2] RSP: 0018:ffffc9000015fdf8 EFLAGS: 00000246 [ 34.519944][ C2] RAX: 00000000000e5aaf RBX: 1ffff9200002bfc1 RCX: ffffffffae1a48b5 [ 34.520238][ C2] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffffabaaa4a4 [ 34.520448][ C2] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c2709c [ 34.520662][ C2] R10: ffff8880361384e3 R11: ffff88803613de40 R12: 0000000000000000 [ 34.520950][ C2] R13: ffff888001b845c0 R14: dffffc0000000000 R15: 0000000000000000 [ 34.521161][ C2] ? ct_kernel_exit.constprop.0+0xc5/0xf0 [ 34.521294][ C2] ? cpuidle_idle_call+0x1f4/0x280 [ 34.521442][ C2] default_idle_call+0x6d/0xb0 [ 34.521672][ C2] cpuidle_idle_call+0x1f4/0x280 [ 34.521803][ C2] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 34.521937][ C2] ? tsc_verify_tsc_adjust+0x5e/0x2b0 [ 34.522070][ C2] do_idle+0xf9/0x160 [ 34.522245][ C2] cpu_startup_entry+0x54/0x60 [ 34.522390][ C2] start_secondary+0x21c/0x2b0 [ 34.522571][ C2] ? __pfx_start_secondary+0x10/0x10 [ 34.522705][ C2] common_startup_64+0x12c/0x138 [ 34.522855][ C2] [ 44.941107][ T367] netem: version 1.3