[ 13.104013][ C2] [ 13.104171][ C2] ================================ [ 13.104405][ C2] WARNING: inconsistent lock state [ 13.104630][ C2] 6.15.0-virtme #1 Not tainted [ 13.104850][ C2] -------------------------------- [ 13.105068][ C2] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 13.105340][ C2] modprobe/230 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 13.105614][ C2] ffffffff955c5af8 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 13.106004][ C2] {SOFTIRQ-ON-W} state was registered at: [ 13.106224][ C2] __lock_acquire+0x20b/0x7e0 [ 13.106455][ C2] lock_acquire.part.0+0xb6/0x240 [ 13.106674][ C2] _raw_spin_lock+0x33/0x40 [ 13.106890][ C2] simple_pin_fs+0x24/0x150 [ 13.107103][ C2] start_creating.part.0+0x52/0x310 [ 13.107325][ C2] debugfs_create_dir+0x6a/0x540 [ 13.107542][ C2] component_debug_init+0x17/0x30 [ 13.107764][ C2] do_one_initcall+0x8f/0x1e0 [ 13.107989][ C2] do_initcalls+0x176/0x280 [ 13.108216][ C2] kernel_init_freeable+0x22d/0x300 [ 13.108427][ C2] kernel_init+0x20/0x200 [ 13.108638][ C2] ret_from_fork+0x240/0x320 [ 13.108852][ C2] ret_from_fork_asm+0x1a/0x30 [ 13.109063][ C2] irq event stamp: 4034 [ 13.109224][ C2] hardirqs last enabled at (4034): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 13.109643][ C2] hardirqs last disabled at (4033): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 13.110008][ C2] softirqs last enabled at (2528): [] handle_softirqs+0x358/0x620 [ 13.110385][ C2] softirqs last disabled at (3537): [] __irq_exit_rcu+0xfa/0x160 [ 13.110761][ C2] [ 13.110761][ C2] other info that might help us debug this: [ 13.111076][ C2] Possible unsafe locking scenario: [ 13.111076][ C2] [ 13.111389][ C2] CPU0 [ 13.111549][ C2] ---- [ 13.111709][ C2] lock(pin_fs_lock); [ 13.111874][ C2] [ 13.112037][ C2] lock(pin_fs_lock); [ 13.112201][ C2] [ 13.112201][ C2] *** DEADLOCK *** [ 13.112201][ C2] [ 13.112517][ C2] 7 locks held by modprobe/230: [ 13.112732][ C2] #0: ffff88800c20e448 (vm_lock){++++}-{0:0}, at: do_user_addr_fault+0x461/0xe00 [ 13.113114][ C2] #1: ffffffff953775e0 (rcu_read_lock){....}-{1:3}, at: do_fault_around+0x1e9/0x4c0 [ 13.113493][ C2] #2: ffffffff953775e0 (rcu_read_lock){....}-{1:3}, at: filemap_map_pages+0x169/0xf90 [ 13.113871][ C2] #3: ffffffff953775e0 (rcu_read_lock){....}-{1:3}, at: ___pte_offset_map+0x2c/0x2a0 [ 13.114253][ C2] #4: ffff8880090855a0 (ptlock_ptr(ptdesc)#2){+.+.}-{3:3}, at: __pte_offset_map_lock+0xfa/0x280 [ 13.114682][ C2] #5: ffffffff953775e0 (rcu_read_lock){....}-{1:3}, at: page_ref_add_unless.constprop.0+0x1b/0x280 [ 13.115111][ C2] #6: ffffffff953774c0 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 13.115491][ C2] [ 13.115491][ C2] stack backtrace: [ 13.115759][ C2] CPU: 2 UID: 0 PID: 230 Comm: modprobe Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 13.115763][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 13.115766][ C2] Call Trace: [ 13.115768][ C2] [ 13.115770][ C2] dump_stack_lvl+0x82/0xd0 [ 13.115778][ C2] print_usage_bug.part.0+0x25f/0x360 [ 13.115783][ C2] mark_lock_irq+0x343/0x400 [ 13.115787][ C2] ? __pfx_unwind_next_frame+0x10/0x10 [ 13.115793][ C2] ? save_trace+0x52/0x170 [ 13.115798][ C2] mark_lock+0x174/0x2f0 [ 13.115802][ C2] mark_usage+0x46/0x150 [ 13.115805][ C2] __lock_acquire+0x20b/0x7e0 [ 13.115809][ C2] ? __lock_acquire+0x44d/0x7e0 [ 13.115813][ C2] lock_acquire.part.0+0xb6/0x240 [ 13.115816][ C2] ? simple_pin_fs+0x24/0x150 [ 13.115820][ C2] ? rcu_is_watching+0x12/0xc0 [ 13.115826][ C2] ? lock_acquire+0x10c/0x170 [ 13.115829][ C2] ? simple_pin_fs+0x24/0x150 [ 13.115833][ C2] _raw_spin_lock+0x33/0x40 [ 13.115837][ C2] ? simple_pin_fs+0x24/0x150 [ 13.115839][ C2] simple_pin_fs+0x24/0x150 [ 13.115842][ C2] debugfs_remove+0x35/0x70 [ 13.115846][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 13.115852][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 13.115854][ C2] ? __sk_destruct+0x383/0x780 [ 13.115861][ C2] ? rcu_do_batch+0x34c/0xf20 [ 13.115864][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 13.115866][ C2] ? irq_exit_rcu+0xe/0x30 [ 13.115870][ C2] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 13.115875][ C2] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 13.115880][ C2] ? kasan_check_range+0x106/0x1c0 [ 13.115885][ C2] ? page_ref_add_unless.constprop.0+0x53/0x280 [ 13.115888][ C2] ? next_uptodate_folio+0x7b/0x340 [ 13.115891][ C2] ? filemap_map_pages+0x506/0xf90 [ 13.115894][ C2] ? do_fault_around+0x2a8/0x4c0 [ 13.115897][ C2] ? do_pte_missing+0x810/0xca0 [ 13.115901][ C2] ? handle_pte_fault+0x3e0/0x690 [ 13.115903][ C2] ? __handle_mm_fault+0x3fc/0x5e0 [ 13.115908][ C2] __put_net+0x19/0x60 [ 13.115913][ C2] __sk_destruct+0x58a/0x780 [ 13.115917][ C2] ? rcu_do_batch+0x34a/0xf20 [ 13.115920][ C2] rcu_do_batch+0x34c/0xf20 [ 13.115925][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 13.115928][ C2] ? mark_held_locks+0x49/0x80 [ 13.115932][ C2] ? note_gp_changes+0x182/0x1e0 [ 13.115935][ C2] ? lockdep_hardirqs_on+0x7c/0x110 [ 13.115940][ C2] rcu_core+0x2bb/0x500 [ 13.115945][ C2] handle_softirqs+0x218/0x620 [ 13.115951][ C2] __irq_exit_rcu+0xfa/0x160 [ 13.115954][ C2] irq_exit_rcu+0xe/0x30 [ 13.115957][ C2] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 13.115961][ C2] [ 13.115962][ C2] [ 13.115964][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 13.115967][ C2] RIP: 0010:kasan_check_range+0x106/0x1c0 [ 13.115970][ C2] Code: 00 74 f2 48 89 c2 b8 01 00 00 00 48 85 d2 0f 84 4c ff ff ff 41 83 e2 07 49 39 d1 0f 85 34 ff ff ff 45 3a 11 0f 8d 2b ff ff ff <5b> b8 01 00 00 00 5d 41 5c e9 7c f4 0a 02 41 bc 08 00 00 00 45 29 [ 13.115973][ C2] RSP: 0000:ffffc900004d7978 EFLAGS: 00000246 [ 13.115977][ C2] RAX: fffff9400006766f RBX: fffff9400006766f RCX: ffffffff9210e1a3 [ 13.115979][ C2] RDX: fffff9400006766f RSI: 0000000000000004 RDI: ffffea000033b374 [ 13.115980][ C2] RBP: fffff9400006766e R08: 0000000000000001 R09: fffff9400006766e [ 13.115982][ C2] R10: ffffea000033b377 R11: ffffffff953775e0 R12: dffffc0000000000 [ 13.115984][ C2] R13: ffffea000033b340 R14: 1ffff9200009af5f R15: ffffc900004d7af8 [ 13.115988][ C2] ? page_ref_add_unless.constprop.0+0x53/0x280 [ 13.115993][ C2] page_ref_add_unless.constprop.0+0x53/0x280 [ 13.115997][ C2] next_uptodate_folio+0x7b/0x340 [ 13.116001][ C2] filemap_map_pages+0x506/0xf90 [ 13.116005][ C2] ? rcu_read_lock_any_held+0x43/0xb0 [ 13.116009][ C2] ? validate_chain+0x166/0x4d0 [ 13.116016][ C2] ? __pfx_filemap_map_pages+0x10/0x10 [ 13.116021][ C2] ? rcu_is_watching+0x12/0xc0 [ 13.116024][ C2] ? lock_acquire+0x10c/0x170 [ 13.116027][ C2] ? do_fault_around+0x1e9/0x4c0 [ 13.116031][ C2] ? __pfx_filemap_map_pages+0x10/0x10 [ 13.116034][ C2] do_fault_around+0x2a8/0x4c0 [ 13.116039][ C2] do_pte_missing+0x810/0xca0 [ 13.116042][ C2] ? rcu_read_unlock+0x18/0x70 [ 13.116046][ C2] handle_pte_fault+0x3e0/0x690 [ 13.116049][ C2] ? __pfx_handle_pte_fault+0x10/0x10 [ 13.116053][ C2] ? reacquire_held_locks+0xd1/0x200 [ 13.116056][ C2] ? do_user_addr_fault+0x461/0xe00 [ 13.116061][ C2] __handle_mm_fault+0x3fc/0x5e0 [ 13.116064][ C2] ? __pfx___handle_mm_fault+0x10/0x10 [ 13.116066][ C2] ? __lock_release+0xa8/0x170 [ 13.116073][ C2] ? __pfx_lock_vma_under_rcu+0x10/0x10 [ 13.116076][ C2] handle_mm_fault+0x200/0x420 [ 13.116079][ C2] ? __pfx_handle_mm_fault+0x10/0x10 [ 13.116082][ C2] ? exc_page_fault+0x5d/0xc0 [ 13.116085][ C2] ? __lock_release+0x5d/0x170 [ 13.116090][ C2] do_user_addr_fault+0x576/0xe00 [ 13.116094][ C2] ? rcu_is_watching+0x12/0xc0 [ 13.116098][ C2] exc_page_fault+0x5d/0xc0 [ 13.116102][ C2] asm_exc_page_fault+0x26/0x30 [ 13.116104][ C2] RIP: 0033:0x7f722afa9d77 [ 13.116108][ C2] Code: 1f 40 00 f3 0f 1e fa 66 0f 6e ce 89 f8 25 ff 0f 00 00 66 0f 60 c9 3d c0 0f 00 00 66 0f 61 c9 66 0f 70 c9 00 0f 8f 69 01 00 00 0f 6f 07 66 0f ef db 66 0f 6f e0 66 0f 74 c1 66 0f 74 e3 66 0f [ 13.116110][ C2] RSP: 002b:00007ffef5c74e08 EFLAGS: 00010283 [ 13.116113][ C2] RAX: 00000000000005d0 RBX: 00007ffef5c74e40 RCX: 0000000000000000 [ 13.116114][ C2] RDX: 00007ffef5c74e58 RSI: 0000000000000024 RDI: 0000559fd404d5d0 [ 13.116116][ C2] RBP: 00007ffef5c75380 R08: 0000000000000000 R09: 0000000000000000 [ 13.116117][ C2] R10: 00007ffef5c74e40 R11: 0000000000000246 R12: 0000000000000000 [ 13.116119][ C2] R13: 00007f722afdd220 R14: 0000559fd404d5d0 R15: 0000000000000000 [ 13.116124][ C2] [ 13.140339][ C2] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 13.140744][ C2] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 230, name: modprobe [ 13.141129][ C2] preempt_count: 101, expected: 0 [ 13.141359][ C2] RCU nest depth: 4, expected: 0 [ 13.141595][ C2] INFO: lockdep is turned off. [ 13.141833][ C2] Preemption disabled at: [ 13.141835][ C2] [<0000000000000000>] 0x0 [ 13.142237][ C2] CPU: 2 UID: 0 PID: 230 Comm: modprobe Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 13.142242][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 13.142244][ C2] Call Trace: [ 13.142247][ C2] [ 13.142248][ C2] dump_stack_lvl+0xb0/0xd0 [ 13.142257][ C2] __might_resched+0x360/0x5a0 [ 13.142267][ C2] down_write+0x72/0x210 [ 13.142272][ C2] ? __pfx_down_write+0x10/0x10 [ 13.142275][ C2] ? simple_recursive_removal+0x33/0x610 [ 13.142281][ C2] ? rcu_is_watching+0x12/0xc0 [ 13.142288][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 13.142292][ C2] simple_recursive_removal+0x6a/0x610 [ 13.142296][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 13.142298][ C2] ? __pfx_remove_one+0x10/0x10 [ 13.142304][ C2] debugfs_remove+0x44/0x70 [ 13.142308][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 13.142313][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 13.142315][ C2] ? __sk_destruct+0x383/0x780 [ 13.142322][ C2] ? rcu_do_batch+0x34c/0xf20 [ 13.142326][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 13.142329][ C2] ? irq_exit_rcu+0xe/0x30 [ 13.142335][ C2] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 13.142340][ C2] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 13.142345][ C2] ? kasan_check_range+0x106/0x1c0 [ 13.142350][ C2] ? page_ref_add_unless.constprop.0+0x53/0x280 [ 13.142356][ C2] ? next_uptodate_folio+0x7b/0x340 [ 13.142359][ C2] ? filemap_map_pages+0x506/0xf90 [ 13.142362][ C2] ? do_fault_around+0x2a8/0x4c0 [ 13.142368][ C2] ? do_pte_missing+0x810/0xca0 [ 13.142372][ C2] ? handle_pte_fault+0x3e0/0x690 [ 13.142374][ C2] ? __handle_mm_fault+0x3fc/0x5e0 [ 13.142379][ C2] __put_net+0x19/0x60 [ 13.142384][ C2] __sk_destruct+0x58a/0x780 [ 13.142388][ C2] ? rcu_do_batch+0x34a/0xf20 [ 13.142391][ C2] rcu_do_batch+0x34c/0xf20 [ 13.142395][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 13.142399][ C2] ? mark_held_locks+0x49/0x80 [ 13.142405][ C2] ? note_gp_changes+0x182/0x1e0 [ 13.142408][ C2] ? lockdep_hardirqs_on+0x7c/0x110 [ 13.142412][ C2] rcu_core+0x2bb/0x500 [ 13.142417][ C2] handle_softirqs+0x218/0x620 [ 13.142423][ C2] __irq_exit_rcu+0xfa/0x160 [ 13.142426][ C2] irq_exit_rcu+0xe/0x30 [ 13.142429][ C2] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 13.142433][ C2] [ 13.142434][ C2] [ 13.142435][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 13.142438][ C2] RIP: 0010:kasan_check_range+0x106/0x1c0 [ 13.142442][ C2] Code: 00 74 f2 48 89 c2 b8 01 00 00 00 48 85 d2 0f 84 4c ff ff ff 41 83 e2 07 49 39 d1 0f 85 34 ff ff ff 45 3a 11 0f 8d 2b ff ff ff <5b> b8 01 00 00 00 5d 41 5c e9 7c f4 0a 02 41 bc 08 00 00 00 45 29 [ 13.142444][ C2] RSP: 0000:ffffc900004d7978 EFLAGS: 00000246 [ 13.142448][ C2] RAX: fffff9400006766f RBX: fffff9400006766f RCX: ffffffff9210e1a3 [ 13.142450][ C2] RDX: fffff9400006766f RSI: 0000000000000004 RDI: ffffea000033b374 [ 13.142452][ C2] RBP: fffff9400006766e R08: 0000000000000001 R09: fffff9400006766e [ 13.142454][ C2] R10: ffffea000033b377 R11: ffffffff953775e0 R12: dffffc0000000000 [ 13.142456][ C2] R13: ffffea000033b340 R14: 1ffff9200009af5f R15: ffffc900004d7af8 [ 13.142459][ C2] ? page_ref_add_unless.constprop.0+0x53/0x280 [ 13.142467][ C2] page_ref_add_unless.constprop.0+0x53/0x280 [ 13.142470][ C2] next_uptodate_folio+0x7b/0x340 [ 13.142475][ C2] filemap_map_pages+0x506/0xf90 [ 13.142478][ C2] ? rcu_read_lock_any_held+0x43/0xb0 [ 13.142484][ C2] ? validate_chain+0x166/0x4d0 [ 13.142492][ C2] ? __pfx_filemap_map_pages+0x10/0x10 [ 13.142497][ C2] ? rcu_is_watching+0x12/0xc0 [ 13.142500][ C2] ? lock_acquire+0x10c/0x170 [ 13.142503][ C2] ? do_fault_around+0x1e9/0x4c0 [ 13.142507][ C2] ? __pfx_filemap_map_pages+0x10/0x10 [ 13.142510][ C2] do_fault_around+0x2a8/0x4c0 [ 13.142515][ C2] do_pte_missing+0x810/0xca0 [ 13.142518][ C2] ? rcu_read_unlock+0x18/0x70 [ 13.142522][ C2] handle_pte_fault+0x3e0/0x690 [ 13.142526][ C2] ? __pfx_handle_pte_fault+0x10/0x10 [ 13.142530][ C2] ? reacquire_held_locks+0xd1/0x200 [ 13.142533][ C2] ? do_user_addr_fault+0x461/0xe00 [ 13.142539][ C2] __handle_mm_fault+0x3fc/0x5e0 [ 13.142542][ C2] ? __pfx___handle_mm_fault+0x10/0x10 [ 13.142545][ C2] ? __lock_release+0xa8/0x170 [ 13.142552][ C2] ? __pfx_lock_vma_under_rcu+0x10/0x10 [ 13.142556][ C2] handle_mm_fault+0x200/0x420 [ 13.142558][ C2] ? __pfx_handle_mm_fault+0x10/0x10 [ 13.142561][ C2] ? exc_page_fault+0x5d/0xc0 [ 13.142564][ C2] ? __lock_release+0x5d/0x170 [ 13.142569][ C2] do_user_addr_fault+0x576/0xe00 [ 13.142573][ C2] ? rcu_is_watching+0x12/0xc0 [ 13.142577][ C2] exc_page_fault+0x5d/0xc0 [ 13.142581][ C2] asm_exc_page_fault+0x26/0x30 [ 13.142583][ C2] RIP: 0033:0x7f722afa9d77 [ 13.142586][ C2] Code: 1f 40 00 f3 0f 1e fa 66 0f 6e ce 89 f8 25 ff 0f 00 00 66 0f 60 c9 3d c0 0f 00 00 66 0f 61 c9 66 0f 70 c9 00 0f 8f 69 01 00 00 0f 6f 07 66 0f ef db 66 0f 6f e0 66 0f 74 c1 66 0f 74 e3 66 0f [ 13.142588][ C2] RSP: 002b:00007ffef5c74e08 EFLAGS: 00010283 [ 13.142590][ C2] RAX: 00000000000005d0 RBX: 00007ffef5c74e40 RCX: 0000000000000000 [ 13.142592][ C2] RDX: 00007ffef5c74e58 RSI: 0000000000000024 RDI: 0000559fd404d5d0 [ 13.142594][ C2] RBP: 00007ffef5c75380 R08: 0000000000000000 R09: 0000000000000000 [ 13.142595][ C2] R10: 00007ffef5c74e40 R11: 0000000000000246 R12: 0000000000000000 [ 13.142597][ C2] R13: 00007f722afdd220 R14: 0000559fd404d5d0 R15: 0000000000000000 [ 13.142602][ C2]