[ 13.610250][ C3] [ 13.610454][ C3] ================================ [ 13.610754][ C3] WARNING: inconsistent lock state [ 13.611046][ C3] 6.15.0-rc5-virtme #1 Not tainted [ 13.611341][ C3] -------------------------------- [ 13.611636][ C3] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 13.612010][ C3] swapper/3/0 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 13.612372][ C3] ffffffffba9bf978 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 13.612895][ C3] {SOFTIRQ-ON-W} state was registered at: [ 13.613180][ C3] __lock_acquire+0x3eb/0x9d0 [ 13.613471][ C3] lock_acquire.part.0+0xb6/0x240 [ 13.613769][ C3] _raw_spin_lock+0x33/0x40 [ 13.614062][ C3] simple_pin_fs+0x24/0x150 [ 13.614347][ C3] start_creating.part.0+0x3f/0x2f0 [ 13.614648][ C3] debugfs_create_dir+0x6a/0x540 [ 13.614946][ C3] component_debug_init+0x17/0x30 [ 13.615243][ C3] do_one_initcall+0x8c/0x1e0 [ 13.615536][ C3] do_initcalls+0x176/0x280 [ 13.615832][ C3] kernel_init_freeable+0x22d/0x300 [ 13.616128][ C3] kernel_init+0x20/0x200 [ 13.616423][ C3] ret_from_fork+0x31/0x70 [ 13.616723][ C3] ret_from_fork_asm+0x1a/0x30 [ 13.617012][ C3] irq event stamp: 229438 [ 13.617233][ C3] hardirqs last enabled at (229438): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 13.617818][ C3] hardirqs last disabled at (229437): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 13.618432][ C3] softirqs last enabled at (229096): [] handle_softirqs+0x358/0x620 [ 13.618779][ C3] softirqs last disabled at (229121): [] __irq_exit_rcu+0xfa/0x160 [ 13.619114][ C3] [ 13.619114][ C3] other info that might help us debug this: [ 13.619389][ C3] Possible unsafe locking scenario: [ 13.619389][ C3] [ 13.619664][ C3] CPU0 [ 13.619803][ C3] ---- [ 13.619942][ C3] lock(pin_fs_lock); [ 13.620131][ C3] [ 13.620304][ C3] lock(pin_fs_lock); [ 13.620469][ C3] [ 13.620469][ C3] *** DEADLOCK *** [ 13.620469][ C3] [ 13.620795][ C3] 1 lock held by swapper/3/0: [ 13.621021][ C3] #0: ffffffffba774480 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 13.621417][ C3] [ 13.621417][ C3] stack backtrace: [ 13.621699][ C3] CPU: 3 UID: 0 PID: 0 Comm: swapper/3 Not tainted 6.15.0-rc5-virtme #1 PREEMPT(full) [ 13.621704][ C3] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 13.621706][ C3] Call Trace: [ 13.621708][ C3] [ 13.621710][ C3] dump_stack_lvl+0x82/0xd0 [ 13.621716][ C3] print_usage_bug.part.0+0x25f/0x360 [ 13.621721][ C3] mark_lock_irq+0x343/0x400 [ 13.621725][ C3] ? __pfx_unwind_next_frame+0x10/0x10 [ 13.621729][ C3] ? save_trace+0x52/0x170 [ 13.621735][ C3] mark_lock+0x174/0x2f0 [ 13.621738][ C3] mark_usage+0x46/0x150 [ 13.621740][ C3] __lock_acquire+0x3eb/0x9d0 [ 13.621745][ C3] lock_acquire.part.0+0xb6/0x240 [ 13.621748][ C3] ? simple_pin_fs+0x24/0x150 [ 13.621752][ C3] ? rcu_is_watching+0x12/0xc0 [ 13.621755][ C3] ? lock_acquire+0x10c/0x170 [ 13.621757][ C3] ? simple_pin_fs+0x24/0x150 [ 13.621761][ C3] _raw_spin_lock+0x33/0x40 [ 13.621764][ C3] ? simple_pin_fs+0x24/0x150 [ 13.621766][ C3] simple_pin_fs+0x24/0x150 [ 13.621769][ C3] debugfs_remove+0x35/0x70 [ 13.621775][ C3] ref_tracker_dir_exit+0xcf/0x740 [ 13.621780][ C3] ? __pfx_ref_tracker_free+0x10/0x10 [ 13.621783][ C3] ? __sk_destruct+0x383/0x780 [ 13.621788][ C3] ? rcu_do_batch+0x34c/0xf20 [ 13.621791][ C3] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 13.621794][ C3] ? irq_exit_rcu+0xe/0x30 [ 13.621797][ C3] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 13.621801][ C3] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 13.621805][ C3] ? pv_native_safe_halt+0xf/0x20 [ 13.621807][ C3] ? default_idle+0x9/0x10 [ 13.621811][ C3] ? default_idle_call+0x6d/0xb0 [ 13.621813][ C3] ? cpuidle_idle_call+0x26f/0x3a0 [ 13.621816][ C3] ? do_idle+0xf6/0x160 [ 13.621819][ C3] ? cpu_startup_entry+0x54/0x60 [ 13.621821][ C3] ? start_secondary+0x213/0x2a0 [ 13.621824][ C3] ? common_startup_64+0x13e/0x148 [ 13.621830][ C3] __put_net+0x19/0x60 [ 13.621833][ C3] __sk_destruct+0x58a/0x780 [ 13.621837][ C3] ? rcu_do_batch+0x34a/0xf20 [ 13.621840][ C3] rcu_do_batch+0x34c/0xf20 [ 13.621844][ C3] ? find_held_lock+0x2b/0x80 [ 13.621848][ C3] ? __pfx_rcu_do_batch+0x10/0x10 [ 13.621852][ C3] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 13.621855][ C3] ? lockdep_hardirqs_on+0x7c/0x110 [ 13.621859][ C3] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 13.621863][ C3] rcu_core+0x2bb/0x500 [ 13.621867][ C3] handle_softirqs+0x218/0x620 [ 13.621872][ C3] __irq_exit_rcu+0xfa/0x160 [ 13.621874][ C3] irq_exit_rcu+0xe/0x30 [ 13.621877][ C3] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 13.621880][ C3] [ 13.621881][ C3] [ 13.621882][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 13.621885][ C3] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 13.621889][ C3] Code: a0 b7 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 a3 a0 12 00 fb f4 cc cc cc cc 66 2e 0f 1f 84 00 00 00 00 00 66 90 90 90 90 90 90 [ 13.621892][ C3] RSP: 0018:ffffc90000157de8 EFLAGS: 00000246 [ 13.621895][ C3] RAX: 0000000000037eff RBX: 1ffff9200002afc1 RCX: ffffffffb9768a19 [ 13.621898][ C3] RDX: 0000000000000000 RSI: ffffffffba2881e1 RDI: ffffffffb9a50e20 [ 13.621899][ C3] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1005eb667a [ 13.621901][ C3] R10: ffff88802f5b33d3 R11: 0000000000000000 R12: 0000000000000000 [ 13.621903][ C3] R13: ffff888001bb4640 R14: dffffc0000000000 R15: 0000000000000000 [ 13.621907][ C3] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 13.621912][ C3] default_idle+0x9/0x10 [ 13.621915][ C3] default_idle_call+0x6d/0xb0 [ 13.621917][ C3] cpuidle_idle_call+0x26f/0x3a0 [ 13.621920][ C3] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 13.621923][ C3] ? tsc_verify_tsc_adjust+0x98/0x300 [ 13.621928][ C3] do_idle+0xf6/0x160 [ 13.621931][ C3] cpu_startup_entry+0x54/0x60 [ 13.621933][ C3] start_secondary+0x213/0x2a0 [ 13.621936][ C3] ? __pfx_start_secondary+0x10/0x10 [ 13.621940][ C3] common_startup_64+0x13e/0x148 [ 13.621947][ C3] [ 13.639084][ C3] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 13.639556][ C3] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/3 [ 13.639933][ C3] preempt_count: 101, expected: 0 [ 13.640137][ C3] RCU nest depth: 0, expected: 0 [ 13.640346][ C3] INFO: lockdep is turned off. [ 13.640564][ C3] Preemption disabled at: [ 13.640566][ C3] [<0000000000000000>] 0x0 [ 13.641043][ C3] CPU: 3 UID: 0 PID: 0 Comm: swapper/3 Not tainted 6.15.0-rc5-virtme #1 PREEMPT(full) [ 13.641048][ C3] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 13.641050][ C3] Call Trace: [ 13.641052][ C3] [ 13.641054][ C3] dump_stack_lvl+0xb0/0xd0 [ 13.641062][ C3] __might_resched+0x360/0x5a0 [ 13.641069][ C3] down_write+0x72/0x210 [ 13.641072][ C3] ? __pfx_down_write+0x10/0x10 [ 13.641074][ C3] ? simple_recursive_removal+0x3a/0x860 [ 13.641079][ C3] ? rcu_is_watching+0x12/0xc0 [ 13.641083][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 13.641088][ C3] simple_recursive_removal+0x166/0x860 [ 13.641091][ C3] ? __pfx_remove_one+0x10/0x10 [ 13.641096][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 13.641101][ C3] debugfs_remove+0x44/0x70 [ 13.641104][ C3] ref_tracker_dir_exit+0xcf/0x740 [ 13.641109][ C3] ? __pfx_ref_tracker_free+0x10/0x10 [ 13.641113][ C3] ? __sk_destruct+0x383/0x780 [ 13.641118][ C3] ? rcu_do_batch+0x34c/0xf20 [ 13.641122][ C3] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 13.641126][ C3] ? irq_exit_rcu+0xe/0x30 [ 13.641130][ C3] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 13.641134][ C3] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 13.641137][ C3] ? pv_native_safe_halt+0xf/0x20 [ 13.641140][ C3] ? default_idle+0x9/0x10 [ 13.641143][ C3] ? default_idle_call+0x6d/0xb0 [ 13.641146][ C3] ? cpuidle_idle_call+0x26f/0x3a0 [ 13.641149][ C3] ? do_idle+0xf6/0x160 [ 13.641151][ C3] ? cpu_startup_entry+0x54/0x60 [ 13.641153][ C3] ? start_secondary+0x213/0x2a0 [ 13.641156][ C3] ? common_startup_64+0x13e/0x148 [ 13.641162][ C3] __put_net+0x19/0x60 [ 13.641165][ C3] __sk_destruct+0x58a/0x780 [ 13.641169][ C3] ? rcu_do_batch+0x34a/0xf20 [ 13.641172][ C3] rcu_do_batch+0x34c/0xf20 [ 13.641176][ C3] ? find_held_lock+0x2b/0x80 [ 13.641182][ C3] ? __pfx_rcu_do_batch+0x10/0x10 [ 13.641186][ C3] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 13.641190][ C3] ? lockdep_hardirqs_on+0x7c/0x110 [ 13.641193][ C3] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 13.641197][ C3] rcu_core+0x2bb/0x500 [ 13.641201][ C3] handle_softirqs+0x218/0x620 [ 13.641206][ C3] __irq_exit_rcu+0xfa/0x160 [ 13.641208][ C3] irq_exit_rcu+0xe/0x30 [ 13.641211][ C3] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 13.641214][ C3] [ 13.641215][ C3] [ 13.641216][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 13.641221][ C3] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 13.641226][ C3] Code: a0 b7 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 a3 a0 12 00 fb f4 cc cc cc cc 66 2e 0f 1f 84 00 00 00 00 00 66 90 90 90 90 90 90 [ 13.641230][ C3] RSP: 0018:ffffc90000157de8 EFLAGS: 00000246 [ 13.641235][ C3] RAX: 0000000000037eff RBX: 1ffff9200002afc1 RCX: ffffffffb9768a19 [ 13.641239][ C3] RDX: 0000000000000000 RSI: ffffffffba2881e1 RDI: ffffffffb9a50e20 [ 13.641242][ C3] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1005eb667a [ 13.641244][ C3] R10: ffff88802f5b33d3 R11: 0000000000000000 R12: 0000000000000000 [ 13.641246][ C3] R13: ffff888001bb4640 R14: dffffc0000000000 R15: 0000000000000000 [ 13.641250][ C3] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 13.641255][ C3] default_idle+0x9/0x10 [ 13.641258][ C3] default_idle_call+0x6d/0xb0 [ 13.641260][ C3] cpuidle_idle_call+0x26f/0x3a0 [ 13.641263][ C3] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 13.641267][ C3] ? tsc_verify_tsc_adjust+0x98/0x300 [ 13.641271][ C3] do_idle+0xf6/0x160 [ 13.641274][ C3] cpu_startup_entry+0x54/0x60 [ 13.641277][ C3] start_secondary+0x213/0x2a0 [ 13.641279][ C3] ? __pfx_start_secondary+0x10/0x10 [ 13.641283][ C3] common_startup_64+0x13e/0x148 [ 13.641290][ C3]