[ 247.197265][ C3] [ 247.197423][ C3] ================================ [ 247.197637][ C3] WARNING: inconsistent lock state [ 247.197844][ C3] 6.15.0-virtme #1 Not tainted [ 247.198047][ C3] -------------------------------- [ 247.198247][ C3] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 247.198492][ C3] swapper/3/0 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 247.198736][ C3] ffffffffa5bd0bb8 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 247.199124][ C3] {SOFTIRQ-ON-W} state was registered at: [ 247.199328][ C3] __lock_acquire+0x20b/0x7e0 [ 247.199548][ C3] lock_acquire.part.0+0xb6/0x240 [ 247.199747][ C3] _raw_spin_lock+0x33/0x40 [ 247.199964][ C3] simple_pin_fs+0x24/0x150 [ 247.200165][ C3] start_creating.part.0+0x52/0x310 [ 247.200372][ C3] debugfs_create_dir+0x6a/0x570 [ 247.200571][ C3] component_debug_init+0x17/0x30 [ 247.200778][ C3] do_one_initcall+0x8f/0x1e0 [ 247.200993][ C3] do_initcalls+0x176/0x280 [ 247.201194][ C3] kernel_init_freeable+0x22d/0x300 [ 247.201396][ C3] kernel_init+0x20/0x200 [ 247.201598][ C3] ret_from_fork+0x240/0x320 [ 247.201806][ C3] ret_from_fork_asm+0x1a/0x30 [ 247.202008][ C3] irq event stamp: 4469470 [ 247.202208][ C3] hardirqs last enabled at (4469470): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 247.202605][ C3] hardirqs last disabled at (4469469): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 247.202998][ C3] softirqs last enabled at (4469346): [] handle_softirqs+0x358/0x620 [ 247.203364][ C3] softirqs last disabled at (4469359): [] __irq_exit_rcu+0xfa/0x160 [ 247.203715][ C3] [ 247.203715][ C3] other info that might help us debug this: [ 247.204013][ C3] Possible unsafe locking scenario: [ 247.204013][ C3] [ 247.204319][ C3] CPU0 [ 247.204474][ C3] ---- [ 247.204624][ C3] lock(pin_fs_lock); [ 247.204776][ C3] [ 247.204923][ C3] lock(pin_fs_lock); [ 247.205082][ C3] [ 247.205082][ C3] *** DEADLOCK *** [ 247.205082][ C3] [ 247.205378][ C3] 1 lock held by swapper/3/0: [ 247.205578][ C3] #0: ffffc90000270ae8 ((&icsk->icsk_retransmit_timer)){+.-.}-{0:0}, at: call_timer_fn+0xe7/0x220 [ 247.206000][ C3] [ 247.206000][ C3] stack backtrace: [ 247.206257][ C3] CPU: 3 UID: 0 PID: 0 Comm: swapper/3 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 247.206262][ C3] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 247.206267][ C3] Call Trace: [ 247.206271][ C3] [ 247.206273][ C3] dump_stack_lvl+0x82/0xd0 [ 247.206285][ C3] print_usage_bug.part.0+0x25f/0x360 [ 247.206290][ C3] mark_lock_irq+0x343/0x400 [ 247.206294][ C3] ? add_lock_to_list+0x2c/0x130 [ 247.206299][ C3] ? save_trace+0x52/0x170 [ 247.206303][ C3] mark_lock+0x174/0x2f0 [ 247.206307][ C3] mark_usage+0x46/0x150 [ 247.206311][ C3] __lock_acquire+0x20b/0x7e0 [ 247.206314][ C3] ? __lock_acquire+0x44d/0x7e0 [ 247.206319][ C3] lock_acquire.part.0+0xb6/0x240 [ 247.206323][ C3] ? simple_pin_fs+0x24/0x150 [ 247.206328][ C3] ? rcu_is_watching+0x12/0xc0 [ 247.206339][ C3] ? lock_acquire+0x10c/0x170 [ 247.206342][ C3] ? simple_pin_fs+0x24/0x150 [ 247.206347][ C3] _raw_spin_lock+0x33/0x40 [ 247.206351][ C3] ? simple_pin_fs+0x24/0x150 [ 247.206354][ C3] simple_pin_fs+0x24/0x150 [ 247.206358][ C3] debugfs_remove+0x35/0x70 [ 247.206362][ C3] ref_tracker_dir_exit+0xcf/0x740 [ 247.206377][ C3] ? __pfx_ref_tracker_free+0x10/0x10 [ 247.206381][ C3] ? __sk_destruct+0x383/0x780 [ 247.206395][ C3] ? call_timer_fn+0x13d/0x220 [ 247.206398][ C3] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 247.206401][ C3] ? tmigr_handle_remote_up+0x1a6/0x270 [ 247.206408][ C3] ? __walk_groups.isra.0+0x44/0x160 [ 247.206411][ C3] ? tmigr_handle_remote+0x247/0x350 [ 247.206414][ C3] ? handle_softirqs+0x21b/0x620 [ 247.206418][ C3] ? __irq_exit_rcu+0xfa/0x160 [ 247.206421][ C3] ? irq_exit_rcu+0xe/0x30 [ 247.206424][ C3] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 247.206430][ C3] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 247.206438][ C3] ? pv_native_safe_halt+0xf/0x20 [ 247.206441][ C3] ? default_idle+0x9/0x10 [ 247.206444][ C3] ? default_idle_call+0x6d/0xb0 [ 247.206449][ C3] __put_net+0x19/0x60 [ 247.206459][ C3] __sk_destruct+0x58a/0x780 [ 247.206462][ C3] ? __pfx_tcp_write_timer+0x10/0x10 [ 247.206469][ C3] call_timer_fn+0x13d/0x220 [ 247.206472][ C3] ? call_timer_fn+0xe7/0x220 [ 247.206474][ C3] ? call_timer_fn+0xe7/0x220 [ 247.206478][ C3] ? __pfx_call_timer_fn+0x10/0x10 [ 247.206481][ C3] ? __pfx_sched_clock_cpu+0x10/0x10 [ 247.206489][ C3] ? __run_timers+0x532/0x810 [ 247.206493][ C3] ? __lock_release+0x5d/0x170 [ 247.206497][ C3] ? rcu_is_watching+0x12/0xc0 [ 247.206502][ C3] __run_timers+0x543/0x810 [ 247.206505][ C3] ? __pfx_tcp_write_timer+0x10/0x10 [ 247.206509][ C3] ? __pfx___run_timers+0x10/0x10 [ 247.206514][ C3] ? do_raw_spin_lock+0x130/0x270 [ 247.206517][ C3] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 247.206520][ C3] ? lock_acquire+0x10c/0x170 [ 247.206523][ C3] ? timer_expire_remote+0x96/0xf0 [ 247.206529][ C3] timer_expire_remote+0x9e/0xf0 [ 247.206532][ C3] tmigr_handle_remote_cpu+0x274/0x440 [ 247.206536][ C3] ? __pfx_tmigr_handle_remote_cpu+0x10/0x10 [ 247.206540][ C3] ? find_held_lock+0x2b/0x80 [ 247.206544][ C3] ? tmigr_handle_remote_up+0x198/0x270 [ 247.206547][ C3] ? __lock_release+0x5d/0x170 [ 247.206551][ C3] ? rcu_is_watching+0x12/0xc0 [ 247.206556][ C3] tmigr_handle_remote_up+0x1a6/0x270 [ 247.206560][ C3] ? __pfx_tmigr_handle_remote_up+0x10/0x10 [ 247.206563][ C3] __walk_groups.isra.0+0x44/0x160 [ 247.206568][ C3] tmigr_handle_remote+0x247/0x350 [ 247.206571][ C3] ? __pfx_tmigr_handle_remote+0x10/0x10 [ 247.206575][ C3] ? run_timer_softirq+0x24/0x30 [ 247.206578][ C3] ? __lock_release+0x5d/0x170 [ 247.206582][ C3] ? rcu_is_watching+0x12/0xc0 [ 247.206585][ C3] ? _raw_spin_unlock_irq+0x28/0x50 [ 247.206590][ C3] handle_softirqs+0x21b/0x620 [ 247.206595][ C3] __irq_exit_rcu+0xfa/0x160 [ 247.206599][ C3] irq_exit_rcu+0xe/0x30 [ 247.206601][ C3] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 247.206605][ C3] [ 247.206606][ C3] [ 247.206607][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 247.206610][ C3] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 247.206614][ C3] Code: f2 ce 00 c3 cc cc cc cc 0f 1f 00 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 83 17 28 00 fb f4 fc 54 02 00 66 2e 0f 1f 84 00 00 00 00 00 66 90 90 90 90 90 90 [ 247.206617][ C3] RSP: 0018:ffffc90000157de8 EFLAGS: 00000242 [ 247.206622][ C3] RAX: 000000000044326d RBX: 1ffff9200002afc1 RCX: ffffffffa48125d9 [ 247.206624][ C3] RDX: 0000000000000000 RSI: ffffffffa54a61cd RDI: ffffffffa4c58be0 [ 247.206626][ C3] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1005e766fa [ 247.206628][ C3] R10: ffff88802f3b37d3 R11: ffffffffa5611288 R12: 0000000000000000 [ 247.206630][ C3] R13: ffff888001bf4640 R14: dffffc0000000000 R15: 0000000000000000 [ 247.206633][ C3] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 247.206638][ C3] default_idle+0x9/0x10 [ 247.206640][ C3] default_idle_call+0x6d/0xb0 [ 247.206643][ C3] cpuidle_idle_call+0x26f/0x3a0 [ 247.206650][ C3] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 247.206654][ C3] ? tsc_verify_tsc_adjust+0x98/0x310 [ 247.206663][ C3] do_idle+0xf6/0x160 [ 247.206667][ C3] cpu_startup_entry+0x54/0x60 [ 247.206670][ C3] start_secondary+0x213/0x2a0 [ 247.206674][ C3] ? __pfx_start_secondary+0x10/0x10 [ 247.206679][ C3] common_startup_64+0x13e/0x148 [ 247.206692][ C3] [ 247.229024][ C3] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 247.229347][ C3] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/3 [ 247.229796][ C3] preempt_count: 101, expected: 0 [ 247.229979][ C3] RCU nest depth: 0, expected: 0 [ 247.230161][ C3] INFO: lockdep is turned off. [ 247.230463][ C3] Preemption disabled at: [ 247.230465][ C3] [<0000000000000000>] 0x0 [ 247.230799][ C3] CPU: 3 UID: 0 PID: 0 Comm: swapper/3 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 247.230804][ C3] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 247.230806][ C3] Call Trace: [ 247.230808][ C3] [ 247.230810][ C3] dump_stack_lvl+0xb0/0xd0 [ 247.230820][ C3] __might_resched+0x360/0x5a0 [ 247.230832][ C3] down_write+0x72/0x210 [ 247.230837][ C3] ? __pfx_down_write+0x10/0x10 [ 247.230840][ C3] ? simple_recursive_removal+0x33/0x610 [ 247.230846][ C3] ? rcu_is_watching+0x12/0xc0 [ 247.230853][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 247.230859][ C3] simple_recursive_removal+0x6a/0x610 [ 247.230862][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 247.230864][ C3] ? __pfx_remove_one+0x10/0x10 [ 247.230871][ C3] debugfs_remove+0x44/0x70 [ 247.230874][ C3] ref_tracker_dir_exit+0xcf/0x740 [ 247.230880][ C3] ? __pfx_ref_tracker_free+0x10/0x10 [ 247.230883][ C3] ? __sk_destruct+0x383/0x780 [ 247.230890][ C3] ? call_timer_fn+0x13d/0x220 [ 247.230897][ C3] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 247.230900][ C3] ? tmigr_handle_remote_up+0x1a6/0x270 [ 247.230904][ C3] ? __walk_groups.isra.0+0x44/0x160 [ 247.230907][ C3] ? tmigr_handle_remote+0x247/0x350 [ 247.230910][ C3] ? handle_softirqs+0x21b/0x620 [ 247.230916][ C3] ? __irq_exit_rcu+0xfa/0x160 [ 247.230919][ C3] ? irq_exit_rcu+0xe/0x30 [ 247.230922][ C3] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 247.230927][ C3] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 247.230931][ C3] ? pv_native_safe_halt+0xf/0x20 [ 247.230934][ C3] ? default_idle+0x9/0x10 [ 247.230936][ C3] ? default_idle_call+0x6d/0xb0 [ 247.230941][ C3] __put_net+0x19/0x60 [ 247.230946][ C3] __sk_destruct+0x58a/0x780 [ 247.230950][ C3] ? __pfx_tcp_write_timer+0x10/0x10 [ 247.230954][ C3] call_timer_fn+0x13d/0x220 [ 247.230957][ C3] ? call_timer_fn+0xe7/0x220 [ 247.230960][ C3] ? call_timer_fn+0xe7/0x220 [ 247.230963][ C3] ? __pfx_call_timer_fn+0x10/0x10 [ 247.230966][ C3] ? __pfx_sched_clock_cpu+0x10/0x10 [ 247.230972][ C3] ? __run_timers+0x532/0x810 [ 247.230976][ C3] ? __lock_release+0x5d/0x170 [ 247.230981][ C3] ? rcu_is_watching+0x12/0xc0 [ 247.230986][ C3] __run_timers+0x543/0x810 [ 247.230989][ C3] ? __pfx_tcp_write_timer+0x10/0x10 [ 247.230994][ C3] ? __pfx___run_timers+0x10/0x10 [ 247.230998][ C3] ? do_raw_spin_lock+0x130/0x270 [ 247.231001][ C3] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 247.231004][ C3] ? lock_acquire+0x10c/0x170 [ 247.231008][ C3] ? timer_expire_remote+0x96/0xf0 [ 247.231013][ C3] timer_expire_remote+0x9e/0xf0 [ 247.231017][ C3] tmigr_handle_remote_cpu+0x274/0x440 [ 247.231020][ C3] ? __pfx_tmigr_handle_remote_cpu+0x10/0x10 [ 247.231025][ C3] ? find_held_lock+0x2b/0x80 [ 247.231028][ C3] ? tmigr_handle_remote_up+0x198/0x270 [ 247.231031][ C3] ? __lock_release+0x5d/0x170 [ 247.231034][ C3] ? rcu_is_watching+0x12/0xc0 [ 247.231039][ C3] tmigr_handle_remote_up+0x1a6/0x270 [ 247.231043][ C3] ? __pfx_tmigr_handle_remote_up+0x10/0x10 [ 247.231046][ C3] __walk_groups.isra.0+0x44/0x160 [ 247.231050][ C3] tmigr_handle_remote+0x247/0x350 [ 247.231054][ C3] ? __pfx_tmigr_handle_remote+0x10/0x10 [ 247.231058][ C3] ? run_timer_softirq+0x24/0x30 [ 247.231061][ C3] ? __lock_release+0x5d/0x170 [ 247.231064][ C3] ? rcu_is_watching+0x12/0xc0 [ 247.231068][ C3] ? _raw_spin_unlock_irq+0x28/0x50 [ 247.231074][ C3] handle_softirqs+0x21b/0x620 [ 247.231079][ C3] __irq_exit_rcu+0xfa/0x160 [ 247.231083][ C3] irq_exit_rcu+0xe/0x30 [ 247.231085][ C3] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 247.231088][ C3] [ 247.231089][ C3] [ 247.231091][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 247.231094][ C3] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 247.231097][ C3] Code: f2 ce 00 c3 cc cc cc cc 0f 1f 00 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 83 17 28 00 fb f4 fc 54 02 00 66 2e 0f 1f 84 00 00 00 00 00 66 90 90 90 90 90 90 [ 247.231100][ C3] RSP: 0018:ffffc90000157de8 EFLAGS: 00000242 [ 247.231103][ C3] RAX: 000000000044326d RBX: 1ffff9200002afc1 RCX: ffffffffa48125d9 [ 247.231105][ C3] RDX: 0000000000000000 RSI: ffffffffa54a61cd RDI: ffffffffa4c58be0 [ 247.231107][ C3] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1005e766fa [ 247.231108][ C3] R10: ffff88802f3b37d3 R11: ffffffffa5611288 R12: 0000000000000000 [ 247.231110][ C3] R13: ffff888001bf4640 R14: dffffc0000000000 R15: 0000000000000000 [ 247.231114][ C3] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 247.231118][ C3] default_idle+0x9/0x10 [ 247.231120][ C3] default_idle_call+0x6d/0xb0 [ 247.231123][ C3] cpuidle_idle_call+0x26f/0x3a0 [ 247.231127][ C3] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 247.231131][ C3] ? tsc_verify_tsc_adjust+0x98/0x310 [ 247.231137][ C3] do_idle+0xf6/0x160 [ 247.231141][ C3] cpu_startup_entry+0x54/0x60 [ 247.231144][ C3] start_secondary+0x213/0x2a0 [ 247.231148][ C3] ? __pfx_start_secondary+0x10/0x10 [ 247.231153][ C3] common_startup_64+0x13e/0x148 [ 247.231160][ C3]