[ 26.949624][ T265] tc (265) used greatest stack depth: 24008 bytes left [ 31.019996][ C1] [ 31.020185][ C1] ======================================================== [ 31.020389][ C1] WARNING: possible irq lock inversion dependency detected [ 31.020594][ C1] 6.9.0-rc1-virtme #1 Not tainted [ 31.020728][ C1] -------------------------------------------------------- [ 31.020930][ C1] swapper/1/0 just changed the state of lock: [ 31.021100][ C1] ffff888007d72580 (&ndev->lock){++-.}-{2:2}, at: addrconf_rs_timer+0xa9/0x730 [ 31.021346][ C1] but this lock took another, SOFTIRQ-unsafe lock in the past: [ 31.021547][ C1] (&p->alloc_lock){+.+.}-{2:2} [ 31.021551][ C1] [ 31.021551][ C1] [ 31.021551][ C1] and interrupts could create inverse lock ordering between them. [ 31.021551][ C1] [ 31.022044][ C1] [ 31.022044][ C1] other info that might help us debug this: [ 31.022247][ C1] Possible interrupt unsafe locking scenario: [ 31.022247][ C1] [ 31.022450][ C1] CPU0 CPU1 [ 31.022587][ C1] ---- ---- [ 31.022724][ C1] lock(&p->alloc_lock); [ 31.022830][ C1] local_irq_disable(); [ 31.022996][ C1] lock(&ndev->lock); [ 31.023166][ C1] lock(&p->alloc_lock); [ 31.023334][ C1] [ 31.023438][ C1] lock(&ndev->lock); [ 31.023545][ C1] [ 31.023545][ C1] *** DEADLOCK *** [ 31.023545][ C1] [ 31.023743][ C1] 1 lock held by swapper/1/0: [ 31.023882][ C1] #0: ffffc900001d8b68 ((&ndev->rs_timer)){+.-.}-{0:0}, at: call_timer_fn+0xe8/0x230 [ 31.024133][ C1] [ 31.024133][ C1] the shortest dependencies between 2nd lock and 1st lock: [ 31.024369][ C1] -> (&p->alloc_lock){+.+.}-{2:2} { [ 31.024510][ C1] HARDIRQ-ON-W at: [ 31.024614][ C1] __lock_acquire+0x797/0x1570 [ 31.024791][ C1] lock_acquire.part.0+0xeb/0x330 [ 31.024966][ C1] _raw_spin_lock+0x30/0x40 [ 31.025142][ C1] set_mems_allowed+0x1d/0x210 [ 31.025335][ C1] kernel_init_freeable+0x72/0x310 [ 31.025507][ C1] kernel_init+0x20/0x200 [ 31.025679][ C1] ret_from_fork+0x31/0x70 [ 31.025853][ C1] ret_from_fork_asm+0x1a/0x30 [ 31.026028][ C1] SOFTIRQ-ON-W at: [ 31.026131][ C1] __lock_acquire+0x797/0x1570 [ 31.026308][ C1] lock_acquire.part.0+0xeb/0x330 [ 31.026478][ C1] _raw_spin_lock+0x30/0x40 [ 31.026648][ C1] set_mems_allowed+0x1d/0x210 [ 31.026818][ C1] kernel_init_freeable+0x72/0x310 [ 31.027076][ C1] kernel_init+0x20/0x200 [ 31.027248][ C1] ret_from_fork+0x31/0x70 [ 31.027420][ C1] ret_from_fork_asm+0x1a/0x30 [ 31.027591][ C1] INITIAL USE at: [ 31.027694][ C1] __lock_acquire+0x797/0x1570 [ 31.027865][ C1] lock_acquire.part.0+0xeb/0x330 [ 31.028037][ C1] _raw_spin_lock+0x30/0x40 [ 31.028293][ C1] set_mems_allowed+0x1d/0x210 [ 31.028465][ C1] kernel_init_freeable+0x72/0x310 [ 31.028639][ C1] kernel_init+0x20/0x200 [ 31.028893][ C1] ret_from_fork+0x31/0x70 [ 31.029064][ C1] ret_from_fork_asm+0x1a/0x30 [ 31.029322][ C1] } [ 31.029393][ C1] ... key at: [] __key.388+0x0/0x40 [ 31.029596][ C1] ... acquired at: [ 31.029857][ C1] __lock_acquire+0xaf0/0x1570 [ 31.029999][ C1] lock_acquire.part.0+0xeb/0x330 [ 31.030138][ C1] _raw_spin_lock+0x30/0x40 [ 31.030274][ C1] __get_task_comm+0x27/0x70 [ 31.030495][ C1] ref_tracker_alloc+0x2ee/0x490 [ 31.030631][ C1] netdev_get_by_index+0x5e/0x80 [ 31.030766][ C1] fib6_nh_init+0x3d8/0x1580 [ 31.030904][ C1] ip6_route_info_create+0xf18/0x17d0 [ 31.031122][ C1] addrconf_f6i_alloc+0x265/0x560 [ 31.031262][ C1] __ipv6_dev_ac_inc+0x25f/0xb10 [ 31.031399][ C1] addrconf_join_anycast+0x1c0/0x220 [ 31.031534][ C1] dev_forward_change+0x2a6/0x7b0 [ 31.031749][ C1] addrconf_fixup_forwarding+0x23f/0x460 [ 31.031918][ C1] addrconf_sysctl_forward+0x212/0x2b0 [ 31.032055][ C1] proc_sys_call_handler+0x403/0x5e0 [ 31.032272][ C1] vfs_write+0x9e5/0x10a0 [ 31.032413][ C1] ksys_write+0xf5/0x1e0 [ 31.032548][ C1] do_syscall_64+0xc6/0x1e0 [ 31.032767][ C1] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 31.032943][ C1] [ 31.033011][ C1] -> (&ndev->lock){++-.}-{2:2} { [ 31.033151][ C1] HARDIRQ-ON-W at: [ 31.033253][ C1] __lock_acquire+0x797/0x1570 [ 31.033423][ C1] lock_acquire.part.0+0xeb/0x330 [ 31.033685][ C1] _raw_write_lock_bh+0x38/0x50 [ 31.033855][ C1] addrconf_permanent_addr+0x6e/0x670 [ 31.034026][ C1] addrconf_notify+0x749/0xd60 [ 31.034195][ C1] notifier_call_chain+0xcd/0x150 [ 31.034455][ C1] __dev_notify_flags+0xe6/0x250 [ 31.034628][ C1] dev_change_flags+0xec/0x160 [ 31.034805][ C1] do_setlink+0x7d6/0x21e0 [ 31.034976][ C1] __rtnl_newlink+0xaa7/0xd80 [ 31.035239][ C1] rtnl_newlink+0x63/0xa0 [ 31.035410][ C1] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 31.035662][ C1] netlink_rcv_skb+0x130/0x360 [ 31.035836][ C1] netlink_unicast+0x449/0x710 [ 31.036007][ C1] netlink_sendmsg+0x723/0xbe0 [ 31.036179][ C1] ____sys_sendmsg+0x7b2/0xa10 [ 31.036435][ C1] ___sys_sendmsg+0xee/0x170 [ 31.036689][ C1] __sys_sendmsg+0xcd/0x170 [ 31.036865][ C1] do_syscall_64+0xc6/0x1e0 [ 31.037035][ C1] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 31.037327][ C1] HARDIRQ-ON-R at: [ 31.037430][ C1] __lock_acquire+0x797/0x1570 [ 31.037607][ C1] lock_acquire.part.0+0xeb/0x330 [ 31.037865][ C1] _raw_read_lock_bh+0x44/0x80 [ 31.038035][ C1] inet6_fill_ifla6_attrs+0x516/0x740 [ 31.038205][ C1] inet6_fill_link_af+0x5e/0xe0 [ 31.038378][ C1] rtnl_fill_ifinfo+0x1615/0x2a90 [ 31.038633][ C1] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 31.038806][ C1] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 31.039009][ C1] rtmsg_ifinfo+0x5b/0xa0 [ 31.039261][ C1] register_netdevice+0x1177/0x1690 [ 31.039438][ C1] register_netdev+0x20/0x40 [ 31.039609][ C1] vti6_init_net+0x25d/0x380 [ 31.039868][ C1] ops_init+0x9b/0x560 [ 31.040007][ C1] register_pernet_operations+0x2db/0x710 [ 31.040220][ C1] register_pernet_device+0x2a/0x60 [ 31.040389][ C1] vti6_tunnel_init+0x18/0x110 [ 31.040648][ C1] do_one_initcall+0x8d/0x1e0 [ 31.040820][ C1] do_initcalls+0x1b2/0x3e0 [ 31.040990][ C1] kernel_init_freeable+0x232/0x310 [ 31.041247][ C1] kernel_init+0x20/0x200 [ 31.041418][ C1] ret_from_fork+0x31/0x70 [ 31.041591][ C1] ret_from_fork_asm+0x1a/0x30 [ 31.041844][ C1] IN-SOFTIRQ-W at: [ 31.041946][ C1] __lock_acquire+0x797/0x1570 [ 31.042202][ C1] lock_acquire.part.0+0xeb/0x330 [ 31.042377][ C1] _raw_write_lock+0x30/0x40 [ 31.042719][ C1] addrconf_rs_timer+0xa9/0x730 [ 31.042890][ C1] call_timer_fn+0x13b/0x230 [ 31.043063][ C1] __run_timers+0x545/0x810 [ 31.043237][ C1] timer_expire_remote+0x9b/0xe0 [ 31.043492][ C1] tmigr_handle_remote_cpu+0x270/0x430 [ 31.043663][ C1] tmigr_handle_remote_up+0x19f/0x2e0 [ 31.043837][ C1] tmigr_handle_remote+0x21d/0x3a0 [ 31.044089][ C1] __do_softirq+0x1f8/0x5df [ 31.044258][ C1] irq_exit_rcu+0x97/0xc0 [ 31.044434][ C1] sysvec_apic_timer_interrupt+0x75/0x80 [ 31.044641][ C1] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 31.044846][ C1] default_idle+0xf/0x20 [ 31.045099][ C1] default_idle_call+0x6d/0xb0 [ 31.045281][ C1] cpuidle_idle_call+0x1f4/0x280 [ 31.045452][ C1] do_idle+0xf9/0x160 [ 31.045672][ C1] cpu_startup_entry+0x54/0x60 [ 31.045845][ C1] start_secondary+0x21c/0x2b0 [ 31.046017][ C1] common_startup_64+0x12c/0x138 [ 31.046272][ C1] INITIAL USE at: [ 31.046376][ C1] __lock_acquire+0x797/0x1570 [ 31.046549][ C1] lock_acquire.part.0+0xeb/0x330 [ 31.046805][ C1] _raw_write_lock_bh+0x38/0x50 [ 31.046977][ C1] addrconf_permanent_addr+0x6e/0x670 [ 31.047228][ C1] addrconf_notify+0x749/0xd60 [ 31.047400][ C1] notifier_call_chain+0xcd/0x150 [ 31.047656][ C1] __dev_notify_flags+0xe6/0x250 [ 31.047832][ C1] dev_change_flags+0xec/0x160 [ 31.048001][ C1] do_setlink+0x7d6/0x21e0 [ 31.048257][ C1] __rtnl_newlink+0xaa7/0xd80 [ 31.048429][ C1] rtnl_newlink+0x63/0xa0 [ 31.048600][ C1] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 31.048851][ C1] netlink_rcv_skb+0x130/0x360 [ 31.049028][ C1] netlink_unicast+0x449/0x710 [ 31.049199][ C1] netlink_sendmsg+0x723/0xbe0 [ 31.049453][ C1] ____sys_sendmsg+0x7b2/0xa10 [ 31.049624][ C1] ___sys_sendmsg+0xee/0x170 [ 31.049800][ C1] __sys_sendmsg+0xcd/0x170 [ 31.050051][ C1] do_syscall_64+0xc6/0x1e0 [ 31.050224][ C1] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 31.050512][ C1] INITIAL READ USE at: [ 31.050617][ C1] __lock_acquire+0x797/0x1570 [ 31.050788][ C1] lock_acquire.part.0+0xeb/0x330 [ 31.051041][ C1] _raw_read_lock_bh+0x44/0x80 [ 31.051212][ C1] inet6_fill_ifla6_attrs+0x516/0x740 [ 31.051418][ C1] inet6_fill_link_af+0x5e/0xe0 [ 31.051678][ C1] rtnl_fill_ifinfo+0x1615/0x2a90 [ 31.051850][ C1] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 31.052055][ C1] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 31.052344][ C1] rtmsg_ifinfo+0x5b/0xa0 [ 31.052519][ C1] register_netdevice+0x1177/0x1690 [ 31.052722][ C1] register_netdev+0x20/0x40 [ 31.052980][ C1] vti6_init_net+0x25d/0x380 [ 31.053150][ C1] ops_init+0x9b/0x560 [ 31.053401][ C1] register_pernet_operations+0x2db/0x710 [ 31.053605][ C1] register_pernet_device+0x2a/0x60 [ 31.053893][ C1] vti6_tunnel_init+0x18/0x110 [ 31.054065][ C1] do_one_initcall+0x8d/0x1e0 [ 31.054239][ C1] do_initcalls+0x1b2/0x3e0 [ 31.054495][ C1] kernel_init_freeable+0x232/0x310 [ 31.054702][ C1] kernel_init+0x20/0x200 [ 31.054872][ C1] ret_from_fork+0x31/0x70 [ 31.055124][ C1] ret_from_fork_asm+0x1a/0x30 [ 31.055301][ C1] } [ 31.055375][ C1] ... key at: [] __key.37+0x0/0x40 [ 31.055579][ C1] ... acquired at: [ 31.055680][ C1] mark_lock+0x28d/0x3e0 [ 31.055900][ C1] mark_usage+0xd9/0x2a0 [ 31.056037][ C1] __lock_acquire+0x797/0x1570 [ 31.056174][ C1] lock_acquire.part.0+0xeb/0x330 [ 31.056390][ C1] _raw_write_lock+0x30/0x40 [ 31.056529][ C1] addrconf_rs_timer+0xa9/0x730 [ 31.056667][ C1] call_timer_fn+0x13b/0x230 [ 31.056804][ C1] __run_timers+0x545/0x810 [ 31.057020][ C1] timer_expire_remote+0x9b/0xe0 [ 31.057155][ C1] tmigr_handle_remote_cpu+0x270/0x430 [ 31.057292][ C1] tmigr_handle_remote_up+0x19f/0x2e0 [ 31.057427][ C1] tmigr_handle_remote+0x21d/0x3a0 [ 31.057561][ C1] __do_softirq+0x1f8/0x5df [ 31.057701][ C1] irq_exit_rcu+0x97/0xc0 [ 31.057839][ C1] sysvec_apic_timer_interrupt+0x75/0x80 [ 31.058007][ C1] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 31.058257][ C1] default_idle+0xf/0x20 [ 31.058394][ C1] default_idle_call+0x6d/0xb0 [ 31.058612][ C1] cpuidle_idle_call+0x1f4/0x280 [ 31.058747][ C1] do_idle+0xf9/0x160 [ 31.058850][ C1] cpu_startup_entry+0x54/0x60 [ 31.059070][ C1] start_secondary+0x21c/0x2b0 [ 31.059207][ C1] common_startup_64+0x12c/0x138 [ 31.059352][ C1] [ 31.059421][ C1] [ 31.059421][ C1] stack backtrace: [ 31.059667][ C1] CPU: 1 PID: 0 Comm: swapper/1 Not tainted 6.9.0-rc1-virtme #1 [ 31.059873][ C1] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 31.060257][ C1] Call Trace: [ 31.060364][ C1] [ 31.060437][ C1] dump_stack_lvl+0x82/0xd0 [ 31.060659][ C1] print_irq_inversion_bug.part.0+0x3d9/0x570 [ 31.060828][ C1] ? kernel_text_address+0x17/0xe0 [ 31.061048][ C1] ? __pfx_print_irq_inversion_bug.part.0+0x10/0x10 [ 31.061215][ C1] ? __pfx_usage_skip+0x10/0x10 [ 31.061351][ C1] ? __pfx_usage_match+0x10/0x10 [ 31.061487][ C1] ? arch_stack_walk+0x8c/0xf0 [ 31.061626][ C1] mark_lock_irq+0x4cd/0xa10 [ 31.061761][ C1] ? common_startup_64+0x12c/0x138 [ 31.061900][ C1] ? __pfx_mark_lock_irq+0x10/0x10 [ 31.062035][ C1] ? __pfx_stack_trace_save+0x10/0x10 [ 31.062174][ C1] ? save_trace+0x8f/0x5b0 [ 31.062391][ C1] mark_lock+0x28d/0x3e0 [ 31.062494][ C1] ? __pfx_stack_trace_save+0x10/0x10 [ 31.062630][ C1] mark_usage+0xd9/0x2a0 [ 31.062739][ C1] __lock_acquire+0x797/0x1570 [ 31.062877][ C1] ? __pfx_validate_chain+0x10/0x10 [ 31.063101][ C1] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 31.063236][ C1] lock_acquire.part.0+0xeb/0x330 [ 31.063372][ C1] ? addrconf_rs_timer+0xa9/0x730 [ 31.063508][ C1] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 31.063650][ C1] ? trace_lock_acquire+0x135/0x1c0 [ 31.063786][ C1] ? addrconf_rs_timer+0xa9/0x730 [ 31.064008][ C1] ? lock_acquire+0x32/0xc0 [ 31.064141][ C1] ? addrconf_rs_timer+0xa9/0x730 [ 31.064281][ C1] _raw_write_lock+0x30/0x40 [ 31.064416][ C1] ? addrconf_rs_timer+0xa9/0x730 [ 31.064550][ C1] addrconf_rs_timer+0xa9/0x730 [ 31.064684][ C1] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 31.064903][ C1] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 31.065039][ C1] ? call_timer_fn+0xe8/0x230 [ 31.065179][ C1] ? lock_acquire+0x32/0xc0 [ 31.065316][ C1] ? call_timer_fn+0xe8/0x230 [ 31.065535][ C1] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 31.065671][ C1] call_timer_fn+0x13b/0x230 [ 31.065805][ C1] ? call_timer_fn+0xe8/0x230 [ 31.066027][ C1] ? call_timer_fn+0xe8/0x230 [ 31.066162][ C1] ? __pfx_call_timer_fn+0x10/0x10 [ 31.066299][ C1] ? mark_lock+0x38/0x3e0 [ 31.066404][ C1] __run_timers+0x545/0x810 [ 31.066537][ C1] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 31.066670][ C1] ? __pfx___run_timers+0x10/0x10 [ 31.066883][ C1] ? __lock_release+0x103/0x460 [ 31.067017][ C1] ? do_raw_spin_lock+0x131/0x270 [ 31.067151][ C1] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 31.067284][ C1] ? lock_acquire+0x32/0xc0 [ 31.067498][ C1] ? timer_expire_remote+0x93/0xe0 [ 31.067632][ C1] timer_expire_remote+0x9b/0xe0 [ 31.067765][ C1] tmigr_handle_remote_cpu+0x270/0x430 [ 31.067899][ C1] ? __pfx_tmigr_handle_remote_cpu+0x10/0x10 [ 31.068143][ C1] ? timerqueue_del+0x68/0x120 [ 31.068280][ C1] tmigr_handle_remote_up+0x19f/0x2e0 [ 31.068420][ C1] tmigr_handle_remote+0x21d/0x3a0 [ 31.068555][ C1] ? __pfx_tmigr_handle_remote+0x10/0x10 [ 31.068691][ C1] __do_softirq+0x1f8/0x5df [ 31.068906][ C1] irq_exit_rcu+0x97/0xc0 [ 31.069012][ C1] sysvec_apic_timer_interrupt+0x75/0x80 [ 31.069145][ C1] [ 31.069213][ C1] [ 31.069280][ C1] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 31.069522][ C1] RIP: 0010:default_idle+0xf/0x20 [ 31.069663][ C1] 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 fb 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.070225][ C1] RSP: 0018:ffffc9000014fdf8 EFLAGS: 00000242 [ 31.070396][ C1] RAX: 0000000000065207 RBX: 1ffff92000029fc1 RCX: ffffffff99531ea5 [ 31.070597][ C1] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffff96cac1d4 [ 31.070875][ C1] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c1709c [ 31.071077][ C1] R10: ffff8880360b84e3 R11: ffff8880360bde40 R12: 0000000000000000 [ 31.071280][ C1] R13: ffff888001b8a300 R14: dffffc0000000000 R15: 0000000000000000 [ 31.071561][ C1] ? ct_kernel_exit.constprop.0+0xc5/0xf0 [ 31.071707][ C1] ? cpuidle_idle_call+0x1f4/0x280 [ 31.071841][ C1] default_idle_call+0x6d/0xb0 [ 31.071974][ C1] cpuidle_idle_call+0x1f4/0x280 [ 31.072260][ C1] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 31.072396][ C1] ? tsc_verify_tsc_adjust+0x5e/0x2b0 [ 31.072530][ C1] do_idle+0xf9/0x160 [ 31.072631][ C1] cpu_startup_entry+0x54/0x60 [ 31.072846][ C1] start_secondary+0x21c/0x2b0 [ 31.072981][ C1] ? __pfx_start_secondary+0x10/0x10 [ 31.073119][ C1] common_startup_64+0x12c/0x138 [ 31.073261][ C1]