[ 15.248346][ C2] [ 15.248486][ C2] ================================ [ 15.248677][ C2] WARNING: inconsistent lock state [ 15.248863][ C2] 6.15.0-rc7-virtme #1 Not tainted [ 15.249062][ C2] -------------------------------- [ 15.249258][ C2] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 15.249492][ C2] swapper/2/0 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 15.249729][ C2] ffffffffacfbff78 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 15.250065][ C2] {SOFTIRQ-ON-W} state was registered at: [ 15.250252][ C2] __lock_acquire+0x3eb/0x9d0 [ 15.250455][ C2] lock_acquire.part.0+0xb6/0x240 [ 15.250644][ C2] _raw_spin_lock+0x33/0x40 [ 15.250833][ C2] simple_pin_fs+0x24/0x150 [ 15.251019][ C2] start_creating.part.0+0x3f/0x2f0 [ 15.251207][ C2] debugfs_create_dir+0x6a/0x540 [ 15.251393][ C2] component_debug_init+0x17/0x30 [ 15.251580][ C2] do_one_initcall+0x8f/0x1e0 [ 15.251766][ C2] do_initcalls+0x176/0x280 [ 15.251953][ C2] kernel_init_freeable+0x22d/0x300 [ 15.252142][ C2] kernel_init+0x20/0x200 [ 15.252327][ C2] ret_from_fork+0x31/0x70 [ 15.252511][ C2] ret_from_fork_asm+0x1a/0x30 [ 15.252695][ C2] irq event stamp: 279464 [ 15.252836][ C2] hardirqs last enabled at (279464): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 15.253215][ C2] hardirqs last disabled at (279463): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 15.253581][ C2] softirqs last enabled at (278378): [] handle_softirqs+0x358/0x620 [ 15.253909][ C2] softirqs last disabled at (278409): [] __irq_exit_rcu+0xfa/0x160 [ 15.254234][ C2] [ 15.254234][ C2] other info that might help us debug this: [ 15.254512][ C2] Possible unsafe locking scenario: [ 15.254512][ C2] [ 15.254782][ C2] CPU0 [ 15.254922][ C2] ---- [ 15.255060][ C2] lock(pin_fs_lock); [ 15.255200][ C2] [ 15.255338][ C2] lock(pin_fs_lock); [ 15.255478][ C2] [ 15.255478][ C2] *** DEADLOCK *** [ 15.255478][ C2] [ 15.255748][ C2] 1 lock held by swapper/2/0: [ 15.255934][ C2] #0: ffffffffacd749c0 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 15.256264][ C2] [ 15.256264][ C2] stack backtrace: [ 15.256494][ C2] CPU: 2 UID: 0 PID: 0 Comm: swapper/2 Not tainted 6.15.0-rc7-virtme #1 PREEMPT(full) [ 15.256498][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 15.256501][ C2] Call Trace: [ 15.256502][ C2] [ 15.256505][ C2] dump_stack_lvl+0x82/0xd0 [ 15.256510][ C2] print_usage_bug.part.0+0x25f/0x360 [ 15.256516][ C2] mark_lock_irq+0x343/0x400 [ 15.256521][ C2] ? __pfx_unwind_next_frame+0x10/0x10 [ 15.256526][ C2] ? save_trace+0x52/0x170 [ 15.256531][ C2] mark_lock+0x174/0x2f0 [ 15.256535][ C2] mark_usage+0x46/0x150 [ 15.256539][ C2] __lock_acquire+0x3eb/0x9d0 [ 15.256544][ C2] lock_acquire.part.0+0xb6/0x240 [ 15.256547][ C2] ? simple_pin_fs+0x24/0x150 [ 15.256550][ C2] ? rcu_is_watching+0x12/0xc0 [ 15.256556][ C2] ? lock_acquire+0x10c/0x170 [ 15.256558][ C2] ? simple_pin_fs+0x24/0x150 [ 15.256561][ C2] _raw_spin_lock+0x33/0x40 [ 15.256564][ C2] ? simple_pin_fs+0x24/0x150 [ 15.256566][ C2] simple_pin_fs+0x24/0x150 [ 15.256569][ C2] debugfs_remove+0x35/0x70 [ 15.256573][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 15.256578][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 15.256581][ C2] ? __sk_destruct+0x383/0x780 [ 15.256586][ C2] ? rcu_do_batch+0x34f/0xf20 [ 15.256590][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 15.256593][ C2] ? irq_exit_rcu+0xe/0x30 [ 15.256595][ C2] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 15.256600][ C2] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 15.256603][ C2] ? pv_native_safe_halt+0xf/0x20 [ 15.256606][ C2] ? default_idle+0x9/0x10 [ 15.256608][ C2] ? default_idle_call+0x6d/0xb0 [ 15.256611][ C2] ? cpuidle_idle_call+0x26f/0x3a0 [ 15.256615][ C2] ? do_idle+0xf6/0x160 [ 15.256618][ C2] ? cpu_startup_entry+0x54/0x60 [ 15.256621][ C2] ? start_secondary+0x213/0x2a0 [ 15.256626][ C2] ? common_startup_64+0x13e/0x148 [ 15.256632][ C2] __put_net+0x19/0x60 [ 15.256637][ C2] __sk_destruct+0x58a/0x780 [ 15.256640][ C2] ? rcu_do_batch+0x34a/0xf20 [ 15.256644][ C2] rcu_do_batch+0x34f/0xf20 [ 15.256647][ C2] ? find_held_lock+0x2b/0x80 [ 15.256652][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 15.256656][ C2] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 15.256659][ C2] ? lockdep_hardirqs_on+0x7c/0x110 [ 15.256663][ C2] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 15.256668][ C2] rcu_core+0x2bb/0x500 [ 15.256671][ C2] handle_softirqs+0x218/0x620 [ 15.256676][ C2] __irq_exit_rcu+0xfa/0x160 [ 15.256679][ C2] irq_exit_rcu+0xe/0x30 [ 15.256681][ C2] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 15.256685][ C2] [ 15.256686][ C2] [ 15.256687][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 15.256690][ C2] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 15.256694][ C2] Code: 60 b8 00 e9 c3 57 02 00 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 c3 75 13 00 fb f4 cc cc cc cc 66 2e 0f 1f 84 00 00 00 00 00 66 90 90 90 90 90 90 [ 15.256697][ C2] RSP: 0000:ffffc90000147de8 EFLAGS: 00000246 [ 15.256700][ C2] RAX: 0000000000043f87 RBX: 1ffff92000028fc1 RCX: ffffffffabd5ba19 [ 15.256702][ C2] RDX: 0000000000000000 RSI: ffffffffac887785 RDI: ffffffffac051260 [ 15.256704][ C2] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c2667a [ 15.256706][ C2] R10: ffff8880361333d3 R11: 0000000000000000 R12: 0000000000000000 [ 15.256708][ C2] R13: ffff888001bf2340 R14: dffffc0000000000 R15: 0000000000000000 [ 15.256711][ C2] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 15.256716][ C2] default_idle+0x9/0x10 [ 15.256719][ C2] default_idle_call+0x6d/0xb0 [ 15.256721][ C2] cpuidle_idle_call+0x26f/0x3a0 [ 15.256725][ C2] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 15.256729][ C2] ? tsc_verify_tsc_adjust+0x98/0x300 [ 15.256734][ C2] do_idle+0xf6/0x160 [ 15.256738][ C2] cpu_startup_entry+0x54/0x60 [ 15.256742][ C2] start_secondary+0x213/0x2a0 [ 15.256746][ C2] ? __pfx_start_secondary+0x10/0x10 [ 15.256751][ C2] common_startup_64+0x13e/0x148 [ 15.256757][ C2] [ 15.271539][ C2] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 15.271859][ C2] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/2 [ 15.272282][ C2] preempt_count: 101, expected: 0 [ 15.272483][ C2] RCU nest depth: 0, expected: 0 [ 15.272668][ C2] INFO: lockdep is turned off. [ 15.272854][ C2] Preemption disabled at: [ 15.272855][ C2] [<0000000000000000>] 0x0 [ 15.273191][ C2] CPU: 2 UID: 0 PID: 0 Comm: swapper/2 Not tainted 6.15.0-rc7-virtme #1 PREEMPT(full) [ 15.273196][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 15.273197][ C2] Call Trace: [ 15.273199][ C2] [ 15.273201][ C2] dump_stack_lvl+0xb0/0xd0 [ 15.273208][ C2] __might_resched+0x360/0x5a0 [ 15.273214][ C2] down_write+0x72/0x210 [ 15.273218][ C2] ? __pfx_down_write+0x10/0x10 [ 15.273221][ C2] ? simple_recursive_removal+0x3a/0x860 [ 15.273226][ C2] ? rcu_is_watching+0x12/0xc0 [ 15.273231][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 15.273236][ C2] simple_recursive_removal+0x166/0x860 [ 15.273239][ C2] ? __pfx_remove_one+0x10/0x10 [ 15.273243][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 15.273247][ C2] debugfs_remove+0x44/0x70 [ 15.273250][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 15.273255][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 15.273259][ C2] ? __sk_destruct+0x383/0x780 [ 15.273263][ C2] ? rcu_do_batch+0x34f/0xf20 [ 15.273267][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 15.273270][ C2] ? irq_exit_rcu+0xe/0x30 [ 15.273274][ C2] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 15.273278][ C2] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 15.273282][ C2] ? pv_native_safe_halt+0xf/0x20 [ 15.273285][ C2] ? default_idle+0x9/0x10 [ 15.273287][ C2] ? default_idle_call+0x6d/0xb0 [ 15.273290][ C2] ? cpuidle_idle_call+0x26f/0x3a0 [ 15.273294][ C2] ? do_idle+0xf6/0x160 [ 15.273298][ C2] ? cpu_startup_entry+0x54/0x60 [ 15.273301][ C2] ? start_secondary+0x213/0x2a0 [ 15.273305][ C2] ? common_startup_64+0x13e/0x148 [ 15.273311][ C2] __put_net+0x19/0x60 [ 15.273315][ C2] __sk_destruct+0x58a/0x780 [ 15.273318][ C2] ? rcu_do_batch+0x34a/0xf20 [ 15.273322][ C2] rcu_do_batch+0x34f/0xf20 [ 15.273325][ C2] ? find_held_lock+0x2b/0x80 [ 15.273330][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 15.273334][ C2] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 15.273338][ C2] ? lockdep_hardirqs_on+0x7c/0x110 [ 15.273342][ C2] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 15.273346][ C2] rcu_core+0x2bb/0x500 [ 15.273350][ C2] handle_softirqs+0x218/0x620 [ 15.273357][ C2] __irq_exit_rcu+0xfa/0x160 [ 15.273360][ C2] irq_exit_rcu+0xe/0x30 [ 15.273362][ C2] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 15.273366][ C2] [ 15.273367][ C2] [ 15.273369][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 15.273371][ C2] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 15.273375][ C2] Code: 60 b8 00 e9 c3 57 02 00 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 c3 75 13 00 fb f4 cc cc cc cc 66 2e 0f 1f 84 00 00 00 00 00 66 90 90 90 90 90 90 [ 15.273378][ C2] RSP: 0000:ffffc90000147de8 EFLAGS: 00000246 [ 15.273381][ C2] RAX: 0000000000043f87 RBX: 1ffff92000028fc1 RCX: ffffffffabd5ba19 [ 15.273384][ C2] RDX: 0000000000000000 RSI: ffffffffac887785 RDI: ffffffffac051260 [ 15.273385][ C2] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c2667a [ 15.273387][ C2] R10: ffff8880361333d3 R11: 0000000000000000 R12: 0000000000000000 [ 15.273389][ C2] R13: ffff888001bf2340 R14: dffffc0000000000 R15: 0000000000000000 [ 15.273393][ C2] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 15.273398][ C2] default_idle+0x9/0x10 [ 15.273400][ C2] default_idle_call+0x6d/0xb0 [ 15.273403][ C2] cpuidle_idle_call+0x26f/0x3a0 [ 15.273406][ C2] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 15.273411][ C2] ? tsc_verify_tsc_adjust+0x98/0x300 [ 15.273416][ C2] do_idle+0xf6/0x160 [ 15.273420][ C2] cpu_startup_entry+0x54/0x60 [ 15.273423][ C2] start_secondary+0x213/0x2a0 [ 15.273427][ C2] ? __pfx_start_secondary+0x10/0x10 [ 15.273432][ C2] common_startup_64+0x13e/0x148 [ 15.273438][ C2] [ 17.076268][ C0] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 17.076688][ C0] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 213, name: sh [ 17.076974][ C0] preempt_count: 101, expected: 0 [ 17.077171][ C0] RCU nest depth: 0, expected: 0 [ 17.077375][ C0] INFO: lockdep is turned off. [ 17.077568][ C0] Preemption disabled at: [ 17.077570][ C0] [] copy_fpstate_to_sigframe+0x257/0x540 [ 17.078017][ C0] CPU: 0 UID: 0 PID: 213 Comm: sh Tainted: G W 6.15.0-rc7-virtme #1 PREEMPT(full) [ 17.078024][ C0] Tainted: [W]=WARN [ 17.078026][ C0] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 17.078028][ C0] Call Trace: [ 17.078030][ C0] [ 17.078032][ C0] dump_stack_lvl+0xb0/0xd0 [ 17.078042][ C0] __might_resched+0x360/0x5a0 [ 17.078049][ C0] down_write+0x72/0x210 [ 17.078055][ C0] ? __pfx_down_write+0x10/0x10 [ 17.078058][ C0] ? simple_recursive_removal+0x3a/0x860 [ 17.078064][ C0] ? rcu_is_watching+0x12/0xc0 [ 17.078072][ C0] ? do_raw_spin_unlock+0x58/0x220 [ 17.078079][ C0] simple_recursive_removal+0x166/0x860 [ 17.078081][ C0] ? __pfx_remove_one+0x10/0x10 [ 17.078087][ C0] ? do_raw_spin_unlock+0x58/0x220 [ 17.078092][ C0] debugfs_remove+0x44/0x70 [ 17.078095][ C0] ref_tracker_dir_exit+0xcf/0x740 [ 17.078101][ C0] ? __pfx_ref_tracker_free+0x10/0x10 [ 17.078105][ C0] ? __sk_destruct+0x383/0x780 [ 17.078112][ C0] ? rcu_do_batch+0x34f/0xf20 [ 17.078117][ C0] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 17.078120][ C0] ? __local_bh_enable_ip+0x105/0x130 [ 17.078125][ C0] ? copy_fpstate_to_sigframe+0x1e1/0x540 [ 17.078128][ C0] ? get_sigframe+0x283/0xa60 [ 17.078134][ C0] ? x64_setup_rt_frame+0xfa/0x1110 [ 17.078137][ C0] ? handle_signal+0x291/0x370 [ 17.078140][ C0] ? arch_do_signal_or_restart+0x299/0x2f0 [ 17.078143][ C0] ? syscall_exit_to_user_mode+0x136/0x1f0 [ 17.078149][ C0] ? do_syscall_64+0xce/0x1d0 [ 17.078152][ C0] ? entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 17.078156][ C0] ? bpf_sk_storage_free+0x9f/0x1c0 [ 17.078161][ C0] ? rcu_is_watching+0x12/0xc0 [ 17.078166][ C0] __put_net+0x19/0x60 [ 17.078170][ C0] __sk_destruct+0x58a/0x780 [ 17.078174][ C0] ? rcu_do_batch+0x34a/0xf20 [ 17.078177][ C0] rcu_do_batch+0x34f/0xf20 [ 17.078183][ C0] ? __pfx_rcu_do_batch+0x10/0x10 [ 17.078187][ C0] ? rcu_is_watching+0x12/0xc0 [ 17.078191][ C0] ? trace_irq_enable.constprop.0+0xd4/0x130 [ 17.078198][ C0] rcu_core+0x2bb/0x500 [ 17.078203][ C0] handle_softirqs+0x218/0x620 [ 17.078207][ C0] ? copy_fpstate_to_sigframe+0x1dc/0x540 [ 17.078211][ C0] do_softirq+0xb1/0xe0 [ 17.078214][ C0] [ 17.078215][ C0] [ 17.078216][ C0] __local_bh_enable_ip+0x105/0x130 [ 17.078219][ C0] copy_fpstate_to_sigframe+0x1e1/0x540 [ 17.078225][ C0] get_sigframe+0x283/0xa60 [ 17.078228][ C0] ? rcu_is_watching+0x12/0xc0 [ 17.078232][ C0] ? __pfx_get_sigframe+0x10/0x10 [ 17.078235][ C0] ? rcu_is_watching+0x12/0xc0 [ 17.078239][ C0] ? rcu_is_watching+0x12/0xc0 [ 17.078242][ C0] ? trace_rseq_update+0xd2/0x130 [ 17.078251][ C0] x64_setup_rt_frame+0xfa/0x1110 [ 17.078255][ C0] ? __pfx___rseq_handle_notify_resume+0x10/0x10 [ 17.078259][ C0] ? __pfx_x64_setup_rt_frame+0x10/0x10 [ 17.078265][ C0] handle_signal+0x291/0x370 [ 17.078269][ C0] arch_do_signal_or_restart+0x299/0x2f0 [ 17.078272][ C0] ? __pfx_arch_do_signal_or_restart+0x10/0x10 [ 17.078278][ C0] ? do_user_addr_fault+0x959/0xe00 [ 17.078284][ C0] ? rcu_is_watching+0x12/0xc0 [ 17.078289][ C0] syscall_exit_to_user_mode+0x136/0x1f0 [ 17.078293][ C0] do_syscall_64+0xce/0x1d0 [ 17.078296][ C0] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 17.078298][ C0] RIP: 0033:0x7f6d0084d83b [ 17.078303][ C0] Code: 48 85 f6 74 15 48 b9 00 00 00 80 01 00 00 00 48 8b 06 48 85 c8 75 48 49 89 f0 41 ba 08 00 00 00 4c 89 c6 b8 0e 00 00 00 0f 05 <89> c2 f7 da 3d 00 f0 ff ff b8 00 00 00 00 0f 47 c2 48 8b 94 24 88 [ 17.078306][ C0] RSP: 002b:00007ffd6e9604a0 EFLAGS: 00000246 ORIG_RAX: 000000000000000e [ 17.078311][ C0] RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00007f6d0084d83b [ 17.078313][ C0] RDX: 0000000000000000 RSI: 00007ffd6e960560 RDI: 0000000000000002 [ 17.078315][ C0] RBP: 0000000000000000 R08: 00007ffd6e960560 R09: 0000000000000000 [ 17.078317][ C0] R10: 0000000000000008 R11: 0000000000000246 R12: 0000557ee59d5620 [ 17.078318][ C0] R13: 0000557ee5a2f440 R14: 00007ffd6e960560 R15: 0000000000000000 [ 17.078324][ C0]