[ 15.352232][ C2] [ 15.352381][ C2] ================================ [ 15.352583][ C2] WARNING: inconsistent lock state [ 15.352785][ C2] 6.15.0-virtme #1 Not tainted [ 15.352993][ C2] -------------------------------- [ 15.353193][ C2] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 15.353440][ C2] swapper/2/0 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 15.353690][ C2] ffffffff8afc5af8 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 15.354048][ C2] {SOFTIRQ-ON-W} state was registered at: [ 15.354249][ C2] __lock_acquire+0x20b/0x7e0 [ 15.354454][ C2] lock_acquire.part.0+0xb6/0x240 [ 15.354653][ C2] _raw_spin_lock+0x33/0x40 [ 15.354854][ C2] simple_pin_fs+0x24/0x150 [ 15.355054][ C2] start_creating.part.0+0x52/0x310 [ 15.355254][ C2] debugfs_create_dir+0x6a/0x540 [ 15.355449][ C2] component_debug_init+0x17/0x30 [ 15.355652][ C2] do_one_initcall+0x8f/0x1e0 [ 15.355855][ C2] do_initcalls+0x176/0x280 [ 15.356055][ C2] kernel_init_freeable+0x22d/0x300 [ 15.356255][ C2] kernel_init+0x20/0x200 [ 15.356456][ C2] ret_from_fork+0x240/0x320 [ 15.356654][ C2] ret_from_fork_asm+0x1a/0x30 [ 15.356855][ C2] irq event stamp: 250842 [ 15.357005][ C2] hardirqs last enabled at (250842): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 15.357403][ C2] hardirqs last disabled at (250841): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 15.357801][ C2] softirqs last enabled at (249882): [] handle_softirqs+0x358/0x620 [ 15.358147][ C2] softirqs last disabled at (249907): [] __irq_exit_rcu+0xfa/0x160 [ 15.358498][ C2] [ 15.358498][ C2] other info that might help us debug this: [ 15.358791][ C2] Possible unsafe locking scenario: [ 15.358791][ C2] [ 15.359087][ C2] CPU0 [ 15.359236][ C2] ---- [ 15.359381][ C2] lock(pin_fs_lock); [ 15.359535][ C2] [ 15.359685][ C2] lock(pin_fs_lock); [ 15.359838][ C2] [ 15.359838][ C2] *** DEADLOCK *** [ 15.359838][ C2] [ 15.360137][ C2] 1 lock held by swapper/2/0: [ 15.360342][ C2] #0: ffffffff8ad774c0 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 15.360698][ C2] [ 15.360698][ C2] stack backtrace: [ 15.360951][ C2] CPU: 2 UID: 0 PID: 0 Comm: swapper/2 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 15.360956][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 15.360958][ C2] Call Trace: [ 15.360960][ C2] [ 15.360962][ C2] dump_stack_lvl+0x82/0xd0 [ 15.360968][ C2] print_usage_bug.part.0+0x25f/0x360 [ 15.360973][ C2] mark_lock_irq+0x343/0x400 [ 15.360977][ C2] ? __pfx_unwind_next_frame+0x10/0x10 [ 15.360982][ C2] ? save_trace+0x52/0x170 [ 15.360988][ C2] mark_lock+0x174/0x2f0 [ 15.360992][ C2] mark_usage+0x46/0x150 [ 15.360995][ C2] __lock_acquire+0x20b/0x7e0 [ 15.360998][ C2] ? __lock_acquire+0x44d/0x7e0 [ 15.361002][ C2] lock_acquire.part.0+0xb6/0x240 [ 15.361005][ C2] ? simple_pin_fs+0x24/0x150 [ 15.361009][ C2] ? rcu_is_watching+0x12/0xc0 [ 15.361013][ C2] ? lock_acquire+0x10c/0x170 [ 15.361016][ C2] ? simple_pin_fs+0x24/0x150 [ 15.361021][ C2] _raw_spin_lock+0x33/0x40 [ 15.361024][ C2] ? simple_pin_fs+0x24/0x150 [ 15.361027][ C2] simple_pin_fs+0x24/0x150 [ 15.361031][ C2] debugfs_remove+0x35/0x70 [ 15.361034][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 15.361040][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 15.361044][ C2] ? __sk_destruct+0x383/0x780 [ 15.361049][ C2] ? rcu_do_batch+0x34c/0xf20 [ 15.361052][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 15.361055][ C2] ? irq_exit_rcu+0xe/0x30 [ 15.361058][ C2] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 15.361062][ C2] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 15.361066][ C2] ? pv_native_safe_halt+0xf/0x20 [ 15.361069][ C2] ? default_idle+0x9/0x10 [ 15.361072][ C2] ? default_idle_call+0x6d/0xb0 [ 15.361074][ C2] ? cpuidle_idle_call+0x26f/0x3a0 [ 15.361078][ C2] ? do_idle+0xf6/0x160 [ 15.361080][ C2] ? cpu_startup_entry+0x54/0x60 [ 15.361083][ C2] ? start_secondary+0x213/0x2a0 [ 15.361086][ C2] ? common_startup_64+0x13e/0x148 [ 15.361093][ C2] __put_net+0x19/0x60 [ 15.361097][ C2] __sk_destruct+0x58a/0x780 [ 15.361101][ C2] ? rcu_do_batch+0x34a/0xf20 [ 15.361103][ C2] rcu_do_batch+0x34c/0xf20 [ 15.361107][ C2] ? find_held_lock+0x2b/0x80 [ 15.361111][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 15.361114][ C2] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 15.361118][ C2] ? lockdep_hardirqs_on+0x7c/0x110 [ 15.361121][ C2] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 15.361126][ C2] rcu_core+0x2bb/0x500 [ 15.361130][ C2] handle_softirqs+0x218/0x620 [ 15.361135][ C2] __irq_exit_rcu+0xfa/0x160 [ 15.361138][ C2] irq_exit_rcu+0xe/0x30 [ 15.361141][ C2] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 15.361145][ C2] [ 15.361146][ C2] [ 15.361147][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 15.361150][ C2] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 15.361154][ 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 [ 15.361157][ C2] RSP: 0018:ffffc90000147de8 EFLAGS: 00000242 [ 15.361160][ C2] RAX: 000000000003d031 RBX: 1ffff92000028fc1 RCX: ffffffff89d8f5d9 [ 15.361162][ C2] RDX: 0000000000000000 RSI: ffffffff8a88f4e4 RDI: ffffffff8a053be0 [ 15.361164][ C2] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c266fa [ 15.361165][ C2] R10: ffff8880361337d3 R11: ffffffff8aa11288 R12: 0000000000000000 [ 15.361167][ C2] R13: ffff888001bf2300 R14: dffffc0000000000 R15: 0000000000000000 [ 15.361171][ C2] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 15.361176][ C2] default_idle+0x9/0x10 [ 15.361178][ C2] default_idle_call+0x6d/0xb0 [ 15.361181][ C2] cpuidle_idle_call+0x26f/0x3a0 [ 15.361184][ C2] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 15.361188][ C2] ? tsc_verify_tsc_adjust+0x98/0x310 [ 15.361193][ C2] do_idle+0xf6/0x160 [ 15.361196][ C2] cpu_startup_entry+0x54/0x60 [ 15.361199][ C2] start_secondary+0x213/0x2a0 [ 15.361202][ C2] ? __pfx_start_secondary+0x10/0x10 [ 15.361207][ C2] common_startup_64+0x13e/0x148 [ 15.361214][ C2] [ 15.377917][ C2] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 15.378259][ C2] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/2 [ 15.378603][ C2] preempt_count: 101, expected: 0 [ 15.378910][ C2] RCU nest depth: 0, expected: 0 [ 15.379110][ C2] INFO: lockdep is turned off. [ 15.379309][ C2] Preemption disabled at: [ 15.379311][ C2] [<0000000000000000>] 0x0 [ 15.379897][ C2] CPU: 2 UID: 0 PID: 0 Comm: swapper/2 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 15.379902][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 15.379904][ C2] Call Trace: [ 15.379905][ C2] [ 15.379907][ C2] dump_stack_lvl+0xb0/0xd0 [ 15.379914][ C2] __might_resched+0x360/0x5a0 [ 15.379921][ C2] down_write+0x72/0x210 [ 15.379925][ C2] ? __pfx_down_write+0x10/0x10 [ 15.379928][ C2] ? simple_recursive_removal+0x33/0x610 [ 15.379932][ C2] ? rcu_is_watching+0x12/0xc0 [ 15.379937][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 15.379943][ C2] simple_recursive_removal+0x6a/0x610 [ 15.379946][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 15.379949][ C2] ? __pfx_remove_one+0x10/0x10 [ 15.379954][ C2] debugfs_remove+0x44/0x70 [ 15.379958][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 15.379963][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 15.379967][ C2] ? __sk_destruct+0x383/0x780 [ 15.379972][ C2] ? rcu_do_batch+0x34c/0xf20 [ 15.379975][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 15.379978][ C2] ? irq_exit_rcu+0xe/0x30 [ 15.379983][ C2] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 15.379987][ C2] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 15.379992][ C2] ? pv_native_safe_halt+0xf/0x20 [ 15.379995][ C2] ? default_idle+0x9/0x10 [ 15.379998][ C2] ? default_idle_call+0x6d/0xb0 [ 15.380000][ C2] ? cpuidle_idle_call+0x26f/0x3a0 [ 15.380004][ C2] ? do_idle+0xf6/0x160 [ 15.380006][ C2] ? cpu_startup_entry+0x54/0x60 [ 15.380009][ C2] ? start_secondary+0x213/0x2a0 [ 15.380012][ C2] ? common_startup_64+0x13e/0x148 [ 15.380019][ C2] __put_net+0x19/0x60 [ 15.380023][ C2] __sk_destruct+0x58a/0x780 [ 15.380027][ C2] ? rcu_do_batch+0x34a/0xf20 [ 15.380029][ C2] rcu_do_batch+0x34c/0xf20 [ 15.380032][ C2] ? find_held_lock+0x2b/0x80 [ 15.380038][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 15.380041][ C2] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 15.380045][ C2] ? lockdep_hardirqs_on+0x7c/0x110 [ 15.380048][ C2] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 15.380053][ C2] rcu_core+0x2bb/0x500 [ 15.380057][ C2] handle_softirqs+0x218/0x620 [ 15.380062][ C2] __irq_exit_rcu+0xfa/0x160 [ 15.380065][ C2] irq_exit_rcu+0xe/0x30 [ 15.380068][ C2] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 15.380072][ C2] [ 15.380073][ C2] [ 15.380074][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 15.380077][ C2] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 15.380081][ 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 [ 15.380083][ C2] RSP: 0018:ffffc90000147de8 EFLAGS: 00000242 [ 15.380086][ C2] RAX: 000000000003d031 RBX: 1ffff92000028fc1 RCX: ffffffff89d8f5d9 [ 15.380088][ C2] RDX: 0000000000000000 RSI: ffffffff8a88f4e4 RDI: ffffffff8a053be0 [ 15.380090][ C2] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c266fa [ 15.380092][ C2] R10: ffff8880361337d3 R11: ffffffff8aa11288 R12: 0000000000000000 [ 15.380093][ C2] R13: ffff888001bf2300 R14: dffffc0000000000 R15: 0000000000000000 [ 15.380097][ C2] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 15.380102][ C2] default_idle+0x9/0x10 [ 15.380104][ C2] default_idle_call+0x6d/0xb0 [ 15.380107][ C2] cpuidle_idle_call+0x26f/0x3a0 [ 15.380110][ C2] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 15.380114][ C2] ? tsc_verify_tsc_adjust+0x98/0x310 [ 15.380118][ C2] do_idle+0xf6/0x160 [ 15.380121][ C2] cpu_startup_entry+0x54/0x60 [ 15.380124][ C2] start_secondary+0x213/0x2a0 [ 15.380127][ C2] ? __pfx_start_secondary+0x10/0x10 [ 15.380132][ C2] common_startup_64+0x13e/0x148 [ 15.380139][ C2] [ 17.063981][ T259] packetdrill (259) used greatest stack depth: 24432 bytes left [ 17.071696][ C0] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 17.072088][ C0] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/0 [ 17.072469][ C0] preempt_count: 101, expected: 0 [ 17.072687][ C0] RCU nest depth: 0, expected: 0 [ 17.072905][ C0] INFO: lockdep is turned off. [ 17.073109][ C0] Preemption disabled at: [ 17.073110][ C0] [] schedule_preempt_disabled+0x22/0x30 [ 17.073610][ C0] CPU: 0 UID: 0 PID: 0 Comm: swapper/0 Tainted: G W 6.15.0-virtme #1 PREEMPT(full) [ 17.073616][ C0] Tainted: [W]=WARN [ 17.073617][ C0] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 17.073619][ C0] Call Trace: [ 17.073621][ C0] [ 17.073623][ C0] dump_stack_lvl+0xb0/0xd0 [ 17.073630][ C0] __might_resched+0x360/0x5a0 [ 17.073637][ C0] down_write+0x72/0x210 [ 17.073641][ C0] ? __pfx_down_write+0x10/0x10 [ 17.073644][ C0] ? simple_recursive_removal+0x33/0x610 [ 17.073648][ C0] ? rcu_is_watching+0x12/0xc0 [ 17.073653][ C0] ? do_raw_spin_unlock+0x58/0x220 [ 17.073659][ C0] simple_recursive_removal+0x6a/0x610 [ 17.073662][ C0] ? do_raw_spin_unlock+0x58/0x220 [ 17.073665][ C0] ? __pfx_remove_one+0x10/0x10 [ 17.073671][ C0] debugfs_remove+0x44/0x70 [ 17.073674][ C0] ref_tracker_dir_exit+0xcf/0x740 [ 17.073680][ C0] ? __pfx_ref_tracker_free+0x10/0x10 [ 17.073683][ C0] ? __sk_destruct+0x383/0x780 [ 17.073689][ C0] ? rcu_do_batch+0x34c/0xf20 [ 17.073693][ C0] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 17.073696][ C0] ? irq_exit_rcu+0xe/0x30 [ 17.073701][ C0] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 17.073706][ C0] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 17.073710][ C0] ? pv_native_safe_halt+0xf/0x20 [ 17.073713][ C0] ? default_idle+0x9/0x10 [ 17.073716][ C0] ? default_idle_call+0x6d/0xb0 [ 17.073718][ C0] ? cpuidle_idle_call+0x26f/0x3a0 [ 17.073722][ C0] ? do_idle+0xf6/0x160 [ 17.073724][ C0] ? cpu_startup_entry+0x54/0x60 [ 17.073726][ C0] ? rest_init+0x14b/0x260 [ 17.073729][ C0] ? start_kernel+0x350/0x410 [ 17.073735][ C0] ? bpf_sk_storage_free+0x9f/0x1c0 [ 17.073739][ C0] ? rcu_is_watching+0x12/0xc0 [ 17.073743][ C0] __put_net+0x19/0x60 [ 17.073747][ C0] __sk_destruct+0x58a/0x780 [ 17.073751][ C0] ? rcu_do_batch+0x34a/0xf20 [ 17.073753][ C0] rcu_do_batch+0x34c/0xf20 [ 17.073758][ C0] ? __pfx_rcu_do_batch+0x10/0x10 [ 17.073761][ C0] ? trace_irq_enable.constprop.0+0xd4/0x130 [ 17.073767][ C0] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 17.073773][ C0] rcu_core+0x2bb/0x500 [ 17.073777][ C0] handle_softirqs+0x218/0x620 [ 17.073783][ C0] __irq_exit_rcu+0xfa/0x160 [ 17.073786][ C0] irq_exit_rcu+0xe/0x30 [ 17.073789][ C0] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 17.073793][ C0] [ 17.073794][ C0] [ 17.073795][ C0] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 17.073798][ C0] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 17.073802][ C0] 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.073805][ C0] RSP: 0018:ffffffff8aa07df8 EFLAGS: 00000246 [ 17.073809][ C0] RAX: 0000000000000000 RBX: 1ffffffff1540fc3 RCX: ffffffff89d8f5d9 [ 17.073811][ C0] RDX: ffffed1006c066fb RSI: ffffffff8a053b60 RDI: ffffffff8758d18f [ 17.073813][ C0] RBP: 0000000000000000 R08: 0000000000000000 R09: ffffed1006c066fa [ 17.073815][ C0] R10: ffff8880360337d3 R11: ffff888001b18558 R12: 0000000000000000 [ 17.073816][ C0] R13: ffffffff8aa1f240 R14: dffffc0000000000 R15: 0000000000014770 [ 17.073820][ C0] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 17.073823][ C0] ? cpuidle_idle_call+0x26f/0x3a0 [ 17.073827][ C0] default_idle+0x9/0x10 [ 17.073830][ C0] default_idle_call+0x6d/0xb0 [ 17.073832][ C0] cpuidle_idle_call+0x26f/0x3a0 [ 17.073835][ C0] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 17.073839][ C0] ? tsc_verify_tsc_adjust+0x98/0x310 [ 17.073845][ C0] do_idle+0xf6/0x160 [ 17.073849][ C0] cpu_startup_entry+0x54/0x60 [ 17.073851][ C0] rest_init+0x14b/0x260 [ 17.073855][ C0] start_kernel+0x350/0x410 [ 17.073859][ C0] x86_64_start_reservations+0x18/0x30 [ 17.073863][ C0] x86_64_start_kernel+0xf8/0x150 [ 17.073867][ C0] common_startup_64+0x13e/0x148 [ 17.073876][ C0]