[ 34.096215][ C1] [ 34.096435][ C1] ======================================================== [ 34.096774][ C1] WARNING: possible irq lock inversion dependency detected [ 34.097097][ C1] 6.9.0-rc1-virtme #1 Not tainted [ 34.097319][ C1] -------------------------------------------------------- [ 34.097646][ C1] swapper/1/0 just changed the state of lock: [ 34.097926][ C1] ffff8880055f0d80 (&ndev->lock){++-.}-{2:2}, at: addrconf_rs_timer+0xa9/0x730 [ 34.098333][ C1] but this lock took another, SOFTIRQ-unsafe lock in the past: [ 34.098649][ C1] (&p->alloc_lock){+.+.}-{2:2} [ 34.098656][ C1] [ 34.098656][ C1] [ 34.098656][ C1] and interrupts could create inverse lock ordering between them. [ 34.098656][ C1] [ 34.099456][ C1] [ 34.099456][ C1] other info that might help us debug this: [ 34.099795][ C1] Possible interrupt unsafe locking scenario: [ 34.099795][ C1] [ 34.100142][ C1] CPU0 CPU1 [ 34.100366][ C1] ---- ---- [ 34.100584][ C1] lock(&p->alloc_lock); [ 34.100761][ C1] local_irq_disable(); [ 34.101046][ C1] lock(&ndev->lock); [ 34.101332][ C1] lock(&p->alloc_lock); [ 34.101618][ C1] [ 34.101780][ C1] lock(&ndev->lock); [ 34.101958][ C1] [ 34.101958][ C1] *** DEADLOCK *** [ 34.101958][ C1] [ 34.102298][ C1] 1 lock held by swapper/1/0: [ 34.102576][ C1] #0: ffffc900001d8d68 ((&ndev->rs_timer)){+.-.}-{0:0}, at: call_timer_fn+0xe8/0x230 [ 34.103012][ C1] [ 34.103012][ C1] the shortest dependencies between 2nd lock and 1st lock: [ 34.103426][ C1] -> (&p->alloc_lock){+.+.}-{2:2} { [ 34.103665][ C1] HARDIRQ-ON-W at: [ 34.103835][ C1] __lock_acquire+0x797/0x1570 [ 34.104128][ C1] lock_acquire.part.0+0xeb/0x330 [ 34.104405][ C1] _raw_spin_lock+0x30/0x40 [ 34.104687][ C1] set_mems_allowed+0x1d/0x210 [ 34.104966][ C1] kernel_init_freeable+0x72/0x310 [ 34.105267][ C1] kernel_init+0x20/0x200 [ 34.105552][ C1] ret_from_fork+0x31/0x70 [ 34.105830][ C1] ret_from_fork_asm+0x1a/0x30 [ 34.106110][ C1] SOFTIRQ-ON-W at: [ 34.106282][ C1] __lock_acquire+0x797/0x1570 [ 34.106568][ C1] lock_acquire.part.0+0xeb/0x330 [ 34.106862][ C1] _raw_spin_lock+0x30/0x40 [ 34.107144][ C1] set_mems_allowed+0x1d/0x210 [ 34.107426][ C1] kernel_init_freeable+0x72/0x310 [ 34.107703][ C1] kernel_init+0x20/0x200 [ 34.107985][ C1] ret_from_fork+0x31/0x70 [ 34.108272][ C1] ret_from_fork_asm+0x1a/0x30 [ 34.108553][ C1] INITIAL USE at: [ 34.108725][ C1] __lock_acquire+0x797/0x1570 [ 34.108997][ C1] lock_acquire.part.0+0xeb/0x330 [ 34.109284][ C1] _raw_spin_lock+0x30/0x40 [ 34.109567][ C1] set_mems_allowed+0x1d/0x210 [ 34.109837][ C1] kernel_init_freeable+0x72/0x310 [ 34.110125][ C1] kernel_init+0x20/0x200 [ 34.110392][ C1] ret_from_fork+0x31/0x70 [ 34.110664][ C1] ret_from_fork_asm+0x1a/0x30 [ 34.110941][ C1] } [ 34.111059][ C1] ... key at: [] __key.387+0x0/0x40 [ 34.111404][ C1] ... acquired at: [ 34.111567][ C1] __lock_acquire+0xaf0/0x1570 [ 34.111782][ C1] lock_acquire.part.0+0xeb/0x330 [ 34.112004][ C1] _raw_spin_lock+0x30/0x40 [ 34.112221][ C1] __get_task_comm+0x27/0x70 [ 34.112450][ C1] ref_tracker_alloc+0x2ee/0x490 [ 34.112655][ C1] netdev_get_by_index+0x5e/0x80 [ 34.112864][ C1] fib6_nh_init+0x3d8/0x15b0 [ 34.113075][ C1] ip6_route_info_create+0xf18/0x17d0 [ 34.113286][ C1] addrconf_f6i_alloc+0x265/0x560 [ 34.113493][ C1] __ipv6_dev_ac_inc+0x25f/0xb10 [ 34.113716][ C1] addrconf_join_anycast+0x1c0/0x220 [ 34.113931][ C1] dev_forward_change+0x2a6/0x7b0 [ 34.114143][ C1] addrconf_fixup_forwarding+0x23f/0x460 [ 34.114406][ C1] addrconf_sysctl_forward+0x212/0x2b0 [ 34.114621][ C1] proc_sys_call_handler+0x403/0x5e0 [ 34.114835][ C1] vfs_write+0x9e5/0x10a0 [ 34.115062][ C1] ksys_write+0xf5/0x1e0 [ 34.115297][ C1] do_syscall_64+0xc6/0x1e0 [ 34.115520][ C1] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 34.115794][ C1] [ 34.115901][ C1] -> (&ndev->lock){++-.}-{2:2} { [ 34.116122][ C1] HARDIRQ-ON-W at: [ 34.116282][ C1] __lock_acquire+0x797/0x1570 [ 34.116557][ C1] lock_acquire.part.0+0xeb/0x330 [ 34.116824][ C1] _raw_write_lock_bh+0x38/0x50 [ 34.117101][ C1] addrconf_permanent_addr+0x6e/0x670 [ 34.117369][ C1] addrconf_notify+0x749/0xd60 [ 34.117635][ C1] notifier_call_chain+0xcd/0x150 [ 34.117899][ C1] __dev_notify_flags+0xe6/0x250 [ 34.118167][ C1] dev_change_flags+0xec/0x160 [ 34.118440][ C1] do_setlink+0x7d6/0x21e0 [ 34.118729][ C1] __rtnl_newlink+0xaa7/0xd80 [ 34.119006][ C1] rtnl_newlink+0x63/0xa0 [ 34.119282][ C1] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 34.119557][ C1] netlink_rcv_skb+0x130/0x360 [ 34.119840][ C1] netlink_unicast+0x449/0x710 [ 34.120129][ C1] netlink_sendmsg+0x723/0xbe0 [ 34.120418][ C1] ____sys_sendmsg+0x7b2/0xa10 [ 34.120704][ C1] ___sys_sendmsg+0xee/0x170 [ 34.120989][ C1] __sys_sendmsg+0xcd/0x170 [ 34.121263][ C1] do_syscall_64+0xc6/0x1e0 [ 34.121544][ C1] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 34.121883][ C1] HARDIRQ-ON-R at: [ 34.122055][ C1] __lock_acquire+0x797/0x1570 [ 34.122344][ C1] lock_acquire.part.0+0xeb/0x330 [ 34.122771][ C1] _raw_read_lock_bh+0x44/0x80 [ 34.122997][ C1] inet6_fill_ifla6_attrs+0x516/0x740 [ 34.123187][ C1] inet6_fill_link_af+0x5e/0xe0 [ 34.123380][ C1] rtnl_fill_ifinfo+0x1612/0x29e0 [ 34.123575][ C1] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 34.123760][ C1] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 34.124025][ C1] rtmsg_ifinfo+0x5b/0xa0 [ 34.124225][ C1] register_netdevice+0x1177/0x1690 [ 34.124413][ C1] register_netdev+0x20/0x40 [ 34.124602][ C1] sit_init_net+0x250/0x4f0 [ 34.124790][ C1] ops_init+0x9b/0x560 [ 34.124942][ C1] register_pernet_operations+0x2db/0x710 [ 34.125174][ C1] register_pernet_device+0x2a/0x60 [ 34.125361][ C1] sit_init+0x23/0xe0 [ 34.125510][ C1] do_one_initcall+0x8d/0x1e0 [ 34.125709][ C1] do_initcalls+0x1b2/0x3e0 [ 34.125897][ C1] kernel_init_freeable+0x232/0x310 [ 34.126084][ C1] kernel_init+0x20/0x200 [ 34.126279][ C1] ret_from_fork+0x31/0x70 [ 34.126471][ C1] ret_from_fork_asm+0x1a/0x30 [ 34.126717][ C1] IN-SOFTIRQ-W at: [ 34.126890][ C1] __lock_acquire+0x797/0x1570 [ 34.127166][ C1] lock_acquire.part.0+0xeb/0x330 [ 34.127448][ C1] _raw_write_lock+0x30/0x40 [ 34.127697][ C1] addrconf_rs_timer+0xa9/0x730 [ 34.127982][ C1] call_timer_fn+0x13b/0x230 [ 34.128276][ C1] __run_timers+0x545/0x810 [ 34.128561][ C1] run_timer_softirq+0xe8/0x1b0 [ 34.128844][ C1] __do_softirq+0x1f8/0x5df [ 34.129125][ C1] irq_exit_rcu+0x97/0xc0 [ 34.129399][ C1] sysvec_apic_timer_interrupt+0x75/0x80 [ 34.129732][ C1] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 34.130067][ C1] default_idle+0xf/0x20 [ 34.130347][ C1] default_idle_call+0x6d/0xb0 [ 34.130604][ C1] cpuidle_idle_call+0x1f4/0x280 [ 34.130871][ C1] do_idle+0xf9/0x160 [ 34.131089][ C1] cpu_startup_entry+0x54/0x60 [ 34.131359][ C1] start_secondary+0x21c/0x2b0 [ 34.131641][ C1] common_startup_64+0x12c/0x138 [ 34.131915][ C1] INITIAL USE at: [ 34.132082][ C1] __lock_acquire+0x797/0x1570 [ 34.132413][ C1] lock_acquire.part.0+0xeb/0x330 [ 34.132692][ C1] _raw_write_lock_bh+0x38/0x50 [ 34.132962][ C1] addrconf_permanent_addr+0x6e/0x670 [ 34.133291][ C1] addrconf_notify+0x749/0xd60 [ 34.133551][ C1] notifier_call_chain+0xcd/0x150 [ 34.133804][ C1] __dev_notify_flags+0xe6/0x250 [ 34.134061][ C1] dev_change_flags+0xec/0x160 [ 34.134344][ C1] do_setlink+0x7d6/0x21e0 [ 34.134601][ C1] __rtnl_newlink+0xaa7/0xd80 [ 34.134863][ C1] rtnl_newlink+0x63/0xa0 [ 34.135124][ C1] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 34.135378][ C1] netlink_rcv_skb+0x130/0x360 [ 34.135632][ C1] netlink_unicast+0x449/0x710 [ 34.135887][ C1] netlink_sendmsg+0x723/0xbe0 [ 34.136139][ C1] ____sys_sendmsg+0x7b2/0xa10 [ 34.136392][ C1] ___sys_sendmsg+0xee/0x170 [ 34.136657][ C1] __sys_sendmsg+0xcd/0x170 [ 34.136915][ C1] do_syscall_64+0xc6/0x1e0 [ 34.137172][ C1] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 34.137481][ C1] INITIAL READ USE at: [ 34.137636][ C1] __lock_acquire+0x797/0x1570 [ 34.137891][ C1] lock_acquire.part.0+0xeb/0x330 [ 34.138144][ C1] _raw_read_lock_bh+0x44/0x80 [ 34.138401][ C1] inet6_fill_ifla6_attrs+0x516/0x740 [ 34.138700][ C1] inet6_fill_link_af+0x5e/0xe0 [ 34.138955][ C1] rtnl_fill_ifinfo+0x1612/0x29e0 [ 34.139228][ C1] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 34.139578][ C1] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 34.139897][ C1] rtmsg_ifinfo+0x5b/0xa0 [ 34.140172][ C1] register_netdevice+0x1177/0x1690 [ 34.140476][ C1] register_netdev+0x20/0x40 [ 34.140734][ C1] sit_init_net+0x250/0x4f0 [ 34.140999][ C1] ops_init+0x9b/0x560 [ 34.141253][ C1] register_pernet_operations+0x2db/0x710 [ 34.141555][ C1] register_pernet_device+0x2a/0x60 [ 34.141867][ C1] sit_init+0x23/0xe0 [ 34.142137][ C1] do_one_initcall+0x8d/0x1e0 [ 34.142405][ C1] do_initcalls+0x1b2/0x3e0 [ 34.142668][ C1] kernel_init_freeable+0x232/0x310 [ 34.142985][ C1] kernel_init+0x20/0x200 [ 34.143240][ C1] ret_from_fork+0x31/0x70 [ 34.143491][ C1] ret_from_fork_asm+0x1a/0x30 [ 34.143747][ C1] } [ 34.143848][ C1] ... key at: [] __key.37+0x0/0x40 [ 34.144155][ C1] ... acquired at: [ 34.144300][ C1] mark_lock+0x28d/0x3e0 [ 34.144501][ C1] mark_usage+0xd9/0x2a0 [ 34.144706][ C1] __lock_acquire+0x797/0x1570 [ 34.144903][ C1] lock_acquire.part.0+0xeb/0x330 [ 34.145132][ C1] _raw_write_lock+0x30/0x40 [ 34.145329][ C1] addrconf_rs_timer+0xa9/0x730 [ 34.145530][ C1] call_timer_fn+0x13b/0x230 [ 34.145729][ C1] __run_timers+0x545/0x810 [ 34.145931][ C1] run_timer_softirq+0xe8/0x1b0 [ 34.146156][ C1] __do_softirq+0x1f8/0x5df [ 34.146378][ C1] irq_exit_rcu+0x97/0xc0 [ 34.146584][ C1] sysvec_apic_timer_interrupt+0x75/0x80 [ 34.146837][ C1] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 34.147109][ C1] default_idle+0xf/0x20 [ 34.147320][ C1] default_idle_call+0x6d/0xb0 [ 34.147527][ C1] cpuidle_idle_call+0x1f4/0x280 [ 34.147738][ C1] do_idle+0xf9/0x160 [ 34.147896][ C1] cpu_startup_entry+0x54/0x60 [ 34.148111][ C1] start_secondary+0x21c/0x2b0 [ 34.148323][ C1] common_startup_64+0x12c/0x138 [ 34.148527][ C1] [ 34.148642][ C1] [ 34.148642][ C1] stack backtrace: [ 34.148914][ C1] CPU: 1 PID: 0 Comm: swapper/1 Not tainted 6.9.0-rc1-virtme #1 [ 34.149219][ C1] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 34.149660][ C1] Call Trace: [ 34.149814][ C1] [ 34.149930][ C1] dump_stack_lvl+0x82/0xd0 [ 34.150147][ C1] print_irq_inversion_bug.part.0+0x3d9/0x570 [ 34.150410][ C1] ? kernel_text_address+0x17/0xe0 [ 34.150616][ C1] ? __pfx_print_irq_inversion_bug.part.0+0x10/0x10 [ 34.150878][ C1] ? __pfx_usage_skip+0x10/0x10 [ 34.151089][ C1] ? __pfx_usage_match+0x10/0x10 [ 34.151299][ C1] ? arch_stack_walk+0x8c/0xf0 [ 34.151505][ C1] mark_lock_irq+0x4cd/0xa10 [ 34.151715][ C1] ? common_startup_64+0x12c/0x138 [ 34.151926][ C1] ? __pfx_mark_lock_irq+0x10/0x10 [ 34.152141][ C1] ? __pfx_stack_trace_save+0x10/0x10 [ 34.152352][ C1] ? save_trace+0x8f/0x5b0 [ 34.152592][ C1] mark_lock+0x28d/0x3e0 [ 34.152697][ C1] ? __pfx_stack_trace_save+0x10/0x10 [ 34.152831][ C1] mark_usage+0xd9/0x2a0 [ 34.152932][ C1] __lock_acquire+0x797/0x1570 [ 34.153069][ C1] ? __pfx_validate_chain+0x10/0x10 [ 34.153205][ C1] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 34.153354][ C1] lock_acquire.part.0+0xeb/0x330 [ 34.153490][ C1] ? addrconf_rs_timer+0xa9/0x730 [ 34.153623][ C1] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 34.153759][ C1] ? trace_lock_acquire+0x135/0x1c0 [ 34.153892][ C1] ? addrconf_rs_timer+0xa9/0x730 [ 34.154035][ C1] ? lock_acquire+0x32/0xc0 [ 34.154170][ C1] ? addrconf_rs_timer+0xa9/0x730 [ 34.154305][ C1] _raw_write_lock+0x30/0x40 [ 34.154445][ C1] ? addrconf_rs_timer+0xa9/0x730 [ 34.154580][ C1] addrconf_rs_timer+0xa9/0x730 [ 34.154713][ C1] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 34.154856][ C1] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 34.154993][ C1] ? call_timer_fn+0xe8/0x230 [ 34.155126][ C1] ? lock_acquire+0x32/0xc0 [ 34.155261][ C1] ? call_timer_fn+0xe8/0x230 [ 34.155395][ C1] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 34.155528][ C1] call_timer_fn+0x13b/0x230 [ 34.155670][ C1] ? call_timer_fn+0xe8/0x230 [ 34.155803][ C1] ? call_timer_fn+0xe8/0x230 [ 34.155946][ C1] ? __pfx_call_timer_fn+0x10/0x10 [ 34.156081][ C1] ? mark_lock+0x38/0x3e0 [ 34.156186][ C1] __run_timers+0x545/0x810 [ 34.156321][ C1] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 34.156456][ C1] ? __pfx___run_timers+0x10/0x10 [ 34.156591][ C1] ? do_raw_spin_lock+0x131/0x270 [ 34.156733][ C1] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 34.156865][ C1] ? lock_acquire+0x32/0xc0 [ 34.157000][ C1] ? run_timer_softirq+0xe0/0x1b0 [ 34.157136][ C1] run_timer_softirq+0xe8/0x1b0 [ 34.157274][ C1] __do_softirq+0x1f8/0x5df [ 34.157416][ C1] irq_exit_rcu+0x97/0xc0 [ 34.157521][ C1] sysvec_apic_timer_interrupt+0x75/0x80 [ 34.157657][ C1] [ 34.157727][ C1] [ 34.157796][ C1] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 34.157977][ C1] RIP: 0010:default_idle+0xf/0x20 [ 34.158127][ 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 c3 cc cc cc cc 66 66 2e 0f 1f 84 00 00 00 00 00 90 90 90 90 90 [ 34.158601][ C1] RSP: 0018:ffffc9000014fdf8 EFLAGS: 00000246 [ 34.158773][ C1] RAX: 0000000000078c5f RBX: 1ffff92000029fc1 RCX: ffffffffb8b0e9d5 [ 34.158986][ C1] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffffb64aa4a4 [ 34.159190][ C1] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c1709c [ 34.159390][ C1] R10: ffff8880360b84e3 R11: ffff8880360ad9b0 R12: 0000000000000000 [ 34.159592][ C1] R13: ffff888001b7a300 R14: dffffc0000000000 R15: 0000000000000000 [ 34.159792][ C1] ? ct_kernel_exit.constprop.0+0xc5/0xf0 [ 34.159932][ C1] ? cpuidle_idle_call+0x1f4/0x280 [ 34.160068][ C1] default_idle_call+0x6d/0xb0 [ 34.160205][ C1] cpuidle_idle_call+0x1f4/0x280 [ 34.160342][ C1] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 34.160474][ C1] ? tsc_verify_tsc_adjust+0x5e/0x2b0 [ 34.160610][ C1] do_idle+0xf9/0x160 [ 34.160712][ C1] cpu_startup_entry+0x54/0x60 [ 34.160847][ C1] start_secondary+0x21c/0x2b0 [ 34.160983][ C1] ? __pfx_start_secondary+0x10/0x10 [ 34.161117][ C1] common_startup_64+0x12c/0x138 [ 34.161255][ C1] [ 50.382155][ T373] Initializing XFRM netlink socket