[ 15.809444][ C3] [ 15.809595][ C3] ================================ [ 15.809807][ C3] WARNING: inconsistent lock state [ 15.810018][ C3] 6.15.0-virtme #1 Not tainted [ 15.810221][ C3] -------------------------------- [ 15.810422][ C3] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 15.810673][ C3] swapper/3/0 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 15.810924][ C3] ffffffff93dc5af8 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 15.811285][ C3] {SOFTIRQ-ON-W} state was registered at: [ 15.811488][ C3] __lock_acquire+0x20b/0x7e0 [ 15.811697][ C3] lock_acquire.part.0+0xb6/0x240 [ 15.811899][ C3] _raw_spin_lock+0x33/0x40 [ 15.812104][ C3] simple_pin_fs+0x24/0x150 [ 15.812305][ C3] start_creating.part.0+0x52/0x310 [ 15.812506][ C3] debugfs_create_dir+0x6a/0x540 [ 15.812711][ C3] component_debug_init+0x17/0x30 [ 15.812914][ C3] do_one_initcall+0x8f/0x1e0 [ 15.813120][ C3] do_initcalls+0x176/0x280 [ 15.813326][ C3] kernel_init_freeable+0x22d/0x300 [ 15.813527][ C3] kernel_init+0x20/0x200 [ 15.813729][ C3] ret_from_fork+0x240/0x320 [ 15.813932][ C3] ret_from_fork_asm+0x1a/0x30 [ 15.814129][ C3] irq event stamp: 286838 [ 15.814286][ C3] hardirqs last enabled at (286838): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 15.814688][ C3] hardirqs last disabled at (286837): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 15.815091][ C3] softirqs last enabled at (285206): [] handle_softirqs+0x358/0x620 [ 15.815441][ C3] softirqs last disabled at (285225): [] __irq_exit_rcu+0xfa/0x160 [ 15.815792][ C3] [ 15.815792][ C3] other info that might help us debug this: [ 15.816089][ C3] Possible unsafe locking scenario: [ 15.816089][ C3] [ 15.816384][ C3] CPU0 [ 15.816532][ C3] ---- [ 15.816683][ C3] lock(pin_fs_lock); [ 15.816835][ C3] [ 15.816986][ C3] lock(pin_fs_lock); [ 15.817141][ C3] [ 15.817141][ C3] *** DEADLOCK *** [ 15.817141][ C3] [ 15.817436][ C3] 1 lock held by swapper/3/0: [ 15.817644][ C3] #0: ffffffff93b774c0 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 15.818004][ C3] [ 15.818004][ C3] stack backtrace: [ 15.818267][ C3] CPU: 3 UID: 0 PID: 0 Comm: swapper/3 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 15.818272][ C3] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 15.818275][ C3] Call Trace: [ 15.818277][ C3] [ 15.818279][ C3] dump_stack_lvl+0x82/0xd0 [ 15.818288][ C3] print_usage_bug.part.0+0x25f/0x360 [ 15.818293][ C3] mark_lock_irq+0x343/0x400 [ 15.818298][ C3] ? __pfx_unwind_next_frame+0x10/0x10 [ 15.818304][ C3] ? save_trace+0x52/0x170 [ 15.818311][ C3] mark_lock+0x174/0x2f0 [ 15.818314][ C3] mark_usage+0x46/0x150 [ 15.818318][ C3] __lock_acquire+0x20b/0x7e0 [ 15.818321][ C3] ? __lock_acquire+0x44d/0x7e0 [ 15.818325][ C3] lock_acquire.part.0+0xb6/0x240 [ 15.818328][ C3] ? simple_pin_fs+0x24/0x150 [ 15.818332][ C3] ? rcu_is_watching+0x12/0xc0 [ 15.818337][ C3] ? lock_acquire+0x10c/0x170 [ 15.818340][ C3] ? simple_pin_fs+0x24/0x150 [ 15.818344][ C3] _raw_spin_lock+0x33/0x40 [ 15.818348][ C3] ? simple_pin_fs+0x24/0x150 [ 15.818351][ C3] simple_pin_fs+0x24/0x150 [ 15.818355][ C3] debugfs_remove+0x35/0x70 [ 15.818359][ C3] ref_tracker_dir_exit+0xcf/0x740 [ 15.818366][ C3] ? __pfx_ref_tracker_free+0x10/0x10 [ 15.818370][ C3] ? __sk_destruct+0x383/0x780 [ 15.818377][ C3] ? rcu_do_batch+0x34c/0xf20 [ 15.818380][ C3] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 15.818383][ C3] ? irq_exit_rcu+0xe/0x30 [ 15.818386][ C3] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 15.818392][ C3] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 15.818398][ C3] ? pv_native_safe_halt+0xf/0x20 [ 15.818401][ C3] ? default_idle+0x9/0x10 [ 15.818404][ C3] ? default_idle_call+0x6d/0xb0 [ 15.818406][ C3] ? cpuidle_idle_call+0x26f/0x3a0 [ 15.818410][ C3] ? do_idle+0xf6/0x160 [ 15.818413][ C3] ? cpu_startup_entry+0x54/0x60 [ 15.818415][ C3] ? start_secondary+0x213/0x2a0 [ 15.818419][ C3] ? common_startup_64+0x13e/0x148 [ 15.818428][ C3] __put_net+0x19/0x60 [ 15.818433][ C3] __sk_destruct+0x58a/0x780 [ 15.818437][ C3] ? rcu_do_batch+0x34a/0xf20 [ 15.818440][ C3] rcu_do_batch+0x34c/0xf20 [ 15.818443][ C3] ? find_held_lock+0x2b/0x80 [ 15.818448][ C3] ? __pfx_rcu_do_batch+0x10/0x10 [ 15.818452][ C3] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 15.818456][ C3] ? lockdep_hardirqs_on+0x7c/0x110 [ 15.818459][ C3] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 15.818464][ C3] rcu_core+0x2bb/0x500 [ 15.818469][ C3] handle_softirqs+0x218/0x620 [ 15.818474][ C3] __irq_exit_rcu+0xfa/0x160 [ 15.818477][ C3] irq_exit_rcu+0xe/0x30 [ 15.818480][ C3] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 15.818484][ C3] [ 15.818485][ C3] [ 15.818487][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 15.818489][ C3] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 15.818494][ C3] Code: a2 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 47 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.818497][ C3] RSP: 0018:ffffc90000157de8 EFLAGS: 00000246 [ 15.818501][ C3] RAX: 0000000000045a27 RBX: 1ffff9200002afc1 RCX: ffffffff92b8f5d9 [ 15.818503][ C3] RDX: 0000000000000000 RSI: ffffffff9368f4e4 RDI: ffffffff92e53be0 [ 15.818505][ C3] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c366fa [ 15.818506][ C3] R10: ffff8880361b37d3 R11: ffffffff93811288 R12: 0000000000000000 [ 15.818508][ C3] R13: ffff888001bf45c0 R14: dffffc0000000000 R15: 0000000000000000 [ 15.818512][ C3] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 15.818516][ C3] default_idle+0x9/0x10 [ 15.818519][ C3] default_idle_call+0x6d/0xb0 [ 15.818522][ C3] cpuidle_idle_call+0x26f/0x3a0 [ 15.818525][ C3] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 15.818529][ C3] ? tsc_verify_tsc_adjust+0x98/0x310 [ 15.818533][ C3] do_idle+0xf6/0x160 [ 15.818536][ C3] cpu_startup_entry+0x54/0x60 [ 15.818539][ C3] start_secondary+0x213/0x2a0 [ 15.818542][ C3] ? __pfx_start_secondary+0x10/0x10 [ 15.818547][ C3] common_startup_64+0x13e/0x148 [ 15.818554][ C3] [ 15.834540][ C3] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 15.834867][ C3] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/3 [ 15.835204][ C3] preempt_count: 101, expected: 0 [ 15.835391][ C3] RCU nest depth: 0, expected: 0 [ 15.835578][ C3] INFO: lockdep is turned off. [ 15.835763][ C3] Preemption disabled at: [ 15.835765][ C3] [<0000000000000000>] 0x0 [ 15.836110][ C3] CPU: 3 UID: 0 PID: 0 Comm: swapper/3 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 15.836115][ C3] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 15.836117][ C3] Call Trace: [ 15.836118][ C3] [ 15.836120][ C3] dump_stack_lvl+0xb0/0xd0 [ 15.836128][ C3] __might_resched+0x360/0x5a0 [ 15.836136][ C3] down_write+0x72/0x210 [ 15.836140][ C3] ? __pfx_down_write+0x10/0x10 [ 15.836143][ C3] ? simple_recursive_removal+0x33/0x610 [ 15.836147][ C3] ? rcu_is_watching+0x12/0xc0 [ 15.836153][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 15.836160][ C3] simple_recursive_removal+0x6a/0x610 [ 15.836163][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 15.836166][ C3] ? __pfx_remove_one+0x10/0x10 [ 15.836173][ C3] debugfs_remove+0x44/0x70 [ 15.836176][ C3] ref_tracker_dir_exit+0xcf/0x740 [ 15.836182][ C3] ? __pfx_ref_tracker_free+0x10/0x10 [ 15.836186][ C3] ? __sk_destruct+0x383/0x780 [ 15.836192][ C3] ? rcu_do_batch+0x34c/0xf20 [ 15.836195][ C3] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 15.836198][ C3] ? irq_exit_rcu+0xe/0x30 [ 15.836203][ C3] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 15.836207][ C3] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 15.836212][ C3] ? pv_native_safe_halt+0xf/0x20 [ 15.836215][ C3] ? default_idle+0x9/0x10 [ 15.836218][ C3] ? default_idle_call+0x6d/0xb0 [ 15.836220][ C3] ? cpuidle_idle_call+0x26f/0x3a0 [ 15.836224][ C3] ? do_idle+0xf6/0x160 [ 15.836227][ C3] ? cpu_startup_entry+0x54/0x60 [ 15.836229][ C3] ? start_secondary+0x213/0x2a0 [ 15.836232][ C3] ? common_startup_64+0x13e/0x148 [ 15.836239][ C3] __put_net+0x19/0x60 [ 15.836243][ C3] __sk_destruct+0x58a/0x780 [ 15.836247][ C3] ? rcu_do_batch+0x34a/0xf20 [ 15.836250][ C3] rcu_do_batch+0x34c/0xf20 [ 15.836253][ C3] ? find_held_lock+0x2b/0x80 [ 15.836259][ C3] ? __pfx_rcu_do_batch+0x10/0x10 [ 15.836262][ C3] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 15.836267][ C3] ? lockdep_hardirqs_on+0x7c/0x110 [ 15.836270][ C3] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 15.836275][ C3] rcu_core+0x2bb/0x500 [ 15.836280][ C3] handle_softirqs+0x218/0x620 [ 15.836285][ C3] __irq_exit_rcu+0xfa/0x160 [ 15.836288][ C3] irq_exit_rcu+0xe/0x30 [ 15.836291][ C3] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 15.836295][ C3] [ 15.836296][ C3] [ 15.836297][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 15.836300][ C3] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 15.836304][ C3] Code: a2 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 47 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.836306][ C3] RSP: 0018:ffffc90000157de8 EFLAGS: 00000246 [ 15.836309][ C3] RAX: 0000000000045a27 RBX: 1ffff9200002afc1 RCX: ffffffff92b8f5d9 [ 15.836311][ C3] RDX: 0000000000000000 RSI: ffffffff9368f4e4 RDI: ffffffff92e53be0 [ 15.836313][ C3] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c366fa [ 15.836314][ C3] R10: ffff8880361b37d3 R11: ffffffff93811288 R12: 0000000000000000 [ 15.836316][ C3] R13: ffff888001bf45c0 R14: dffffc0000000000 R15: 0000000000000000 [ 15.836320][ C3] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 15.836324][ C3] default_idle+0x9/0x10 [ 15.836327][ C3] default_idle_call+0x6d/0xb0 [ 15.836330][ C3] cpuidle_idle_call+0x26f/0x3a0 [ 15.836333][ C3] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 15.836337][ C3] ? tsc_verify_tsc_adjust+0x98/0x310 [ 15.836341][ C3] do_idle+0xf6/0x160 [ 15.836345][ C3] cpu_startup_entry+0x54/0x60 [ 15.836348][ C3] start_secondary+0x213/0x2a0 [ 15.836351][ C3] ? __pfx_start_secondary+0x10/0x10 [ 15.836355][ C3] common_startup_64+0x13e/0x148 [ 15.836362][ C3] [ 17.730895][ C3] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 17.731280][ C3] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/3 [ 17.731604][ C3] preempt_count: 101, expected: 0 [ 17.731788][ C3] RCU nest depth: 0, expected: 0 [ 17.731984][ C3] INFO: lockdep is turned off. [ 17.732173][ C3] Preemption disabled at: [ 17.732175][ C3] [<0000000000000000>] 0x0 [ 17.732511][ C3] CPU: 3 UID: 0 PID: 0 Comm: swapper/3 Tainted: G W 6.15.0-virtme #1 PREEMPT(full) [ 17.732517][ C3] Tainted: [W]=WARN [ 17.732519][ C3] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 17.732521][ C3] Call Trace: [ 17.732523][ C3] [ 17.732525][ C3] dump_stack_lvl+0xb0/0xd0 [ 17.732537][ C3] __might_resched+0x360/0x5a0 [ 17.732547][ C3] down_write+0x72/0x210 [ 17.732552][ C3] ? __pfx_down_write+0x10/0x10 [ 17.732555][ C3] ? simple_recursive_removal+0x33/0x610 [ 17.732561][ C3] ? rcu_is_watching+0x12/0xc0 [ 17.732567][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 17.732575][ C3] simple_recursive_removal+0x6a/0x610 [ 17.732578][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 17.732581][ C3] ? __pfx_remove_one+0x10/0x10 [ 17.732588][ C3] debugfs_remove+0x44/0x70 [ 17.732591][ C3] ref_tracker_dir_exit+0xcf/0x740 [ 17.732599][ C3] ? __pfx_ref_tracker_free+0x10/0x10 [ 17.732602][ C3] ? __sk_destruct+0x383/0x780 [ 17.732609][ C3] ? rcu_do_batch+0x34c/0xf20 [ 17.732613][ C3] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 17.732616][ C3] ? irq_exit_rcu+0xe/0x30 [ 17.732622][ C3] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 17.732629][ C3] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 17.732633][ C3] ? pv_native_safe_halt+0xf/0x20 [ 17.732637][ C3] ? default_idle+0x9/0x10 [ 17.732640][ C3] ? default_idle_call+0x6d/0xb0 [ 17.732642][ C3] ? cpuidle_idle_call+0x26f/0x3a0 [ 17.732646][ C3] ? do_idle+0xf6/0x160 [ 17.732649][ C3] ? cpu_startup_entry+0x54/0x60 [ 17.732652][ C3] ? start_secondary+0x213/0x2a0 [ 17.732656][ C3] ? common_startup_64+0x13e/0x148 [ 17.732663][ C3] ? bpf_sk_storage_free+0x9f/0x1c0 [ 17.732668][ C3] ? rcu_is_watching+0x12/0xc0 [ 17.732672][ C3] __put_net+0x19/0x60 [ 17.732677][ C3] __sk_destruct+0x58a/0x780 [ 17.732681][ C3] ? rcu_do_batch+0x34a/0xf20 [ 17.732683][ C3] rcu_do_batch+0x34c/0xf20 [ 17.732688][ C3] ? __pfx_rcu_do_batch+0x10/0x10 [ 17.732691][ C3] ? trace_irq_enable.constprop.0+0xd4/0x130 [ 17.732699][ C3] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 17.732705][ C3] rcu_core+0x2bb/0x500 [ 17.732711][ C3] handle_softirqs+0x218/0x620 [ 17.732716][ C3] __irq_exit_rcu+0xfa/0x160 [ 17.732719][ C3] irq_exit_rcu+0xe/0x30 [ 17.732722][ C3] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 17.732726][ C3] [ 17.732727][ C3] [ 17.732728][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 17.732731][ C3] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 17.732736][ C3] Code: a2 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 47 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.732739][ C3] RSP: 0018:ffffc90000157de8 EFLAGS: 00000246 [ 17.732743][ C3] RAX: 0000000000000003 RBX: 1ffff9200002afc1 RCX: ffffffff92b8f5d9 [ 17.732745][ C3] RDX: ffffed1006c366fb RSI: ffffffff92e53b60 RDI: ffffffff9038d18f [ 17.732747][ C3] RBP: 0000000000000000 R08: 0000000000000000 R09: ffffed1006c366fa [ 17.732749][ C3] R10: ffff8880361b37d3 R11: ffffffff964f15a0 R12: 0000000000000000 [ 17.732751][ C3] R13: ffff888001bf45c0 R14: dffffc0000000000 R15: 0000000000000000 [ 17.732755][ C3] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 17.732758][ C3] ? cpuidle_idle_call+0x26f/0x3a0 [ 17.732762][ C3] default_idle+0x9/0x10 [ 17.732765][ C3] default_idle_call+0x6d/0xb0 [ 17.732767][ C3] cpuidle_idle_call+0x26f/0x3a0 [ 17.732770][ C3] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 17.732774][ C3] ? tsc_verify_tsc_adjust+0x98/0x310 [ 17.732779][ C3] do_idle+0xf6/0x160 [ 17.732782][ C3] cpu_startup_entry+0x54/0x60 [ 17.732785][ C3] start_secondary+0x213/0x2a0 [ 17.732788][ C3] ? __pfx_start_secondary+0x10/0x10 [ 17.732793][ C3] common_startup_64+0x13e/0x148 [ 17.732800][ C3]