[ 15.133678][ C3] [ 15.133833][ C3] ================================ [ 15.134061][ C3] WARNING: inconsistent lock state [ 15.134271][ C3] 6.15.0-virtme #1 Not tainted [ 15.134478][ C3] -------------------------------- [ 15.134685][ C3] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 15.134942][ C3] swapper/3/0 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 15.135202][ C3] ffffffffb25c5af8 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 15.135578][ C3] {SOFTIRQ-ON-W} state was registered at: [ 15.135794][ C3] __lock_acquire+0x20b/0x7e0 [ 15.136003][ C3] lock_acquire.part.0+0xb6/0x240 [ 15.136204][ C3] _raw_spin_lock+0x33/0x40 [ 15.136412][ C3] simple_pin_fs+0x24/0x150 [ 15.136634][ C3] start_creating.part.0+0x52/0x310 [ 15.136854][ C3] debugfs_create_dir+0x6a/0x540 [ 15.137052][ C3] component_debug_init+0x17/0x30 [ 15.137256][ C3] do_one_initcall+0x8f/0x1e0 [ 15.137462][ C3] do_initcalls+0x176/0x280 [ 15.137668][ C3] kernel_init_freeable+0x22d/0x300 [ 15.137873][ C3] kernel_init+0x20/0x200 [ 15.138075][ C3] ret_from_fork+0x240/0x320 [ 15.138282][ C3] ret_from_fork_asm+0x1a/0x30 [ 15.138483][ C3] irq event stamp: 289262 [ 15.138642][ C3] hardirqs last enabled at (289262): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 15.139048][ C3] hardirqs last disabled at (289261): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 15.139477][ C3] softirqs last enabled at (287298): [] handle_softirqs+0x358/0x620 [ 15.139845][ C3] softirqs last disabled at (287329): [] __irq_exit_rcu+0xfa/0x160 [ 15.140211][ C3] [ 15.140211][ C3] other info that might help us debug this: [ 15.140524][ C3] Possible unsafe locking scenario: [ 15.140524][ C3] [ 15.140823][ C3] CPU0 [ 15.140976][ C3] ---- [ 15.141131][ C3] lock(pin_fs_lock); [ 15.141285][ C3] [ 15.141437][ C3] lock(pin_fs_lock); [ 15.141589][ C3] [ 15.141589][ C3] *** DEADLOCK *** [ 15.141589][ C3] [ 15.141888][ C3] 1 lock held by swapper/3/0: [ 15.142117][ C3] #0: ffffffffb23774c0 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 15.142491][ C3] [ 15.142491][ C3] stack backtrace: [ 15.142746][ C3] CPU: 3 UID: 0 PID: 0 Comm: swapper/3 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 15.142750][ C3] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 15.142753][ C3] Call Trace: [ 15.142755][ C3] [ 15.142758][ C3] dump_stack_lvl+0x82/0xd0 [ 15.142766][ C3] print_usage_bug.part.0+0x25f/0x360 [ 15.142771][ C3] mark_lock_irq+0x343/0x400 [ 15.142775][ C3] ? __pfx_unwind_next_frame+0x10/0x10 [ 15.142781][ C3] ? save_trace+0x52/0x170 [ 15.142788][ C3] mark_lock+0x174/0x2f0 [ 15.142792][ C3] mark_usage+0x46/0x150 [ 15.142795][ C3] __lock_acquire+0x20b/0x7e0 [ 15.142798][ C3] ? __lock_acquire+0x44d/0x7e0 [ 15.142802][ C3] lock_acquire.part.0+0xb6/0x240 [ 15.142806][ C3] ? simple_pin_fs+0x24/0x150 [ 15.142810][ C3] ? rcu_is_watching+0x12/0xc0 [ 15.142816][ C3] ? lock_acquire+0x10c/0x170 [ 15.142818][ C3] ? simple_pin_fs+0x24/0x150 [ 15.142823][ C3] _raw_spin_lock+0x33/0x40 [ 15.142826][ C3] ? simple_pin_fs+0x24/0x150 [ 15.142830][ C3] simple_pin_fs+0x24/0x150 [ 15.142834][ C3] debugfs_remove+0x35/0x70 [ 15.142837][ C3] ref_tracker_dir_exit+0xcf/0x740 [ 15.142844][ C3] ? __pfx_ref_tracker_free+0x10/0x10 [ 15.142848][ C3] ? __sk_destruct+0x383/0x780 [ 15.142856][ C3] ? rcu_do_batch+0x34c/0xf20 [ 15.142859][ C3] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 15.142862][ C3] ? irq_exit_rcu+0xe/0x30 [ 15.142865][ C3] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 15.142871][ C3] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 15.142875][ C3] ? pv_native_safe_halt+0xf/0x20 [ 15.142879][ C3] ? default_idle+0x9/0x10 [ 15.142882][ C3] ? default_idle_call+0x6d/0xb0 [ 15.142884][ C3] ? cpuidle_idle_call+0x26f/0x3a0 [ 15.142889][ C3] ? do_idle+0xf6/0x160 [ 15.142891][ C3] ? cpu_startup_entry+0x54/0x60 [ 15.142894][ C3] ? start_secondary+0x213/0x2a0 [ 15.142898][ C3] ? common_startup_64+0x13e/0x148 [ 15.142907][ C3] __put_net+0x19/0x60 [ 15.142912][ C3] __sk_destruct+0x58a/0x780 [ 15.142916][ C3] ? rcu_do_batch+0x34a/0xf20 [ 15.142918][ C3] rcu_do_batch+0x34c/0xf20 [ 15.142922][ C3] ? find_held_lock+0x2b/0x80 [ 15.142926][ C3] ? __pfx_rcu_do_batch+0x10/0x10 [ 15.142929][ C3] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 15.142933][ C3] ? lockdep_hardirqs_on+0x7c/0x110 [ 15.142936][ C3] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 15.142941][ C3] rcu_core+0x2bb/0x500 [ 15.142946][ C3] handle_softirqs+0x218/0x620 [ 15.142951][ C3] __irq_exit_rcu+0xfa/0x160 [ 15.142954][ C3] irq_exit_rcu+0xe/0x30 [ 15.142957][ C3] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 15.142961][ C3] [ 15.142962][ C3] [ 15.142964][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 15.142966][ C3] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 15.142971][ 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.142974][ C3] RSP: 0018:ffffc90000157de8 EFLAGS: 00000246 [ 15.142977][ C3] RAX: 000000000004625f RBX: 1ffff9200002afc1 RCX: ffffffffb138f5d9 [ 15.142979][ C3] RDX: 0000000000000000 RSI: ffffffffb1e8f4e4 RDI: ffffffffb1653be0 [ 15.142981][ C3] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c366fa [ 15.142983][ C3] R10: ffff8880361b37d3 R11: ffffffffb2011288 R12: 0000000000000000 [ 15.142985][ C3] R13: ffff888001bf45c0 R14: dffffc0000000000 R15: 0000000000000000 [ 15.142989][ C3] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 15.142994][ C3] default_idle+0x9/0x10 [ 15.142996][ C3] default_idle_call+0x6d/0xb0 [ 15.142999][ C3] cpuidle_idle_call+0x26f/0x3a0 [ 15.143002][ C3] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 15.143006][ C3] ? tsc_verify_tsc_adjust+0x98/0x310 [ 15.143011][ C3] do_idle+0xf6/0x160 [ 15.143014][ C3] cpu_startup_entry+0x54/0x60 [ 15.143017][ C3] start_secondary+0x213/0x2a0 [ 15.143020][ C3] ? __pfx_start_secondary+0x10/0x10 [ 15.143025][ C3] common_startup_64+0x13e/0x148 [ 15.143032][ C3] [ 15.159492][ C3] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 15.159817][ C3] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/3 [ 15.160146][ C3] preempt_count: 101, expected: 0 [ 15.160334][ C3] RCU nest depth: 0, expected: 0 [ 15.160521][ C3] INFO: lockdep is turned off. [ 15.160704][ C3] Preemption disabled at: [ 15.160706][ C3] [<0000000000000000>] 0x0 [ 15.161040][ C3] CPU: 3 UID: 0 PID: 0 Comm: swapper/3 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 15.161044][ C3] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 15.161046][ C3] Call Trace: [ 15.161048][ C3] [ 15.161050][ C3] dump_stack_lvl+0xb0/0xd0 [ 15.161058][ C3] __might_resched+0x360/0x5a0 [ 15.161065][ C3] down_write+0x72/0x210 [ 15.161070][ C3] ? __pfx_down_write+0x10/0x10 [ 15.161073][ C3] ? simple_recursive_removal+0x33/0x610 [ 15.161077][ C3] ? rcu_is_watching+0x12/0xc0 [ 15.161082][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 15.161089][ C3] simple_recursive_removal+0x6a/0x610 [ 15.161092][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 15.161095][ C3] ? __pfx_remove_one+0x10/0x10 [ 15.161100][ C3] debugfs_remove+0x44/0x70 [ 15.161104][ C3] ref_tracker_dir_exit+0xcf/0x740 [ 15.161109][ C3] ? __pfx_ref_tracker_free+0x10/0x10 [ 15.161113][ C3] ? __sk_destruct+0x383/0x780 [ 15.161119][ C3] ? rcu_do_batch+0x34c/0xf20 [ 15.161123][ C3] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 15.161126][ C3] ? irq_exit_rcu+0xe/0x30 [ 15.161130][ C3] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 15.161135][ C3] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 15.161139][ C3] ? pv_native_safe_halt+0xf/0x20 [ 15.161143][ C3] ? default_idle+0x9/0x10 [ 15.161145][ C3] ? default_idle_call+0x6d/0xb0 [ 15.161148][ C3] ? cpuidle_idle_call+0x26f/0x3a0 [ 15.161152][ C3] ? do_idle+0xf6/0x160 [ 15.161154][ C3] ? cpu_startup_entry+0x54/0x60 [ 15.161156][ C3] ? start_secondary+0x213/0x2a0 [ 15.161161][ C3] ? common_startup_64+0x13e/0x148 [ 15.161167][ C3] __put_net+0x19/0x60 [ 15.161172][ C3] __sk_destruct+0x58a/0x780 [ 15.161176][ C3] ? rcu_do_batch+0x34a/0xf20 [ 15.161178][ C3] rcu_do_batch+0x34c/0xf20 [ 15.161182][ C3] ? find_held_lock+0x2b/0x80 [ 15.161188][ C3] ? __pfx_rcu_do_batch+0x10/0x10 [ 15.161191][ C3] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 15.161195][ C3] ? lockdep_hardirqs_on+0x7c/0x110 [ 15.161198][ C3] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 15.161203][ C3] rcu_core+0x2bb/0x500 [ 15.161207][ C3] handle_softirqs+0x218/0x620 [ 15.161212][ C3] __irq_exit_rcu+0xfa/0x160 [ 15.161215][ C3] irq_exit_rcu+0xe/0x30 [ 15.161217][ C3] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 15.161221][ C3] [ 15.161222][ C3] [ 15.161224][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 15.161226][ C3] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 15.161230][ 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.161232][ C3] RSP: 0018:ffffc90000157de8 EFLAGS: 00000246 [ 15.161235][ C3] RAX: 000000000004625f RBX: 1ffff9200002afc1 RCX: ffffffffb138f5d9 [ 15.161237][ C3] RDX: 0000000000000000 RSI: ffffffffb1e8f4e4 RDI: ffffffffb1653be0 [ 15.161238][ C3] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c366fa [ 15.161240][ C3] R10: ffff8880361b37d3 R11: ffffffffb2011288 R12: 0000000000000000 [ 15.161241][ C3] R13: ffff888001bf45c0 R14: dffffc0000000000 R15: 0000000000000000 [ 15.161245][ C3] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 15.161250][ C3] default_idle+0x9/0x10 [ 15.161252][ C3] default_idle_call+0x6d/0xb0 [ 15.161254][ C3] cpuidle_idle_call+0x26f/0x3a0 [ 15.161257][ C3] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 15.161261][ C3] ? tsc_verify_tsc_adjust+0x98/0x310 [ 15.161265][ C3] do_idle+0xf6/0x160 [ 15.161269][ C3] cpu_startup_entry+0x54/0x60 [ 15.161272][ C3] start_secondary+0x213/0x2a0 [ 15.161274][ C3] ? __pfx_start_secondary+0x10/0x10 [ 15.161279][ C3] common_startup_64+0x13e/0x148 [ 15.161286][ C3] [ 16.923422][ C2] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 16.923819][ C2] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/2 [ 16.924159][ C2] preempt_count: 101, expected: 0 [ 16.924349][ C2] RCU nest depth: 0, expected: 0 [ 16.924540][ C2] INFO: lockdep is turned off. [ 16.924725][ C2] Preemption disabled at: [ 16.924728][ C2] [<0000000000000000>] 0x0 [ 16.925072][ C2] CPU: 2 UID: 0 PID: 0 Comm: swapper/2 Tainted: G W 6.15.0-virtme #1 PREEMPT(full) [ 16.925078][ C2] Tainted: [W]=WARN [ 16.925080][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 16.925082][ C2] Call Trace: [ 16.925084][ C2] [ 16.925086][ C2] dump_stack_lvl+0xb0/0xd0 [ 16.925099][ C2] __might_resched+0x360/0x5a0 [ 16.925109][ C2] down_write+0x72/0x210 [ 16.925115][ C2] ? __pfx_down_write+0x10/0x10 [ 16.925118][ C2] ? simple_recursive_removal+0x33/0x610 [ 16.925124][ C2] ? rcu_is_watching+0x12/0xc0 [ 16.925131][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 16.925139][ C2] simple_recursive_removal+0x6a/0x610 [ 16.925141][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 16.925145][ C2] ? __pfx_remove_one+0x10/0x10 [ 16.925152][ C2] debugfs_remove+0x44/0x70 [ 16.925155][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 16.925164][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 16.925167][ C2] ? __sk_destruct+0x383/0x780 [ 16.925175][ C2] ? rcu_do_batch+0x34c/0xf20 [ 16.925179][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 16.925182][ C2] ? irq_exit_rcu+0xe/0x30 [ 16.925190][ C2] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 16.925196][ C2] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 16.925201][ C2] ? pv_native_safe_halt+0xf/0x20 [ 16.925205][ C2] ? default_idle+0x9/0x10 [ 16.925208][ C2] ? default_idle_call+0x6d/0xb0 [ 16.925210][ C2] ? cpuidle_idle_call+0x26f/0x3a0 [ 16.925215][ C2] ? do_idle+0xf6/0x160 [ 16.925217][ C2] ? cpu_startup_entry+0x54/0x60 [ 16.925220][ C2] ? start_secondary+0x213/0x2a0 [ 16.925225][ C2] ? common_startup_64+0x13e/0x148 [ 16.925233][ C2] ? bpf_sk_storage_free+0x9f/0x1c0 [ 16.925237][ C2] ? rcu_is_watching+0x12/0xc0 [ 16.925241][ C2] __put_net+0x19/0x60 [ 16.925246][ C2] __sk_destruct+0x58a/0x780 [ 16.925250][ C2] ? rcu_do_batch+0x34a/0xf20 [ 16.925253][ C2] rcu_do_batch+0x34c/0xf20 [ 16.925257][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 16.925261][ C2] ? trace_irq_enable.constprop.0+0xd4/0x130 [ 16.925267][ C2] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 16.925273][ C2] rcu_core+0x2bb/0x500 [ 16.925279][ C2] handle_softirqs+0x218/0x620 [ 16.925284][ C2] __irq_exit_rcu+0xfa/0x160 [ 16.925287][ C2] irq_exit_rcu+0xe/0x30 [ 16.925290][ C2] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 16.925294][ C2] [ 16.925295][ C2] [ 16.925296][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 16.925299][ C2] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 16.925304][ C2] 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 [ 16.925306][ C2] RSP: 0018:ffffc90000147de8 EFLAGS: 00000246 [ 16.925310][ C2] RAX: 0000000000000002 RBX: 1ffff92000028fc1 RCX: ffffffffb138f5d9 [ 16.925312][ C2] RDX: ffffed1006c266fb RSI: ffffffffb1653b60 RDI: ffffffffaeb8d18f [ 16.925314][ C2] RBP: 0000000000000000 R08: 0000000000000000 R09: ffffed1006c266fa [ 16.925316][ C2] R10: ffff8880361337d3 R11: ffffffffb4c910f0 R12: 0000000000000000 [ 16.925318][ C2] R13: ffff888001bf2300 R14: dffffc0000000000 R15: 0000000000000000 [ 16.925322][ C2] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 16.925325][ C2] ? cpuidle_idle_call+0x26f/0x3a0 [ 16.925329][ C2] default_idle+0x9/0x10 [ 16.925332][ C2] default_idle_call+0x6d/0xb0 [ 16.925334][ C2] cpuidle_idle_call+0x26f/0x3a0 [ 16.925337][ C2] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 16.925341][ C2] ? tsc_verify_tsc_adjust+0x98/0x310 [ 16.925346][ C2] do_idle+0xf6/0x160 [ 16.925349][ C2] cpu_startup_entry+0x54/0x60 [ 16.925352][ C2] start_secondary+0x213/0x2a0 [ 16.925355][ C2] ? __pfx_start_secondary+0x10/0x10 [ 16.925359][ C2] common_startup_64+0x13e/0x148 [ 16.925366][ C2]