[ 15.803929][ C0] [ 15.804113][ C0] ================================ [ 15.804332][ C0] WARNING: inconsistent lock state [ 15.804547][ C0] 6.15.0-virtme #1 Not tainted [ 15.804759][ C0] -------------------------------- [ 15.804967][ C0] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 15.805230][ C0] swapper/0/0 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 15.805488][ C0] ffffffff92bc5af8 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 15.805896][ C0] {SOFTIRQ-ON-W} state was registered at: [ 15.806107][ C0] __lock_acquire+0x20b/0x7e0 [ 15.806332][ C0] lock_acquire.part.0+0xb6/0x240 [ 15.806540][ C0] _raw_spin_lock+0x33/0x40 [ 15.806765][ C0] simple_pin_fs+0x24/0x150 [ 15.806972][ C0] start_creating.part.0+0x52/0x310 [ 15.807184][ C0] debugfs_create_dir+0x6a/0x540 [ 15.807391][ C0] component_debug_init+0x17/0x30 [ 15.807614][ C0] do_one_initcall+0x8f/0x1e0 [ 15.807834][ C0] do_initcalls+0x176/0x280 [ 15.808047][ C0] kernel_init_freeable+0x22d/0x300 [ 15.808254][ C0] kernel_init+0x20/0x200 [ 15.808463][ C0] ret_from_fork+0x240/0x320 [ 15.808678][ C0] ret_from_fork_asm+0x1a/0x30 [ 15.808884][ C0] irq event stamp: 493900 [ 15.809044][ C0] hardirqs last enabled at (493900): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 15.809472][ C0] hardirqs last disabled at (493899): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 15.809886][ C0] softirqs last enabled at (493276): [] handle_softirqs+0x358/0x620 [ 15.810257][ C0] softirqs last disabled at (493307): [] __irq_exit_rcu+0xfa/0x160 [ 15.810623][ C0] [ 15.810623][ C0] other info that might help us debug this: [ 15.810933][ C0] Possible unsafe locking scenario: [ 15.810933][ C0] [ 15.811241][ C0] CPU0 [ 15.811393][ C0] ---- [ 15.811551][ C0] lock(pin_fs_lock); [ 15.811714][ C0] [ 15.811871][ C0] lock(pin_fs_lock); [ 15.812031][ C0] [ 15.812031][ C0] *** DEADLOCK *** [ 15.812031][ C0] [ 15.812339][ C0] 1 lock held by swapper/0/0: [ 15.812550][ C0] #0: ffffffff929774c0 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 15.812928][ C0] [ 15.812928][ C0] stack backtrace: [ 15.813192][ C0] CPU: 0 UID: 0 PID: 0 Comm: swapper/0 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 15.813198][ C0] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 15.813203][ C0] Call Trace: [ 15.813207][ C0] [ 15.813209][ C0] dump_stack_lvl+0x82/0xd0 [ 15.813220][ C0] print_usage_bug.part.0+0x25f/0x360 [ 15.813225][ C0] mark_lock_irq+0x343/0x400 [ 15.813228][ C0] ? is_bpf_text_address+0x67/0x120 [ 15.813241][ C0] ? __lock_release+0x5d/0x170 [ 15.813245][ C0] ? save_trace+0x52/0x170 [ 15.813254][ C0] mark_lock+0x174/0x2f0 [ 15.813258][ C0] mark_usage+0x46/0x150 [ 15.813261][ C0] __lock_acquire+0x20b/0x7e0 [ 15.813264][ C0] ? __lock_acquire+0x44d/0x7e0 [ 15.813268][ C0] lock_acquire.part.0+0xb6/0x240 [ 15.813271][ C0] ? simple_pin_fs+0x24/0x150 [ 15.813276][ C0] ? rcu_is_watching+0x12/0xc0 [ 15.813281][ C0] ? lock_acquire+0x10c/0x170 [ 15.813284][ C0] ? simple_pin_fs+0x24/0x150 [ 15.813288][ C0] _raw_spin_lock+0x33/0x40 [ 15.813292][ C0] ? simple_pin_fs+0x24/0x150 [ 15.813296][ C0] simple_pin_fs+0x24/0x150 [ 15.813301][ C0] debugfs_remove+0x35/0x70 [ 15.813304][ C0] ref_tracker_dir_exit+0xcf/0x740 [ 15.813320][ C0] ? __pfx_ref_tracker_free+0x10/0x10 [ 15.813323][ C0] ? __sk_destruct+0x383/0x780 [ 15.813339][ C0] ? rcu_do_batch+0x34c/0xf20 [ 15.813342][ C0] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 15.813345][ C0] ? irq_exit_rcu+0xe/0x30 [ 15.813348][ C0] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 15.813354][ C0] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 15.813362][ C0] ? pv_native_safe_halt+0xf/0x20 [ 15.813365][ C0] ? default_idle+0x9/0x10 [ 15.813368][ C0] ? default_idle_call+0x6d/0xb0 [ 15.813371][ C0] ? cpuidle_idle_call+0x26f/0x3a0 [ 15.813375][ C0] ? do_idle+0xf6/0x160 [ 15.813378][ C0] ? cpu_startup_entry+0x54/0x60 [ 15.813380][ C0] ? rest_init+0x14b/0x260 [ 15.813383][ C0] ? start_kernel+0x350/0x410 [ 15.813389][ C0] __put_net+0x19/0x60 [ 15.813394][ C0] __sk_destruct+0x58a/0x780 [ 15.813398][ C0] ? rcu_do_batch+0x34a/0xf20 [ 15.813400][ C0] rcu_do_batch+0x34c/0xf20 [ 15.813403][ C0] ? find_held_lock+0x2b/0x80 [ 15.813408][ C0] ? __pfx_rcu_do_batch+0x10/0x10 [ 15.813411][ C0] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 15.813415][ C0] ? lockdep_hardirqs_on+0x7c/0x110 [ 15.813417][ C0] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 15.813422][ C0] rcu_core+0x2bb/0x500 [ 15.813427][ C0] handle_softirqs+0x218/0x620 [ 15.813432][ C0] __irq_exit_rcu+0xfa/0x160 [ 15.813435][ C0] irq_exit_rcu+0xe/0x30 [ 15.813438][ C0] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 15.813442][ C0] [ 15.813443][ C0] [ 15.813444][ C0] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 15.813447][ C0] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 15.813451][ C0] Code: 92 b5 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 37 10 00 fb f4 fc 54 02 00 66 2e 0f 1f 84 00 00 00 00 00 66 90 90 90 90 90 90 [ 15.813454][ C0] RSP: 0018:ffffffff92607df8 EFLAGS: 00000246 [ 15.813462][ C0] RAX: 00000000000786f9 RBX: 1ffffffff24c0fc3 RCX: ffffffff919905d9 [ 15.813465][ C0] RDX: 0000000000000000 RSI: ffffffff9248f4e4 RDI: ffffffff91c53be0 [ 15.813466][ C0] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c066fa [ 15.813468][ C0] R10: ffff8880360337d3 R11: ffffffff92611288 R12: 0000000000000000 [ 15.813469][ C0] R13: ffffffff9261f240 R14: dffffc0000000000 R15: 0000000000014770 [ 15.813473][ C0] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 15.813478][ C0] default_idle+0x9/0x10 [ 15.813481][ C0] default_idle_call+0x6d/0xb0 [ 15.813485][ C0] cpuidle_idle_call+0x26f/0x3a0 [ 15.813488][ C0] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 15.813492][ C0] ? tsc_verify_tsc_adjust+0x98/0x310 [ 15.813500][ C0] do_idle+0xf6/0x160 [ 15.813503][ C0] cpu_startup_entry+0x54/0x60 [ 15.813507][ C0] rest_init+0x14b/0x260 [ 15.813510][ C0] start_kernel+0x350/0x410 [ 15.813514][ C0] x86_64_start_reservations+0x18/0x30 [ 15.813520][ C0] x86_64_start_kernel+0xf8/0x150 [ 15.813524][ C0] common_startup_64+0x13e/0x148 [ 15.813539][ C0] [ 15.831063][ C0] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 15.831533][ C0] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/0 [ 15.832001][ C0] preempt_count: 101, expected: 0 [ 15.832324][ C0] RCU nest depth: 0, expected: 0 [ 15.832514][ C0] INFO: lockdep is turned off. [ 15.832707][ C0] Preemption disabled at: [ 15.832709][ C0] [] schedule_preempt_disabled+0x22/0x30 [ 15.833397][ C0] CPU: 0 UID: 0 PID: 0 Comm: swapper/0 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 15.833401][ C0] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 15.833403][ C0] Call Trace: [ 15.833404][ C0] [ 15.833406][ C0] dump_stack_lvl+0xb0/0xd0 [ 15.833411][ C0] __might_resched+0x360/0x5a0 [ 15.833422][ C0] down_write+0x72/0x210 [ 15.833426][ C0] ? __pfx_down_write+0x10/0x10 [ 15.833429][ C0] ? simple_recursive_removal+0x33/0x610 [ 15.833433][ C0] ? rcu_is_watching+0x12/0xc0 [ 15.833438][ C0] ? do_raw_spin_unlock+0x58/0x220 [ 15.833446][ C0] simple_recursive_removal+0x6a/0x610 [ 15.833449][ C0] ? do_raw_spin_unlock+0x58/0x220 [ 15.833453][ C0] ? __pfx_remove_one+0x10/0x10 [ 15.833458][ C0] debugfs_remove+0x44/0x70 [ 15.833461][ C0] ref_tracker_dir_exit+0xcf/0x740 [ 15.833467][ C0] ? __pfx_ref_tracker_free+0x10/0x10 [ 15.833470][ C0] ? __sk_destruct+0x383/0x780 [ 15.833475][ C0] ? rcu_do_batch+0x34c/0xf20 [ 15.833479][ C0] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 15.833482][ C0] ? irq_exit_rcu+0xe/0x30 [ 15.833487][ C0] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 15.833492][ C0] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 15.833496][ C0] ? pv_native_safe_halt+0xf/0x20 [ 15.833499][ C0] ? default_idle+0x9/0x10 [ 15.833501][ C0] ? default_idle_call+0x6d/0xb0 [ 15.833504][ C0] ? cpuidle_idle_call+0x26f/0x3a0 [ 15.833507][ C0] ? do_idle+0xf6/0x160 [ 15.833510][ C0] ? cpu_startup_entry+0x54/0x60 [ 15.833513][ C0] ? rest_init+0x14b/0x260 [ 15.833516][ C0] ? start_kernel+0x350/0x410 [ 15.833523][ C0] __put_net+0x19/0x60 [ 15.833527][ C0] __sk_destruct+0x58a/0x780 [ 15.833531][ C0] ? rcu_do_batch+0x34a/0xf20 [ 15.833533][ C0] rcu_do_batch+0x34c/0xf20 [ 15.833537][ C0] ? find_held_lock+0x2b/0x80 [ 15.833542][ C0] ? __pfx_rcu_do_batch+0x10/0x10 [ 15.833545][ C0] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 15.833550][ C0] ? lockdep_hardirqs_on+0x7c/0x110 [ 15.833552][ C0] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 15.833557][ C0] rcu_core+0x2bb/0x500 [ 15.833561][ C0] handle_softirqs+0x218/0x620 [ 15.833567][ C0] __irq_exit_rcu+0xfa/0x160 [ 15.833570][ C0] irq_exit_rcu+0xe/0x30 [ 15.833572][ C0] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 15.833576][ C0] [ 15.833577][ C0] [ 15.833579][ C0] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 15.833581][ C0] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 15.833585][ C0] Code: 92 b5 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 37 10 00 fb f4 fc 54 02 00 66 2e 0f 1f 84 00 00 00 00 00 66 90 90 90 90 90 90 [ 15.833588][ C0] RSP: 0018:ffffffff92607df8 EFLAGS: 00000246 [ 15.833591][ C0] RAX: 00000000000786f9 RBX: 1ffffffff24c0fc3 RCX: ffffffff919905d9 [ 15.833593][ C0] RDX: 0000000000000000 RSI: ffffffff9248f4e4 RDI: ffffffff91c53be0 [ 15.833594][ C0] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c066fa [ 15.833596][ C0] R10: ffff8880360337d3 R11: ffffffff92611288 R12: 0000000000000000 [ 15.833598][ C0] R13: ffffffff9261f240 R14: dffffc0000000000 R15: 0000000000014770 [ 15.833602][ C0] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 15.833608][ C0] default_idle+0x9/0x10 [ 15.833611][ C0] default_idle_call+0x6d/0xb0 [ 15.833613][ C0] cpuidle_idle_call+0x26f/0x3a0 [ 15.833616][ C0] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 15.833620][ C0] ? tsc_verify_tsc_adjust+0x98/0x310 [ 15.833625][ C0] do_idle+0xf6/0x160 [ 15.833628][ C0] cpu_startup_entry+0x54/0x60 [ 15.833631][ C0] rest_init+0x14b/0x260 [ 15.833634][ C0] start_kernel+0x350/0x410 [ 15.833638][ C0] x86_64_start_reservations+0x18/0x30 [ 15.833642][ C0] x86_64_start_kernel+0xf8/0x150 [ 15.833646][ C0] common_startup_64+0x13e/0x148 [ 15.833655][ C0] [ 17.812856][ C3] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 17.813347][ C3] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/3 [ 17.813692][ C3] preempt_count: 101, expected: 0 [ 17.813890][ C3] RCU nest depth: 0, expected: 0 [ 17.814083][ C3] INFO: lockdep is turned off. [ 17.814297][ C3] Preemption disabled at: [ 17.814299][ C3] [<0000000000000000>] 0x0 [ 17.814674][ C3] CPU: 3 UID: 0 PID: 0 Comm: swapper/3 Tainted: G W 6.15.0-virtme #1 PREEMPT(full) [ 17.814680][ C3] Tainted: [W]=WARN [ 17.814682][ C3] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 17.814685][ C3] Call Trace: [ 17.814687][ C3] [ 17.814690][ C3] dump_stack_lvl+0xb0/0xd0 [ 17.814703][ C3] __might_resched+0x360/0x5a0 [ 17.814713][ C3] down_write+0x72/0x210 [ 17.814719][ C3] ? __pfx_down_write+0x10/0x10 [ 17.814722][ C3] ? simple_recursive_removal+0x33/0x610 [ 17.814729][ C3] ? rcu_is_watching+0x12/0xc0 [ 17.814737][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 17.814744][ C3] simple_recursive_removal+0x6a/0x610 [ 17.814747][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 17.814750][ C3] ? __pfx_remove_one+0x10/0x10 [ 17.814757][ C3] debugfs_remove+0x44/0x70 [ 17.814760][ C3] ref_tracker_dir_exit+0xcf/0x740 [ 17.814769][ C3] ? __pfx_ref_tracker_free+0x10/0x10 [ 17.814774][ C3] ? __sk_destruct+0x383/0x780 [ 17.814783][ C3] ? rcu_do_batch+0x34c/0xf20 [ 17.814787][ C3] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 17.814790][ C3] ? irq_exit_rcu+0xe/0x30 [ 17.814797][ C3] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 17.814804][ C3] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 17.814810][ C3] ? pv_native_safe_halt+0xf/0x20 [ 17.814813][ C3] ? default_idle+0x9/0x10 [ 17.814816][ C3] ? default_idle_call+0x6d/0xb0 [ 17.814819][ C3] ? cpuidle_idle_call+0x26f/0x3a0 [ 17.814824][ C3] ? do_idle+0xf6/0x160 [ 17.814826][ C3] ? cpu_startup_entry+0x54/0x60 [ 17.814828][ C3] ? start_secondary+0x213/0x2a0 [ 17.814833][ C3] ? common_startup_64+0x13e/0x148 [ 17.814841][ C3] ? bpf_sk_storage_free+0x9f/0x1c0 [ 17.814870][ C3] ? rcu_is_watching+0x12/0xc0 [ 17.814875][ C3] __put_net+0x19/0x60 [ 17.814880][ C3] __sk_destruct+0x58a/0x780 [ 17.814884][ C3] ? rcu_do_batch+0x34a/0xf20 [ 17.814887][ C3] rcu_do_batch+0x34c/0xf20 [ 17.814891][ C3] ? __pfx_rcu_do_batch+0x10/0x10 [ 17.814895][ C3] ? trace_irq_enable.constprop.0+0xd4/0x130 [ 17.814911][ C3] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 17.814918][ C3] rcu_core+0x2bb/0x500 [ 17.814924][ C3] handle_softirqs+0x218/0x620 [ 17.814929][ C3] __irq_exit_rcu+0xfa/0x160 [ 17.814932][ C3] irq_exit_rcu+0xe/0x30 [ 17.814936][ C3] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 17.814940][ C3] [ 17.814942][ C3] [ 17.814944][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 17.814947][ C3] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 17.814952][ C3] Code: 92 b5 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 37 10 00 fb f4 fc 54 02 00 66 2e 0f 1f 84 00 00 00 00 00 66 90 90 90 90 90 90 [ 17.814955][ C3] RSP: 0018:ffffc90000157de8 EFLAGS: 00000246 [ 17.814960][ C3] RAX: 0000000000000003 RBX: 1ffff9200002afc1 RCX: ffffffff919905d9 [ 17.814962][ C3] RDX: ffffed1006c366fb RSI: ffffffff91c53b60 RDI: ffffffff8f18d18f [ 17.814964][ C3] RBP: 0000000000000000 R08: 0000000000000000 R09: ffffed1006c366fa [ 17.814966][ C3] R10: ffff8880361b37d3 R11: ffff888002732818 R12: 0000000000000000 [ 17.814967][ C3] R13: ffff888001bf45c0 R14: dffffc0000000000 R15: 0000000000000000 [ 17.814971][ C3] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 17.814974][ C3] ? cpuidle_idle_call+0x26f/0x3a0 [ 17.814978][ C3] default_idle+0x9/0x10 [ 17.814981][ C3] default_idle_call+0x6d/0xb0 [ 17.814983][ C3] cpuidle_idle_call+0x26f/0x3a0 [ 17.814986][ C3] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 17.814990][ C3] ? tsc_verify_tsc_adjust+0x98/0x310 [ 17.814995][ C3] do_idle+0xf6/0x160 [ 17.814998][ C3] cpu_startup_entry+0x54/0x60 [ 17.815001][ C3] start_secondary+0x213/0x2a0 [ 17.815003][ C3] ? __pfx_start_secondary+0x10/0x10 [ 17.815008][ C3] common_startup_64+0x13e/0x148 [ 17.815015][ C3]