[ 14.117142][ C3] [ 14.117287][ C3] ================================ [ 14.117483][ C3] WARNING: inconsistent lock state [ 14.117671][ C3] 6.15.0-rc5-virtme #1 Not tainted [ 14.117860][ C3] -------------------------------- [ 14.118043][ C3] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 14.118279][ C3] swapper/3/0 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 14.118511][ C3] ffffffff881bf978 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 14.118841][ C3] {SOFTIRQ-ON-W} state was registered at: [ 14.119027][ C3] __lock_acquire+0x3eb/0x9d0 [ 14.119218][ C3] lock_acquire.part.0+0xb6/0x240 [ 14.119402][ C3] _raw_spin_lock+0x33/0x40 [ 14.119592][ C3] simple_pin_fs+0x24/0x150 [ 14.119775][ C3] start_creating.part.0+0x3f/0x2f0 [ 14.119964][ C3] debugfs_create_dir+0x6a/0x540 [ 14.120150][ C3] component_debug_init+0x17/0x30 [ 14.120340][ C3] do_one_initcall+0x8c/0x1e0 [ 14.120526][ C3] do_initcalls+0x176/0x280 [ 14.120710][ C3] kernel_init_freeable+0x22d/0x300 [ 14.120891][ C3] kernel_init+0x20/0x200 [ 14.121074][ C3] ret_from_fork+0x31/0x70 [ 14.121262][ C3] ret_from_fork_asm+0x1a/0x30 [ 14.121452][ C3] irq event stamp: 213744 [ 14.121593][ C3] hardirqs last enabled at (213744): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 14.121967][ C3] hardirqs last disabled at (213743): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 14.122341][ C3] softirqs last enabled at (213382): [] handle_softirqs+0x358/0x620 [ 14.122668][ C3] softirqs last disabled at (213419): [] __irq_exit_rcu+0xfa/0x160 [ 14.123003][ C3] [ 14.123003][ C3] other info that might help us debug this: [ 14.123278][ C3] Possible unsafe locking scenario: [ 14.123278][ C3] [ 14.123547][ C3] CPU0 [ 14.123683][ C3] ---- [ 14.123818][ C3] lock(pin_fs_lock); [ 14.123954][ C3] [ 14.124086][ C3] lock(pin_fs_lock); [ 14.124225][ C3] [ 14.124225][ C3] *** DEADLOCK *** [ 14.124225][ C3] [ 14.124500][ C3] 1 lock held by swapper/3/0: [ 14.124685][ C3] #0: ffffffff87f74480 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 14.125021][ C3] [ 14.125021][ C3] stack backtrace: [ 14.125257][ C3] CPU: 3 UID: 0 PID: 0 Comm: swapper/3 Not tainted 6.15.0-rc5-virtme #1 PREEMPT(full) [ 14.125262][ C3] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 14.125264][ C3] Call Trace: [ 14.125266][ C3] [ 14.125269][ C3] dump_stack_lvl+0x82/0xd0 [ 14.125276][ C3] print_usage_bug.part.0+0x25f/0x360 [ 14.125280][ C3] mark_lock_irq+0x343/0x400 [ 14.125285][ C3] ? __pfx_unwind_next_frame+0x10/0x10 [ 14.125289][ C3] ? save_trace+0x52/0x170 [ 14.125296][ C3] mark_lock+0x174/0x2f0 [ 14.125299][ C3] mark_usage+0x46/0x150 [ 14.125302][ C3] __lock_acquire+0x3eb/0x9d0 [ 14.125306][ C3] lock_acquire.part.0+0xb6/0x240 [ 14.125309][ C3] ? simple_pin_fs+0x24/0x150 [ 14.125312][ C3] ? rcu_is_watching+0x12/0xc0 [ 14.125316][ C3] ? lock_acquire+0x10c/0x170 [ 14.125318][ C3] ? simple_pin_fs+0x24/0x150 [ 14.125322][ C3] _raw_spin_lock+0x33/0x40 [ 14.125324][ C3] ? simple_pin_fs+0x24/0x150 [ 14.125327][ C3] simple_pin_fs+0x24/0x150 [ 14.125330][ C3] debugfs_remove+0x35/0x70 [ 14.125333][ C3] ref_tracker_dir_exit+0xcf/0x740 [ 14.125340][ C3] ? __pfx_ref_tracker_free+0x10/0x10 [ 14.125343][ C3] ? __sk_destruct+0x383/0x780 [ 14.125349][ C3] ? rcu_do_batch+0x34c/0xf20 [ 14.125352][ C3] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 14.125355][ C3] ? irq_exit_rcu+0xe/0x30 [ 14.125358][ C3] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 14.125362][ C3] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 14.125366][ C3] ? pv_native_safe_halt+0xf/0x20 [ 14.125369][ C3] ? default_idle+0x9/0x10 [ 14.125373][ C3] ? default_idle_call+0x6d/0xb0 [ 14.125375][ C3] ? cpuidle_idle_call+0x26f/0x3a0 [ 14.125379][ C3] ? do_idle+0xf6/0x160 [ 14.125381][ C3] ? cpu_startup_entry+0x54/0x60 [ 14.125383][ C3] ? start_secondary+0x213/0x2a0 [ 14.125386][ C3] ? common_startup_64+0x13e/0x148 [ 14.125393][ C3] __put_net+0x19/0x60 [ 14.125398][ C3] __sk_destruct+0x58a/0x780 [ 14.125401][ C3] ? rcu_do_batch+0x34a/0xf20 [ 14.125405][ C3] rcu_do_batch+0x34c/0xf20 [ 14.125410][ C3] ? __pfx_rcu_do_batch+0x10/0x10 [ 14.125414][ C3] ? __lock_release+0x5d/0x170 [ 14.125417][ C3] ? rcu_is_watching+0x12/0xc0 [ 14.125420][ C3] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 14.125424][ C3] rcu_core+0x2bb/0x500 [ 14.125428][ C3] handle_softirqs+0x218/0x620 [ 14.125433][ C3] __irq_exit_rcu+0xfa/0x160 [ 14.125436][ C3] irq_exit_rcu+0xe/0x30 [ 14.125438][ C3] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 14.125442][ C3] [ 14.125443][ C3] [ 14.125444][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 14.125447][ C3] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 14.125451][ 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 [ 14.125454][ C3] RSP: 0018:ffffc90000157de8 EFLAGS: 00000246 [ 14.125458][ C3] RAX: 00000000000341a9 RBX: 1ffff9200002afc1 RCX: ffffffff86f68a19 [ 14.125460][ C3] RDX: 0000000000000000 RSI: ffffffff87a881e1 RDI: ffffffff87250e20 [ 14.125462][ C3] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c3667a [ 14.125464][ C3] R10: ffff8880361b33d3 R11: 0000000000000000 R12: 0000000000000000 [ 14.125465][ C3] R13: ffff888001bb4640 R14: dffffc0000000000 R15: 0000000000000000 [ 14.125469][ C3] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 14.125475][ C3] default_idle+0x9/0x10 [ 14.125478][ C3] default_idle_call+0x6d/0xb0 [ 14.125480][ C3] cpuidle_idle_call+0x26f/0x3a0 [ 14.125483][ C3] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 14.125486][ C3] ? tsc_verify_tsc_adjust+0x98/0x300 [ 14.125492][ C3] do_idle+0xf6/0x160 [ 14.125494][ C3] cpu_startup_entry+0x54/0x60 [ 14.125497][ C3] start_secondary+0x213/0x2a0 [ 14.125500][ C3] ? __pfx_start_secondary+0x10/0x10 [ 14.125504][ C3] common_startup_64+0x13e/0x148 [ 14.125510][ C3] [ 14.139772][ C3] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 14.140190][ C3] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/3 [ 14.140486][ C3] preempt_count: 101, expected: 0 [ 14.140659][ C3] RCU nest depth: 0, expected: 0 [ 14.140828][ C3] INFO: lockdep is turned off. [ 14.141126][ C3] Preemption disabled at: [ 14.141128][ C3] [<0000000000000000>] 0x0 [ 14.141432][ C3] CPU: 3 UID: 0 PID: 0 Comm: swapper/3 Not tainted 6.15.0-rc5-virtme #1 PREEMPT(full) [ 14.141437][ C3] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 14.141439][ C3] Call Trace: [ 14.141441][ C3] [ 14.141443][ C3] dump_stack_lvl+0xb0/0xd0 [ 14.141450][ C3] __might_resched+0x360/0x5a0 [ 14.141457][ C3] down_write+0x72/0x210 [ 14.141461][ C3] ? __pfx_down_write+0x10/0x10 [ 14.141463][ C3] ? simple_recursive_removal+0x3a/0x860 [ 14.141468][ C3] ? rcu_is_watching+0x12/0xc0 [ 14.141473][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 14.141478][ C3] simple_recursive_removal+0x166/0x860 [ 14.141481][ C3] ? __pfx_remove_one+0x10/0x10 [ 14.141486][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 14.141491][ C3] debugfs_remove+0x44/0x70 [ 14.141494][ C3] ref_tracker_dir_exit+0xcf/0x740 [ 14.141501][ C3] ? __pfx_ref_tracker_free+0x10/0x10 [ 14.141504][ C3] ? __sk_destruct+0x383/0x780 [ 14.141509][ C3] ? rcu_do_batch+0x34c/0xf20 [ 14.141514][ C3] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 14.141518][ C3] ? irq_exit_rcu+0xe/0x30 [ 14.141522][ C3] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 14.141526][ C3] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 14.141529][ C3] ? pv_native_safe_halt+0xf/0x20 [ 14.141532][ C3] ? default_idle+0x9/0x10 [ 14.141536][ C3] ? default_idle_call+0x6d/0xb0 [ 14.141538][ C3] ? cpuidle_idle_call+0x26f/0x3a0 [ 14.141542][ C3] ? do_idle+0xf6/0x160 [ 14.141544][ C3] ? cpu_startup_entry+0x54/0x60 [ 14.141546][ C3] ? start_secondary+0x213/0x2a0 [ 14.141549][ C3] ? common_startup_64+0x13e/0x148 [ 14.141555][ C3] __put_net+0x19/0x60 [ 14.141559][ C3] __sk_destruct+0x58a/0x780 [ 14.141563][ C3] ? rcu_do_batch+0x34a/0xf20 [ 14.141567][ C3] rcu_do_batch+0x34c/0xf20 [ 14.141572][ C3] ? __pfx_rcu_do_batch+0x10/0x10 [ 14.141576][ C3] ? __lock_release+0x5d/0x170 [ 14.141579][ C3] ? rcu_is_watching+0x12/0xc0 [ 14.141582][ C3] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 14.141587][ C3] rcu_core+0x2bb/0x500 [ 14.141591][ C3] handle_softirqs+0x218/0x620 [ 14.141596][ C3] __irq_exit_rcu+0xfa/0x160 [ 14.141598][ C3] irq_exit_rcu+0xe/0x30 [ 14.141601][ C3] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 14.141604][ C3] [ 14.141605][ C3] [ 14.141606][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 14.141609][ C3] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 14.141612][ 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 [ 14.141615][ C3] RSP: 0018:ffffc90000157de8 EFLAGS: 00000246 [ 14.141618][ C3] RAX: 00000000000341a9 RBX: 1ffff9200002afc1 RCX: ffffffff86f68a19 [ 14.141620][ C3] RDX: 0000000000000000 RSI: ffffffff87a881e1 RDI: ffffffff87250e20 [ 14.141622][ C3] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c3667a [ 14.141624][ C3] R10: ffff8880361b33d3 R11: 0000000000000000 R12: 0000000000000000 [ 14.141625][ C3] R13: ffff888001bb4640 R14: dffffc0000000000 R15: 0000000000000000 [ 14.141629][ C3] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 14.141635][ C3] default_idle+0x9/0x10 [ 14.141638][ C3] default_idle_call+0x6d/0xb0 [ 14.141640][ C3] cpuidle_idle_call+0x26f/0x3a0 [ 14.141643][ C3] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 14.141646][ C3] ? tsc_verify_tsc_adjust+0x98/0x300 [ 14.141651][ C3] do_idle+0xf6/0x160 [ 14.141654][ C3] cpu_startup_entry+0x54/0x60 [ 14.141656][ C3] start_secondary+0x213/0x2a0 [ 14.141659][ C3] ? __pfx_start_secondary+0x10/0x10 [ 14.141663][ C3] common_startup_64+0x13e/0x148 [ 14.141670][ C3]