[ 14.851953][ C3] [ 14.852154][ C3] ================================ [ 14.852352][ C3] WARNING: inconsistent lock state [ 14.852548][ C3] 6.15.0-virtme #1 Not tainted [ 14.852737][ C3] -------------------------------- [ 14.852920][ C3] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 14.853151][ C3] swapper/3/0 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 14.853382][ C3] ffffffffa89c5af8 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 14.853717][ C3] {SOFTIRQ-ON-W} state was registered at: [ 14.853904][ C3] __lock_acquire+0x20b/0x7e0 [ 14.854098][ C3] lock_acquire.part.0+0xb6/0x240 [ 14.854280][ C3] _raw_spin_lock+0x33/0x40 [ 14.854466][ C3] simple_pin_fs+0x24/0x150 [ 14.854657][ C3] start_creating.part.0+0x52/0x310 [ 14.854844][ C3] debugfs_create_dir+0x6a/0x540 [ 14.855029][ C3] component_debug_init+0x17/0x30 [ 14.855220][ C3] do_one_initcall+0x8f/0x1e0 [ 14.855409][ C3] do_initcalls+0x176/0x280 [ 14.855596][ C3] kernel_init_freeable+0x22d/0x300 [ 14.855780][ C3] kernel_init+0x20/0x200 [ 14.855967][ C3] ret_from_fork+0x240/0x320 [ 14.856154][ C3] ret_from_fork_asm+0x1a/0x30 [ 14.856341][ C3] irq event stamp: 309498 [ 14.856482][ C3] hardirqs last enabled at (309498): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 14.856863][ C3] hardirqs last disabled at (309497): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 14.857232][ C3] softirqs last enabled at (308164): [] handle_softirqs+0x358/0x620 [ 14.857557][ C3] softirqs last disabled at (308177): [] __irq_exit_rcu+0xfa/0x160 [ 14.857888][ C3] [ 14.857888][ C3] other info that might help us debug this: [ 14.858162][ C3] Possible unsafe locking scenario: [ 14.858162][ C3] [ 14.858437][ C3] CPU0 [ 14.858576][ C3] ---- [ 14.858717][ C3] lock(pin_fs_lock); [ 14.858857][ C3] [ 14.858997][ C3] lock(pin_fs_lock); [ 14.859146][ C3] [ 14.859146][ C3] *** DEADLOCK *** [ 14.859146][ C3] [ 14.859418][ C3] 1 lock held by swapper/3/0: [ 14.859606][ C3] #0: ffffffffa87774c0 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 14.859944][ C3] [ 14.859944][ C3] stack backtrace: [ 14.860175][ C3] CPU: 3 UID: 0 PID: 0 Comm: swapper/3 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 14.860180][ C3] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 14.860182][ C3] Call Trace: [ 14.860183][ C3] [ 14.860186][ C3] dump_stack_lvl+0x82/0xd0 [ 14.860192][ C3] print_usage_bug.part.0+0x25f/0x360 [ 14.860196][ C3] mark_lock_irq+0x343/0x400 [ 14.860201][ C3] ? __pfx_unwind_next_frame+0x10/0x10 [ 14.860205][ C3] ? save_trace+0x52/0x170 [ 14.860211][ C3] mark_lock+0x174/0x2f0 [ 14.860215][ C3] mark_usage+0x46/0x150 [ 14.860218][ C3] __lock_acquire+0x20b/0x7e0 [ 14.860221][ C3] ? __lock_acquire+0x44d/0x7e0 [ 14.860225][ C3] lock_acquire.part.0+0xb6/0x240 [ 14.860228][ C3] ? simple_pin_fs+0x24/0x150 [ 14.860232][ C3] ? rcu_is_watching+0x12/0xc0 [ 14.860236][ C3] ? lock_acquire+0x10c/0x170 [ 14.860239][ C3] ? simple_pin_fs+0x24/0x150 [ 14.860244][ C3] _raw_spin_lock+0x33/0x40 [ 14.860247][ C3] ? simple_pin_fs+0x24/0x150 [ 14.860250][ C3] simple_pin_fs+0x24/0x150 [ 14.860254][ C3] debugfs_remove+0x35/0x70 [ 14.860257][ C3] ref_tracker_dir_exit+0xcf/0x740 [ 14.860263][ C3] ? __pfx_ref_tracker_free+0x10/0x10 [ 14.860267][ C3] ? __sk_destruct+0x383/0x780 [ 14.860272][ C3] ? rcu_do_batch+0x34c/0xf20 [ 14.860275][ C3] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 14.860278][ C3] ? irq_exit_rcu+0xe/0x30 [ 14.860281][ C3] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 14.860285][ C3] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 14.860289][ C3] ? pv_native_safe_halt+0xf/0x20 [ 14.860292][ C3] ? default_idle+0x9/0x10 [ 14.860294][ C3] ? default_idle_call+0x6d/0xb0 [ 14.860297][ C3] ? cpuidle_idle_call+0x26f/0x3a0 [ 14.860300][ C3] ? do_idle+0xf6/0x160 [ 14.860302][ C3] ? cpu_startup_entry+0x54/0x60 [ 14.860305][ C3] ? start_secondary+0x213/0x2a0 [ 14.860308][ C3] ? common_startup_64+0x13e/0x148 [ 14.860315][ C3] __put_net+0x19/0x60 [ 14.860319][ C3] __sk_destruct+0x58a/0x780 [ 14.860323][ C3] ? rcu_do_batch+0x34a/0xf20 [ 14.860325][ C3] rcu_do_batch+0x34c/0xf20 [ 14.860330][ C3] ? __pfx_rcu_do_batch+0x10/0x10 [ 14.860333][ C3] ? __lock_release+0x5d/0x170 [ 14.860336][ C3] ? rcu_is_watching+0x12/0xc0 [ 14.860339][ C3] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 14.860344][ C3] rcu_core+0x2bb/0x500 [ 14.860348][ C3] handle_softirqs+0x218/0x620 [ 14.860353][ C3] __irq_exit_rcu+0xfa/0x160 [ 14.860356][ C3] irq_exit_rcu+0xe/0x30 [ 14.860359][ C3] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 14.860363][ C3] [ 14.860364][ C3] [ 14.860365][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 14.860368][ C3] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 14.860372][ C3] Code: 92 b5 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 37 10 00 fb f4 fc 54 02 00 66 2e 0f 1f 84 00 00 00 00 00 66 90 90 90 90 90 90 [ 14.860375][ C3] RSP: 0018:ffffc90000157de8 EFLAGS: 00000246 [ 14.860378][ C3] RAX: 000000000004b3cf RBX: 1ffff9200002afc1 RCX: ffffffffa77905d9 [ 14.860380][ C3] RDX: 0000000000000000 RSI: ffffffffa828f4e4 RDI: ffffffffa7a53be0 [ 14.860382][ C3] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c366fa [ 14.860384][ C3] R10: ffff8880361b37d3 R11: ffffffffa8411288 R12: 0000000000000000 [ 14.860385][ C3] R13: ffff888001bf45c0 R14: dffffc0000000000 R15: 0000000000000000 [ 14.860389][ C3] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 14.860394][ C3] default_idle+0x9/0x10 [ 14.860396][ C3] default_idle_call+0x6d/0xb0 [ 14.860399][ C3] cpuidle_idle_call+0x26f/0x3a0 [ 14.860402][ C3] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 14.860406][ C3] ? tsc_verify_tsc_adjust+0x98/0x310 [ 14.860410][ C3] do_idle+0xf6/0x160 [ 14.860413][ C3] cpu_startup_entry+0x54/0x60 [ 14.860416][ C3] start_secondary+0x213/0x2a0 [ 14.860419][ C3] ? __pfx_start_secondary+0x10/0x10 [ 14.860424][ C3] common_startup_64+0x13e/0x148 [ 14.860431][ C3] [ 14.875133][ C3] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 14.875432][ C3] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/3 [ 14.875845][ C3] preempt_count: 101, expected: 0 [ 14.876018][ C3] RCU nest depth: 0, expected: 0 [ 14.876188][ C3] INFO: lockdep is turned off. [ 14.876465][ C3] Preemption disabled at: [ 14.876466][ C3] [<0000000000000000>] 0x0 [ 14.876782][ C3] CPU: 3 UID: 0 PID: 0 Comm: swapper/3 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 14.876786][ C3] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 14.876788][ C3] Call Trace: [ 14.876789][ C3] [ 14.876791][ C3] dump_stack_lvl+0xb0/0xd0 [ 14.876797][ C3] __might_resched+0x360/0x5a0 [ 14.876804][ C3] down_write+0x72/0x210 [ 14.876809][ C3] ? __pfx_down_write+0x10/0x10 [ 14.876811][ C3] ? simple_recursive_removal+0x33/0x610 [ 14.876815][ C3] ? rcu_is_watching+0x12/0xc0 [ 14.876819][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 14.876825][ C3] simple_recursive_removal+0x6a/0x610 [ 14.876828][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 14.876831][ C3] ? __pfx_remove_one+0x10/0x10 [ 14.876836][ C3] debugfs_remove+0x44/0x70 [ 14.876839][ C3] ref_tracker_dir_exit+0xcf/0x740 [ 14.876844][ C3] ? __pfx_ref_tracker_free+0x10/0x10 [ 14.876847][ C3] ? __sk_destruct+0x383/0x780 [ 14.876852][ C3] ? rcu_do_batch+0x34c/0xf20 [ 14.876854][ C3] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 14.876858][ C3] ? irq_exit_rcu+0xe/0x30 [ 14.876861][ C3] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 14.876866][ C3] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 14.876869][ C3] ? pv_native_safe_halt+0xf/0x20 [ 14.876872][ C3] ? default_idle+0x9/0x10 [ 14.876875][ C3] ? default_idle_call+0x6d/0xb0 [ 14.876877][ C3] ? cpuidle_idle_call+0x26f/0x3a0 [ 14.876880][ C3] ? do_idle+0xf6/0x160 [ 14.876883][ C3] ? cpu_startup_entry+0x54/0x60 [ 14.876885][ C3] ? start_secondary+0x213/0x2a0 [ 14.876888][ C3] ? common_startup_64+0x13e/0x148 [ 14.876895][ C3] __put_net+0x19/0x60 [ 14.876898][ C3] __sk_destruct+0x58a/0x780 [ 14.876902][ C3] ? rcu_do_batch+0x34a/0xf20 [ 14.876904][ C3] rcu_do_batch+0x34c/0xf20 [ 14.876909][ C3] ? __pfx_rcu_do_batch+0x10/0x10 [ 14.876912][ C3] ? __lock_release+0x5d/0x170 [ 14.876916][ C3] ? rcu_is_watching+0x12/0xc0 [ 14.876919][ C3] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 14.876924][ C3] rcu_core+0x2bb/0x500 [ 14.876928][ C3] handle_softirqs+0x218/0x620 [ 14.876933][ C3] __irq_exit_rcu+0xfa/0x160 [ 14.876936][ C3] irq_exit_rcu+0xe/0x30 [ 14.876939][ C3] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 14.876943][ C3] [ 14.876944][ C3] [ 14.876945][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 14.876948][ C3] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 14.876952][ C3] Code: 92 b5 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 37 10 00 fb f4 fc 54 02 00 66 2e 0f 1f 84 00 00 00 00 00 66 90 90 90 90 90 90 [ 14.876954][ C3] RSP: 0018:ffffc90000157de8 EFLAGS: 00000246 [ 14.876957][ C3] RAX: 000000000004b3cf RBX: 1ffff9200002afc1 RCX: ffffffffa77905d9 [ 14.876959][ C3] RDX: 0000000000000000 RSI: ffffffffa828f4e4 RDI: ffffffffa7a53be0 [ 14.876961][ C3] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c366fa [ 14.876962][ C3] R10: ffff8880361b37d3 R11: ffffffffa8411288 R12: 0000000000000000 [ 14.876964][ C3] R13: ffff888001bf45c0 R14: dffffc0000000000 R15: 0000000000000000 [ 14.876967][ C3] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 14.876972][ C3] default_idle+0x9/0x10 [ 14.876975][ C3] default_idle_call+0x6d/0xb0 [ 14.876977][ C3] cpuidle_idle_call+0x26f/0x3a0 [ 14.876980][ C3] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 14.876984][ C3] ? tsc_verify_tsc_adjust+0x98/0x310 [ 14.876988][ C3] do_idle+0xf6/0x160 [ 14.876991][ C3] cpu_startup_entry+0x54/0x60 [ 14.876994][ C3] start_secondary+0x213/0x2a0 [ 14.876997][ C3] ? __pfx_start_secondary+0x10/0x10 [ 14.877002][ C3] common_startup_64+0x13e/0x148 [ 14.877009][ C3] [ 16.610984][ C2] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 16.611482][ C2] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 214, name: sh [ 16.611769][ C2] preempt_count: 100, expected: 0 [ 16.611962][ C2] RCU nest depth: 0, expected: 0 [ 16.612152][ C2] INFO: lockdep is turned off. [ 16.612341][ C2] Preemption disabled at: [ 16.612343][ C2] [] handle_softirqs+0xe5/0x620 [ 16.612744][ C2] CPU: 2 UID: 0 PID: 214 Comm: sh Tainted: G W 6.15.0-virtme #1 PREEMPT(full) [ 16.612749][ C2] Tainted: [W]=WARN [ 16.612751][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 16.612753][ C2] Call Trace: [ 16.612755][ C2] [ 16.612757][ C2] dump_stack_lvl+0xb0/0xd0 [ 16.612764][ C2] __might_resched+0x360/0x5a0 [ 16.612772][ C2] down_write+0x72/0x210 [ 16.612776][ C2] ? __pfx_down_write+0x10/0x10 [ 16.612779][ C2] ? simple_recursive_removal+0x33/0x610 [ 16.612783][ C2] ? rcu_is_watching+0x12/0xc0 [ 16.612788][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 16.612794][ C2] simple_recursive_removal+0x6a/0x610 [ 16.612797][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 16.612800][ C2] ? __pfx_remove_one+0x10/0x10 [ 16.612806][ C2] debugfs_remove+0x44/0x70 [ 16.612809][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 16.612815][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 16.612818][ C2] ? __sk_destruct+0x383/0x780 [ 16.612824][ C2] ? rcu_do_batch+0x34c/0xf20 [ 16.612828][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 16.612831][ C2] ? irq_exit_rcu+0xe/0x30 [ 16.612834][ C2] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 16.612839][ C2] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 16.612842][ C2] ? copy_mc_enhanced_fast_string+0x6/0xf [ 16.612846][ C2] ? __wp_page_copy_user+0xf1/0x480 [ 16.612850][ C2] ? wp_page_copy+0x215/0x11e0 [ 16.612854][ C2] ? handle_pte_fault+0x3ff/0x690 [ 16.612857][ C2] ? __handle_mm_fault+0x3fc/0x5e0 [ 16.612860][ C2] ? handle_mm_fault+0x200/0x420 [ 16.612863][ C2] ? do_user_addr_fault+0x576/0xe00 [ 16.612866][ C2] ? exc_page_fault+0x5d/0xc0 [ 16.612869][ C2] ? bpf_sk_storage_free+0x9f/0x1c0 [ 16.612874][ C2] ? rcu_is_watching+0x12/0xc0 [ 16.612878][ C2] __put_net+0x19/0x60 [ 16.612882][ C2] __sk_destruct+0x58a/0x780 [ 16.612886][ C2] ? rcu_do_batch+0x34a/0xf20 [ 16.612889][ C2] rcu_do_batch+0x34c/0xf20 [ 16.612893][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 16.612897][ C2] ? rcu_is_watching+0x12/0xc0 [ 16.612900][ C2] ? trace_irq_enable.constprop.0+0xd4/0x130 [ 16.612907][ C2] rcu_core+0x2bb/0x500 [ 16.612912][ C2] handle_softirqs+0x218/0x620 [ 16.612917][ C2] __irq_exit_rcu+0xfa/0x160 [ 16.612920][ C2] irq_exit_rcu+0xe/0x30 [ 16.612922][ C2] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 16.612926][ C2] [ 16.612927][ C2] [ 16.612929][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 16.612931][ C2] RIP: 0010:copy_mc_enhanced_fast_string+0x6/0xf [ 16.612935][ C2] Code: 89 ca e9 7d fe ff ff 66 66 2e 0f 1f 84 00 00 00 00 00 66 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 48 89 f8 48 89 d1 a4 31 c0 c3 cc cc cc cc 48 89 c8 c3 cc cc cc cc 66 0f 1f 84 00 [ 16.612938][ C2] RSP: 0000:ffffc90000a67ad8 EFLAGS: 00010246 [ 16.612941][ C2] RAX: ffff88800ad8b000 RBX: ffffc90000a67d30 RCX: 0000000000000940 [ 16.612943][ C2] RDX: 0000000000001000 RSI: ffff88802af2b6c0 RDI: ffff88800ad8b6c0 [ 16.612945][ C2] RBP: ffff88800ad8b000 R08: 0000000000000000 R09: ffffed10055e57ff [ 16.612947][ C2] R10: ffff88802af2bfff R11: 0000000000000000 R12: ffff8880092c9540 [ 16.612949][ C2] R13: 0000561f3fb39000 R14: ffffea0000000000 R15: ffff8880092c9540 [ 16.612956][ C2] __wp_page_copy_user+0xf1/0x480 [ 16.612958][ C2] ? __pfx_filemap_map_pages+0x10/0x10 [ 16.612964][ C2] wp_page_copy+0x215/0x11e0 [ 16.612968][ C2] ? rcu_is_watching+0x12/0xc0 [ 16.612971][ C2] ? rcu_is_watching+0x12/0xc0 [ 16.612974][ C2] ? __pfx_wp_page_copy+0x10/0x10 [ 16.612978][ C2] ? rcu_read_unlock+0x18/0x70 [ 16.612980][ C2] ? rcu_is_watching+0x12/0xc0 [ 16.612983][ C2] ? trace_lock_release+0x2a/0xd0 [ 16.612989][ C2] ? lock_release+0x13/0xc0 [ 16.612992][ C2] ? do_wp_page+0x876/0x1170 [ 16.612997][ C2] handle_pte_fault+0x3ff/0x690 [ 16.613001][ C2] ? __pfx_handle_pte_fault+0x10/0x10 [ 16.613004][ C2] ? __pfx_anon_pipe_read+0x10/0x10 [ 16.613008][ C2] ? reacquire_held_locks+0xd1/0x200 [ 16.613011][ C2] ? __pfx_autoremove_wake_function+0x10/0x10 [ 16.613016][ C2] __handle_mm_fault+0x3fc/0x5e0 [ 16.613020][ C2] ? __pfx___handle_mm_fault+0x10/0x10 [ 16.613023][ C2] ? rcu_read_unlock+0x18/0x70 [ 16.613029][ C2] ? __pfx_lock_vma_under_rcu+0x10/0x10 [ 16.613034][ C2] handle_mm_fault+0x200/0x420 [ 16.613037][ C2] ? __pfx_handle_mm_fault+0x10/0x10 [ 16.613043][ C2] do_user_addr_fault+0x576/0xe00 [ 16.613047][ C2] ? rcu_is_watching+0x12/0xc0 [ 16.613051][ C2] exc_page_fault+0x5d/0xc0 [ 16.613055][ C2] asm_exc_page_fault+0x26/0x30 [ 16.613057][ C2] RIP: 0033:0x7f385ed35535 [ 16.613061][ C2] Code: ff ff ff 49 8d 7c 24 10 48 8b 04 fa a8 0f 0f 85 91 01 00 00 48 89 c6 83 e9 01 48 c1 ee 0c 48 33 30 48 89 34 fa 66 42 89 0c 62 <48> c7 40 08 00 00 00 00 48 83 c4 10 5b 5d 41 5c c3 66 2e 0f 1f 84 [ 16.613063][ C2] RSP: 002b:00007ffca75bfc30 EFLAGS: 00010246 [ 16.613065][ C2] RAX: 0000561f3fb39220 RBX: ffffffffffffffb8 RCX: 0000000000000000 [ 16.613067][ C2] RDX: 0000561f3fb24010 RSI: 0000000000000000 RDI: 0000000000000010 [ 16.613068][ C2] RBP: 0000000000000003 R08: 0000000000000000 R09: 0000561f3fb542b2 [ 16.613070][ C2] R10: 000000002d6f489f R11: 0000000000000000 R12: 0000000000000000 [ 16.613071][ C2] R13: 0000561f3fb542b0 R14: 0000000000000003 R15: 0000561f3fb243e0 [ 16.613077][ C2]