[ 19.215652][ C0] [ 19.215836][ C0] ================================ [ 19.216077][ C0] WARNING: inconsistent lock state [ 19.216316][ C0] 6.15.0-rc7-virtme #1 Not tainted [ 19.216585][ C0] -------------------------------- [ 19.216850][ C0] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 19.217202][ C0] swapper/0/0 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 19.217642][ C0] ffffffff913bff78 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 19.218273][ C0] {SOFTIRQ-ON-W} state was registered at: [ 19.218622][ C0] __lock_acquire+0x3eb/0x9d0 [ 19.218977][ C0] lock_acquire.part.0+0xb6/0x240 [ 19.219210][ C0] _raw_spin_lock+0x33/0x40 [ 19.219482][ C0] simple_pin_fs+0x24/0x150 [ 19.219735][ C0] start_creating.part.0+0x3f/0x2f0 [ 19.220016][ C0] debugfs_create_dir+0x6a/0x540 [ 19.220304][ C0] component_debug_init+0x17/0x30 [ 19.220651][ C0] do_one_initcall+0x8f/0x1e0 [ 19.221002][ C0] do_initcalls+0x176/0x280 [ 19.221393][ C0] kernel_init_freeable+0x22d/0x300 [ 19.221683][ C0] kernel_init+0x20/0x200 [ 19.221957][ C0] ret_from_fork+0x31/0x70 [ 19.222233][ C0] ret_from_fork_asm+0x1a/0x30 [ 19.222579][ C0] irq event stamp: 464042 [ 19.222750][ C0] hardirqs last enabled at (464042): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 19.223200][ C0] hardirqs last disabled at (464041): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 19.223670][ C0] softirqs last enabled at (462044): [] handle_softirqs+0x358/0x620 [ 19.224109][ C0] softirqs last disabled at (462075): [] __irq_exit_rcu+0xfa/0x160 [ 19.224511][ C0] [ 19.224511][ C0] other info that might help us debug this: [ 19.224878][ C0] Possible unsafe locking scenario: [ 19.224878][ C0] [ 19.225217][ C0] CPU0 [ 19.225385][ C0] ---- [ 19.225583][ C0] lock(pin_fs_lock); [ 19.225758][ C0] [ 19.225925][ C0] lock(pin_fs_lock); [ 19.226102][ C0] [ 19.226102][ C0] *** DEADLOCK *** [ 19.226102][ C0] [ 19.226445][ C0] 1 lock held by swapper/0/0: [ 19.226835][ C0] #0: ffffffff911749c0 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 19.227271][ C0] [ 19.227271][ C0] stack backtrace: [ 19.227560][ C0] CPU: 0 UID: 0 PID: 0 Comm: swapper/0 Not tainted 6.15.0-rc7-virtme #1 PREEMPT(full) [ 19.227565][ C0] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 19.227567][ C0] Call Trace: [ 19.227569][ C0] [ 19.227570][ C0] dump_stack_lvl+0x82/0xd0 [ 19.227578][ C0] print_usage_bug.part.0+0x25f/0x360 [ 19.227584][ C0] mark_lock_irq+0x343/0x400 [ 19.227588][ C0] ? is_bpf_text_address+0x67/0x120 [ 19.227595][ C0] ? __lock_release+0x5d/0x170 [ 19.227599][ C0] ? save_trace+0x52/0x170 [ 19.227604][ C0] mark_lock+0x174/0x2f0 [ 19.227608][ C0] mark_usage+0x46/0x150 [ 19.227612][ C0] __lock_acquire+0x3eb/0x9d0 [ 19.227617][ C0] lock_acquire.part.0+0xb6/0x240 [ 19.227620][ C0] ? simple_pin_fs+0x24/0x150 [ 19.227623][ C0] ? rcu_is_watching+0x12/0xc0 [ 19.227631][ C0] ? lock_acquire+0x10c/0x170 [ 19.227633][ C0] ? simple_pin_fs+0x24/0x150 [ 19.227637][ C0] _raw_spin_lock+0x33/0x40 [ 19.227640][ C0] ? simple_pin_fs+0x24/0x150 [ 19.227642][ C0] simple_pin_fs+0x24/0x150 [ 19.227645][ C0] debugfs_remove+0x35/0x70 [ 19.227649][ C0] ref_tracker_dir_exit+0xcf/0x740 [ 19.227656][ C0] ? __pfx_ref_tracker_free+0x10/0x10 [ 19.227659][ C0] ? __sk_destruct+0x383/0x780 [ 19.227667][ C0] ? rcu_do_batch+0x34f/0xf20 [ 19.227670][ C0] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 19.227673][ C0] ? irq_exit_rcu+0xe/0x30 [ 19.227676][ C0] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 19.227682][ C0] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 19.227686][ C0] ? pv_native_safe_halt+0xf/0x20 [ 19.227689][ C0] ? default_idle+0x9/0x10 [ 19.227692][ C0] ? default_idle_call+0x6d/0xb0 [ 19.227694][ C0] ? cpuidle_idle_call+0x26f/0x3a0 [ 19.227701][ C0] ? do_idle+0xf6/0x160 [ 19.227704][ C0] ? cpu_startup_entry+0x54/0x60 [ 19.227707][ C0] ? rest_init+0x14b/0x260 [ 19.227710][ C0] ? start_kernel+0x350/0x410 [ 19.227717][ C0] __put_net+0x19/0x60 [ 19.227722][ C0] __sk_destruct+0x58a/0x780 [ 19.227726][ C0] ? rcu_do_batch+0x34a/0xf20 [ 19.227729][ C0] rcu_do_batch+0x34f/0xf20 [ 19.227733][ C0] ? find_held_lock+0x2b/0x80 [ 19.227737][ C0] ? __pfx_rcu_do_batch+0x10/0x10 [ 19.227740][ C0] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 19.227744][ C0] ? lockdep_hardirqs_on+0x7c/0x110 [ 19.227747][ C0] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 19.227752][ C0] rcu_core+0x2bb/0x500 [ 19.227757][ C0] handle_softirqs+0x218/0x620 [ 19.227761][ C0] __irq_exit_rcu+0xfa/0x160 [ 19.227764][ C0] irq_exit_rcu+0xe/0x30 [ 19.227766][ C0] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 19.227770][ C0] [ 19.227771][ C0] [ 19.227772][ C0] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 19.227775][ C0] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 19.227780][ C0] 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 [ 19.227782][ C0] RSP: 0018:ffffffff90e07df8 EFLAGS: 00000246 [ 19.227786][ C0] RAX: 0000000000070cf9 RBX: 1ffffffff21c0fc3 RCX: ffffffff9015ba19 [ 19.227788][ C0] RDX: 0000000000000000 RSI: ffffffff90c87785 RDI: ffffffff90451260 [ 19.227790][ C0] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c0667a [ 19.227792][ C0] R10: ffff8880360333d3 R11: 0000000000000000 R12: 0000000000000000 [ 19.227793][ C0] R13: ffffffff90e1f240 R14: dffffc0000000000 R15: 0000000000014770 [ 19.227798][ C0] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 19.227803][ C0] default_idle+0x9/0x10 [ 19.227805][ C0] default_idle_call+0x6d/0xb0 [ 19.227807][ C0] cpuidle_idle_call+0x26f/0x3a0 [ 19.227811][ C0] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 19.227816][ C0] ? tsc_verify_tsc_adjust+0x98/0x300 [ 19.227824][ C0] do_idle+0xf6/0x160 [ 19.227828][ C0] cpu_startup_entry+0x54/0x60 [ 19.227831][ C0] rest_init+0x14b/0x260 [ 19.227835][ C0] start_kernel+0x350/0x410 [ 19.227839][ C0] x86_64_start_reservations+0x18/0x30 [ 19.227844][ C0] x86_64_start_kernel+0xba/0x110 [ 19.227848][ C0] common_startup_64+0x13e/0x148 [ 19.227858][ C0] [ 19.247563][ C0] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 19.248039][ C0] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/0 [ 19.248560][ C0] preempt_count: 101, expected: 0 [ 19.248991][ C0] RCU nest depth: 0, expected: 0 [ 19.249255][ C0] INFO: lockdep is turned off. [ 19.249617][ C0] Preemption disabled at: [ 19.249619][ C0] [] schedule_preempt_disabled+0x22/0x30 [ 19.250217][ C0] CPU: 0 UID: 0 PID: 0 Comm: swapper/0 Not tainted 6.15.0-rc7-virtme #1 PREEMPT(full) [ 19.250224][ C0] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 19.250227][ C0] Call Trace: [ 19.250230][ C0] [ 19.250233][ C0] dump_stack_lvl+0xb0/0xd0 [ 19.250242][ C0] __might_resched+0x360/0x5a0 [ 19.250252][ C0] down_write+0x72/0x210 [ 19.250258][ C0] ? __pfx_down_write+0x10/0x10 [ 19.250263][ C0] ? simple_recursive_removal+0x3a/0x860 [ 19.250270][ C0] ? rcu_is_watching+0x12/0xc0 [ 19.250278][ C0] ? do_raw_spin_unlock+0x58/0x220 [ 19.250286][ C0] simple_recursive_removal+0x166/0x860 [ 19.250290][ C0] ? __pfx_remove_one+0x10/0x10 [ 19.250296][ C0] ? do_raw_spin_unlock+0x58/0x220 [ 19.250305][ C0] debugfs_remove+0x44/0x70 [ 19.250310][ C0] ref_tracker_dir_exit+0xcf/0x740 [ 19.250318][ C0] ? __pfx_ref_tracker_free+0x10/0x10 [ 19.250323][ C0] ? __sk_destruct+0x383/0x780 [ 19.250329][ C0] ? rcu_do_batch+0x34f/0xf20 [ 19.250333][ C0] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 19.250336][ C0] ? irq_exit_rcu+0xe/0x30 [ 19.250340][ C0] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 19.250344][ C0] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 19.250348][ C0] ? pv_native_safe_halt+0xf/0x20 [ 19.250352][ C0] ? default_idle+0x9/0x10 [ 19.250354][ C0] ? default_idle_call+0x6d/0xb0 [ 19.250357][ C0] ? cpuidle_idle_call+0x26f/0x3a0 [ 19.250361][ C0] ? do_idle+0xf6/0x160 [ 19.250364][ C0] ? cpu_startup_entry+0x54/0x60 [ 19.250367][ C0] ? rest_init+0x14b/0x260 [ 19.250370][ C0] ? start_kernel+0x350/0x410 [ 19.250377][ C0] __put_net+0x19/0x60 [ 19.250381][ C0] __sk_destruct+0x58a/0x780 [ 19.250385][ C0] ? rcu_do_batch+0x34a/0xf20 [ 19.250388][ C0] rcu_do_batch+0x34f/0xf20 [ 19.250392][ C0] ? find_held_lock+0x2b/0x80 [ 19.250398][ C0] ? __pfx_rcu_do_batch+0x10/0x10 [ 19.250402][ C0] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 19.250406][ C0] ? lockdep_hardirqs_on+0x7c/0x110 [ 19.250409][ C0] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 19.250414][ C0] rcu_core+0x2bb/0x500 [ 19.250418][ C0] handle_softirqs+0x218/0x620 [ 19.250426][ C0] __irq_exit_rcu+0xfa/0x160 [ 19.250430][ C0] irq_exit_rcu+0xe/0x30 [ 19.250436][ C0] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 19.250442][ C0] [ 19.250443][ C0] [ 19.250446][ C0] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 19.250451][ C0] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 19.250457][ C0] 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 [ 19.250461][ C0] RSP: 0018:ffffffff90e07df8 EFLAGS: 00000246 [ 19.250466][ C0] RAX: 0000000000070cf9 RBX: 1ffffffff21c0fc3 RCX: ffffffff9015ba19 [ 19.250470][ C0] RDX: 0000000000000000 RSI: ffffffff90c87785 RDI: ffffffff90451260 [ 19.250473][ C0] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c0667a [ 19.250476][ C0] R10: ffff8880360333d3 R11: 0000000000000000 R12: 0000000000000000 [ 19.250479][ C0] R13: ffffffff90e1f240 R14: dffffc0000000000 R15: 0000000000014770 [ 19.250488][ C0] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 19.250497][ C0] default_idle+0x9/0x10 [ 19.250501][ C0] default_idle_call+0x6d/0xb0 [ 19.250506][ C0] cpuidle_idle_call+0x26f/0x3a0 [ 19.250513][ C0] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 19.250520][ C0] ? tsc_verify_tsc_adjust+0x98/0x300 [ 19.250528][ C0] do_idle+0xf6/0x160 [ 19.250532][ C0] cpu_startup_entry+0x54/0x60 [ 19.250536][ C0] rest_init+0x14b/0x260 [ 19.250539][ C0] start_kernel+0x350/0x410 [ 19.250544][ C0] x86_64_start_reservations+0x18/0x30 [ 19.250548][ C0] x86_64_start_kernel+0xba/0x110 [ 19.250552][ C0] common_startup_64+0x13e/0x148 [ 19.250560][ C0] [ 22.975289][ C2] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 22.975878][ C2] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 219, name: timeout [ 22.976416][ C2] preempt_count: 101, expected: 0 [ 22.976719][ C2] RCU nest depth: 0, expected: 0 [ 22.976989][ C2] INFO: lockdep is turned off. [ 22.977244][ C2] Preemption disabled at: [ 22.977247][ C2] [] copy_fpstate_to_sigframe+0x257/0x540 [ 22.977859][ C2] CPU: 2 UID: 0 PID: 219 Comm: timeout Tainted: G W 6.15.0-rc7-virtme #1 PREEMPT(full) [ 22.977865][ C2] Tainted: [W]=WARN [ 22.977867][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 22.977869][ C2] Call Trace: [ 22.977871][ C2] [ 22.977873][ C2] dump_stack_lvl+0xb0/0xd0 [ 22.977881][ C2] __might_resched+0x360/0x5a0 [ 22.977887][ C2] down_write+0x72/0x210 [ 22.977892][ C2] ? __pfx_down_write+0x10/0x10 [ 22.977895][ C2] ? simple_recursive_removal+0x3a/0x860 [ 22.977900][ C2] ? rcu_is_watching+0x12/0xc0 [ 22.977907][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 22.977912][ C2] simple_recursive_removal+0x166/0x860 [ 22.977915][ C2] ? __pfx_remove_one+0x10/0x10 [ 22.977919][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 22.977924][ C2] debugfs_remove+0x44/0x70 [ 22.977927][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 22.977932][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 22.977935][ C2] ? __sk_destruct+0x383/0x780 [ 22.977942][ C2] ? rcu_do_batch+0x34f/0xf20 [ 22.977948][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 22.977952][ C2] ? __local_bh_enable_ip+0x105/0x130 [ 22.977957][ C2] ? copy_fpstate_to_sigframe+0x1e1/0x540 [ 22.977964][ C2] ? get_sigframe+0x283/0xa60 [ 22.977971][ C2] ? x64_setup_rt_frame+0xfa/0x1110 [ 22.977974][ C2] ? handle_signal+0x291/0x370 [ 22.977976][ C2] ? arch_do_signal_or_restart+0x299/0x2f0 [ 22.977979][ C2] ? syscall_exit_to_user_mode+0x136/0x1f0 [ 22.977984][ C2] ? do_syscall_64+0xce/0x1d0 [ 22.977987][ C2] ? entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 22.977992][ C2] ? bpf_sk_storage_free+0x9f/0x1c0 [ 22.977999][ C2] ? rcu_is_watching+0x12/0xc0 [ 22.978007][ C2] __put_net+0x19/0x60 [ 22.978012][ C2] __sk_destruct+0x58a/0x780 [ 22.978018][ C2] ? rcu_do_batch+0x34a/0xf20 [ 22.978023][ C2] rcu_do_batch+0x34f/0xf20 [ 22.978031][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 22.978038][ C2] ? rcu_is_watching+0x12/0xc0 [ 22.978044][ C2] ? trace_irq_enable.constprop.0+0xd4/0x130 [ 22.978055][ C2] rcu_core+0x2bb/0x500 [ 22.978061][ C2] handle_softirqs+0x218/0x620 [ 22.978067][ C2] ? copy_fpstate_to_sigframe+0x1dc/0x540 [ 22.978074][ C2] do_softirq+0xb1/0xe0 [ 22.978078][ C2] [ 22.978080][ C2] [ 22.978083][ C2] __local_bh_enable_ip+0x105/0x130 [ 22.978088][ C2] copy_fpstate_to_sigframe+0x1e1/0x540 [ 22.978098][ C2] get_sigframe+0x283/0xa60 [ 22.978103][ C2] ? trace_irq_enable.constprop.0+0xd4/0x130 [ 22.978110][ C2] ? __pfx_get_sigframe+0x10/0x10 [ 22.978117][ C2] ? rcu_is_watching+0x12/0xc0 [ 22.978123][ C2] ? trace_rseq_update+0xd2/0x130 [ 22.978133][ C2] x64_setup_rt_frame+0xfa/0x1110 [ 22.978137][ C2] ? __pfx___rseq_handle_notify_resume+0x10/0x10 [ 22.978142][ C2] ? __pfx_x64_setup_rt_frame+0x10/0x10 [ 22.978145][ C2] ? __pfx___schedule+0x10/0x10 [ 22.978151][ C2] handle_signal+0x291/0x370 [ 22.978155][ C2] arch_do_signal_or_restart+0x299/0x2f0 [ 22.978159][ C2] ? __pfx_arch_do_signal_or_restart+0x10/0x10 [ 22.978165][ C2] ? __x64_sys_rt_sigsuspend+0xbd/0x120 [ 22.978171][ C2] ? rcu_is_watching+0x12/0xc0 [ 22.978175][ C2] syscall_exit_to_user_mode+0x136/0x1f0 [ 22.978180][ C2] do_syscall_64+0xce/0x1d0 [ 22.978183][ C2] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 22.978186][ C2] RIP: 0033:0x7f499295006c [ 22.978195][ C2] Code: Unable to access opcode bytes at 0x7f4992950042. [ 22.978197][ C2] RSP: 002b:00007ffd1e0b38f8 EFLAGS: 00000246 ORIG_RAX: 0000000000000082 [ 22.978201][ C2] RAX: fffffffffffffffc RBX: 00007ffd1e0b3938 RCX: 00007f499295006c [ 22.978203][ C2] RDX: 0000000000000001 RSI: 0000000000000008 RDI: 00007ffd1e0b3960 [ 22.978205][ C2] RBP: 00007ffd1e0b39e0 R08: 00007ffd1e0b39e0 R09: 0000000000000000 [ 22.978207][ C2] R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffd1e0b3960 [ 22.978209][ C2] R13: 4056800000000000 R14: 000000000000000f R15: 00007f4992b43000 [ 22.978214][ C2]