[ 33.603991][ C1] [ 33.604267][ C1] ======================================================== [ 33.604596][ C1] WARNING: possible irq lock inversion dependency detected [ 33.604927][ C1] 6.9.0-rc1-virtme #1 Not tainted [ 33.605141][ C1] -------------------------------------------------------- [ 33.605439][ C1] swapper/1/0 just changed the state of lock: [ 33.605698][ C1] ffff888005432580 (&ndev->lock){++-.}-{2:2}, at: addrconf_rs_timer+0xa9/0x730 [ 33.606093][ C1] but this lock took another, SOFTIRQ-unsafe lock in the past: [ 33.606417][ C1] (&p->alloc_lock){+.+.}-{2:2} [ 33.606425][ C1] [ 33.606425][ C1] [ 33.606425][ C1] and interrupts could create inverse lock ordering between them. [ 33.606425][ C1] [ 33.607197][ C1] [ 33.607197][ C1] other info that might help us debug this: [ 33.607506][ C1] Possible interrupt unsafe locking scenario: [ 33.607506][ C1] [ 33.607815][ C1] CPU0 CPU1 [ 33.608015][ C1] ---- ---- [ 33.608224][ C1] lock(&p->alloc_lock); [ 33.608389][ C1] local_irq_disable(); [ 33.608648][ C1] lock(&ndev->lock); [ 33.608899][ C1] lock(&p->alloc_lock); [ 33.609180][ C1] <Interrupt> [ 33.609345][ C1] lock(&ndev->lock); [ 33.609513][ C1] [ 33.609513][ C1] *** DEADLOCK *** [ 33.609513][ C1] [ 33.609822][ C1] 1 lock held by swapper/1/0: [ 33.610035][ C1] #0: ffffc900001d8b68 ((&ndev->rs_timer)){+.-.}-{0:0}, at: call_timer_fn+0xe8/0x230 [ 33.610430][ C1] [ 33.610430][ C1] the shortest dependencies between 2nd lock and 1st lock: [ 33.610723][ C1] -> (&p->alloc_lock){+.+.}-{2:2} { [ 33.610866][ C1] HARDIRQ-ON-W at: [ 33.610986][ C1] __lock_acquire+0x797/0x1570 [ 33.611180][ C1] lock_acquire.part.0+0xeb/0x330 [ 33.611370][ C1] _raw_spin_lock+0x30/0x40 [ 33.611553][ C1] set_mems_allowed+0x1d/0x210 [ 33.611734][ C1] kernel_init_freeable+0x72/0x310 [ 33.611921][ C1] kernel_init+0x20/0x200 [ 33.612136][ C1] ret_from_fork+0x31/0x70 [ 33.612413][ C1] ret_from_fork_asm+0x1a/0x30 [ 33.612692][ C1] SOFTIRQ-ON-W at: [ 33.612862][ C1] __lock_acquire+0x797/0x1570 [ 33.613125][ C1] lock_acquire.part.0+0xeb/0x330 [ 33.613296][ C1] _raw_spin_lock+0x30/0x40 [ 33.613466][ C1] set_mems_allowed+0x1d/0x210 [ 33.613637][ C1] kernel_init_freeable+0x72/0x310 [ 33.613805][ C1] kernel_init+0x20/0x200 [ 33.613976][ C1] ret_from_fork+0x31/0x70 [ 33.614154][ C1] ret_from_fork_asm+0x1a/0x30 [ 33.614328][ C1] INITIAL USE at: [ 33.614430][ C1] __lock_acquire+0x797/0x1570 [ 33.614600][ C1] lock_acquire.part.0+0xeb/0x330 [ 33.614768][ C1] _raw_spin_lock+0x30/0x40 [ 33.614938][ C1] set_mems_allowed+0x1d/0x210 [ 33.615122][ C1] kernel_init_freeable+0x72/0x310 [ 33.615295][ C1] kernel_init+0x20/0x200 [ 33.615464][ C1] ret_from_fork+0x31/0x70 [ 33.615636][ C1] ret_from_fork_asm+0x1a/0x30 [ 33.615805][ C1] } [ 33.615876][ C1] ... key at: [<ffffffffb63ffd20>] __key.387+0x0/0x40 [ 33.616172][ C1] ... acquired at: [ 33.616275][ C1] __lock_acquire+0xaf0/0x1570 [ 33.616418][ C1] lock_acquire.part.0+0xeb/0x330 [ 33.616554][ C1] _raw_spin_lock+0x30/0x40 [ 33.616691][ C1] __get_task_comm+0x27/0x70 [ 33.616830][ C1] ref_tracker_alloc+0x2ee/0x490 [ 33.616967][ C1] netdev_get_by_index+0x5e/0x80 [ 33.617113][ C1] fib6_nh_init+0x3d8/0x15b0 [ 33.617250][ C1] ip6_route_info_create+0xf18/0x17d0 [ 33.617385][ C1] addrconf_f6i_alloc+0x265/0x560 [ 33.617524][ C1] __ipv6_dev_ac_inc+0x25f/0xb10 [ 33.617662][ C1] addrconf_join_anycast+0x1c0/0x220 [ 33.617797][ C1] dev_forward_change+0x2a6/0x7b0 [ 33.617934][ C1] addrconf_fixup_forwarding+0x23f/0x460 [ 33.618131][ C1] addrconf_sysctl_forward+0x212/0x2b0 [ 33.618267][ C1] proc_sys_call_handler+0x403/0x5e0 [ 33.618419][ C1] vfs_write+0x9e5/0x10a0 [ 33.618558][ C1] ksys_write+0xf5/0x1e0 [ 33.618706][ C1] do_syscall_64+0xc6/0x1e0 [ 33.618843][ C1] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 33.619031][ C1] [ 33.619115][ C1] -> (&ndev->lock){++-.}-{2:2} { [ 33.619276][ C1] HARDIRQ-ON-W at: [ 33.619379][ C1] __lock_acquire+0x797/0x1570 [ 33.619562][ C1] lock_acquire.part.0+0xeb/0x330 [ 33.619749][ C1] _raw_write_lock_bh+0x38/0x50 [ 33.619919][ C1] addrconf_permanent_addr+0x6e/0x670 [ 33.620137][ C1] addrconf_notify+0x749/0xd60 [ 33.620311][ C1] notifier_call_chain+0xcd/0x150 [ 33.620493][ C1] __dev_notify_flags+0xe6/0x250 [ 33.620696][ C1] dev_change_flags+0xec/0x160 [ 33.620869][ C1] do_setlink+0x7d6/0x21e0 [ 33.621062][ C1] __rtnl_newlink+0xaa7/0xd80 [ 33.621241][ C1] rtnl_newlink+0x63/0xa0 [ 33.621424][ C1] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 33.621603][ C1] netlink_rcv_skb+0x130/0x360 [ 33.621772][ C1] netlink_unicast+0x449/0x710 [ 33.621956][ C1] netlink_sendmsg+0x723/0xbe0 [ 33.622167][ C1] ____sys_sendmsg+0x7b2/0xa10 [ 33.622339][ C1] ___sys_sendmsg+0xee/0x170 [ 33.622525][ C1] __sys_sendmsg+0xcd/0x170 [ 33.622708][ C1] do_syscall_64+0xc6/0x1e0 [ 33.622878][ C1] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 33.623114][ C1] HARDIRQ-ON-R at: [ 33.623226][ C1] __lock_acquire+0x797/0x1570 [ 33.623416][ C1] lock_acquire.part.0+0xeb/0x330 [ 33.623602][ C1] _raw_read_lock_bh+0x44/0x80 [ 33.623777][ C1] inet6_fill_ifla6_attrs+0x516/0x740 [ 33.623958][ C1] inet6_fill_link_af+0x5e/0xe0 [ 33.624143][ C1] rtnl_fill_ifinfo+0x1612/0x29e0 [ 33.624312][ C1] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 33.624499][ C1] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 33.624713][ C1] rtmsg_ifinfo+0x5b/0xa0 [ 33.624882][ C1] register_netdevice+0x1177/0x1690 [ 33.625079][ C1] register_netdev+0x20/0x40 [ 33.625264][ C1] sit_init_net+0x250/0x4f0 [ 33.625439][ C1] ops_init+0x9b/0x560 [ 33.625592][ C1] register_pernet_operations+0x2db/0x710 [ 33.625804][ C1] register_pernet_device+0x2a/0x60 [ 33.625973][ C1] sit_init+0x23/0xe0 [ 33.626131][ C1] do_one_initcall+0x8d/0x1e0 [ 33.626303][ C1] do_initcalls+0x1b2/0x3e0 [ 33.626484][ C1] kernel_init_freeable+0x232/0x310 [ 33.626667][ C1] kernel_init+0x20/0x200 [ 33.626843][ C1] ret_from_fork+0x31/0x70 [ 33.627033][ C1] ret_from_fork_asm+0x1a/0x30 [ 33.627237][ C1] IN-SOFTIRQ-W at: [ 33.627339][ C1] __lock_acquire+0x797/0x1570 [ 33.627523][ C1] lock_acquire.part.0+0xeb/0x330 [ 33.627693][ C1] _raw_write_lock+0x30/0x40 [ 33.627875][ C1] addrconf_rs_timer+0xa9/0x730 [ 33.628064][ C1] call_timer_fn+0x13b/0x230 [ 33.628339][ C1] __run_timers+0x545/0x810 [ 33.628528][ C1] timer_expire_remote+0x9b/0xe0 [ 33.628711][ C1] tmigr_handle_remote_cpu+0x270/0x430 [ 33.628900][ C1] tmigr_handle_remote_up+0x19f/0x2e0 [ 33.629081][ C1] tmigr_handle_remote+0x21d/0x3a0 [ 33.629275][ C1] __do_softirq+0x1f8/0x5df [ 33.629457][ C1] irq_exit_rcu+0x97/0xc0 [ 33.629626][ C1] sysvec_apic_timer_interrupt+0x75/0x80 [ 33.629839][ C1] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 33.630072][ C1] default_idle+0xf/0x20 [ 33.630240][ C1] default_idle_call+0x6d/0xb0 [ 33.630426][ C1] cpuidle_idle_call+0x1f4/0x280 [ 33.630617][ C1] do_idle+0xf9/0x160 [ 33.630761][ C1] cpu_startup_entry+0x54/0x60 [ 33.630942][ C1] start_secondary+0x21c/0x2b0 [ 33.631133][ C1] common_startup_64+0x12c/0x138 [ 33.631302][ C1] INITIAL USE at: [ 33.631405][ C1] __lock_acquire+0x797/0x1570 [ 33.631585][ C1] lock_acquire.part.0+0xeb/0x330 [ 33.631754][ C1] _raw_write_lock_bh+0x38/0x50 [ 33.631930][ C1] addrconf_permanent_addr+0x6e/0x670 [ 33.632109][ C1] addrconf_notify+0x749/0xd60 [ 33.632280][ C1] notifier_call_chain+0xcd/0x150 [ 33.632453][ C1] __dev_notify_flags+0xe6/0x250 [ 33.632625][ C1] dev_change_flags+0xec/0x160 [ 33.632795][ C1] do_setlink+0x7d6/0x21e0 [ 33.632966][ C1] __rtnl_newlink+0xaa7/0xd80 [ 33.633144][ C1] rtnl_newlink+0x63/0xa0 [ 33.633313][ C1] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 33.633481][ C1] netlink_rcv_skb+0x130/0x360 [ 33.633655][ C1] netlink_unicast+0x449/0x710 [ 33.633824][ C1] netlink_sendmsg+0x723/0xbe0 [ 33.633992][ C1] ____sys_sendmsg+0x7b2/0xa10 [ 33.634173][ C1] ___sys_sendmsg+0xee/0x170 [ 33.634345][ C1] __sys_sendmsg+0xcd/0x170 [ 33.634513][ C1] do_syscall_64+0xc6/0x1e0 [ 33.634684][ C1] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 33.634892][ C1] INITIAL READ USE at: [ 33.634995][ C1] __lock_acquire+0x797/0x1570 [ 33.635184][ C1] lock_acquire.part.0+0xeb/0x330 [ 33.635353][ C1] _raw_read_lock_bh+0x44/0x80 [ 33.635539][ C1] inet6_fill_ifla6_attrs+0x516/0x740 [ 33.635745][ C1] inet6_fill_link_af+0x5e/0xe0 [ 33.635928][ C1] rtnl_fill_ifinfo+0x1612/0x29e0 [ 33.636149][ C1] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 33.636399][ C1] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 33.636613][ C1] rtmsg_ifinfo+0x5b/0xa0 [ 33.636795][ C1] register_netdevice+0x1177/0x1690 [ 33.636999][ C1] register_netdev+0x20/0x40 [ 33.637196][ C1] sit_init_net+0x250/0x4f0 [ 33.637380][ C1] ops_init+0x9b/0x560 [ 33.637552][ C1] register_pernet_operations+0x2db/0x710 [ 33.637772][ C1] register_pernet_device+0x2a/0x60 [ 33.637988][ C1] sit_init+0x23/0xe0 [ 33.638176][ C1] do_one_initcall+0x8d/0x1e0 [ 33.638370][ C1] do_initcalls+0x1b2/0x3e0 [ 33.638551][ C1] kernel_init_freeable+0x232/0x310 [ 33.638755][ C1] kernel_init+0x20/0x200 [ 33.638937][ C1] ret_from_fork+0x31/0x70 [ 33.639147][ C1] ret_from_fork_asm+0x1a/0x30 [ 33.639318][ C1] } [ 33.639399][ C1] ... key at: [<ffffffffb7458300>] __key.37+0x0/0x40 [ 33.639604][ C1] ... acquired at: [ 33.639716][ C1] mark_lock+0x28d/0x3e0 [ 33.639853][ C1] mark_usage+0xd9/0x2a0 [ 33.640000][ C1] __lock_acquire+0x797/0x1570 [ 33.640146][ C1] lock_acquire.part.0+0xeb/0x330 [ 33.640302][ C1] _raw_write_lock+0x30/0x40 [ 33.640438][ C1] addrconf_rs_timer+0xa9/0x730 [ 33.640583][ C1] call_timer_fn+0x13b/0x230 [ 33.640737][ C1] __run_timers+0x545/0x810 [ 33.640883][ C1] timer_expire_remote+0x9b/0xe0 [ 33.641020][ C1] tmigr_handle_remote_cpu+0x270/0x430 [ 33.641183][ C1] tmigr_handle_remote_up+0x19f/0x2e0 [ 33.641317][ C1] tmigr_handle_remote+0x21d/0x3a0 [ 33.641462][ C1] __do_softirq+0x1f8/0x5df [ 33.641598][ C1] irq_exit_rcu+0x97/0xc0 [ 33.641748][ C1] sysvec_apic_timer_interrupt+0x75/0x80 [ 33.641929][ C1] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 33.642112][ C1] default_idle+0xf/0x20 [ 33.642260][ C1] default_idle_call+0x6d/0xb0 [ 33.642404][ C1] cpuidle_idle_call+0x1f4/0x280 [ 33.642552][ C1] do_idle+0xf9/0x160 [ 33.642654][ C1] cpu_startup_entry+0x54/0x60 [ 33.642800][ C1] start_secondary+0x21c/0x2b0 [ 33.642938][ C1] common_startup_64+0x12c/0x138 [ 33.643105][ C1] [ 33.643174][ C1] [ 33.643174][ C1] stack backtrace: [ 33.643342][ C1] CPU: 1 PID: 0 Comm: swapper/1 Not tainted 6.9.0-rc1-virtme #1 [ 33.643561][ C1] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 33.643873][ C1] Call Trace: [ 33.643976][ C1] <IRQ> [ 33.644066][ C1] dump_stack_lvl+0x82/0xd0 [ 33.644283][ C1] print_irq_inversion_bug.part.0+0x3d9/0x570 [ 33.644452][ C1] ? kernel_text_address+0x17/0xe0 [ 33.644589][ C1] ? __pfx_print_irq_inversion_bug.part.0+0x10/0x10 [ 33.644756][ C1] ? __pfx_usage_skip+0x10/0x10 [ 33.644894][ C1] ? __pfx_usage_match+0x10/0x10 [ 33.645033][ C1] ? arch_stack_walk+0x8c/0xf0 [ 33.645173][ C1] mark_lock_irq+0x4cd/0xa10 [ 33.645305][ C1] ? common_startup_64+0x12c/0x138 [ 33.645444][ C1] ? __pfx_mark_lock_irq+0x10/0x10 [ 33.645580][ C1] ? __pfx_stack_trace_save+0x10/0x10 [ 33.645716][ C1] ? save_trace+0x8f/0x5b0 [ 33.645851][ C1] mark_lock+0x28d/0x3e0 [ 33.645965][ C1] ? __pfx_stack_trace_save+0x10/0x10 [ 33.646116][ C1] mark_usage+0xd9/0x2a0 [ 33.646219][ C1] __lock_acquire+0x797/0x1570 [ 33.646371][ C1] ? __pfx_validate_chain+0x10/0x10 [ 33.646508][ C1] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 33.646656][ C1] lock_acquire.part.0+0xeb/0x330 [ 33.646791][ C1] ? addrconf_rs_timer+0xa9/0x730 [ 33.646936][ C1] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 33.647088][ C1] ? trace_lock_acquire+0x135/0x1c0 [ 33.647244][ C1] ? addrconf_rs_timer+0xa9/0x730 [ 33.647378][ C1] ? lock_acquire+0x32/0xc0 [ 33.647524][ C1] ? addrconf_rs_timer+0xa9/0x730 [ 33.647662][ C1] _raw_write_lock+0x30/0x40 [ 33.647813][ C1] ? addrconf_rs_timer+0xa9/0x730 [ 33.647946][ C1] addrconf_rs_timer+0xa9/0x730 [ 33.648097][ C1] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 33.648232][ C1] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 33.648380][ C1] ? call_timer_fn+0xe8/0x230 [ 33.648522][ C1] ? lock_acquire+0x32/0xc0 [ 33.648656][ C1] ? call_timer_fn+0xe8/0x230 [ 33.648791][ C1] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 33.648929][ C1] call_timer_fn+0x13b/0x230 [ 33.649075][ C1] ? call_timer_fn+0xe8/0x230 [ 33.649209][ C1] ? call_timer_fn+0xe8/0x230 [ 33.649360][ C1] ? __pfx_call_timer_fn+0x10/0x10 [ 33.649495][ C1] ? mark_lock+0x38/0x3e0 [ 33.649615][ C1] __run_timers+0x545/0x810 [ 33.649750][ C1] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 33.649897][ C1] ? __pfx___run_timers+0x10/0x10 [ 33.650043][ C1] ? __lock_release+0x103/0x460 [ 33.650205][ C1] ? do_raw_spin_lock+0x131/0x270 [ 33.650341][ C1] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 33.650487][ C1] ? lock_acquire+0x32/0xc0 [ 33.650631][ C1] ? timer_expire_remote+0x93/0xe0 [ 33.650782][ C1] timer_expire_remote+0x9b/0xe0 [ 33.650918][ C1] tmigr_handle_remote_cpu+0x270/0x430 [ 33.651072][ C1] ? __pfx_tmigr_handle_remote_cpu+0x10/0x10 [ 33.651252][ C1] tmigr_handle_remote_up+0x19f/0x2e0 [ 33.651387][ C1] tmigr_handle_remote+0x21d/0x3a0 [ 33.651522][ C1] ? __pfx_tmigr_handle_remote+0x10/0x10 [ 33.651659][ C1] __do_softirq+0x1f8/0x5df [ 33.651794][ C1] irq_exit_rcu+0x97/0xc0 [ 33.651896][ C1] sysvec_apic_timer_interrupt+0x75/0x80 [ 33.652038][ C1] </IRQ> [ 33.652142][ C1] <TASK> [ 33.652211][ C1] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 33.652386][ C1] RIP: 0010:default_idle+0xf/0x20 [ 33.652527][ 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 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 [ 33.653001][ C1] RSP: 0018:ffffc9000014fdf8 EFLAGS: 00000242 [ 33.653180][ C1] RAX: 0000000000073dc1 RBX: 1ffff92000029fc1 RCX: ffffffffb390e9d5 [ 33.653395][ C1] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffffb12aa4a4 [ 33.653597][ C1] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1005f1709c [ 33.653800][ C1] R10: ffff88802f8b84e3 R11: ffff88802f8ad9b0 R12: 0000000000000000 [ 33.654002][ C1] R13: ffff888001b7a300 R14: dffffc0000000000 R15: 0000000000000000 [ 33.654213][ C1] ? ct_kernel_exit.constprop.0+0xc5/0xf0 [ 33.654351][ C1] ? cpuidle_idle_call+0x1f4/0x280 [ 33.654489][ C1] default_idle_call+0x6d/0xb0 [ 33.654622][ C1] cpuidle_idle_call+0x1f4/0x280 [ 33.654755][ C1] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 33.654890][ C1] ? tsc_verify_tsc_adjust+0x5e/0x2b0 [ 33.655036][ C1] do_idle+0xf9/0x160 [ 33.655147][ C1] cpu_startup_entry+0x54/0x60 [ 33.655281][ C1] start_secondary+0x21c/0x2b0 [ 33.655419][ C1] ? __pfx_start_secondary+0x10/0x10 [ 33.655555][ C1] common_startup_64+0x12c/0x138 [ 33.655691][ C1] </TASK>