[ 12.854221][ C2] [ 12.854370][ C2] ================================ [ 12.854580][ C2] WARNING: inconsistent lock state [ 12.854782][ C2] 6.15.0-rc7-virtme #1 Not tainted [ 12.854989][ C2] -------------------------------- [ 12.855195][ C2] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 12.855457][ C2] modprobe/232 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 12.855723][ C2] ffffffffb39bff78 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 12.856100][ C2] {SOFTIRQ-ON-W} state was registered at: [ 12.856310][ C2] __lock_acquire+0x3eb/0x9d0 [ 12.856526][ C2] lock_acquire.part.0+0xb6/0x240 [ 12.856741][ C2] _raw_spin_lock+0x33/0x40 [ 12.856955][ C2] simple_pin_fs+0x24/0x150 [ 12.857169][ C2] start_creating.part.0+0x3f/0x2f0 [ 12.857384][ C2] debugfs_create_dir+0x6a/0x540 [ 12.857596][ C2] component_debug_init+0x17/0x30 [ 12.857817][ C2] do_one_initcall+0x8f/0x1e0 [ 12.858031][ C2] do_initcalls+0x176/0x280 [ 12.858237][ C2] kernel_init_freeable+0x22d/0x300 [ 12.858447][ C2] kernel_init+0x20/0x200 [ 12.858658][ C2] ret_from_fork+0x31/0x70 [ 12.858869][ C2] ret_from_fork_asm+0x1a/0x30 [ 12.859079][ C2] irq event stamp: 4036 [ 12.859247][ C2] hardirqs last enabled at (4036): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 12.859672][ C2] hardirqs last disabled at (4035): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 12.860046][ C2] softirqs last enabled at (3434): [] handle_softirqs+0x358/0x620 [ 12.860422][ C2] softirqs last disabled at (3741): [] __irq_exit_rcu+0xfa/0x160 [ 12.860789][ C2] [ 12.860789][ C2] other info that might help us debug this: [ 12.861109][ C2] Possible unsafe locking scenario: [ 12.861109][ C2] [ 12.861425][ C2] CPU0 [ 12.861585][ C2] ---- [ 12.861745][ C2] lock(pin_fs_lock); [ 12.861910][ C2] [ 12.862068][ C2] lock(pin_fs_lock); [ 12.862232][ C2] [ 12.862232][ C2] *** DEADLOCK *** [ 12.862232][ C2] [ 12.862548][ C2] 2 locks held by modprobe/232: [ 12.862768][ C2] #0: ffff888008745c20 (&mm->mmap_lock){++++}-{4:4}, at: vm_mmap_pgoff+0xde/0x2e0 [ 12.863157][ C2] #1: ffffffffb37749c0 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 12.863538][ C2] [ 12.863538][ C2] stack backtrace: [ 12.863801][ C2] CPU: 2 UID: 0 PID: 232 Comm: modprobe Not tainted 6.15.0-rc7-virtme #1 PREEMPT(full) [ 12.863806][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 12.863808][ C2] Call Trace: [ 12.863810][ C2] [ 12.863811][ C2] dump_stack_lvl+0x82/0xd0 [ 12.863817][ C2] print_usage_bug.part.0+0x25f/0x360 [ 12.863822][ C2] mark_lock_irq+0x343/0x400 [ 12.863825][ C2] ? is_bpf_text_address+0x67/0x120 [ 12.863830][ C2] ? __lock_release+0x5d/0x170 [ 12.863834][ C2] ? save_trace+0x52/0x170 [ 12.863839][ C2] mark_lock+0x174/0x2f0 [ 12.863842][ C2] mark_usage+0x46/0x150 [ 12.863845][ C2] __lock_acquire+0x3eb/0x9d0 [ 12.863850][ C2] lock_acquire.part.0+0xb6/0x240 [ 12.863853][ C2] ? simple_pin_fs+0x24/0x150 [ 12.863856][ C2] ? rcu_is_watching+0x12/0xc0 [ 12.863859][ C2] ? lock_acquire+0x10c/0x170 [ 12.863862][ C2] ? simple_pin_fs+0x24/0x150 [ 12.863865][ C2] _raw_spin_lock+0x33/0x40 [ 12.863868][ C2] ? simple_pin_fs+0x24/0x150 [ 12.863871][ C2] simple_pin_fs+0x24/0x150 [ 12.863874][ C2] debugfs_remove+0x35/0x70 [ 12.863877][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 12.863883][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 12.863886][ C2] ? __sk_destruct+0x383/0x780 [ 12.863891][ C2] ? rcu_do_batch+0x34f/0xf20 [ 12.863894][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 12.863898][ C2] ? irq_exit_rcu+0xe/0x30 [ 12.863900][ C2] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 12.863904][ C2] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 12.863908][ C2] ? __pfx_mas_destroy+0x10/0x10 [ 12.863912][ C2] ? mas_store_prealloc+0x510/0xf50 [ 12.863915][ C2] ? __mmap_region+0xb3b/0x1780 [ 12.863918][ C2] ? do_mmap+0x9c5/0xf20 [ 12.863922][ C2] ? vm_mmap_pgoff+0x151/0x2e0 [ 12.863925][ C2] ? do_syscall_64+0xc1/0x1d0 [ 12.863929][ C2] ? entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 12.863934][ C2] __put_net+0x19/0x60 [ 12.863938][ C2] __sk_destruct+0x58a/0x780 [ 12.863942][ C2] ? rcu_do_batch+0x34a/0xf20 [ 12.863945][ C2] rcu_do_batch+0x34f/0xf20 [ 12.863949][ C2] ? find_held_lock+0x2b/0x80 [ 12.863954][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 12.863958][ C2] ? mark_held_locks+0x49/0x80 [ 12.863961][ C2] ? note_gp_changes+0x182/0x1e0 [ 12.863963][ C2] ? lockdep_hardirqs_on+0x7c/0x110 [ 12.863968][ C2] rcu_core+0x2bb/0x500 [ 12.863972][ C2] handle_softirqs+0x218/0x620 [ 12.863977][ C2] __irq_exit_rcu+0xfa/0x160 [ 12.863980][ C2] irq_exit_rcu+0xe/0x30 [ 12.863983][ C2] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 12.863986][ C2] [ 12.863987][ C2] [ 12.863989][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 12.863991][ C2] RIP: 0010:mas_destroy+0x0/0x400 [ 12.863996][ C2] Code: 4c 89 f6 48 c7 c7 60 be 17 b4 e8 7b d9 70 fe e9 8f f9 ff ff 66 0f 1f 44 00 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 0f 1e fa 48 b8 00 00 00 00 00 fc ff df 41 57 41 56 49 89 fe 41 [ 12.863999][ C2] RSP: 0018:ffffc900004b7880 EFLAGS: 00000297 [ 12.864002][ C2] RAX: 0000000000000000 RBX: 0000000000000005 RCX: 0000000000000001 [ 12.864004][ C2] RDX: 1ffff92000096f4c RSI: ffffffffb3272ecb RDI: ffffc900004b7a28 [ 12.864006][ C2] RBP: ffffc900004b7a28 R08: dffffc0000000000 R09: 0000000000000001 [ 12.864007][ C2] R10: ffffffffb41db797 R11: ffffffffb3774ae0 R12: ffffc900004b7a60 [ 12.864009][ C2] R13: 000000000000000f R14: 0000000000000000 R15: 1ffff92000096f19 [ 12.864015][ C2] mas_store_prealloc+0x510/0xf50 [ 12.864018][ C2] ? mas_preallocate+0x212/0x5d0 [ 12.864021][ C2] ? mark_held_locks+0x49/0x80 [ 12.864023][ C2] ? __pfx_mas_store_prealloc+0x10/0x10 [ 12.864026][ C2] ? lockdep_hardirqs_on+0x7c/0x110 [ 12.864031][ C2] ? kmem_cache_alloc_noprof+0x149/0x330 [ 12.864038][ C2] __mmap_region+0xb3b/0x1780 [ 12.864042][ C2] ? __pfx___mmap_region+0x10/0x10 [ 12.864047][ C2] ? mas_find+0x1f1/0x400 [ 12.864053][ C2] ? find_held_lock+0x2b/0x80 [ 12.864067][ C2] ? mmap_region+0xe1/0x2e0 [ 12.864072][ C2] do_mmap+0x9c5/0xf20 [ 12.864076][ C2] ? __pfx_do_mmap+0x10/0x10 [ 12.864079][ C2] ? down_write_killable+0x15e/0x250 [ 12.864082][ C2] ? __pfx_down_write_killable+0x10/0x10 [ 12.864086][ C2] vm_mmap_pgoff+0x151/0x2e0 [ 12.864092][ C2] ? __pfx_vm_mmap_pgoff+0x10/0x10 [ 12.864095][ C2] ? do_user_addr_fault+0x38d/0xe00 [ 12.864102][ C2] do_syscall_64+0xc1/0x1d0 [ 12.864106][ C2] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 12.864109][ C2] RIP: 0033:0x7f1e141f8116 [ 12.864112][ C2] Code: 5d 41 5c c3 f3 0f 1e fa 41 f7 c1 ff 0f 00 00 75 2b 55 48 89 fd 53 89 cb 48 85 ff 74 37 41 89 da 48 89 ef b8 09 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 62 5b 5d c3 0f 1f 80 00 00 00 00 c7 05 ae f0 [ 12.864115][ C2] RSP: 002b:00007ffd6fbd3f78 EFLAGS: 00000246 ORIG_RAX: 0000000000000009 [ 12.864118][ C2] RAX: ffffffffffffffda RBX: 0000000000000022 RCX: 00007f1e141f8116 [ 12.864120][ C2] RDX: 0000000000000003 RSI: 0000000000002000 RDI: 0000000000000000 [ 12.864122][ C2] RBP: 0000000000000000 R08: 00000000ffffffff R09: 0000000000000000 [ 12.864123][ C2] R10: 0000000000000022 R11: 0000000000000246 R12: 0000000000000000 [ 12.864125][ C2] R13: 0000000000000000 R14: 00007ffd6fbd4080 R15: 00007f1e14207f80 [ 12.864131][ C2] [ 12.884715][ C2] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 12.885070][ C2] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 232, name: modprobe [ 12.885412][ C2] preempt_count: 100, expected: 0 [ 12.885611][ C2] RCU nest depth: 0, expected: 0 [ 12.885814][ C2] INFO: lockdep is turned off. [ 12.886134][ C2] Preemption disabled at: [ 12.886136][ C2] [] handle_softirqs+0xe5/0x620 [ 12.886545][ C2] CPU: 2 UID: 0 PID: 232 Comm: modprobe Not tainted 6.15.0-rc7-virtme #1 PREEMPT(full) [ 12.886550][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 12.886551][ C2] Call Trace: [ 12.886553][ C2] [ 12.886554][ C2] dump_stack_lvl+0xb0/0xd0 [ 12.886561][ C2] __might_resched+0x360/0x5a0 [ 12.886568][ C2] down_write+0x72/0x210 [ 12.886572][ C2] ? __pfx_down_write+0x10/0x10 [ 12.886575][ C2] ? simple_recursive_removal+0x3a/0x860 [ 12.886580][ C2] ? rcu_is_watching+0x12/0xc0 [ 12.886584][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 12.886589][ C2] simple_recursive_removal+0x166/0x860 [ 12.886592][ C2] ? __pfx_remove_one+0x10/0x10 [ 12.886597][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 12.886601][ C2] debugfs_remove+0x44/0x70 [ 12.886605][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 12.886610][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 12.886614][ C2] ? __sk_destruct+0x383/0x780 [ 12.886618][ C2] ? rcu_do_batch+0x34f/0xf20 [ 12.886623][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 12.886626][ C2] ? irq_exit_rcu+0xe/0x30 [ 12.886629][ C2] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 12.886633][ C2] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 12.886636][ C2] ? __pfx_mas_destroy+0x10/0x10 [ 12.886640][ C2] ? mas_store_prealloc+0x510/0xf50 [ 12.886643][ C2] ? __mmap_region+0xb3b/0x1780 [ 12.886646][ C2] ? do_mmap+0x9c5/0xf20 [ 12.886650][ C2] ? vm_mmap_pgoff+0x151/0x2e0 [ 12.886654][ C2] ? do_syscall_64+0xc1/0x1d0 [ 12.886659][ C2] ? entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 12.886664][ C2] __put_net+0x19/0x60 [ 12.886668][ C2] __sk_destruct+0x58a/0x780 [ 12.886672][ C2] ? rcu_do_batch+0x34a/0xf20 [ 12.886675][ C2] rcu_do_batch+0x34f/0xf20 [ 12.886679][ C2] ? find_held_lock+0x2b/0x80 [ 12.886684][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 12.886688][ C2] ? mark_held_locks+0x49/0x80 [ 12.886691][ C2] ? note_gp_changes+0x182/0x1e0 [ 12.886694][ C2] ? lockdep_hardirqs_on+0x7c/0x110 [ 12.886699][ C2] rcu_core+0x2bb/0x500 [ 12.886702][ C2] handle_softirqs+0x218/0x620 [ 12.886707][ C2] __irq_exit_rcu+0xfa/0x160 [ 12.886710][ C2] irq_exit_rcu+0xe/0x30 [ 12.886713][ C2] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 12.886716][ C2] [ 12.886717][ C2] [ 12.886719][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 12.886721][ C2] RIP: 0010:mas_destroy+0x0/0x400 [ 12.886725][ C2] Code: 4c 89 f6 48 c7 c7 60 be 17 b4 e8 7b d9 70 fe e9 8f f9 ff ff 66 0f 1f 44 00 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 0f 1e fa 48 b8 00 00 00 00 00 fc ff df 41 57 41 56 49 89 fe 41 [ 12.886727][ C2] RSP: 0018:ffffc900004b7880 EFLAGS: 00000297 [ 12.886730][ C2] RAX: 0000000000000000 RBX: 0000000000000005 RCX: 0000000000000001 [ 12.886732][ C2] RDX: 1ffff92000096f4c RSI: ffffffffb3272ecb RDI: ffffc900004b7a28 [ 12.886734][ C2] RBP: ffffc900004b7a28 R08: dffffc0000000000 R09: 0000000000000001 [ 12.886736][ C2] R10: ffffffffb41db797 R11: ffffffffb3774ae0 R12: ffffc900004b7a60 [ 12.886737][ C2] R13: 000000000000000f R14: 0000000000000000 R15: 1ffff92000096f19 [ 12.886743][ C2] mas_store_prealloc+0x510/0xf50 [ 12.886746][ C2] ? mas_preallocate+0x212/0x5d0 [ 12.886749][ C2] ? mark_held_locks+0x49/0x80 [ 12.886751][ C2] ? __pfx_mas_store_prealloc+0x10/0x10 [ 12.886754][ C2] ? lockdep_hardirqs_on+0x7c/0x110 [ 12.886759][ C2] ? kmem_cache_alloc_noprof+0x149/0x330 [ 12.886767][ C2] __mmap_region+0xb3b/0x1780 [ 12.886770][ C2] ? __pfx___mmap_region+0x10/0x10 [ 12.886775][ C2] ? mas_find+0x1f1/0x400 [ 12.886782][ C2] ? find_held_lock+0x2b/0x80 [ 12.886795][ C2] ? mmap_region+0xe1/0x2e0 [ 12.886799][ C2] do_mmap+0x9c5/0xf20 [ 12.886804][ C2] ? __pfx_do_mmap+0x10/0x10 [ 12.886807][ C2] ? down_write_killable+0x15e/0x250 [ 12.886809][ C2] ? __pfx_down_write_killable+0x10/0x10 [ 12.886814][ C2] vm_mmap_pgoff+0x151/0x2e0 [ 12.886819][ C2] ? __pfx_vm_mmap_pgoff+0x10/0x10 [ 12.886823][ C2] ? do_user_addr_fault+0x38d/0xe00 [ 12.886830][ C2] do_syscall_64+0xc1/0x1d0 [ 12.886834][ C2] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 12.886837][ C2] RIP: 0033:0x7f1e141f8116 [ 12.886839][ C2] Code: 5d 41 5c c3 f3 0f 1e fa 41 f7 c1 ff 0f 00 00 75 2b 55 48 89 fd 53 89 cb 48 85 ff 74 37 41 89 da 48 89 ef b8 09 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 62 5b 5d c3 0f 1f 80 00 00 00 00 c7 05 ae f0 [ 12.886842][ C2] RSP: 002b:00007ffd6fbd3f78 EFLAGS: 00000246 ORIG_RAX: 0000000000000009 [ 12.886844][ C2] RAX: ffffffffffffffda RBX: 0000000000000022 RCX: 00007f1e141f8116 [ 12.886846][ C2] RDX: 0000000000000003 RSI: 0000000000002000 RDI: 0000000000000000 [ 12.886848][ C2] RBP: 0000000000000000 R08: 00000000ffffffff R09: 0000000000000000 [ 12.886850][ C2] R10: 0000000000000022 R11: 0000000000000246 R12: 0000000000000000 [ 12.886851][ C2] R13: 0000000000000000 R14: 00007ffd6fbd4080 R15: 00007f1e14207f80 [ 12.886857][ C2] [ 13.938975][ T229] setsockopt-clos (229) used greatest stack depth: 24376 bytes left