[ 12.603640][ C2] [ 12.603781][ C2] ================================ [ 12.603984][ C2] WARNING: inconsistent lock state [ 12.604182][ C2] 6.15.0-virtme #1 Not tainted [ 12.604475][ C2] -------------------------------- [ 12.604670][ C2] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 12.604918][ C2] (udev-worker)/232 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 12.605165][ C2] ffffffffa87c5af8 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 12.605519][ C2] {SOFTIRQ-ON-W} state was registered at: [ 12.605739][ C2] __lock_acquire+0x20b/0x7e0 [ 12.605943][ C2] lock_acquire.part.0+0xb6/0x240 [ 12.606145][ C2] _raw_spin_lock+0x33/0x40 [ 12.606342][ C2] simple_pin_fs+0x24/0x150 [ 12.606539][ C2] start_creating.part.0+0x52/0x310 [ 12.606737][ C2] debugfs_create_dir+0x6a/0x540 [ 12.606932][ C2] component_debug_init+0x17/0x30 [ 12.607137][ C2] do_one_initcall+0x8f/0x1e0 [ 12.607335][ C2] do_initcalls+0x176/0x280 [ 12.607538][ C2] kernel_init_freeable+0x22d/0x300 [ 12.607736][ C2] kernel_init+0x20/0x200 [ 12.607934][ C2] ret_from_fork+0x240/0x320 [ 12.608133][ C2] ret_from_fork_asm+0x1a/0x30 [ 12.608334][ C2] irq event stamp: 1118 [ 12.608483][ C2] hardirqs last enabled at (1118): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 12.608872][ C2] hardirqs last disabled at (1117): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 12.609220][ C2] softirqs last enabled at (440): [] handle_softirqs+0x358/0x620 [ 12.609568][ C2] softirqs last disabled at (897): [] __irq_exit_rcu+0xfa/0x160 [ 12.609909][ C2] [ 12.609909][ C2] other info that might help us debug this: [ 12.610198][ C2] Possible unsafe locking scenario: [ 12.610198][ C2] [ 12.610489][ C2] CPU0 [ 12.610641][ C2] ---- [ 12.610789][ C2] lock(pin_fs_lock); [ 12.610945][ C2] [ 12.611092][ C2] lock(pin_fs_lock); [ 12.611242][ C2] [ 12.611242][ C2] *** DEADLOCK *** [ 12.611242][ C2] [ 12.611560][ C2] 6 locks held by (udev-worker)/232: [ 12.611761][ C2] #0: ffff88800968d5c8 (vm_lock){++++}-{0:0}, at: do_user_addr_fault+0x461/0xe00 [ 12.612204][ C2] #1: ffffffffa85775e0 (rcu_read_lock){....}-{1:3}, at: do_fault_around+0x1e9/0x4c0 [ 12.612568][ C2] #2: ffffffffa85775e0 (rcu_read_lock){....}-{1:3}, at: filemap_map_pages+0x169/0xf90 [ 12.612921][ C2] #3: ffffffffa85775e0 (rcu_read_lock){....}-{1:3}, at: ___pte_offset_map+0x2c/0x2a0 [ 12.613279][ C2] #4: ffff8880050f1860 (ptlock_ptr(ptdesc)#2){+.+.}-{3:3}, at: __pte_offset_map_lock+0xfa/0x280 [ 12.613675][ C2] #5: ffffffffa85774c0 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 12.614020][ C2] [ 12.614020][ C2] stack backtrace: [ 12.614264][ C2] CPU: 2 UID: 0 PID: 232 Comm: (udev-worker) Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 12.614269][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 12.614271][ C2] Call Trace: [ 12.614273][ C2] [ 12.614275][ C2] dump_stack_lvl+0x82/0xd0 [ 12.614281][ C2] print_usage_bug.part.0+0x25f/0x360 [ 12.614285][ C2] mark_lock_irq+0x343/0x400 [ 12.614290][ C2] ? __pfx_unwind_next_frame+0x10/0x10 [ 12.614295][ C2] ? save_trace+0x52/0x170 [ 12.614299][ C2] mark_lock+0x174/0x2f0 [ 12.614303][ C2] mark_usage+0x46/0x150 [ 12.614306][ C2] __lock_acquire+0x20b/0x7e0 [ 12.614309][ C2] ? __lock_acquire+0x44d/0x7e0 [ 12.614314][ C2] lock_acquire.part.0+0xb6/0x240 [ 12.614317][ C2] ? simple_pin_fs+0x24/0x150 [ 12.614321][ C2] ? rcu_is_watching+0x12/0xc0 [ 12.614326][ C2] ? lock_acquire+0x10c/0x170 [ 12.614328][ C2] ? simple_pin_fs+0x24/0x150 [ 12.614332][ C2] _raw_spin_lock+0x33/0x40 [ 12.614335][ C2] ? simple_pin_fs+0x24/0x150 [ 12.614338][ C2] simple_pin_fs+0x24/0x150 [ 12.614341][ C2] debugfs_remove+0x35/0x70 [ 12.614344][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 12.614349][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 12.614351][ C2] ? __sk_destruct+0x383/0x780 [ 12.614357][ C2] ? rcu_do_batch+0x34c/0xf20 [ 12.614360][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 12.614362][ C2] ? irq_exit_rcu+0xe/0x30 [ 12.614365][ C2] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 12.614370][ C2] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 12.614374][ C2] ? __pfx___kasan_check_read+0x10/0x10 [ 12.614378][ C2] ? filemap_map_pages+0x4aa/0xf90 [ 12.614381][ C2] ? do_fault_around+0x2a8/0x4c0 [ 12.614384][ C2] ? do_pte_missing+0x810/0xca0 [ 12.614388][ C2] ? handle_pte_fault+0x3e0/0x690 [ 12.614390][ C2] ? __handle_mm_fault+0x3fc/0x5e0 [ 12.614392][ C2] ? handle_mm_fault+0x200/0x420 [ 12.614394][ C2] ? do_user_addr_fault+0x576/0xe00 [ 12.614399][ C2] __put_net+0x19/0x60 [ 12.614404][ C2] __sk_destruct+0x58a/0x780 [ 12.614408][ C2] ? rcu_do_batch+0x34a/0xf20 [ 12.614411][ C2] rcu_do_batch+0x34c/0xf20 [ 12.614414][ C2] ? find_held_lock+0x2b/0x80 [ 12.614418][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 12.614421][ C2] ? mark_held_locks+0x49/0x80 [ 12.614425][ C2] ? note_gp_changes+0x182/0x1e0 [ 12.614428][ C2] ? lockdep_hardirqs_on+0x7c/0x110 [ 12.614432][ C2] rcu_core+0x2bb/0x500 [ 12.614437][ C2] handle_softirqs+0x218/0x620 [ 12.614443][ C2] __irq_exit_rcu+0xfa/0x160 [ 12.614446][ C2] irq_exit_rcu+0xe/0x30 [ 12.614449][ C2] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 12.614453][ C2] [ 12.614454][ C2] [ 12.614456][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 12.614458][ C2] RIP: 0010:__kasan_check_read+0x0/0x20 [ 12.614462][ C2] Code: c7 c7 60 0c 03 a8 5b 5d 41 5c e9 4b 98 8e ff 66 2e 0f 1f 84 00 00 00 00 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 0f 1e fa 48 8b 0c 24 89 f6 31 d2 e9 4f f0 ff ff 66 66 2e 0f 1f [ 12.614465][ C2] RSP: 0000:ffffc900006f79f8 EFLAGS: 00000202 [ 12.614469][ C2] RAX: 0000000000000001 RBX: 0000000000000000 RCX: ffffffffa5309529 [ 12.614471][ C2] RDX: fffff9400005bf09 RSI: 0000000000000004 RDI: ffffea00002df874 [ 12.614472][ C2] RBP: ffffea00002df860 R08: 0000000000000001 R09: fffff9400005bf08 [ 12.614474][ C2] R10: ffffea00002df847 R11: ffffffffa85775e0 R12: ffffea00002df874 [ 12.614476][ C2] R13: dffffc0000000000 R14: ffffc900006f7d30 R15: ffffea00002df840 [ 12.614480][ C2] ? folio_unlock+0x59/0x90 [ 12.614485][ C2] filemap_map_pages+0x4aa/0xf90 [ 12.614493][ C2] ? __pfx_filemap_map_pages+0x10/0x10 [ 12.614498][ C2] ? rcu_is_watching+0x12/0xc0 [ 12.614501][ C2] ? lock_acquire+0x10c/0x170 [ 12.614504][ C2] ? do_fault_around+0x1e9/0x4c0 [ 12.614508][ C2] ? __pfx_filemap_map_pages+0x10/0x10 [ 12.614511][ C2] do_fault_around+0x2a8/0x4c0 [ 12.614516][ C2] do_pte_missing+0x810/0xca0 [ 12.614520][ C2] ? rcu_read_unlock+0x18/0x70 [ 12.614523][ C2] handle_pte_fault+0x3e0/0x690 [ 12.614527][ C2] ? __pfx_handle_pte_fault+0x10/0x10 [ 12.614531][ C2] ? reacquire_held_locks+0xd1/0x200 [ 12.614534][ C2] ? do_user_addr_fault+0x461/0xe00 [ 12.614538][ C2] __handle_mm_fault+0x3fc/0x5e0 [ 12.614541][ C2] ? __pfx___handle_mm_fault+0x10/0x10 [ 12.614543][ C2] ? __lock_release+0xa8/0x170 [ 12.614550][ C2] ? __pfx_lock_vma_under_rcu+0x10/0x10 [ 12.614553][ C2] handle_mm_fault+0x200/0x420 [ 12.614556][ C2] ? __pfx_handle_mm_fault+0x10/0x10 [ 12.614559][ C2] ? exc_page_fault+0x5d/0xc0 [ 12.614562][ C2] ? __lock_release+0x5d/0x170 [ 12.614567][ C2] do_user_addr_fault+0x576/0xe00 [ 12.614571][ C2] ? rcu_is_watching+0x12/0xc0 [ 12.614575][ C2] exc_page_fault+0x5d/0xc0 [ 12.614579][ C2] asm_exc_page_fault+0x26/0x30 [ 12.614581][ C2] RIP: 0033:0x562c77842310 [ 12.614585][ C2] Code: e9 22 d4 fd ff f3 0f 1e fa 48 89 c3 e9 1c d4 fd ff f3 0f 1e fa 48 89 c3 e9 16 d4 fd ff f3 0f 1e fa 48 89 c3 e9 10 d4 fd ff 90 0f 1e fa 55 48 89 e5 41 56 41 55 41 54 53 48 83 ec 20 64 48 8b [ 12.614587][ C2] RSP: 002b:00007ffdc49cc138 EFLAGS: 00010297 [ 12.614589][ C2] RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000009 [ 12.614591][ C2] RDX: 000000000aba9500 RSI: 0000562cafe7e500 RDI: 0000000000000007 [ 12.614592][ C2] RBP: 00007ffdc49cc1e0 R08: 0000000000000000 R09: 0000562cafe16e20 [ 12.614594][ C2] R10: 0000000000000001 R11: 7fffffffffffffff R12: 0000000000000007 [ 12.614595][ C2] R13: 0000562cafe7e500 R14: 0000562cafe59500 R15: 0000562cafe7e500 [ 12.614601][ C2] [ 12.635789][ C2] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 12.636150][ C2] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 232, name: (udev-worker) [ 12.636494][ C2] preempt_count: 101, expected: 0 [ 12.636688][ C2] RCU nest depth: 3, expected: 0 [ 12.636891][ C2] INFO: lockdep is turned off. [ 12.637093][ C2] Preemption disabled at: [ 12.637095][ C2] [<0000000000000000>] 0x0 [ 12.637450][ C2] CPU: 2 UID: 0 PID: 232 Comm: (udev-worker) Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 12.637455][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 12.637456][ C2] Call Trace: [ 12.637458][ C2] [ 12.637460][ C2] dump_stack_lvl+0xb0/0xd0 [ 12.637467][ C2] __might_resched+0x360/0x5a0 [ 12.637475][ C2] down_write+0x72/0x210 [ 12.637479][ C2] ? __pfx_down_write+0x10/0x10 [ 12.637482][ C2] ? simple_recursive_removal+0x33/0x610 [ 12.637486][ C2] ? rcu_is_watching+0x12/0xc0 [ 12.637492][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 12.637496][ C2] simple_recursive_removal+0x6a/0x610 [ 12.637499][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 12.637501][ C2] ? __pfx_remove_one+0x10/0x10 [ 12.637507][ C2] debugfs_remove+0x44/0x70 [ 12.637510][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 12.637515][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 12.637517][ C2] ? __sk_destruct+0x383/0x780 [ 12.637523][ C2] ? rcu_do_batch+0x34c/0xf20 [ 12.637526][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 12.637529][ C2] ? irq_exit_rcu+0xe/0x30 [ 12.637534][ C2] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 12.637538][ C2] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 12.637542][ C2] ? __pfx___kasan_check_read+0x10/0x10 [ 12.637547][ C2] ? filemap_map_pages+0x4aa/0xf90 [ 12.637551][ C2] ? do_fault_around+0x2a8/0x4c0 [ 12.637556][ C2] ? do_pte_missing+0x810/0xca0 [ 12.637560][ C2] ? handle_pte_fault+0x3e0/0x690 [ 12.637562][ C2] ? __handle_mm_fault+0x3fc/0x5e0 [ 12.637564][ C2] ? handle_mm_fault+0x200/0x420 [ 12.637566][ C2] ? do_user_addr_fault+0x576/0xe00 [ 12.637572][ C2] __put_net+0x19/0x60 [ 12.637576][ C2] __sk_destruct+0x58a/0x780 [ 12.637580][ C2] ? rcu_do_batch+0x34a/0xf20 [ 12.637583][ C2] rcu_do_batch+0x34c/0xf20 [ 12.637587][ C2] ? find_held_lock+0x2b/0x80 [ 12.637591][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 12.637594][ C2] ? mark_held_locks+0x49/0x80 [ 12.637598][ C2] ? note_gp_changes+0x182/0x1e0 [ 12.637601][ C2] ? lockdep_hardirqs_on+0x7c/0x110 [ 12.637606][ C2] rcu_core+0x2bb/0x500 [ 12.637610][ C2] handle_softirqs+0x218/0x620 [ 12.637616][ C2] __irq_exit_rcu+0xfa/0x160 [ 12.637619][ C2] irq_exit_rcu+0xe/0x30 [ 12.637622][ C2] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 12.637626][ C2] [ 12.637627][ C2] [ 12.637629][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 12.637631][ C2] RIP: 0010:__kasan_check_read+0x0/0x20 [ 12.637635][ C2] Code: c7 c7 60 0c 03 a8 5b 5d 41 5c e9 4b 98 8e ff 66 2e 0f 1f 84 00 00 00 00 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 0f 1e fa 48 8b 0c 24 89 f6 31 d2 e9 4f f0 ff ff 66 66 2e 0f 1f [ 12.637638][ C2] RSP: 0000:ffffc900006f79f8 EFLAGS: 00000202 [ 12.637641][ C2] RAX: 0000000000000001 RBX: 0000000000000000 RCX: ffffffffa5309529 [ 12.637643][ C2] RDX: fffff9400005bf09 RSI: 0000000000000004 RDI: ffffea00002df874 [ 12.637644][ C2] RBP: ffffea00002df860 R08: 0000000000000001 R09: fffff9400005bf08 [ 12.637646][ C2] R10: ffffea00002df847 R11: ffffffffa85775e0 R12: ffffea00002df874 [ 12.637648][ C2] R13: dffffc0000000000 R14: ffffc900006f7d30 R15: ffffea00002df840 [ 12.637652][ C2] ? folio_unlock+0x59/0x90 [ 12.637657][ C2] filemap_map_pages+0x4aa/0xf90 [ 12.637665][ C2] ? __pfx_filemap_map_pages+0x10/0x10 [ 12.637670][ C2] ? rcu_is_watching+0x12/0xc0 [ 12.637673][ C2] ? lock_acquire+0x10c/0x170 [ 12.637676][ C2] ? do_fault_around+0x1e9/0x4c0 [ 12.637681][ C2] ? __pfx_filemap_map_pages+0x10/0x10 [ 12.637684][ C2] do_fault_around+0x2a8/0x4c0 [ 12.637688][ C2] do_pte_missing+0x810/0xca0 [ 12.637692][ C2] ? rcu_read_unlock+0x18/0x70 [ 12.637696][ C2] handle_pte_fault+0x3e0/0x690 [ 12.637699][ C2] ? __pfx_handle_pte_fault+0x10/0x10 [ 12.637703][ C2] ? reacquire_held_locks+0xd1/0x200 [ 12.637706][ C2] ? do_user_addr_fault+0x461/0xe00 [ 12.637711][ C2] __handle_mm_fault+0x3fc/0x5e0 [ 12.637714][ C2] ? __pfx___handle_mm_fault+0x10/0x10 [ 12.637716][ C2] ? __lock_release+0xa8/0x170 [ 12.637723][ C2] ? __pfx_lock_vma_under_rcu+0x10/0x10 [ 12.637726][ C2] handle_mm_fault+0x200/0x420 [ 12.637729][ C2] ? __pfx_handle_mm_fault+0x10/0x10 [ 12.637732][ C2] ? exc_page_fault+0x5d/0xc0 [ 12.637735][ C2] ? __lock_release+0x5d/0x170 [ 12.637740][ C2] do_user_addr_fault+0x576/0xe00 [ 12.637743][ C2] ? rcu_is_watching+0x12/0xc0 [ 12.637748][ C2] exc_page_fault+0x5d/0xc0 [ 12.637752][ C2] asm_exc_page_fault+0x26/0x30 [ 12.637754][ C2] RIP: 0033:0x562c77842310 [ 12.637757][ C2] Code: e9 22 d4 fd ff f3 0f 1e fa 48 89 c3 e9 1c d4 fd ff f3 0f 1e fa 48 89 c3 e9 16 d4 fd ff f3 0f 1e fa 48 89 c3 e9 10 d4 fd ff 90 0f 1e fa 55 48 89 e5 41 56 41 55 41 54 53 48 83 ec 20 64 48 8b [ 12.637759][ C2] RSP: 002b:00007ffdc49cc138 EFLAGS: 00010297 [ 12.637761][ C2] RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000009 [ 12.637763][ C2] RDX: 000000000aba9500 RSI: 0000562cafe7e500 RDI: 0000000000000007 [ 12.637764][ C2] RBP: 00007ffdc49cc1e0 R08: 0000000000000000 R09: 0000562cafe16e20 [ 12.637766][ C2] R10: 0000000000000001 R11: 7fffffffffffffff R12: 0000000000000007 [ 12.637767][ C2] R13: 0000562cafe7e500 R14: 0000562cafe59500 R15: 0000562cafe7e500 [ 12.637773][ C2] [ 14.708140][ T227] TCP: AO key ifindex 200 != sk bound ifindex 3 [ 14.709137][ T227] TCP: AO key ifindex 200 != sk bound ifindex 3 [ 14.709883][ T227] TCP: AO key ifindex 200 != sk bound ifindex 3 [ 14.710743][ T227] TCP: AO key ifindex 200 != sk bound ifindex 3 [ 14.711445][ T227] TCP: AO key ifindex 200 != sk bound ifindex 3