[ 14.471824][ C3] [ 14.471960][ C3] ================================ [ 14.472142][ C3] WARNING: inconsistent lock state [ 14.472322][ C3] 6.15.0-rc5-virtme #1 Not tainted [ 14.472505][ C3] -------------------------------- [ 14.472680][ C3] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 14.472903][ C3] swapper/3/0 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 14.473126][ C3] ffffffff94bbf978 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 14.473442][ C3] {SOFTIRQ-ON-W} state was registered at: [ 14.473623][ C3] __lock_acquire+0x3eb/0x9d0 [ 14.473807][ C3] lock_acquire.part.0+0xb6/0x240 [ 14.473987][ C3] _raw_spin_lock+0x33/0x40 [ 14.474172][ C3] simple_pin_fs+0x24/0x150 [ 14.474351][ C3] start_creating.part.0+0x3f/0x2f0 [ 14.474532][ C3] debugfs_create_dir+0x6a/0x540 [ 14.474708][ C3] component_debug_init+0x17/0x30 [ 14.474891][ C3] do_one_initcall+0x8c/0x1e0 [ 14.475072][ C3] do_initcalls+0x176/0x280 [ 14.475250][ C3] kernel_init_freeable+0x22d/0x300 [ 14.475429][ C3] kernel_init+0x20/0x200 [ 14.475610][ C3] ret_from_fork+0x31/0x70 [ 14.475789][ C3] ret_from_fork_asm+0x1a/0x30 [ 14.475964][ C3] irq event stamp: 309600 [ 14.476098][ C3] hardirqs last enabled at (309600): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 14.476452][ C3] hardirqs last disabled at (309599): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 14.476810][ C3] softirqs last enabled at (309468): [] handle_softirqs+0x358/0x620 [ 14.477122][ C3] softirqs last disabled at (309475): [] __irq_exit_rcu+0xfa/0x160 [ 14.477431][ C3] [ 14.477431][ C3] other info that might help us debug this: [ 14.477691][ C3] Possible unsafe locking scenario: [ 14.477691][ C3] [ 14.477951][ C3] CPU0 [ 14.478084][ C3] ---- [ 14.478218][ C3] lock(pin_fs_lock); [ 14.478355][ C3] [ 14.478486][ C3] lock(pin_fs_lock); [ 14.478622][ C3] [ 14.478622][ C3] *** DEADLOCK *** [ 14.478622][ C3] [ 14.478881][ C3] 1 lock held by swapper/3/0: [ 14.479058][ C3] #0: ffffffff94974480 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 14.479377][ C3] [ 14.479377][ C3] stack backtrace: [ 14.479597][ C3] CPU: 3 UID: 0 PID: 0 Comm: swapper/3 Not tainted 6.15.0-rc5-virtme #1 PREEMPT(full) [ 14.479602][ C3] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 14.479604][ C3] Call Trace: [ 14.479605][ C3] [ 14.479607][ C3] dump_stack_lvl+0x82/0xd0 [ 14.479613][ C3] print_usage_bug.part.0+0x25f/0x360 [ 14.479618][ C3] mark_lock_irq+0x343/0x400 [ 14.479623][ C3] ? __pfx_unwind_next_frame+0x10/0x10 [ 14.479629][ C3] ? save_trace+0x52/0x170 [ 14.479633][ C3] mark_lock+0x174/0x2f0 [ 14.479637][ C3] mark_usage+0x46/0x150 [ 14.479641][ C3] __lock_acquire+0x3eb/0x9d0 [ 14.479646][ C3] lock_acquire.part.0+0xb6/0x240 [ 14.479649][ C3] ? simple_pin_fs+0x24/0x150 [ 14.479653][ C3] ? rcu_is_watching+0x12/0xc0 [ 14.479658][ C3] ? lock_acquire+0x10c/0x170 [ 14.479662][ C3] ? simple_pin_fs+0x24/0x150 [ 14.479666][ C3] _raw_spin_lock+0x33/0x40 [ 14.479669][ C3] ? simple_pin_fs+0x24/0x150 [ 14.479672][ C3] simple_pin_fs+0x24/0x150 [ 14.479676][ C3] debugfs_remove+0x35/0x70 [ 14.479679][ C3] ref_tracker_dir_exit+0xcf/0x740 [ 14.479684][ C3] ? __pfx_ref_tracker_free+0x10/0x10 [ 14.479687][ C3] ? __sk_destruct+0x383/0x780 [ 14.479693][ C3] ? rcu_do_batch+0x34c/0xf20 [ 14.479696][ C3] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 14.479698][ C3] ? irq_exit_rcu+0xe/0x30 [ 14.479701][ C3] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 14.479704][ C3] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 14.479707][ C3] ? pv_native_safe_halt+0xf/0x20 [ 14.479710][ C3] ? default_idle+0x9/0x10 [ 14.479712][ C3] ? default_idle_call+0x6d/0xb0 [ 14.479715][ C3] ? cpuidle_idle_call+0x26f/0x3a0 [ 14.479718][ C3] ? do_idle+0xf6/0x160 [ 14.479721][ C3] ? cpu_startup_entry+0x54/0x60 [ 14.479724][ C3] ? start_secondary+0x213/0x2a0 [ 14.479728][ C3] ? common_startup_64+0x13e/0x148 [ 14.479734][ C3] __put_net+0x19/0x60 [ 14.479737][ C3] __sk_destruct+0x58a/0x780 [ 14.479741][ C3] ? rcu_do_batch+0x34a/0xf20 [ 14.479744][ C3] rcu_do_batch+0x34c/0xf20 [ 14.479748][ C3] ? find_held_lock+0x2b/0x80 [ 14.479752][ C3] ? __pfx_rcu_do_batch+0x10/0x10 [ 14.479755][ C3] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 14.479759][ C3] ? lockdep_hardirqs_on+0x7c/0x110 [ 14.479762][ C3] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 14.479767][ C3] rcu_core+0x2bb/0x500 [ 14.479770][ C3] handle_softirqs+0x218/0x620 [ 14.479774][ C3] __irq_exit_rcu+0xfa/0x160 [ 14.479776][ C3] irq_exit_rcu+0xe/0x30 [ 14.479779][ C3] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 14.479782][ C3] [ 14.479783][ C3] [ 14.479785][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 14.479787][ C3] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 14.479792][ C3] Code: b0 b8 00 c3 cc cc cc cc 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 a3 d0 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 [ 14.479795][ C3] RSP: 0018:ffffc90000157de8 EFLAGS: 00000246 [ 14.479798][ C3] RAX: 000000000004b8e1 RBX: 1ffff9200002afc1 RCX: ffffffff93955a19 [ 14.479801][ C3] RDX: 0000000000000000 RSI: ffffffff94485f31 RDI: ffffffff93c50ce0 [ 14.479802][ C3] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c3667a [ 14.479804][ C3] R10: ffff8880361b33d3 R11: 0000000000000000 R12: 0000000000000000 [ 14.479806][ C3] R13: ffff888001bb4640 R14: dffffc0000000000 R15: 0000000000000000 [ 14.479810][ C3] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 14.479815][ C3] default_idle+0x9/0x10 [ 14.479817][ C3] default_idle_call+0x6d/0xb0 [ 14.479819][ C3] cpuidle_idle_call+0x26f/0x3a0 [ 14.479823][ C3] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 14.479827][ C3] ? tsc_verify_tsc_adjust+0x98/0x300 [ 14.479832][ C3] do_idle+0xf6/0x160 [ 14.479836][ C3] cpu_startup_entry+0x54/0x60 [ 14.479839][ C3] start_secondary+0x213/0x2a0 [ 14.479842][ C3] ? __pfx_start_secondary+0x10/0x10 [ 14.479847][ C3] common_startup_64+0x13e/0x148 [ 14.479853][ C3] [ 14.493938][ C3] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 14.494229][ C3] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/3 [ 14.494516][ C3] preempt_count: 101, expected: 0 [ 14.494686][ C3] RCU nest depth: 0, expected: 0 [ 14.494861][ C3] INFO: lockdep is turned off. [ 14.495029][ C3] Preemption disabled at: [ 14.495031][ C3] [<0000000000000000>] 0x0 [ 14.495320][ C3] CPU: 3 UID: 0 PID: 0 Comm: swapper/3 Not tainted 6.15.0-rc5-virtme #1 PREEMPT(full) [ 14.495325][ C3] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 14.495326][ C3] Call Trace: [ 14.495328][ C3] [ 14.495330][ C3] dump_stack_lvl+0xb0/0xd0 [ 14.495336][ C3] __might_resched+0x360/0x5a0 [ 14.495342][ C3] down_write+0x72/0x210 [ 14.495345][ C3] ? __pfx_down_write+0x10/0x10 [ 14.495348][ C3] ? simple_recursive_removal+0x3a/0x860 [ 14.495351][ C3] ? rcu_is_watching+0x12/0xc0 [ 14.495357][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 14.495362][ C3] simple_recursive_removal+0x166/0x860 [ 14.495364][ C3] ? __pfx_remove_one+0x10/0x10 [ 14.495368][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 14.495372][ C3] debugfs_remove+0x44/0x70 [ 14.495375][ C3] ref_tracker_dir_exit+0xcf/0x740 [ 14.495380][ C3] ? __pfx_ref_tracker_free+0x10/0x10 [ 14.495383][ C3] ? __sk_destruct+0x383/0x780 [ 14.495388][ C3] ? rcu_do_batch+0x34c/0xf20 [ 14.495392][ C3] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 14.495395][ C3] ? irq_exit_rcu+0xe/0x30 [ 14.495398][ C3] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 14.495402][ C3] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 14.495405][ C3] ? pv_native_safe_halt+0xf/0x20 [ 14.495408][ C3] ? default_idle+0x9/0x10 [ 14.495411][ C3] ? default_idle_call+0x6d/0xb0 [ 14.495413][ C3] ? cpuidle_idle_call+0x26f/0x3a0 [ 14.495417][ C3] ? do_idle+0xf6/0x160 [ 14.495420][ C3] ? cpu_startup_entry+0x54/0x60 [ 14.495423][ C3] ? start_secondary+0x213/0x2a0 [ 14.495427][ C3] ? common_startup_64+0x13e/0x148 [ 14.495433][ C3] __put_net+0x19/0x60 [ 14.495436][ C3] __sk_destruct+0x58a/0x780 [ 14.495440][ C3] ? rcu_do_batch+0x34a/0xf20 [ 14.495443][ C3] rcu_do_batch+0x34c/0xf20 [ 14.495446][ C3] ? find_held_lock+0x2b/0x80 [ 14.495450][ C3] ? __pfx_rcu_do_batch+0x10/0x10 [ 14.495454][ C3] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 14.495458][ C3] ? lockdep_hardirqs_on+0x7c/0x110 [ 14.495462][ C3] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 14.495466][ C3] rcu_core+0x2bb/0x500 [ 14.495469][ C3] handle_softirqs+0x218/0x620 [ 14.495474][ C3] __irq_exit_rcu+0xfa/0x160 [ 14.495476][ C3] irq_exit_rcu+0xe/0x30 [ 14.495478][ C3] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 14.495482][ C3] [ 14.495483][ C3] [ 14.495484][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 14.495487][ C3] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 14.495491][ C3] Code: b0 b8 00 c3 cc cc cc cc 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 a3 d0 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 [ 14.495493][ C3] RSP: 0018:ffffc90000157de8 EFLAGS: 00000246 [ 14.495496][ C3] RAX: 000000000004b8e1 RBX: 1ffff9200002afc1 RCX: ffffffff93955a19 [ 14.495498][ C3] RDX: 0000000000000000 RSI: ffffffff94485f31 RDI: ffffffff93c50ce0 [ 14.495500][ C3] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c3667a [ 14.495502][ C3] R10: ffff8880361b33d3 R11: 0000000000000000 R12: 0000000000000000 [ 14.495503][ C3] R13: ffff888001bb4640 R14: dffffc0000000000 R15: 0000000000000000 [ 14.495507][ C3] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 14.495512][ C3] default_idle+0x9/0x10 [ 14.495515][ C3] default_idle_call+0x6d/0xb0 [ 14.495517][ C3] cpuidle_idle_call+0x26f/0x3a0 [ 14.495521][ C3] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 14.495525][ C3] ? tsc_verify_tsc_adjust+0x98/0x300 [ 14.495529][ C3] do_idle+0xf6/0x160 [ 14.495533][ C3] cpu_startup_entry+0x54/0x60 [ 14.495537][ C3] start_secondary+0x213/0x2a0 [ 14.495540][ C3] ? __pfx_start_secondary+0x10/0x10 [ 14.495545][ C3] common_startup_64+0x13e/0x148 [ 14.495551][ C3] [ 16.233018][ T258] packetdrill (258) used greatest stack depth: 24080 bytes left [ 16.242694][ C2] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 16.243038][ C2] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/2 [ 16.243337][ C2] preempt_count: 101, expected: 0 [ 16.243512][ C2] RCU nest depth: 0, expected: 0 [ 16.243690][ C2] INFO: lockdep is turned off. [ 16.243873][ C2] Preemption disabled at: [ 16.243875][ C2] [<0000000000000000>] 0x0 [ 16.244189][ C2] CPU: 2 UID: 0 PID: 0 Comm: swapper/2 Tainted: G W 6.15.0-rc5-virtme #1 PREEMPT(full) [ 16.244195][ C2] Tainted: [W]=WARN [ 16.244196][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 16.244198][ C2] Call Trace: [ 16.244200][ C2] [ 16.244202][ C2] dump_stack_lvl+0xb0/0xd0 [ 16.244210][ C2] __might_resched+0x360/0x5a0 [ 16.244216][ C2] down_write+0x72/0x210 [ 16.244220][ C2] ? __pfx_down_write+0x10/0x10 [ 16.244223][ C2] ? simple_recursive_removal+0x3a/0x860 [ 16.244227][ C2] ? rcu_is_watching+0x12/0xc0 [ 16.244233][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 16.244237][ C2] simple_recursive_removal+0x166/0x860 [ 16.244240][ C2] ? __pfx_remove_one+0x10/0x10 [ 16.244244][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 16.244248][ C2] debugfs_remove+0x44/0x70 [ 16.244251][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 16.244256][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 16.244259][ C2] ? __sk_destruct+0x383/0x780 [ 16.244265][ C2] ? rcu_do_batch+0x34c/0xf20 [ 16.244269][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 16.244272][ C2] ? irq_exit_rcu+0xe/0x30 [ 16.244276][ C2] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 16.244281][ C2] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 16.244284][ C2] ? pv_native_safe_halt+0xf/0x20 [ 16.244287][ C2] ? default_idle+0x9/0x10 [ 16.244290][ C2] ? default_idle_call+0x6d/0xb0 [ 16.244292][ C2] ? cpuidle_idle_call+0x26f/0x3a0 [ 16.244297][ C2] ? do_idle+0xf6/0x160 [ 16.244300][ C2] ? cpu_startup_entry+0x54/0x60 [ 16.244303][ C2] ? start_secondary+0x213/0x2a0 [ 16.244308][ C2] ? common_startup_64+0x13e/0x148 [ 16.244312][ C2] ? bpf_sk_storage_free+0x9f/0x1c0 [ 16.244315][ C2] ? rcu_is_watching+0x12/0xc0 [ 16.244320][ C2] __put_net+0x19/0x60 [ 16.244324][ C2] __sk_destruct+0x58a/0x780 [ 16.244327][ C2] ? rcu_do_batch+0x34a/0xf20 [ 16.244330][ C2] rcu_do_batch+0x34c/0xf20 [ 16.244335][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 16.244339][ C2] ? trace_irq_enable.constprop.0+0xd4/0x130 [ 16.244344][ C2] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 16.244349][ C2] rcu_core+0x2bb/0x500 [ 16.244352][ C2] handle_softirqs+0x218/0x620 [ 16.244357][ C2] __irq_exit_rcu+0xfa/0x160 [ 16.244359][ C2] irq_exit_rcu+0xe/0x30 [ 16.244362][ C2] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 16.244365][ C2] [ 16.244366][ C2] [ 16.244368][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 16.244370][ C2] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 16.244374][ C2] Code: b0 b8 00 c3 cc cc cc cc 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 a3 d0 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 [ 16.244377][ C2] RSP: 0018:ffffc90000147de8 EFLAGS: 00000246 [ 16.244381][ C2] RAX: 0000000000000002 RBX: 1ffff92000028fc1 RCX: ffffffff93955a19 [ 16.244383][ C2] RDX: ffffed1006c2667b RSI: ffffffff93c50c60 RDI: ffffffff91184d8f [ 16.244385][ C2] RBP: 0000000000000000 R08: 0000000000000000 R09: ffffed1006c2667a [ 16.244386][ C2] R10: ffff8880361333d3 R11: ffffc900001479d8 R12: 0000000000000000 [ 16.244388][ C2] R13: ffff888001bb2340 R14: dffffc0000000000 R15: 0000000000000000 [ 16.244392][ C2] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 16.244396][ C2] ? cpuidle_idle_call+0x26f/0x3a0 [ 16.244400][ C2] default_idle+0x9/0x10 [ 16.244402][ C2] default_idle_call+0x6d/0xb0 [ 16.244405][ C2] cpuidle_idle_call+0x26f/0x3a0 [ 16.244408][ C2] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 16.244412][ C2] ? tsc_verify_tsc_adjust+0x98/0x300 [ 16.244417][ C2] do_idle+0xf6/0x160 [ 16.244422][ C2] cpu_startup_entry+0x54/0x60 [ 16.244425][ C2] start_secondary+0x213/0x2a0 [ 16.244429][ C2] ? __pfx_start_secondary+0x10/0x10 [ 16.244434][ C2] common_startup_64+0x13e/0x148 [ 16.244440][ C2]