[ 14.806880][ C3] [ 14.807010][ C3] ================================ [ 14.807197][ C3] WARNING: inconsistent lock state [ 14.807390][ C3] 6.15.0-virtme #1 Not tainted [ 14.807577][ C3] -------------------------------- [ 14.807761][ C3] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 14.807991][ C3] swapper/3/0 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 14.808221][ C3] ffffffff9f1c5af8 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 14.808551][ C3] {SOFTIRQ-ON-W} state was registered at: [ 14.808735][ C3] __lock_acquire+0x20b/0x7e0 [ 14.808924][ C3] lock_acquire.part.0+0xb6/0x240 [ 14.809110][ C3] _raw_spin_lock+0x33/0x40 [ 14.809297][ C3] simple_pin_fs+0x24/0x150 [ 14.809483][ C3] start_creating.part.0+0x52/0x310 [ 14.809672][ C3] debugfs_create_dir+0x6a/0x540 [ 14.809863][ C3] component_debug_init+0x17/0x30 [ 14.810051][ C3] do_one_initcall+0x8f/0x1e0 [ 14.810239][ C3] do_initcalls+0x176/0x280 [ 14.810427][ C3] kernel_init_freeable+0x22d/0x300 [ 14.810612][ C3] kernel_init+0x20/0x200 [ 14.810797][ C3] ret_from_fork+0x240/0x320 [ 14.810986][ C3] ret_from_fork_asm+0x1a/0x30 [ 14.811171][ C3] irq event stamp: 300176 [ 14.811311][ C3] hardirqs last enabled at (300176): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 14.811684][ C3] hardirqs last disabled at (300175): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 14.812061][ C3] softirqs last enabled at (298278): [] handle_softirqs+0x358/0x620 [ 14.812386][ C3] softirqs last disabled at (298297): [] __irq_exit_rcu+0xfa/0x160 [ 14.812710][ C3] [ 14.812710][ C3] other info that might help us debug this: [ 14.812980][ C3] Possible unsafe locking scenario: [ 14.812980][ C3] [ 14.813252][ C3] CPU0 [ 14.813391][ C3] ---- [ 14.813528][ C3] lock(pin_fs_lock); [ 14.813670][ C3] [ 14.813810][ C3] lock(pin_fs_lock); [ 14.813953][ C3] [ 14.813953][ C3] *** DEADLOCK *** [ 14.813953][ C3] [ 14.814227][ C3] 1 lock held by swapper/3/0: [ 14.814422][ C3] #0: ffffffff9ef774c0 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 14.814759][ C3] [ 14.814759][ C3] stack backtrace: [ 14.814989][ C3] CPU: 3 UID: 0 PID: 0 Comm: swapper/3 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 14.814994][ C3] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 14.814996][ C3] Call Trace: [ 14.814998][ C3] [ 14.815000][ C3] dump_stack_lvl+0x82/0xd0 [ 14.815006][ C3] print_usage_bug.part.0+0x25f/0x360 [ 14.815011][ C3] mark_lock_irq+0x343/0x400 [ 14.815015][ C3] ? __pfx_unwind_next_frame+0x10/0x10 [ 14.815019][ C3] ? save_trace+0x52/0x170 [ 14.815026][ C3] mark_lock+0x174/0x2f0 [ 14.815030][ C3] mark_usage+0x46/0x150 [ 14.815033][ C3] __lock_acquire+0x20b/0x7e0 [ 14.815036][ C3] ? __lock_acquire+0x44d/0x7e0 [ 14.815040][ C3] lock_acquire.part.0+0xb6/0x240 [ 14.815043][ C3] ? simple_pin_fs+0x24/0x150 [ 14.815047][ C3] ? rcu_is_watching+0x12/0xc0 [ 14.815051][ C3] ? lock_acquire+0x10c/0x170 [ 14.815053][ C3] ? simple_pin_fs+0x24/0x150 [ 14.815058][ C3] _raw_spin_lock+0x33/0x40 [ 14.815061][ C3] ? simple_pin_fs+0x24/0x150 [ 14.815065][ C3] simple_pin_fs+0x24/0x150 [ 14.815069][ C3] debugfs_remove+0x35/0x70 [ 14.815072][ C3] ref_tracker_dir_exit+0xcf/0x740 [ 14.815077][ C3] ? __pfx_ref_tracker_free+0x10/0x10 [ 14.815081][ C3] ? __sk_destruct+0x383/0x780 [ 14.815087][ C3] ? rcu_do_batch+0x34c/0xf20 [ 14.815089][ C3] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 14.815092][ C3] ? irq_exit_rcu+0xe/0x30 [ 14.815095][ C3] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 14.815100][ C3] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 14.815103][ C3] ? pv_native_safe_halt+0xf/0x20 [ 14.815107][ C3] ? default_idle+0x9/0x10 [ 14.815109][ C3] ? default_idle_call+0x6d/0xb0 [ 14.815111][ C3] ? cpuidle_idle_call+0x26f/0x3a0 [ 14.815114][ C3] ? do_idle+0xf6/0x160 [ 14.815116][ C3] ? cpu_startup_entry+0x54/0x60 [ 14.815119][ C3] ? start_secondary+0x213/0x2a0 [ 14.815122][ C3] ? common_startup_64+0x13e/0x148 [ 14.815130][ C3] __put_net+0x19/0x60 [ 14.815134][ C3] __sk_destruct+0x58a/0x780 [ 14.815138][ C3] ? rcu_do_batch+0x34a/0xf20 [ 14.815140][ C3] rcu_do_batch+0x34c/0xf20 [ 14.815143][ C3] ? find_held_lock+0x2b/0x80 [ 14.815148][ C3] ? __pfx_rcu_do_batch+0x10/0x10 [ 14.815151][ C3] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 14.815155][ C3] ? lockdep_hardirqs_on+0x7c/0x110 [ 14.815158][ C3] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 14.815163][ C3] rcu_core+0x2bb/0x500 [ 14.815167][ C3] handle_softirqs+0x218/0x620 [ 14.815172][ C3] __irq_exit_rcu+0xfa/0x160 [ 14.815175][ C3] irq_exit_rcu+0xe/0x30 [ 14.815178][ C3] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 14.815181][ C3] [ 14.815182][ C3] [ 14.815184][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 14.815187][ C3] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 14.815191][ 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.815193][ C3] RSP: 0018:ffffc90000157de8 EFLAGS: 00000242 [ 14.815196][ C3] RAX: 0000000000048d37 RBX: 1ffff9200002afc1 RCX: ffffffff9df905d9 [ 14.815198][ C3] RDX: 0000000000000000 RSI: ffffffff9ea8f4e4 RDI: ffffffff9e253be0 [ 14.815200][ C3] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1005eb66fa [ 14.815201][ C3] R10: ffff88802f5b37d3 R11: ffffffff9ec11288 R12: 0000000000000000 [ 14.815203][ C3] R13: ffff888001bf45c0 R14: dffffc0000000000 R15: 0000000000000000 [ 14.815207][ C3] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 14.815212][ C3] default_idle+0x9/0x10 [ 14.815214][ C3] default_idle_call+0x6d/0xb0 [ 14.815217][ C3] cpuidle_idle_call+0x26f/0x3a0 [ 14.815220][ C3] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 14.815224][ C3] ? tsc_verify_tsc_adjust+0x98/0x310 [ 14.815228][ C3] do_idle+0xf6/0x160 [ 14.815232][ C3] cpu_startup_entry+0x54/0x60 [ 14.815235][ C3] start_secondary+0x213/0x2a0 [ 14.815237][ C3] ? __pfx_start_secondary+0x10/0x10 [ 14.815242][ C3] common_startup_64+0x13e/0x148 [ 14.815249][ C3] [ 14.830109][ C3] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 14.830415][ C3] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/3 [ 14.830712][ C3] preempt_count: 101, expected: 0 [ 14.830884][ C3] RCU nest depth: 0, expected: 0 [ 14.831054][ C3] INFO: lockdep is turned off. [ 14.831234][ C3] Preemption disabled at: [ 14.831236][ C3] [<0000000000000000>] 0x0 [ 14.831646][ C3] CPU: 3 UID: 0 PID: 0 Comm: swapper/3 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 14.831650][ C3] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 14.831651][ C3] Call Trace: [ 14.831653][ C3] [ 14.831655][ C3] dump_stack_lvl+0xb0/0xd0 [ 14.831661][ C3] __might_resched+0x360/0x5a0 [ 14.831668][ C3] down_write+0x72/0x210 [ 14.831672][ C3] ? __pfx_down_write+0x10/0x10 [ 14.831675][ C3] ? simple_recursive_removal+0x33/0x610 [ 14.831678][ C3] ? rcu_is_watching+0x12/0xc0 [ 14.831683][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 14.831688][ C3] simple_recursive_removal+0x6a/0x610 [ 14.831691][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 14.831694][ C3] ? __pfx_remove_one+0x10/0x10 [ 14.831700][ C3] debugfs_remove+0x44/0x70 [ 14.831702][ C3] ref_tracker_dir_exit+0xcf/0x740 [ 14.831708][ C3] ? __pfx_ref_tracker_free+0x10/0x10 [ 14.831711][ C3] ? __sk_destruct+0x383/0x780 [ 14.831716][ C3] ? rcu_do_batch+0x34c/0xf20 [ 14.831719][ C3] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 14.831722][ C3] ? irq_exit_rcu+0xe/0x30 [ 14.831726][ C3] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 14.831731][ C3] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 14.831734][ C3] ? pv_native_safe_halt+0xf/0x20 [ 14.831738][ C3] ? default_idle+0x9/0x10 [ 14.831740][ C3] ? default_idle_call+0x6d/0xb0 [ 14.831743][ C3] ? cpuidle_idle_call+0x26f/0x3a0 [ 14.831746][ C3] ? do_idle+0xf6/0x160 [ 14.831748][ C3] ? cpu_startup_entry+0x54/0x60 [ 14.831750][ C3] ? start_secondary+0x213/0x2a0 [ 14.831754][ C3] ? common_startup_64+0x13e/0x148 [ 14.831760][ C3] __put_net+0x19/0x60 [ 14.831763][ C3] __sk_destruct+0x58a/0x780 [ 14.831767][ C3] ? rcu_do_batch+0x34a/0xf20 [ 14.831770][ C3] rcu_do_batch+0x34c/0xf20 [ 14.831773][ C3] ? find_held_lock+0x2b/0x80 [ 14.831778][ C3] ? __pfx_rcu_do_batch+0x10/0x10 [ 14.831782][ C3] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 14.831786][ C3] ? lockdep_hardirqs_on+0x7c/0x110 [ 14.831789][ C3] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 14.831794][ C3] rcu_core+0x2bb/0x500 [ 14.831798][ C3] handle_softirqs+0x218/0x620 [ 14.831803][ C3] __irq_exit_rcu+0xfa/0x160 [ 14.831806][ C3] irq_exit_rcu+0xe/0x30 [ 14.831808][ C3] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 14.831812][ C3] [ 14.831813][ C3] [ 14.831815][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 14.831817][ C3] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 14.831821][ 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.831824][ C3] RSP: 0018:ffffc90000157de8 EFLAGS: 00000242 [ 14.831827][ C3] RAX: 0000000000048d37 RBX: 1ffff9200002afc1 RCX: ffffffff9df905d9 [ 14.831829][ C3] RDX: 0000000000000000 RSI: ffffffff9ea8f4e4 RDI: ffffffff9e253be0 [ 14.831831][ C3] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1005eb66fa [ 14.831832][ C3] R10: ffff88802f5b37d3 R11: ffffffff9ec11288 R12: 0000000000000000 [ 14.831834][ C3] R13: ffff888001bf45c0 R14: dffffc0000000000 R15: 0000000000000000 [ 14.831838][ C3] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 14.831842][ C3] default_idle+0x9/0x10 [ 14.831845][ C3] default_idle_call+0x6d/0xb0 [ 14.831847][ C3] cpuidle_idle_call+0x26f/0x3a0 [ 14.831850][ C3] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 14.831854][ C3] ? tsc_verify_tsc_adjust+0x98/0x310 [ 14.831858][ C3] do_idle+0xf6/0x160 [ 14.831862][ C3] cpu_startup_entry+0x54/0x60 [ 14.831865][ C3] start_secondary+0x213/0x2a0 [ 14.831867][ C3] ? __pfx_start_secondary+0x10/0x10 [ 14.831872][ C3] common_startup_64+0x13e/0x148 [ 14.831879][ C3] [ 16.429226][ C2] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 16.429578][ C2] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 219, name: timeout [ 16.429880][ C2] preempt_count: 101, expected: 0 [ 16.430059][ C2] RCU nest depth: 0, expected: 0 [ 16.430247][ C2] INFO: lockdep is turned off. [ 16.430423][ C2] Preemption disabled at: [ 16.430425][ C2] [] fpu__clear_user_states+0x38/0x180 [ 16.430790][ C2] CPU: 2 UID: 0 PID: 219 Comm: timeout Tainted: G W 6.15.0-virtme #1 PREEMPT(full) [ 16.430795][ C2] Tainted: [W]=WARN [ 16.430796][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 16.430798][ C2] Call Trace: [ 16.430801][ C2] [ 16.430802][ C2] dump_stack_lvl+0xb0/0xd0 [ 16.430810][ C2] __might_resched+0x360/0x5a0 [ 16.430816][ C2] down_write+0x72/0x210 [ 16.430820][ C2] ? __pfx_down_write+0x10/0x10 [ 16.430823][ C2] ? simple_recursive_removal+0x33/0x610 [ 16.430828][ C2] ? rcu_is_watching+0x12/0xc0 [ 16.430833][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 16.430838][ C2] simple_recursive_removal+0x6a/0x610 [ 16.430841][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 16.430844][ C2] ? __pfx_remove_one+0x10/0x10 [ 16.430850][ C2] debugfs_remove+0x44/0x70 [ 16.430853][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 16.430858][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 16.430862][ C2] ? __sk_destruct+0x383/0x780 [ 16.430867][ C2] ? rcu_do_batch+0x34c/0xf20 [ 16.430871][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 16.430874][ C2] ? __local_bh_enable_ip+0x105/0x130 [ 16.430879][ C2] ? handle_signal+0x279/0x370 [ 16.430883][ C2] ? arch_do_signal_or_restart+0x299/0x2f0 [ 16.430887][ C2] ? exit_to_user_mode_loop+0x88/0xe0 [ 16.430891][ C2] ? do_syscall_64+0x2fe/0x380 [ 16.430895][ C2] ? entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 16.430898][ C2] ? __pfx_migrate_enable+0x10/0x10 [ 16.430902][ C2] ? bpf_sk_storage_free+0x9f/0x1c0 [ 16.430906][ C2] ? rcu_is_watching+0x12/0xc0 [ 16.430911][ C2] __put_net+0x19/0x60 [ 16.430914][ C2] __sk_destruct+0x58a/0x780 [ 16.430919][ C2] ? rcu_do_batch+0x34a/0xf20 [ 16.430921][ C2] rcu_do_batch+0x34c/0xf20 [ 16.430926][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 16.430929][ C2] ? rcu_is_watching+0x12/0xc0 [ 16.430932][ C2] ? trace_irq_enable.constprop.0+0xd4/0x130 [ 16.430939][ C2] rcu_core+0x2bb/0x500 [ 16.430944][ C2] handle_softirqs+0x218/0x620 [ 16.430948][ C2] ? fpu__clear_user_states+0xc9/0x180 [ 16.430951][ C2] do_softirq+0xb1/0xe0 [ 16.430954][ C2] [ 16.430955][ C2] [ 16.430956][ C2] __local_bh_enable_ip+0x105/0x130 [ 16.430960][ C2] handle_signal+0x279/0x370 [ 16.430964][ C2] arch_do_signal_or_restart+0x299/0x2f0 [ 16.430968][ C2] ? __pfx_arch_do_signal_or_restart+0x10/0x10 [ 16.430974][ C2] ? __x64_sys_rt_sigsuspend+0xbd/0x120 [ 16.430977][ C2] ? rcu_is_watching+0x12/0xc0 [ 16.430981][ C2] exit_to_user_mode_loop+0x88/0xe0 [ 16.430985][ C2] do_syscall_64+0x2fe/0x380 [ 16.430988][ C2] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 16.430991][ C2] RIP: 0033:0x559c0f236270 [ 16.430995][ C2] Code: ff e8 64 ff ff ff c6 05 0d 70 00 00 01 5d c3 0f 1f 00 c3 0f 1f 80 00 00 00 00 f3 0f 1e fa e9 77 ff ff ff 0f 1f 80 00 00 00 00 0f 1e fa c3 66 66 2e 0f 1f 84 00 00 00 00 00 48 89 f8 48 89 f7 [ 16.430998][ C2] RSP: 002b:00007fff042f1b78 EFLAGS: 00000246 ORIG_RAX: 0000000000000082 [ 16.431002][ C2] RAX: 0000000000000000 RBX: 00007fff042f28b8 RCX: 00007f705087906c [ 16.431003][ C2] RDX: 00007fff042f1b80 RSI: 00007fff042f1cb0 RDI: 0000000000000011 [ 16.431005][ C2] RBP: 00007fff042f2960 R08: 00007fff042f2960 R09: 0000000000000000 [ 16.431007][ C2] R10: 0000000000000000 R11: 0000000000000246 R12: 00007fff042f28e0 [ 16.431009][ C2] R13: 4056800000000000 R14: 000000000000000f R15: 00007f7050a6c000 [ 16.431015][ C2]