[ 15.136565][ C1] [ 15.136718][ C1] ================================ [ 15.136909][ C1] WARNING: inconsistent lock state [ 15.137113][ C1] 6.15.0-virtme #1 Not tainted [ 15.137305][ C1] -------------------------------- [ 15.137514][ C1] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 15.137764][ C1] swapper/1/0 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 15.138006][ C1] ffffffff917c5af8 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 15.138369][ C1] {SOFTIRQ-ON-W} state was registered at: [ 15.138590][ C1] __lock_acquire+0x20b/0x7e0 [ 15.138792][ C1] lock_acquire.part.0+0xb6/0x240 [ 15.139003][ C1] _raw_spin_lock+0x33/0x40 [ 15.139203][ C1] simple_pin_fs+0x24/0x150 [ 15.139396][ C1] start_creating.part.0+0x52/0x310 [ 15.139587][ C1] debugfs_create_dir+0x6a/0x540 [ 15.139792][ C1] component_debug_init+0x17/0x30 [ 15.140000][ C1] do_one_initcall+0x8f/0x1e0 [ 15.140199][ C1] do_initcalls+0x176/0x280 [ 15.140396][ C1] kernel_init_freeable+0x22d/0x300 [ 15.140600][ C1] kernel_init+0x20/0x200 [ 15.140837][ C1] ret_from_fork+0x240/0x320 [ 15.141049][ C1] ret_from_fork_asm+0x1a/0x30 [ 15.141262][ C1] irq event stamp: 407516 [ 15.141435][ C1] hardirqs last enabled at (407516): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 15.141861][ C1] hardirqs last disabled at (407515): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 15.142302][ C1] softirqs last enabled at (407356): [] handle_softirqs+0x358/0x620 [ 15.142692][ C1] softirqs last disabled at (407463): [] __irq_exit_rcu+0xfa/0x160 [ 15.143055][ C1] [ 15.143055][ C1] other info that might help us debug this: [ 15.143363][ C1] Possible unsafe locking scenario: [ 15.143363][ C1] [ 15.143654][ C1] CPU0 [ 15.143808][ C1] ---- [ 15.143956][ C1] lock(pin_fs_lock); [ 15.144106][ C1] [ 15.144249][ C1] lock(pin_fs_lock); [ 15.144399][ C1] [ 15.144399][ C1] *** DEADLOCK *** [ 15.144399][ C1] [ 15.144837][ C1] 1 lock held by swapper/1/0: [ 15.145085][ C1] #0: ffffffff915774c0 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 15.145677][ C1] [ 15.145677][ C1] stack backtrace: [ 15.146054][ C1] CPU: 1 UID: 0 PID: 0 Comm: swapper/1 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 15.146062][ C1] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 15.146066][ C1] Call Trace: [ 15.146069][ C1] [ 15.146073][ C1] dump_stack_lvl+0x82/0xd0 [ 15.146085][ C1] print_usage_bug.part.0+0x25f/0x360 [ 15.146097][ C1] mark_lock_irq+0x343/0x400 [ 15.146106][ C1] ? __pfx_unwind_next_frame+0x10/0x10 [ 15.146115][ C1] ? save_trace+0x52/0x170 [ 15.146122][ C1] mark_lock+0x174/0x2f0 [ 15.146129][ C1] mark_usage+0x46/0x150 [ 15.146135][ C1] __lock_acquire+0x20b/0x7e0 [ 15.146141][ C1] ? __lock_acquire+0x44d/0x7e0 [ 15.146149][ C1] lock_acquire.part.0+0xb6/0x240 [ 15.146155][ C1] ? simple_pin_fs+0x24/0x150 [ 15.146164][ C1] ? rcu_is_watching+0x12/0xc0 [ 15.146171][ C1] ? lock_acquire+0x10c/0x170 [ 15.146174][ C1] ? simple_pin_fs+0x24/0x150 [ 15.146178][ C1] _raw_spin_lock+0x33/0x40 [ 15.146184][ C1] ? simple_pin_fs+0x24/0x150 [ 15.146188][ C1] simple_pin_fs+0x24/0x150 [ 15.146194][ C1] debugfs_remove+0x35/0x70 [ 15.146201][ C1] ref_tracker_dir_exit+0xcf/0x740 [ 15.146210][ C1] ? __pfx_ref_tracker_free+0x10/0x10 [ 15.146214][ C1] ? __sk_destruct+0x383/0x780 [ 15.146223][ C1] ? rcu_do_batch+0x34c/0xf20 [ 15.146229][ C1] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 15.146233][ C1] ? irq_exit_rcu+0xe/0x30 [ 15.146240][ C1] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 15.146248][ C1] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 15.146255][ C1] ? pv_native_safe_halt+0xf/0x20 [ 15.146260][ C1] ? default_idle+0x9/0x10 [ 15.146264][ C1] ? default_idle_call+0x6d/0xb0 [ 15.146269][ C1] ? cpuidle_idle_call+0x26f/0x3a0 [ 15.146276][ C1] ? do_idle+0xf6/0x160 [ 15.146281][ C1] ? cpu_startup_entry+0x54/0x60 [ 15.146286][ C1] ? start_secondary+0x213/0x2a0 [ 15.146292][ C1] ? common_startup_64+0x13e/0x148 [ 15.146305][ C1] __put_net+0x19/0x60 [ 15.146313][ C1] __sk_destruct+0x58a/0x780 [ 15.146320][ C1] ? rcu_do_batch+0x34a/0xf20 [ 15.146325][ C1] rcu_do_batch+0x34c/0xf20 [ 15.146335][ C1] ? __pfx_rcu_do_batch+0x10/0x10 [ 15.146340][ C1] ? __lock_release+0x5d/0x170 [ 15.146346][ C1] ? rcu_is_watching+0x12/0xc0 [ 15.146350][ C1] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 15.146359][ C1] rcu_core+0x2bb/0x500 [ 15.146366][ C1] handle_softirqs+0x218/0x620 [ 15.146376][ C1] __irq_exit_rcu+0xfa/0x160 [ 15.146381][ C1] irq_exit_rcu+0xe/0x30 [ 15.146385][ C1] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 15.146392][ C1] [ 15.146394][ C1] [ 15.146397][ C1] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 15.146402][ C1] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 15.146409][ C1] Code: 92 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 07 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 [ 15.146414][ C1] RSP: 0018:ffffc90000137de8 EFLAGS: 00000246 [ 15.146420][ C1] RAX: 00000000000637a5 RBX: 1ffff92000026fc1 RCX: ffffffff905a35d9 [ 15.146423][ C1] RDX: 0000000000000000 RSI: ffffffff9109175c RDI: ffffffff90853ca0 [ 15.146426][ C1] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c166fa [ 15.146429][ C1] R10: ffff8880360b37d3 R11: ffffffff91211288 R12: 0000000000000000 [ 15.146432][ C1] R13: ffff888001bf0040 R14: dffffc0000000000 R15: 0000000000000000 [ 15.146439][ C1] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 15.146448][ C1] default_idle+0x9/0x10 [ 15.146453][ C1] default_idle_call+0x6d/0xb0 [ 15.146458][ C1] cpuidle_idle_call+0x26f/0x3a0 [ 15.146463][ C1] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 15.146471][ C1] ? tsc_verify_tsc_adjust+0x98/0x310 [ 15.146480][ C1] do_idle+0xf6/0x160 [ 15.146487][ C1] cpu_startup_entry+0x54/0x60 [ 15.146492][ C1] start_secondary+0x213/0x2a0 [ 15.146498][ C1] ? __pfx_start_secondary+0x10/0x10 [ 15.146507][ C1] common_startup_64+0x13e/0x148 [ 15.146521][ C1] [ 15.165386][ C1] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 15.165844][ C1] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/1 [ 15.166159][ C1] preempt_count: 101, expected: 0 [ 15.166366][ C1] RCU nest depth: 0, expected: 0 [ 15.166697][ C1] INFO: lockdep is turned off. [ 15.166873][ C1] Preemption disabled at: [ 15.166875][ C1] [<0000000000000000>] 0x0 [ 15.167212][ C1] CPU: 1 UID: 0 PID: 0 Comm: swapper/1 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 15.167219][ C1] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 15.167221][ C1] Call Trace: [ 15.167223][ C1] [ 15.167228][ C1] dump_stack_lvl+0xb0/0xd0 [ 15.167238][ C1] __might_resched+0x360/0x5a0 [ 15.167249][ C1] down_write+0x72/0x210 [ 15.167255][ C1] ? __pfx_down_write+0x10/0x10 [ 15.167258][ C1] ? simple_recursive_removal+0x33/0x610 [ 15.167264][ C1] ? rcu_is_watching+0x12/0xc0 [ 15.167272][ C1] ? do_raw_spin_unlock+0x58/0x220 [ 15.167277][ C1] simple_recursive_removal+0x6a/0x610 [ 15.167280][ C1] ? do_raw_spin_unlock+0x58/0x220 [ 15.167282][ C1] ? __pfx_remove_one+0x10/0x10 [ 15.167289][ C1] debugfs_remove+0x44/0x70 [ 15.167293][ C1] ref_tracker_dir_exit+0xcf/0x740 [ 15.167300][ C1] ? __pfx_ref_tracker_free+0x10/0x10 [ 15.167302][ C1] ? __sk_destruct+0x383/0x780 [ 15.167310][ C1] ? rcu_do_batch+0x34c/0xf20 [ 15.167315][ C1] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 15.167317][ C1] ? irq_exit_rcu+0xe/0x30 [ 15.167324][ C1] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 15.167330][ C1] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 15.167335][ C1] ? pv_native_safe_halt+0xf/0x20 [ 15.167338][ C1] ? default_idle+0x9/0x10 [ 15.167342][ C1] ? default_idle_call+0x6d/0xb0 [ 15.167344][ C1] ? cpuidle_idle_call+0x26f/0x3a0 [ 15.167350][ C1] ? do_idle+0xf6/0x160 [ 15.167352][ C1] ? cpu_startup_entry+0x54/0x60 [ 15.167355][ C1] ? start_secondary+0x213/0x2a0 [ 15.167360][ C1] ? common_startup_64+0x13e/0x148 [ 15.167369][ C1] __put_net+0x19/0x60 [ 15.167374][ C1] __sk_destruct+0x58a/0x780 [ 15.167378][ C1] ? rcu_do_batch+0x34a/0xf20 [ 15.167381][ C1] rcu_do_batch+0x34c/0xf20 [ 15.167387][ C1] ? __pfx_rcu_do_batch+0x10/0x10 [ 15.167390][ C1] ? __lock_release+0x5d/0x170 [ 15.167396][ C1] ? rcu_is_watching+0x12/0xc0 [ 15.167400][ C1] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 15.167406][ C1] rcu_core+0x2bb/0x500 [ 15.167412][ C1] handle_softirqs+0x218/0x620 [ 15.167418][ C1] __irq_exit_rcu+0xfa/0x160 [ 15.167422][ C1] irq_exit_rcu+0xe/0x30 [ 15.167425][ C1] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 15.167428][ C1] [ 15.167429][ C1] [ 15.167431][ C1] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 15.167434][ C1] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 15.167439][ C1] Code: 92 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 07 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 [ 15.167442][ C1] RSP: 0018:ffffc90000137de8 EFLAGS: 00000246 [ 15.167446][ C1] RAX: 00000000000637a5 RBX: 1ffff92000026fc1 RCX: ffffffff905a35d9 [ 15.167448][ C1] RDX: 0000000000000000 RSI: ffffffff9109175c RDI: ffffffff90853ca0 [ 15.167450][ C1] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c166fa [ 15.167451][ C1] R10: ffff8880360b37d3 R11: ffffffff91211288 R12: 0000000000000000 [ 15.167453][ C1] R13: ffff888001bf0040 R14: dffffc0000000000 R15: 0000000000000000 [ 15.167460][ C1] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 15.167465][ C1] default_idle+0x9/0x10 [ 15.167468][ C1] default_idle_call+0x6d/0xb0 [ 15.167471][ C1] cpuidle_idle_call+0x26f/0x3a0 [ 15.167474][ C1] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 15.167478][ C1] ? tsc_verify_tsc_adjust+0x98/0x310 [ 15.167484][ C1] do_idle+0xf6/0x160 [ 15.167487][ C1] cpu_startup_entry+0x54/0x60 [ 15.167491][ C1] start_secondary+0x213/0x2a0 [ 15.167494][ C1] ? __pfx_start_secondary+0x10/0x10 [ 15.167499][ C1] common_startup_64+0x13e/0x148 [ 15.167507][ C1]