[ 19.993785][ C2] [ 19.993942][ C2] ================================ [ 19.994156][ C2] WARNING: inconsistent lock state [ 19.994369][ C2] 6.15.0-virtme #1 Not tainted [ 19.994571][ C2] -------------------------------- [ 19.994779][ C2] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 19.995038][ C2] swapper/2/0 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 19.995303][ C2] ffffffff96dc5af8 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 19.995745][ C2] {SOFTIRQ-ON-W} state was registered at: [ 19.995934][ C2] __lock_acquire+0x20b/0x7e0 [ 19.996167][ C2] lock_acquire.part.0+0xb6/0x240 [ 19.996478][ C2] _raw_spin_lock+0x33/0x40 [ 19.996671][ C2] simple_pin_fs+0x24/0x150 [ 19.996869][ C2] start_creating.part.0+0x52/0x310 [ 19.997057][ C2] debugfs_create_dir+0x6a/0x540 [ 19.997244][ C2] component_debug_init+0x17/0x30 [ 19.997442][ C2] do_one_initcall+0x8f/0x1e0 [ 19.997633][ C2] do_initcalls+0x176/0x280 [ 19.997825][ C2] kernel_init_freeable+0x22d/0x300 [ 19.998011][ C2] kernel_init+0x20/0x200 [ 19.998195][ C2] ret_from_fork+0x240/0x320 [ 19.998387][ C2] ret_from_fork_asm+0x1a/0x30 [ 19.998572][ C2] irq event stamp: 305160 [ 19.998712][ C2] hardirqs last enabled at (305160): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 19.999084][ C2] hardirqs last disabled at (305159): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 19.999473][ C2] softirqs last enabled at (304616): [] handle_softirqs+0x358/0x620 [ 19.999799][ C2] softirqs last disabled at (304629): [] __irq_exit_rcu+0xfa/0x160 [ 20.000163][ C2] [ 20.000163][ C2] other info that might help us debug this: [ 20.000549][ C2] Possible unsafe locking scenario: [ 20.000549][ C2] [ 20.000836][ C2] CPU0 [ 20.001027][ C2] ---- [ 20.001177][ C2] lock(pin_fs_lock); [ 20.001361][ C2] [ 20.001508][ C2] lock(pin_fs_lock); [ 20.001653][ C2] [ 20.001653][ C2] *** DEADLOCK *** [ 20.001653][ C2] [ 20.001934][ C2] 1 lock held by swapper/2/0: [ 20.002132][ C2] #0: ffffffff96b774c0 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 20.002601][ C2] [ 20.002601][ C2] stack backtrace: [ 20.002845][ C2] CPU: 2 UID: 0 PID: 0 Comm: swapper/2 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 20.002850][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 20.002852][ C2] Call Trace: [ 20.002854][ C2] [ 20.002857][ C2] dump_stack_lvl+0x82/0xd0 [ 20.002864][ C2] print_usage_bug.part.0+0x25f/0x360 [ 20.002870][ C2] mark_lock_irq+0x343/0x400 [ 20.002874][ C2] ? __pfx_unwind_next_frame+0x10/0x10 [ 20.002880][ C2] ? save_trace+0x52/0x170 [ 20.002885][ C2] mark_lock+0x174/0x2f0 [ 20.002889][ C2] mark_usage+0x46/0x150 [ 20.002892][ C2] __lock_acquire+0x20b/0x7e0 [ 20.002895][ C2] ? __lock_acquire+0x44d/0x7e0 [ 20.002900][ C2] lock_acquire.part.0+0xb6/0x240 [ 20.002903][ C2] ? simple_pin_fs+0x24/0x150 [ 20.002908][ C2] ? rcu_is_watching+0x12/0xc0 [ 20.002912][ C2] ? lock_acquire+0x10c/0x170 [ 20.002914][ C2] ? simple_pin_fs+0x24/0x150 [ 20.002919][ C2] _raw_spin_lock+0x33/0x40 [ 20.002924][ C2] ? simple_pin_fs+0x24/0x150 [ 20.002927][ C2] simple_pin_fs+0x24/0x150 [ 20.002931][ C2] debugfs_remove+0x35/0x70 [ 20.002936][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 20.002942][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 20.002946][ C2] ? __sk_destruct+0x383/0x780 [ 20.002951][ C2] ? rcu_do_batch+0x34c/0xf20 [ 20.002954][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 20.002957][ C2] ? irq_exit_rcu+0xe/0x30 [ 20.002961][ C2] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 20.002965][ C2] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 20.002968][ C2] ? pv_native_safe_halt+0xf/0x20 [ 20.002972][ C2] ? default_idle+0x9/0x10 [ 20.002974][ C2] ? default_idle_call+0x6d/0xb0 [ 20.002977][ C2] ? cpuidle_idle_call+0x26f/0x3a0 [ 20.002981][ C2] ? do_idle+0xf6/0x160 [ 20.002983][ C2] ? cpu_startup_entry+0x54/0x60 [ 20.002985][ C2] ? start_secondary+0x213/0x2a0 [ 20.002989][ C2] ? common_startup_64+0x13e/0x148 [ 20.002996][ C2] __put_net+0x19/0x60 [ 20.003000][ C2] __sk_destruct+0x58a/0x780 [ 20.003004][ C2] ? rcu_do_batch+0x34a/0xf20 [ 20.003007][ C2] rcu_do_batch+0x34c/0xf20 [ 20.003010][ C2] ? find_held_lock+0x2b/0x80 [ 20.003014][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 20.003017][ C2] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 20.003021][ C2] ? lockdep_hardirqs_on+0x7c/0x110 [ 20.003024][ C2] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 20.003029][ C2] rcu_core+0x2bb/0x500 [ 20.003033][ C2] handle_softirqs+0x218/0x620 [ 20.003038][ C2] __irq_exit_rcu+0xfa/0x160 [ 20.003042][ C2] irq_exit_rcu+0xe/0x30 [ 20.003044][ C2] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 20.003048][ C2] [ 20.003049][ C2] [ 20.003050][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 20.003053][ C2] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 20.003057][ 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 [ 20.003060][ C2] RSP: 0018:ffffc90000147de8 EFLAGS: 00000246 [ 20.003064][ C2] RAX: 000000000004a5f3 RBX: 1ffff92000028fc1 RCX: ffffffff95b8f5d9 [ 20.003066][ C2] RDX: 0000000000000000 RSI: ffffffff9668f4e4 RDI: ffffffff95e53be0 [ 20.003068][ C2] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c266fa [ 20.003069][ C2] R10: ffff8880361337d3 R11: ffffffff96811288 R12: 0000000000000000 [ 20.003071][ C2] R13: ffff888001bf2300 R14: dffffc0000000000 R15: 0000000000000000 [ 20.003075][ C2] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 20.003080][ C2] default_idle+0x9/0x10 [ 20.003083][ C2] default_idle_call+0x6d/0xb0 [ 20.003086][ C2] cpuidle_idle_call+0x26f/0x3a0 [ 20.003089][ C2] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 20.003093][ C2] ? tsc_verify_tsc_adjust+0x98/0x310 [ 20.003097][ C2] do_idle+0xf6/0x160 [ 20.003101][ C2] cpu_startup_entry+0x54/0x60 [ 20.003104][ C2] start_secondary+0x213/0x2a0 [ 20.003106][ C2] ? __pfx_start_secondary+0x10/0x10 [ 20.003111][ C2] common_startup_64+0x13e/0x148 [ 20.003118][ C2] [ 20.020254][ C2] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 20.020807][ C2] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/2 [ 20.021196][ C2] preempt_count: 101, expected: 0 [ 20.021411][ C2] RCU nest depth: 0, expected: 0 [ 20.021604][ C2] INFO: lockdep is turned off. [ 20.021804][ C2] Preemption disabled at: [ 20.021806][ C2] [<0000000000000000>] 0x0 [ 20.022206][ C2] CPU: 2 UID: 0 PID: 0 Comm: swapper/2 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 20.022213][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 20.022215][ C2] Call Trace: [ 20.022217][ C2] [ 20.022220][ C2] dump_stack_lvl+0xb0/0xd0 [ 20.022229][ C2] __might_resched+0x360/0x5a0 [ 20.022236][ C2] down_write+0x72/0x210 [ 20.022241][ C2] ? __pfx_down_write+0x10/0x10 [ 20.022244][ C2] ? simple_recursive_removal+0x33/0x610 [ 20.022248][ C2] ? rcu_is_watching+0x12/0xc0 [ 20.022253][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 20.022258][ C2] simple_recursive_removal+0x6a/0x610 [ 20.022261][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 20.022264][ C2] ? __pfx_remove_one+0x10/0x10 [ 20.022270][ C2] debugfs_remove+0x44/0x70 [ 20.022273][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 20.022279][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 20.022283][ C2] ? __sk_destruct+0x383/0x780 [ 20.022288][ C2] ? rcu_do_batch+0x34c/0xf20 [ 20.022291][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 20.022294][ C2] ? irq_exit_rcu+0xe/0x30 [ 20.022299][ C2] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 20.022304][ C2] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 20.022308][ C2] ? pv_native_safe_halt+0xf/0x20 [ 20.022311][ C2] ? default_idle+0x9/0x10 [ 20.022314][ C2] ? default_idle_call+0x6d/0xb0 [ 20.022343][ C2] ? cpuidle_idle_call+0x26f/0x3a0 [ 20.022347][ C2] ? do_idle+0xf6/0x160 [ 20.022349][ C2] ? cpu_startup_entry+0x54/0x60 [ 20.022352][ C2] ? start_secondary+0x213/0x2a0 [ 20.022355][ C2] ? common_startup_64+0x13e/0x148 [ 20.022363][ C2] __put_net+0x19/0x60 [ 20.022367][ C2] __sk_destruct+0x58a/0x780 [ 20.022371][ C2] ? rcu_do_batch+0x34a/0xf20 [ 20.022374][ C2] rcu_do_batch+0x34c/0xf20 [ 20.022377][ C2] ? find_held_lock+0x2b/0x80 [ 20.022383][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 20.022386][ C2] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 20.022391][ C2] ? lockdep_hardirqs_on+0x7c/0x110 [ 20.022394][ C2] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 20.022399][ C2] rcu_core+0x2bb/0x500 [ 20.022403][ C2] handle_softirqs+0x218/0x620 [ 20.022409][ C2] __irq_exit_rcu+0xfa/0x160 [ 20.022412][ C2] irq_exit_rcu+0xe/0x30 [ 20.022414][ C2] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 20.022418][ C2] [ 20.022419][ C2] [ 20.022421][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 20.022424][ C2] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 20.022428][ 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 [ 20.022431][ C2] RSP: 0018:ffffc90000147de8 EFLAGS: 00000246 [ 20.022434][ C2] RAX: 000000000004a5f3 RBX: 1ffff92000028fc1 RCX: ffffffff95b8f5d9 [ 20.022436][ C2] RDX: 0000000000000000 RSI: ffffffff9668f4e4 RDI: ffffffff95e53be0 [ 20.022438][ C2] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c266fa [ 20.022440][ C2] R10: ffff8880361337d3 R11: ffffffff96811288 R12: 0000000000000000 [ 20.022442][ C2] R13: ffff888001bf2300 R14: dffffc0000000000 R15: 0000000000000000 [ 20.022445][ C2] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 20.022450][ C2] default_idle+0x9/0x10 [ 20.022453][ C2] default_idle_call+0x6d/0xb0 [ 20.022456][ C2] cpuidle_idle_call+0x26f/0x3a0 [ 20.022459][ C2] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 20.022462][ C2] ? tsc_verify_tsc_adjust+0x98/0x310 [ 20.022467][ C2] do_idle+0xf6/0x160 [ 20.022470][ C2] cpu_startup_entry+0x54/0x60 [ 20.022473][ C2] start_secondary+0x213/0x2a0 [ 20.022476][ C2] ? __pfx_start_secondary+0x10/0x10 [ 20.022481][ C2] common_startup_64+0x13e/0x148 [ 20.022491][ C2] [ 24.151622][ C0] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 24.152124][ C0] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/0 [ 24.152784][ C0] preempt_count: 101, expected: 0 [ 24.153029][ C0] RCU nest depth: 0, expected: 0 [ 24.153235][ C0] INFO: lockdep is turned off. [ 24.153448][ C0] Preemption disabled at: [ 24.153450][ C0] [] schedule_preempt_disabled+0x22/0x30 [ 24.153901][ C0] CPU: 0 UID: 0 PID: 0 Comm: swapper/0 Tainted: G W 6.15.0-virtme #1 PREEMPT(full) [ 24.153907][ C0] Tainted: [W]=WARN [ 24.153908][ C0] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 24.153910][ C0] Call Trace: [ 24.153913][ C0] [ 24.153914][ C0] dump_stack_lvl+0xb0/0xd0 [ 24.153921][ C0] __might_resched+0x360/0x5a0 [ 24.153928][ C0] down_write+0x72/0x210 [ 24.153933][ C0] ? __pfx_down_write+0x10/0x10 [ 24.153935][ C0] ? simple_recursive_removal+0x33/0x610 [ 24.153940][ C0] ? rcu_is_watching+0x12/0xc0 [ 24.153945][ C0] ? do_raw_spin_unlock+0x58/0x220 [ 24.153952][ C0] simple_recursive_removal+0x6a/0x610 [ 24.153956][ C0] ? do_raw_spin_unlock+0x58/0x220 [ 24.153961][ C0] ? __pfx_remove_one+0x10/0x10 [ 24.153969][ C0] debugfs_remove+0x44/0x70 [ 24.153974][ C0] ref_tracker_dir_exit+0xcf/0x740 [ 24.153982][ C0] ? __pfx_ref_tracker_free+0x10/0x10 [ 24.153987][ C0] ? __sk_destruct+0x383/0x780 [ 24.153994][ C0] ? rcu_do_batch+0x34c/0xf20 [ 24.154000][ C0] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 24.154006][ C0] ? irq_exit_rcu+0xe/0x30 [ 24.154012][ C0] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 24.154019][ C0] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 24.154024][ C0] ? pv_native_safe_halt+0xf/0x20 [ 24.154028][ C0] ? default_idle+0x9/0x10 [ 24.154032][ C0] ? default_idle_call+0x6d/0xb0 [ 24.154036][ C0] ? cpuidle_idle_call+0x26f/0x3a0 [ 24.154042][ C0] ? do_idle+0xf6/0x160 [ 24.154046][ C0] ? cpu_startup_entry+0x54/0x60 [ 24.154050][ C0] ? rest_init+0x14b/0x260 [ 24.154056][ C0] ? start_kernel+0x350/0x410 [ 24.154063][ C0] ? bpf_sk_storage_free+0x9f/0x1c0 [ 24.154069][ C0] ? rcu_is_watching+0x12/0xc0 [ 24.154077][ C0] __put_net+0x19/0x60 [ 24.154084][ C0] __sk_destruct+0x58a/0x780 [ 24.154090][ C0] ? rcu_do_batch+0x34a/0xf20 [ 24.154094][ C0] rcu_do_batch+0x34c/0xf20 [ 24.154104][ C0] ? __pfx_rcu_do_batch+0x10/0x10 [ 24.154110][ C0] ? trace_irq_enable.constprop.0+0xd4/0x130 [ 24.154120][ C0] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 24.154129][ C0] rcu_core+0x2bb/0x500 [ 24.154137][ C0] handle_softirqs+0x218/0x620 [ 24.154146][ C0] __irq_exit_rcu+0xfa/0x160 [ 24.154151][ C0] irq_exit_rcu+0xe/0x30 [ 24.154156][ C0] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 24.154161][ C0] [ 24.154163][ C0] [ 24.154166][ C0] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 24.154172][ C0] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 24.154178][ 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 [ 24.154183][ C0] RSP: 0018:ffffffff96807df8 EFLAGS: 00000246 [ 24.154188][ C0] RAX: 0000000000000000 RBX: 1ffffffff2d00fc3 RCX: ffffffff95b8f5d9 [ 24.154192][ C0] RDX: ffffed1006c066fb RSI: ffffffff95e53b60 RDI: ffffffff9338d18f [ 24.154196][ C0] RBP: 0000000000000000 R08: 0000000000000000 R09: ffffed1006c066fa [ 24.154199][ C0] R10: ffff8880360337d3 R11: ffffffff994910f0 R12: 0000000000000000 [ 24.154202][ C0] R13: ffffffff9681f240 R14: dffffc0000000000 R15: 0000000000014770 [ 24.154210][ C0] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 24.154217][ C0] ? cpuidle_idle_call+0x26f/0x3a0 [ 24.154225][ C0] default_idle+0x9/0x10 [ 24.154229][ C0] default_idle_call+0x6d/0xb0 [ 24.154234][ C0] cpuidle_idle_call+0x26f/0x3a0 [ 24.154240][ C0] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 24.154247][ C0] ? tsc_verify_tsc_adjust+0x98/0x310 [ 24.154256][ C0] do_idle+0xf6/0x160 [ 24.154261][ C0] cpu_startup_entry+0x54/0x60 [ 24.154266][ C0] rest_init+0x14b/0x260 [ 24.154273][ C0] start_kernel+0x350/0x410 [ 24.154279][ C0] x86_64_start_reservations+0x18/0x30 [ 24.154286][ C0] x86_64_start_kernel+0xf8/0x150 [ 24.154292][ C0] common_startup_64+0x13e/0x148 [ 24.154307][ C0]