[ 13.231546][ C2] [ 13.231699][ C2] ================================ [ 13.231924][ C2] WARNING: inconsistent lock state [ 13.232134][ C2] 6.15.0-virtme #1 Not tainted [ 13.232345][ C2] -------------------------------- [ 13.232552][ C2] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 13.232811][ C2] modprobe/233 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 13.233080][ C2] ffffffffa5fc5af8 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 13.233462][ C2] {SOFTIRQ-ON-W} state was registered at: [ 13.233671][ C2] __lock_acquire+0x20b/0x7e0 [ 13.233887][ C2] lock_acquire.part.0+0xb6/0x240 [ 13.234099][ C2] _raw_spin_lock+0x33/0x40 [ 13.234308][ C2] simple_pin_fs+0x24/0x150 [ 13.234524][ C2] start_creating.part.0+0x52/0x310 [ 13.234744][ C2] debugfs_create_dir+0x6a/0x540 [ 13.234959][ C2] component_debug_init+0x17/0x30 [ 13.235168][ C2] do_one_initcall+0x8f/0x1e0 [ 13.235377][ C2] do_initcalls+0x176/0x280 [ 13.235586][ C2] kernel_init_freeable+0x22d/0x300 [ 13.235798][ C2] kernel_init+0x20/0x200 [ 13.236015][ C2] ret_from_fork+0x240/0x320 [ 13.236225][ C2] ret_from_fork_asm+0x1a/0x30 [ 13.236434][ C2] irq event stamp: 3494 [ 13.236593][ C2] hardirqs last enabled at (3494): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 13.237015][ C2] hardirqs last disabled at (3493): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 13.237384][ C2] softirqs last enabled at (2434): [] handle_softirqs+0x358/0x620 [ 13.237750][ C2] softirqs last disabled at (3111): [] __irq_exit_rcu+0xfa/0x160 [ 13.238130][ C2] [ 13.238130][ C2] other info that might help us debug this: [ 13.238436][ C2] Possible unsafe locking scenario: [ 13.238436][ C2] [ 13.238785][ C2] CPU0 [ 13.239005][ C2] ---- [ 13.239242][ C2] lock(pin_fs_lock); [ 13.239488][ C2] [ 13.239653][ C2] lock(pin_fs_lock); [ 13.239813][ C2] [ 13.239813][ C2] *** DEADLOCK *** [ 13.239813][ C2] [ 13.240129][ C2] 2 locks held by modprobe/233: [ 13.240346][ C2] #0: ffff88800177e890 (mapping.invalidate_lock){.+.+}-{4:4}, at: page_cache_ra_unbounded+0x132/0x5e0 [ 13.240779][ C2] #1: ffffffffa5d774c0 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 13.241161][ C2] [ 13.241161][ C2] stack backtrace: [ 13.241422][ C2] CPU: 2 UID: 0 PID: 233 Comm: modprobe Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 13.241427][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 13.241429][ C2] Call Trace: [ 13.241432][ C2] [ 13.241433][ C2] dump_stack_lvl+0x82/0xd0 [ 13.241440][ C2] print_usage_bug.part.0+0x25f/0x360 [ 13.241446][ C2] mark_lock_irq+0x343/0x400 [ 13.241451][ C2] ? __pfx_unwind_next_frame+0x10/0x10 [ 13.241457][ C2] ? save_trace+0x52/0x170 [ 13.241461][ C2] mark_lock+0x174/0x2f0 [ 13.241465][ C2] mark_usage+0x46/0x150 [ 13.241469][ C2] __lock_acquire+0x20b/0x7e0 [ 13.241472][ C2] ? __lock_acquire+0x44d/0x7e0 [ 13.241477][ C2] lock_acquire.part.0+0xb6/0x240 [ 13.241480][ C2] ? simple_pin_fs+0x24/0x150 [ 13.241485][ C2] ? rcu_is_watching+0x12/0xc0 [ 13.241490][ C2] ? lock_acquire+0x10c/0x170 [ 13.241492][ C2] ? simple_pin_fs+0x24/0x150 [ 13.241496][ C2] _raw_spin_lock+0x33/0x40 [ 13.241500][ C2] ? simple_pin_fs+0x24/0x150 [ 13.241502][ C2] simple_pin_fs+0x24/0x150 [ 13.241506][ C2] debugfs_remove+0x35/0x70 [ 13.241511][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 13.241515][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 13.241518][ C2] ? __sk_destruct+0x383/0x780 [ 13.241523][ C2] ? rcu_do_batch+0x34c/0xf20 [ 13.241526][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 13.241529][ C2] ? irq_exit_rcu+0xe/0x30 [ 13.241535][ C2] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 13.241539][ C2] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 13.241543][ C2] ? _raw_spin_unlock_irqrestore+0x41/0x80 [ 13.241547][ C2] ? __create_object+0x5e/0xb0 [ 13.241551][ C2] ? __kmalloc_cache_noprof+0x2bb/0x360 [ 13.241555][ C2] ? fuse_io_alloc+0x47/0x140 [ 13.241560][ C2] ? fuse_readahead+0x426/0xa50 [ 13.241563][ C2] ? read_pages+0x187/0xab0 [ 13.241566][ C2] ? page_cache_ra_unbounded+0x441/0x5e0 [ 13.241570][ C2] ? do_sync_mmap_readahead+0x4d8/0x890 [ 13.241577][ C2] __put_net+0x19/0x60 [ 13.241581][ C2] __sk_destruct+0x58a/0x780 [ 13.241585][ C2] ? rcu_do_batch+0x34a/0xf20 [ 13.241588][ C2] rcu_do_batch+0x34c/0xf20 [ 13.241591][ C2] ? find_held_lock+0x2b/0x80 [ 13.241595][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 13.241598][ C2] ? mark_held_locks+0x49/0x80 [ 13.241602][ C2] ? note_gp_changes+0x182/0x1e0 [ 13.241605][ C2] ? lockdep_hardirqs_on+0x7c/0x110 [ 13.241610][ C2] rcu_core+0x2bb/0x500 [ 13.241615][ C2] handle_softirqs+0x218/0x620 [ 13.241620][ C2] __irq_exit_rcu+0xfa/0x160 [ 13.241623][ C2] irq_exit_rcu+0xe/0x30 [ 13.241626][ C2] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 13.241630][ C2] [ 13.241631][ C2] [ 13.241633][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 13.241636][ C2] RIP: 0010:_raw_spin_unlock_irqrestore+0x41/0x80 [ 13.241640][ C2] Code: 74 24 10 e8 c1 fe 81 fd 48 89 ef e8 79 51 82 fd 81 e3 00 02 00 00 75 29 9c 58 f6 c4 02 75 35 48 85 db 74 01 fb bf 01 00 00 00 fa 4e 76 fd 65 8b 05 13 bd 96 02 85 c0 74 0e 5b 5d c3 cc cc cc [ 13.241643][ C2] RSP: 0000:ffffc900009875b0 EFLAGS: 00000206 [ 13.241646][ C2] RAX: 0000000000000002 RBX: 0000000000000200 RCX: 0000000000000080 [ 13.241648][ C2] RDX: 0000000000000000 RSI: ffffffffa589175c RDI: 0000000000000001 [ 13.241650][ C2] RBP: ffffffffa5f89020 R08: 0000000000000001 R09: 0000000000000001 [ 13.241651][ C2] R10: ffffffffa67e7cd7 R11: ffffffffa5f89038 R12: ffff88800baf5c00 [ 13.241653][ C2] R13: 0000000000000100 R14: 0000000000000001 R15: 0000000000000282 [ 13.241659][ C2] __create_object+0x5e/0xb0 [ 13.241663][ C2] __kmalloc_cache_noprof+0x2bb/0x360 [ 13.241668][ C2] fuse_io_alloc+0x47/0x140 [ 13.241672][ C2] fuse_readahead+0x426/0xa50 [ 13.241679][ C2] ? __pfx_fuse_readahead+0x10/0x10 [ 13.241687][ C2] read_pages+0x187/0xab0 [ 13.241690][ C2] ? xa_load+0x112/0x230 [ 13.241693][ C2] ? __lock_release+0x5d/0x170 [ 13.241698][ C2] ? __pfx_read_pages+0x10/0x10 [ 13.241706][ C2] page_cache_ra_unbounded+0x441/0x5e0 [ 13.241712][ C2] do_sync_mmap_readahead+0x4d8/0x890 [ 13.241716][ C2] ? __pfx_do_sync_mmap_readahead+0x10/0x10 [ 13.241722][ C2] ? __filemap_get_folio+0x45/0x6a0 [ 13.241727][ C2] filemap_fault+0xa71/0x1500 [ 13.241732][ C2] ? __pfx_filemap_map_pages+0x10/0x10 [ 13.241736][ C2] ? __pfx_filemap_fault+0x10/0x10 [ 13.241739][ C2] ? find_held_lock+0x2b/0x80 [ 13.241742][ C2] ? do_fault_around+0x2c6/0x4c0 [ 13.241746][ C2] ? __lock_release+0x5d/0x170 [ 13.241750][ C2] ? do_fault_around+0x2c6/0x4c0 [ 13.241755][ C2] __do_fault+0xed/0x3a0 [ 13.241759][ C2] do_pte_missing+0x67d/0xca0 [ 13.241762][ C2] ? rcu_read_unlock+0x18/0x70 [ 13.241766][ C2] handle_pte_fault+0x3e0/0x690 [ 13.241769][ C2] ? __pfx_handle_pte_fault+0x10/0x10 [ 13.241773][ C2] ? reacquire_held_locks+0xd1/0x200 [ 13.241776][ C2] ? do_user_addr_fault+0x461/0xe00 [ 13.241782][ C2] __handle_mm_fault+0x3fc/0x5e0 [ 13.241785][ C2] ? __pfx___handle_mm_fault+0x10/0x10 [ 13.241787][ C2] ? __lock_release+0xa8/0x170 [ 13.241794][ C2] ? __pfx_lock_vma_under_rcu+0x10/0x10 [ 13.241798][ C2] handle_mm_fault+0x200/0x420 [ 13.241801][ C2] ? __pfx_handle_mm_fault+0x10/0x10 [ 13.241804][ C2] ? task_work_run+0x14c/0x220 [ 13.241810][ C2] do_user_addr_fault+0x576/0xe00 [ 13.241814][ C2] ? rcu_is_watching+0x12/0xc0 [ 13.241818][ C2] exc_page_fault+0x5d/0xc0 [ 13.241822][ C2] asm_exc_page_fault+0x26/0x30 [ 13.241824][ C2] RIP: 0033:0x7fb5ecfc5a30 [ 13.241832][ C2] Code: Unable to access opcode bytes at 0x7fb5ecfc5a06. [ 13.241833][ C2] RSP: 002b:00007ffe90300200 EFLAGS: 00010202 [ 13.241835][ C2] RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000 [ 13.241837][ C2] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 [ 13.241838][ C2] RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 [ 13.241840][ C2] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 13.241841][ C2] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 13.241846][ C2] [ 13.267059][ C2] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 13.267437][ C2] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 233, name: modprobe [ 13.267789][ C2] preempt_count: 101, expected: 0 [ 13.267997][ C2] RCU nest depth: 0, expected: 0 [ 13.268217][ C2] INFO: lockdep is turned off. [ 13.268425][ C2] Preemption disabled at: [ 13.268426][ C2] [<0000000000000000>] 0x0 [ 13.268818][ C2] CPU: 2 UID: 0 PID: 233 Comm: modprobe Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 13.268824][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 13.268826][ C2] Call Trace: [ 13.268828][ C2] [ 13.268830][ C2] dump_stack_lvl+0xb0/0xd0 [ 13.268838][ C2] __might_resched+0x360/0x5a0 [ 13.268846][ C2] down_write+0x72/0x210 [ 13.268851][ C2] ? __pfx_down_write+0x10/0x10 [ 13.268854][ C2] ? simple_recursive_removal+0x33/0x610 [ 13.268859][ C2] ? rcu_is_watching+0x12/0xc0 [ 13.268865][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 13.268869][ C2] simple_recursive_removal+0x6a/0x610 [ 13.268872][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 13.268874][ C2] ? __pfx_remove_one+0x10/0x10 [ 13.268880][ C2] debugfs_remove+0x44/0x70 [ 13.268883][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 13.268888][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 13.268890][ C2] ? __sk_destruct+0x383/0x780 [ 13.268895][ C2] ? rcu_do_batch+0x34c/0xf20 [ 13.268899][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 13.268902][ C2] ? irq_exit_rcu+0xe/0x30 [ 13.268907][ C2] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 13.268912][ C2] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 13.268916][ C2] ? _raw_spin_unlock_irqrestore+0x41/0x80 [ 13.268920][ C2] ? __create_object+0x5e/0xb0 [ 13.268924][ C2] ? __kmalloc_cache_noprof+0x2bb/0x360 [ 13.268929][ C2] ? fuse_io_alloc+0x47/0x140 [ 13.268934][ C2] ? fuse_readahead+0x426/0xa50 [ 13.268937][ C2] ? read_pages+0x187/0xab0 [ 13.268942][ C2] ? page_cache_ra_unbounded+0x441/0x5e0 [ 13.268945][ C2] ? do_sync_mmap_readahead+0x4d8/0x890 [ 13.268951][ C2] __put_net+0x19/0x60 [ 13.268955][ C2] __sk_destruct+0x58a/0x780 [ 13.268959][ C2] ? rcu_do_batch+0x34a/0xf20 [ 13.268962][ C2] rcu_do_batch+0x34c/0xf20 [ 13.268965][ C2] ? find_held_lock+0x2b/0x80 [ 13.268969][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 13.268973][ C2] ? mark_held_locks+0x49/0x80 [ 13.268977][ C2] ? note_gp_changes+0x182/0x1e0 [ 13.268980][ C2] ? lockdep_hardirqs_on+0x7c/0x110 [ 13.268985][ C2] rcu_core+0x2bb/0x500 [ 13.268989][ C2] handle_softirqs+0x218/0x620 [ 13.268995][ C2] __irq_exit_rcu+0xfa/0x160 [ 13.268998][ C2] irq_exit_rcu+0xe/0x30 [ 13.269001][ C2] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 13.269005][ C2] [ 13.269006][ C2] [ 13.269008][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 13.269011][ C2] RIP: 0010:_raw_spin_unlock_irqrestore+0x41/0x80 [ 13.269015][ C2] Code: 74 24 10 e8 c1 fe 81 fd 48 89 ef e8 79 51 82 fd 81 e3 00 02 00 00 75 29 9c 58 f6 c4 02 75 35 48 85 db 74 01 fb bf 01 00 00 00 fa 4e 76 fd 65 8b 05 13 bd 96 02 85 c0 74 0e 5b 5d c3 cc cc cc [ 13.269018][ C2] RSP: 0000:ffffc900009875b0 EFLAGS: 00000206 [ 13.269021][ C2] RAX: 0000000000000002 RBX: 0000000000000200 RCX: 0000000000000080 [ 13.269023][ C2] RDX: 0000000000000000 RSI: ffffffffa589175c RDI: 0000000000000001 [ 13.269025][ C2] RBP: ffffffffa5f89020 R08: 0000000000000001 R09: 0000000000000001 [ 13.269026][ C2] R10: ffffffffa67e7cd7 R11: ffffffffa5f89038 R12: ffff88800baf5c00 [ 13.269028][ C2] R13: 0000000000000100 R14: 0000000000000001 R15: 0000000000000282 [ 13.269034][ C2] __create_object+0x5e/0xb0 [ 13.269038][ C2] __kmalloc_cache_noprof+0x2bb/0x360 [ 13.269043][ C2] fuse_io_alloc+0x47/0x140 [ 13.269047][ C2] fuse_readahead+0x426/0xa50 [ 13.269054][ C2] ? __pfx_fuse_readahead+0x10/0x10 [ 13.269062][ C2] read_pages+0x187/0xab0 [ 13.269067][ C2] ? xa_load+0x112/0x230 [ 13.269070][ C2] ? __lock_release+0x5d/0x170 [ 13.269075][ C2] ? __pfx_read_pages+0x10/0x10 [ 13.269082][ C2] page_cache_ra_unbounded+0x441/0x5e0 [ 13.269088][ C2] do_sync_mmap_readahead+0x4d8/0x890 [ 13.269093][ C2] ? __pfx_do_sync_mmap_readahead+0x10/0x10 [ 13.269098][ C2] ? __filemap_get_folio+0x45/0x6a0 [ 13.269103][ C2] filemap_fault+0xa71/0x1500 [ 13.269108][ C2] ? __pfx_filemap_map_pages+0x10/0x10 [ 13.269112][ C2] ? __pfx_filemap_fault+0x10/0x10 [ 13.269115][ C2] ? find_held_lock+0x2b/0x80 [ 13.269118][ C2] ? do_fault_around+0x2c6/0x4c0 [ 13.269123][ C2] ? __lock_release+0x5d/0x170 [ 13.269127][ C2] ? do_fault_around+0x2c6/0x4c0 [ 13.269131][ C2] __do_fault+0xed/0x3a0 [ 13.269135][ C2] do_pte_missing+0x67d/0xca0 [ 13.269139][ C2] ? rcu_read_unlock+0x18/0x70 [ 13.269143][ C2] handle_pte_fault+0x3e0/0x690 [ 13.269147][ C2] ? __pfx_handle_pte_fault+0x10/0x10 [ 13.269151][ C2] ? reacquire_held_locks+0xd1/0x200 [ 13.269154][ C2] ? do_user_addr_fault+0x461/0xe00 [ 13.269159][ C2] __handle_mm_fault+0x3fc/0x5e0 [ 13.269162][ C2] ? __pfx___handle_mm_fault+0x10/0x10 [ 13.269164][ C2] ? __lock_release+0xa8/0x170 [ 13.269171][ C2] ? __pfx_lock_vma_under_rcu+0x10/0x10 [ 13.269175][ C2] handle_mm_fault+0x200/0x420 [ 13.269178][ C2] ? __pfx_handle_mm_fault+0x10/0x10 [ 13.269181][ C2] ? task_work_run+0x14c/0x220 [ 13.269187][ C2] do_user_addr_fault+0x576/0xe00 [ 13.269191][ C2] ? rcu_is_watching+0x12/0xc0 [ 13.269196][ C2] exc_page_fault+0x5d/0xc0 [ 13.269200][ C2] asm_exc_page_fault+0x26/0x30 [ 13.269202][ C2] RIP: 0033:0x7fb5ecfc5a30 [ 13.269209][ C2] Code: Unable to access opcode bytes at 0x7fb5ecfc5a06. [ 13.269210][ C2] RSP: 002b:00007ffe90300200 EFLAGS: 00010202 [ 13.269213][ C2] RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000 [ 13.269214][ C2] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 [ 13.269216][ C2] RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 [ 13.269217][ C2] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 13.269218][ C2] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 13.269224][ C2]