[ 13.294195][ C1] [ 13.294340][ C1] ================================ [ 13.294556][ C1] WARNING: inconsistent lock state [ 13.294767][ C1] 6.15.0-virtme #1 Not tainted [ 13.294987][ C1] -------------------------------- [ 13.295192][ C1] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 13.295448][ C1] swapper/1/0 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 13.295702][ C1] ffffffffb6fc5af8 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 13.296070][ C1] {SOFTIRQ-ON-W} state was registered at: [ 13.296281][ C1] __lock_acquire+0x20b/0x7e0 [ 13.296492][ C1] lock_acquire.part.0+0xb6/0x240 [ 13.296699][ C1] _raw_spin_lock+0x33/0x40 [ 13.296907][ C1] simple_pin_fs+0x24/0x150 [ 13.297119][ C1] start_creating.part.0+0x52/0x310 [ 13.297329][ C1] debugfs_create_dir+0x6a/0x540 [ 13.297538][ C1] component_debug_init+0x17/0x30 [ 13.297747][ C1] do_one_initcall+0x8f/0x1e0 [ 13.297951][ C1] do_initcalls+0x176/0x280 [ 13.298159][ C1] kernel_init_freeable+0x22d/0x300 [ 13.298370][ C1] kernel_init+0x20/0x200 [ 13.298579][ C1] ret_from_fork+0x240/0x320 [ 13.298793][ C1] ret_from_fork_asm+0x1a/0x30 [ 13.299005][ C1] irq event stamp: 387444 [ 13.299166][ C1] hardirqs last enabled at (387444): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 13.299577][ C1] hardirqs last disabled at (387443): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 13.299984][ C1] softirqs last enabled at (387046): [] handle_softirqs+0x358/0x620 [ 13.300347][ C1] softirqs last disabled at (387085): [] __irq_exit_rcu+0xfa/0x160 [ 13.300710][ C1] [ 13.300710][ C1] other info that might help us debug this: [ 13.301026][ C1] Possible unsafe locking scenario: [ 13.301026][ C1] [ 13.301329][ C1] CPU0 [ 13.301482][ C1] ---- [ 13.301636][ C1] lock(pin_fs_lock); [ 13.301794][ C1] [ 13.301948][ C1] lock(pin_fs_lock); [ 13.302107][ C1] [ 13.302107][ C1] *** DEADLOCK *** [ 13.302107][ C1] [ 13.302414][ C1] 1 lock held by swapper/1/0: [ 13.302625][ C1] #0: ffffffffb6d774c0 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 13.302994][ C1] [ 13.302994][ C1] stack backtrace: [ 13.303249][ C1] CPU: 1 UID: 0 PID: 0 Comm: swapper/1 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 13.303253][ C1] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 13.303255][ C1] Call Trace: [ 13.303258][ C1] [ 13.303260][ C1] dump_stack_lvl+0x82/0xd0 [ 13.303266][ C1] print_usage_bug.part.0+0x25f/0x360 [ 13.303271][ C1] mark_lock_irq+0x343/0x400 [ 13.303276][ C1] ? __pfx_unwind_next_frame+0x10/0x10 [ 13.303280][ C1] ? save_trace+0x52/0x170 [ 13.303284][ C1] mark_lock+0x174/0x2f0 [ 13.303288][ C1] mark_usage+0x46/0x150 [ 13.303292][ C1] __lock_acquire+0x20b/0x7e0 [ 13.303296][ C1] ? __lock_acquire+0x44d/0x7e0 [ 13.303300][ C1] lock_acquire.part.0+0xb6/0x240 [ 13.303303][ C1] ? simple_pin_fs+0x24/0x150 [ 13.303306][ C1] ? rcu_is_watching+0x12/0xc0 [ 13.303311][ C1] ? lock_acquire+0x10c/0x170 [ 13.303314][ C1] ? simple_pin_fs+0x24/0x150 [ 13.303318][ C1] _raw_spin_lock+0x33/0x40 [ 13.303321][ C1] ? simple_pin_fs+0x24/0x150 [ 13.303323][ C1] simple_pin_fs+0x24/0x150 [ 13.303326][ C1] debugfs_remove+0x35/0x70 [ 13.303330][ C1] ref_tracker_dir_exit+0xcf/0x740 [ 13.303335][ C1] ? __pfx_ref_tracker_free+0x10/0x10 [ 13.303337][ C1] ? __sk_destruct+0x383/0x780 [ 13.303343][ C1] ? rcu_do_batch+0x34c/0xf20 [ 13.303346][ C1] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 13.303348][ C1] ? irq_exit_rcu+0xe/0x30 [ 13.303351][ C1] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 13.303355][ C1] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 13.303359][ C1] ? pv_native_safe_halt+0xf/0x20 [ 13.303362][ C1] ? default_idle+0x9/0x10 [ 13.303365][ C1] ? default_idle_call+0x6d/0xb0 [ 13.303367][ C1] ? cpuidle_idle_call+0x26f/0x3a0 [ 13.303371][ C1] ? do_idle+0xf6/0x160 [ 13.303374][ C1] ? cpu_startup_entry+0x54/0x60 [ 13.303376][ C1] ? start_secondary+0x213/0x2a0 [ 13.303380][ C1] ? common_startup_64+0x13e/0x148 [ 13.303387][ C1] __put_net+0x19/0x60 [ 13.303391][ C1] __sk_destruct+0x58a/0x780 [ 13.303395][ C1] ? rcu_do_batch+0x34a/0xf20 [ 13.303398][ C1] rcu_do_batch+0x34c/0xf20 [ 13.303402][ C1] ? find_held_lock+0x2b/0x80 [ 13.303405][ C1] ? __pfx_rcu_do_batch+0x10/0x10 [ 13.303409][ C1] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 13.303413][ C1] ? lockdep_hardirqs_on+0x7c/0x110 [ 13.303416][ C1] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 13.303421][ C1] rcu_core+0x2bb/0x500 [ 13.303426][ C1] handle_softirqs+0x218/0x620 [ 13.303432][ C1] __irq_exit_rcu+0xfa/0x160 [ 13.303435][ C1] irq_exit_rcu+0xe/0x30 [ 13.303438][ C1] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 13.303441][ C1] [ 13.303442][ C1] [ 13.303444][ C1] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 13.303447][ C1] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 13.303451][ C1] Code: a2 b4 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 17 0f 00 fb f4 fc 54 02 00 66 2e 0f 1f 84 00 00 00 00 00 66 90 90 90 90 90 90 [ 13.303454][ C1] RSP: 0018:ffffc90000137de8 EFLAGS: 00000242 [ 13.303457][ C1] RAX: 000000000005e80b RBX: 1ffff92000026fc1 RCX: ffffffffb5da25d9 [ 13.303459][ C1] RDX: 0000000000000000 RSI: ffffffffb689175c RDI: ffffffffb6053ca0 [ 13.303461][ C1] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c166fa [ 13.303463][ C1] R10: ffff8880360b37d3 R11: ffffffffb6a11288 R12: 0000000000000000 [ 13.303464][ C1] R13: ffff888001bf0040 R14: dffffc0000000000 R15: 0000000000000000 [ 13.303468][ C1] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 13.303473][ C1] default_idle+0x9/0x10 [ 13.303475][ C1] default_idle_call+0x6d/0xb0 [ 13.303478][ C1] cpuidle_idle_call+0x26f/0x3a0 [ 13.303481][ C1] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 13.303485][ C1] ? tsc_verify_tsc_adjust+0x98/0x310 [ 13.303490][ C1] do_idle+0xf6/0x160 [ 13.303494][ C1] cpu_startup_entry+0x54/0x60 [ 13.303497][ C1] start_secondary+0x213/0x2a0 [ 13.303500][ C1] ? __pfx_start_secondary+0x10/0x10 [ 13.303505][ C1] common_startup_64+0x13e/0x148 [ 13.303512][ C1] [ 13.319871][ C1] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 13.320199][ C1] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/1 [ 13.320521][ C1] preempt_count: 101, expected: 0 [ 13.320712][ C1] RCU nest depth: 0, expected: 0 [ 13.320906][ C1] INFO: lockdep is turned off. [ 13.321093][ C1] Preemption disabled at: [ 13.321095][ C1] [<0000000000000000>] 0x0 [ 13.321422][ C1] CPU: 1 UID: 0 PID: 0 Comm: swapper/1 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 13.321426][ C1] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 13.321428][ C1] Call Trace: [ 13.321430][ C1] [ 13.321431][ C1] dump_stack_lvl+0xb0/0xd0 [ 13.321438][ C1] __might_resched+0x360/0x5a0 [ 13.321446][ C1] down_write+0x72/0x210 [ 13.321450][ C1] ? __pfx_down_write+0x10/0x10 [ 13.321452][ C1] ? simple_recursive_removal+0x33/0x610 [ 13.321456][ C1] ? rcu_is_watching+0x12/0xc0 [ 13.321462][ C1] ? do_raw_spin_unlock+0x58/0x220 [ 13.321465][ C1] simple_recursive_removal+0x6a/0x610 [ 13.321468][ C1] ? do_raw_spin_unlock+0x58/0x220 [ 13.321471][ C1] ? __pfx_remove_one+0x10/0x10 [ 13.321476][ C1] debugfs_remove+0x44/0x70 [ 13.321480][ C1] ref_tracker_dir_exit+0xcf/0x740 [ 13.321484][ C1] ? __pfx_ref_tracker_free+0x10/0x10 [ 13.321486][ C1] ? __sk_destruct+0x383/0x780 [ 13.321491][ C1] ? rcu_do_batch+0x34c/0xf20 [ 13.321494][ C1] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 13.321497][ C1] ? irq_exit_rcu+0xe/0x30 [ 13.321502][ C1] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 13.321506][ C1] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 13.321509][ C1] ? pv_native_safe_halt+0xf/0x20 [ 13.321512][ C1] ? default_idle+0x9/0x10 [ 13.321515][ C1] ? default_idle_call+0x6d/0xb0 [ 13.321517][ C1] ? cpuidle_idle_call+0x26f/0x3a0 [ 13.321521][ C1] ? do_idle+0xf6/0x160 [ 13.321524][ C1] ? cpu_startup_entry+0x54/0x60 [ 13.321527][ C1] ? start_secondary+0x213/0x2a0 [ 13.321530][ C1] ? common_startup_64+0x13e/0x148 [ 13.321536][ C1] __put_net+0x19/0x60 [ 13.321540][ C1] __sk_destruct+0x58a/0x780 [ 13.321544][ C1] ? rcu_do_batch+0x34a/0xf20 [ 13.321547][ C1] rcu_do_batch+0x34c/0xf20 [ 13.321551][ C1] ? find_held_lock+0x2b/0x80 [ 13.321555][ C1] ? __pfx_rcu_do_batch+0x10/0x10 [ 13.321558][ C1] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 13.321563][ C1] ? lockdep_hardirqs_on+0x7c/0x110 [ 13.321566][ C1] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 13.321571][ C1] rcu_core+0x2bb/0x500 [ 13.321576][ C1] handle_softirqs+0x218/0x620 [ 13.321581][ C1] __irq_exit_rcu+0xfa/0x160 [ 13.321585][ C1] irq_exit_rcu+0xe/0x30 [ 13.321588][ C1] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 13.321591][ C1] [ 13.321592][ C1] [ 13.321594][ C1] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 13.321597][ C1] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 13.321600][ C1] Code: a2 b4 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 17 0f 00 fb f4 fc 54 02 00 66 2e 0f 1f 84 00 00 00 00 00 66 90 90 90 90 90 90 [ 13.321603][ C1] RSP: 0018:ffffc90000137de8 EFLAGS: 00000242 [ 13.321606][ C1] RAX: 000000000005e80b RBX: 1ffff92000026fc1 RCX: ffffffffb5da25d9 [ 13.321608][ C1] RDX: 0000000000000000 RSI: ffffffffb689175c RDI: ffffffffb6053ca0 [ 13.321610][ C1] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c166fa [ 13.321611][ C1] R10: ffff8880360b37d3 R11: ffffffffb6a11288 R12: 0000000000000000 [ 13.321613][ C1] R13: ffff888001bf0040 R14: dffffc0000000000 R15: 0000000000000000 [ 13.321617][ C1] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 13.321621][ C1] default_idle+0x9/0x10 [ 13.321623][ C1] default_idle_call+0x6d/0xb0 [ 13.321626][ C1] cpuidle_idle_call+0x26f/0x3a0 [ 13.321629][ C1] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 13.321633][ C1] ? tsc_verify_tsc_adjust+0x98/0x310 [ 13.321638][ C1] do_idle+0xf6/0x160 [ 13.321641][ C1] cpu_startup_entry+0x54/0x60 [ 13.321644][ C1] start_secondary+0x213/0x2a0 [ 13.321647][ C1] ? __pfx_start_secondary+0x10/0x10 [ 13.321652][ C1] common_startup_64+0x13e/0x148 [ 13.321659][ C1]