[ 15.596555][ C0] [ 15.596698][ C0] ================================ [ 15.596905][ C0] WARNING: inconsistent lock state [ 15.597111][ C0] 6.15.0-virtme #1 Not tainted [ 15.597317][ C0] -------------------------------- [ 15.597523][ C0] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 15.597776][ C0] swapper/0/0 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 15.598031][ C0] ffffffff9b5c5af8 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 15.598398][ C0] {SOFTIRQ-ON-W} state was registered at: [ 15.598603][ C0] __lock_acquire+0x20b/0x7e0 [ 15.598813][ C0] lock_acquire.part.0+0xb6/0x240 [ 15.599019][ C0] _raw_spin_lock+0x33/0x40 [ 15.599228][ C0] simple_pin_fs+0x24/0x150 [ 15.599432][ C0] start_creating.part.0+0x52/0x310 [ 15.599636][ C0] debugfs_create_dir+0x6a/0x540 [ 15.599841][ C0] component_debug_init+0x17/0x30 [ 15.600047][ C0] do_one_initcall+0x8f/0x1e0 [ 15.600252][ C0] do_initcalls+0x176/0x280 [ 15.600456][ C0] kernel_init_freeable+0x22d/0x300 [ 15.600658][ C0] kernel_init+0x20/0x200 [ 15.600863][ C0] ret_from_fork+0x240/0x320 [ 15.601070][ C0] ret_from_fork_asm+0x1a/0x30 [ 15.601272][ C0] irq event stamp: 431636 [ 15.601426][ C0] hardirqs last enabled at (431636): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 15.601830][ C0] hardirqs last disabled at (431635): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 15.602234][ C0] softirqs last enabled at (430674): [] handle_softirqs+0x358/0x620 [ 15.602592][ C0] softirqs last disabled at (430711): [] __irq_exit_rcu+0xfa/0x160 [ 15.602945][ C0] [ 15.602945][ C0] other info that might help us debug this: [ 15.603243][ C0] Possible unsafe locking scenario: [ 15.603243][ C0] [ 15.603550][ C0] CPU0 [ 15.603703][ C0] ---- [ 15.603853][ C0] lock(pin_fs_lock); [ 15.604007][ C0] [ 15.604159][ C0] lock(pin_fs_lock); [ 15.604314][ C0] [ 15.604314][ C0] *** DEADLOCK *** [ 15.604314][ C0] [ 15.604615][ C0] 1 lock held by swapper/0/0: [ 15.604819][ C0] #0: ffffffff9b3774c0 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 15.605183][ C0] [ 15.605183][ C0] stack backtrace: [ 15.605436][ C0] CPU: 0 UID: 0 PID: 0 Comm: swapper/0 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 15.605440][ C0] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 15.605442][ C0] Call Trace: [ 15.605444][ C0] [ 15.605446][ C0] dump_stack_lvl+0x82/0xd0 [ 15.605452][ C0] print_usage_bug.part.0+0x25f/0x360 [ 15.605457][ C0] mark_lock_irq+0x343/0x400 [ 15.605460][ C0] ? is_bpf_text_address+0x67/0x120 [ 15.605465][ C0] ? __lock_release+0x5d/0x170 [ 15.605469][ C0] ? save_trace+0x52/0x170 [ 15.605475][ C0] mark_lock+0x174/0x2f0 [ 15.605479][ C0] mark_usage+0x46/0x150 [ 15.605482][ C0] __lock_acquire+0x20b/0x7e0 [ 15.605485][ C0] ? __lock_acquire+0x44d/0x7e0 [ 15.605489][ C0] lock_acquire.part.0+0xb6/0x240 [ 15.605493][ C0] ? simple_pin_fs+0x24/0x150 [ 15.605497][ C0] ? rcu_is_watching+0x12/0xc0 [ 15.605501][ C0] ? lock_acquire+0x10c/0x170 [ 15.605504][ C0] ? simple_pin_fs+0x24/0x150 [ 15.605508][ C0] _raw_spin_lock+0x33/0x40 [ 15.605512][ C0] ? simple_pin_fs+0x24/0x150 [ 15.605515][ C0] simple_pin_fs+0x24/0x150 [ 15.605519][ C0] debugfs_remove+0x35/0x70 [ 15.605522][ C0] ref_tracker_dir_exit+0xcf/0x740 [ 15.605528][ C0] ? __pfx_ref_tracker_free+0x10/0x10 [ 15.605531][ C0] ? __sk_destruct+0x383/0x780 [ 15.605537][ C0] ? rcu_do_batch+0x34c/0xf20 [ 15.605539][ C0] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 15.605543][ C0] ? irq_exit_rcu+0xe/0x30 [ 15.605546][ C0] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 15.605550][ C0] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 15.605554][ C0] ? pv_native_safe_halt+0xf/0x20 [ 15.605557][ C0] ? default_idle+0x9/0x10 [ 15.605560][ C0] ? default_idle_call+0x6d/0xb0 [ 15.605562][ C0] ? cpuidle_idle_call+0x26f/0x3a0 [ 15.605566][ C0] ? do_idle+0xf6/0x160 [ 15.605568][ C0] ? cpu_startup_entry+0x54/0x60 [ 15.605570][ C0] ? rest_init+0x14b/0x260 [ 15.605573][ C0] ? start_kernel+0x350/0x410 [ 15.605578][ C0] __put_net+0x19/0x60 [ 15.605582][ C0] __sk_destruct+0x58a/0x780 [ 15.605586][ C0] ? rcu_do_batch+0x34a/0xf20 [ 15.605588][ C0] rcu_do_batch+0x34c/0xf20 [ 15.605592][ C0] ? find_held_lock+0x2b/0x80 [ 15.605596][ C0] ? __pfx_rcu_do_batch+0x10/0x10 [ 15.605599][ C0] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 15.605603][ C0] ? lockdep_hardirqs_on+0x7c/0x110 [ 15.605605][ C0] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 15.605610][ C0] rcu_core+0x2bb/0x500 [ 15.605615][ C0] handle_softirqs+0x218/0x620 [ 15.605620][ C0] __irq_exit_rcu+0xfa/0x160 [ 15.605623][ C0] irq_exit_rcu+0xe/0x30 [ 15.605625][ C0] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 15.605629][ C0] [ 15.605630][ C0] [ 15.605632][ C0] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 15.605634][ C0] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 15.605639][ 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.605642][ C0] RSP: 0000:ffffffff9b007df8 EFLAGS: 00000242 [ 15.605645][ C0] RAX: 0000000000069275 RBX: 1ffffffff3600fc3 RCX: ffffffff9a3905d9 [ 15.605647][ C0] RDX: 0000000000000000 RSI: ffffffff9ae8f4e4 RDI: ffffffff9a653be0 [ 15.605648][ C0] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c066fa [ 15.605650][ C0] R10: ffff8880360337d3 R11: ffffffff9b011288 R12: 0000000000000000 [ 15.605652][ C0] R13: ffffffff9b01f240 R14: dffffc0000000000 R15: 0000000000014770 [ 15.605656][ C0] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 15.605660][ C0] default_idle+0x9/0x10 [ 15.605663][ C0] default_idle_call+0x6d/0xb0 [ 15.605665][ C0] cpuidle_idle_call+0x26f/0x3a0 [ 15.605668][ C0] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 15.605672][ C0] ? tsc_verify_tsc_adjust+0x98/0x310 [ 15.605677][ C0] do_idle+0xf6/0x160 [ 15.605680][ C0] cpu_startup_entry+0x54/0x60 [ 15.605683][ C0] rest_init+0x14b/0x260 [ 15.605686][ C0] start_kernel+0x350/0x410 [ 15.605690][ C0] x86_64_start_reservations+0x18/0x30 [ 15.605694][ C0] x86_64_start_kernel+0xf8/0x150 [ 15.605698][ C0] common_startup_64+0x13e/0x148 [ 15.605707][ C0] [ 15.623359][ C0] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 15.623693][ C0] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/0 [ 15.624028][ C0] preempt_count: 101, expected: 0 [ 15.624353][ C0] RCU nest depth: 0, expected: 0 [ 15.624545][ C0] INFO: lockdep is turned off. [ 15.624858][ C0] Preemption disabled at: [ 15.624860][ C0] [] schedule_preempt_disabled+0x22/0x30 [ 15.625291][ C0] CPU: 0 UID: 0 PID: 0 Comm: swapper/0 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 15.625296][ C0] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 15.625298][ C0] Call Trace: [ 15.625300][ C0] [ 15.625301][ C0] dump_stack_lvl+0xb0/0xd0 [ 15.625308][ C0] __might_resched+0x360/0x5a0 [ 15.625315][ C0] down_write+0x72/0x210 [ 15.625319][ C0] ? __pfx_down_write+0x10/0x10 [ 15.625322][ C0] ? simple_recursive_removal+0x33/0x610 [ 15.625326][ C0] ? rcu_is_watching+0x12/0xc0 [ 15.625331][ C0] ? do_raw_spin_unlock+0x58/0x220 [ 15.625337][ C0] simple_recursive_removal+0x6a/0x610 [ 15.625342][ C0] ? do_raw_spin_unlock+0x58/0x220 [ 15.625345][ C0] ? __pfx_remove_one+0x10/0x10 [ 15.625350][ C0] debugfs_remove+0x44/0x70 [ 15.625354][ C0] ref_tracker_dir_exit+0xcf/0x740 [ 15.625359][ C0] ? __pfx_ref_tracker_free+0x10/0x10 [ 15.625363][ C0] ? __sk_destruct+0x383/0x780 [ 15.625368][ C0] ? rcu_do_batch+0x34c/0xf20 [ 15.625371][ C0] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 15.625375][ C0] ? irq_exit_rcu+0xe/0x30 [ 15.625379][ C0] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 15.625383][ C0] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 15.625387][ C0] ? pv_native_safe_halt+0xf/0x20 [ 15.625391][ C0] ? default_idle+0x9/0x10 [ 15.625393][ C0] ? default_idle_call+0x6d/0xb0 [ 15.625396][ C0] ? cpuidle_idle_call+0x26f/0x3a0 [ 15.625399][ C0] ? do_idle+0xf6/0x160 [ 15.625401][ C0] ? cpu_startup_entry+0x54/0x60 [ 15.625404][ C0] ? rest_init+0x14b/0x260 [ 15.625407][ C0] ? start_kernel+0x350/0x410 [ 15.625414][ C0] __put_net+0x19/0x60 [ 15.625418][ C0] __sk_destruct+0x58a/0x780 [ 15.625422][ C0] ? rcu_do_batch+0x34a/0xf20 [ 15.625424][ C0] rcu_do_batch+0x34c/0xf20 [ 15.625427][ C0] ? find_held_lock+0x2b/0x80 [ 15.625433][ C0] ? __pfx_rcu_do_batch+0x10/0x10 [ 15.625436][ C0] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 15.625441][ C0] ? lockdep_hardirqs_on+0x7c/0x110 [ 15.625443][ C0] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 15.625448][ C0] rcu_core+0x2bb/0x500 [ 15.625452][ C0] handle_softirqs+0x218/0x620 [ 15.625458][ C0] __irq_exit_rcu+0xfa/0x160 [ 15.625461][ C0] irq_exit_rcu+0xe/0x30 [ 15.625463][ C0] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 15.625467][ C0] [ 15.625468][ C0] [ 15.625470][ C0] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 15.625473][ C0] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 15.625477][ 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.625479][ C0] RSP: 0000:ffffffff9b007df8 EFLAGS: 00000242 [ 15.625483][ C0] RAX: 0000000000069275 RBX: 1ffffffff3600fc3 RCX: ffffffff9a3905d9 [ 15.625485][ C0] RDX: 0000000000000000 RSI: ffffffff9ae8f4e4 RDI: ffffffff9a653be0 [ 15.625487][ C0] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c066fa [ 15.625488][ C0] R10: ffff8880360337d3 R11: ffffffff9b011288 R12: 0000000000000000 [ 15.625490][ C0] R13: ffffffff9b01f240 R14: dffffc0000000000 R15: 0000000000014770 [ 15.625494][ C0] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 15.625498][ C0] default_idle+0x9/0x10 [ 15.625501][ C0] default_idle_call+0x6d/0xb0 [ 15.625503][ C0] cpuidle_idle_call+0x26f/0x3a0 [ 15.625507][ C0] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 15.625510][ C0] ? tsc_verify_tsc_adjust+0x98/0x310 [ 15.625516][ C0] do_idle+0xf6/0x160 [ 15.625519][ C0] cpu_startup_entry+0x54/0x60 [ 15.625522][ C0] rest_init+0x14b/0x260 [ 15.625525][ C0] start_kernel+0x350/0x410 [ 15.625529][ C0] x86_64_start_reservations+0x18/0x30 [ 15.625533][ C0] x86_64_start_kernel+0xf8/0x150 [ 15.625537][ C0] common_startup_64+0x13e/0x148 [ 15.625546][ C0] [ 17.500607][ C2] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 17.500980][ C2] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/2 [ 17.501301][ C2] preempt_count: 101, expected: 0 [ 17.501499][ C2] RCU nest depth: 0, expected: 0 [ 17.501686][ C2] INFO: lockdep is turned off. [ 17.501869][ C2] Preemption disabled at: [ 17.501871][ C2] [<0000000000000000>] 0x0 [ 17.502207][ C2] CPU: 2 UID: 0 PID: 0 Comm: swapper/2 Tainted: G W 6.15.0-virtme #1 PREEMPT(full) [ 17.502213][ C2] Tainted: [W]=WARN [ 17.502214][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 17.502216][ C2] Call Trace: [ 17.502218][ C2] [ 17.502220][ C2] dump_stack_lvl+0xb0/0xd0 [ 17.502229][ C2] __might_resched+0x360/0x5a0 [ 17.502236][ C2] down_write+0x72/0x210 [ 17.502241][ C2] ? __pfx_down_write+0x10/0x10 [ 17.502243][ C2] ? simple_recursive_removal+0x33/0x610 [ 17.502248][ C2] ? rcu_is_watching+0x12/0xc0 [ 17.502253][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 17.502259][ C2] simple_recursive_removal+0x6a/0x610 [ 17.502262][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 17.502265][ C2] ? __pfx_remove_one+0x10/0x10 [ 17.502271][ C2] debugfs_remove+0x44/0x70 [ 17.502274][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 17.502280][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 17.502283][ C2] ? __sk_destruct+0x383/0x780 [ 17.502289][ C2] ? rcu_do_batch+0x34c/0xf20 [ 17.502292][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 17.502296][ C2] ? irq_exit_rcu+0xe/0x30 [ 17.502301][ C2] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 17.502306][ C2] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 17.502310][ C2] ? pv_native_safe_halt+0xf/0x20 [ 17.502313][ C2] ? default_idle+0x9/0x10 [ 17.502316][ C2] ? default_idle_call+0x6d/0xb0 [ 17.502318][ C2] ? cpuidle_idle_call+0x26f/0x3a0 [ 17.502322][ C2] ? do_idle+0xf6/0x160 [ 17.502324][ C2] ? cpu_startup_entry+0x54/0x60 [ 17.502326][ C2] ? start_secondary+0x213/0x2a0 [ 17.502330][ C2] ? common_startup_64+0x13e/0x148 [ 17.502335][ C2] ? bpf_sk_storage_free+0x9f/0x1c0 [ 17.502343][ C2] ? rcu_is_watching+0x12/0xc0 [ 17.502347][ C2] __put_net+0x19/0x60 [ 17.502351][ C2] __sk_destruct+0x58a/0x780 [ 17.502355][ C2] ? rcu_do_batch+0x34a/0xf20 [ 17.502358][ C2] rcu_do_batch+0x34c/0xf20 [ 17.502363][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 17.502366][ C2] ? trace_irq_enable.constprop.0+0xd4/0x130 [ 17.502372][ C2] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 17.502378][ C2] rcu_core+0x2bb/0x500 [ 17.502383][ C2] handle_softirqs+0x218/0x620 [ 17.502388][ C2] __irq_exit_rcu+0xfa/0x160 [ 17.502391][ C2] irq_exit_rcu+0xe/0x30 [ 17.502394][ C2] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 17.502397][ C2] [ 17.502399][ C2] [ 17.502400][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 17.502403][ C2] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 17.502407][ C2] 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.502410][ C2] RSP: 0018:ffffc90000147de8 EFLAGS: 00000246 [ 17.502414][ C2] RAX: 0000000000000002 RBX: 1ffff92000028fc1 RCX: ffffffff9a3905d9 [ 17.502417][ C2] RDX: ffffed1006c266fb RSI: ffffffff9a653b60 RDI: ffffffff97b8d18f [ 17.502418][ C2] RBP: 0000000000000000 R08: 0000000000000000 R09: ffffed1006c266fa [ 17.502420][ C2] R10: ffff8880361337d3 R11: ffff888012b50558 R12: 0000000000000000 [ 17.502422][ C2] R13: ffff888001bf2300 R14: dffffc0000000000 R15: 0000000000000000 [ 17.502426][ C2] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 17.502429][ C2] ? cpuidle_idle_call+0x26f/0x3a0 [ 17.502433][ C2] default_idle+0x9/0x10 [ 17.502436][ C2] default_idle_call+0x6d/0xb0 [ 17.502438][ C2] cpuidle_idle_call+0x26f/0x3a0 [ 17.502441][ C2] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 17.502445][ C2] ? tsc_verify_tsc_adjust+0x98/0x310 [ 17.502450][ C2] do_idle+0xf6/0x160 [ 17.502453][ C2] cpu_startup_entry+0x54/0x60 [ 17.502456][ C2] start_secondary+0x213/0x2a0 [ 17.502458][ C2] ? __pfx_start_secondary+0x10/0x10 [ 17.502463][ C2] common_startup_64+0x13e/0x148 [ 17.502470][ C2]