[ 15.171960][ C3] [ 15.172131][ C3] ================================ [ 15.172377][ C3] WARNING: inconsistent lock state [ 15.172599][ C3] 6.15.0-virtme #1 Not tainted [ 15.172823][ C3] -------------------------------- [ 15.173043][ C3] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 15.173327][ C3] kworker/u20:1/232 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 15.173618][ C3] ffffffff8a9c5af8 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 15.174009][ C3] {SOFTIRQ-ON-W} state was registered at: [ 15.174226][ C3] __lock_acquire+0x20b/0x7e0 [ 15.174473][ C3] lock_acquire.part.0+0xb6/0x240 [ 15.174694][ C3] _raw_spin_lock+0x33/0x40 [ 15.174918][ C3] simple_pin_fs+0x24/0x150 [ 15.175136][ C3] start_creating.part.0+0x52/0x310 [ 15.175373][ C3] debugfs_create_dir+0x6a/0x540 [ 15.175595][ C3] component_debug_init+0x17/0x30 [ 15.175817][ C3] do_one_initcall+0x8f/0x1e0 [ 15.176037][ C3] do_initcalls+0x176/0x280 [ 15.176260][ C3] kernel_init_freeable+0x22d/0x300 [ 15.176500][ C3] kernel_init+0x20/0x200 [ 15.176722][ C3] ret_from_fork+0x240/0x320 [ 15.176948][ C3] ret_from_fork_asm+0x1a/0x30 [ 15.177168][ C3] irq event stamp: 1030 [ 15.177350][ C3] hardirqs last enabled at (1030): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 15.177796][ C3] hardirqs last disabled at (1029): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 15.178182][ C3] softirqs last enabled at (502): [] handle_softirqs+0x358/0x620 [ 15.178765][ C3] softirqs last disabled at (693): [] __irq_exit_rcu+0xfa/0x160 [ 15.179217][ C3] [ 15.179217][ C3] other info that might help us debug this: [ 15.179557][ C3] Possible unsafe locking scenario: [ 15.179557][ C3] [ 15.179884][ C3] CPU0 [ 15.180053][ C3] ---- [ 15.180221][ C3] lock(pin_fs_lock); [ 15.180399][ C3] [ 15.180564][ C3] lock(pin_fs_lock); [ 15.180733][ C3] [ 15.180733][ C3] *** DEADLOCK *** [ 15.180733][ C3] [ 15.181062][ C3] 2 locks held by kworker/u20:1/232: [ 15.181287][ C3] #0: ffff8880097219b8 (&sig->cred_guard_mutex){+.+.}-{4:4}, at: bprm_execve+0x4f/0x490 [ 15.181706][ C3] #1: ffffffff8a7774c0 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 15.182095][ C3] [ 15.182095][ C3] stack backtrace: [ 15.182383][ C3] CPU: 3 UID: 0 PID: 232 Comm: kworker/u20:1 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 15.182389][ C3] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 15.182391][ C3] Call Trace: [ 15.182393][ C3] [ 15.182397][ C3] dump_stack_lvl+0x82/0xd0 [ 15.182405][ C3] print_usage_bug.part.0+0x25f/0x360 [ 15.182411][ C3] mark_lock_irq+0x343/0x400 [ 15.182416][ C3] ? __pfx_unwind_next_frame+0x10/0x10 [ 15.182423][ C3] ? save_trace+0x52/0x170 [ 15.182427][ C3] mark_lock+0x174/0x2f0 [ 15.182431][ C3] mark_usage+0x46/0x150 [ 15.182434][ C3] __lock_acquire+0x20b/0x7e0 [ 15.182438][ C3] ? __lock_acquire+0x44d/0x7e0 [ 15.182442][ C3] lock_acquire.part.0+0xb6/0x240 [ 15.182446][ C3] ? simple_pin_fs+0x24/0x150 [ 15.182450][ C3] ? rcu_is_watching+0x12/0xc0 [ 15.182457][ C3] ? lock_acquire+0x10c/0x170 [ 15.182459][ C3] ? simple_pin_fs+0x24/0x150 [ 15.182463][ C3] _raw_spin_lock+0x33/0x40 [ 15.182468][ C3] ? simple_pin_fs+0x24/0x150 [ 15.182470][ C3] simple_pin_fs+0x24/0x150 [ 15.182474][ C3] debugfs_remove+0x35/0x70 [ 15.182478][ C3] ref_tracker_dir_exit+0xcf/0x740 [ 15.182484][ C3] ? __pfx_ref_tracker_free+0x10/0x10 [ 15.182487][ C3] ? __sk_destruct+0x383/0x780 [ 15.182494][ C3] ? rcu_do_batch+0x34c/0xf20 [ 15.182497][ C3] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 15.182500][ C3] ? irq_exit_rcu+0xe/0x30 [ 15.182504][ C3] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 15.182509][ C3] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 15.182514][ C3] ? unwind_get_return_address+0x13/0xa0 [ 15.182517][ C3] ? arch_stack_walk+0xa1/0xf0 [ 15.182521][ C3] ? stack_trace_save+0x93/0xd0 [ 15.182525][ C3] ? set_track_prepare+0x3a/0x70 [ 15.182531][ C3] ? __alloc_object+0xf7/0x2e0 [ 15.182535][ C3] ? __create_object+0x22/0xb0 [ 15.182538][ C3] ? kmem_cache_alloc_noprof+0x288/0x330 [ 15.182545][ C3] ? getname_kernel+0x53/0x2d0 [ 15.182552][ C3] __put_net+0x19/0x60 [ 15.182557][ C3] __sk_destruct+0x58a/0x780 [ 15.182561][ C3] ? rcu_do_batch+0x34a/0xf20 [ 15.182564][ C3] rcu_do_batch+0x34c/0xf20 [ 15.182568][ C3] ? find_held_lock+0x2b/0x80 [ 15.182572][ C3] ? __pfx_rcu_do_batch+0x10/0x10 [ 15.182575][ C3] ? mark_held_locks+0x49/0x80 [ 15.182578][ C3] ? note_gp_changes+0x182/0x1e0 [ 15.182582][ C3] ? lockdep_hardirqs_on+0x7c/0x110 [ 15.182586][ C3] rcu_core+0x2bb/0x500 [ 15.182592][ C3] handle_softirqs+0x218/0x620 [ 15.182598][ C3] __irq_exit_rcu+0xfa/0x160 [ 15.182601][ C3] irq_exit_rcu+0xe/0x30 [ 15.182604][ C3] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 15.182608][ C3] [ 15.182610][ C3] [ 15.182611][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 15.182614][ C3] RIP: 0010:unwind_get_return_address+0x13/0xa0 [ 15.182619][ C3] Code: 00 00 00 0f 1f 40 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa 0f 1f 44 00 00 48 b8 00 00 00 00 00 fc ff df <48> 89 fa 55 48 c1 ea 03 53 48 89 fb 0f b6 04 02 84 c0 74 04 3c 03 [ 15.182621][ C3] RSP: 0018:ffffc900004d7978 EFLAGS: 00000202 [ 15.182625][ C3] RAX: dffffc0000000000 RBX: ffffffff870c8380 RCX: ffffc900004d782c [ 15.182627][ C3] RDX: 0000000000000000 RSI: ffffffff8a27ab82 RDI: ffffc900004d7980 [ 15.182629][ C3] RBP: ffffc900004d7a18 R08: 0000000000000000 R09: ffffc900004d79c1 [ 15.182631][ C3] R10: 0000000000000000 R11: ffffc900004d79c0 R12: ffffc900004d7a48 [ 15.182632][ C3] R13: 0000000000000000 R14: ffff88800972c5c0 R15: 0000000000000cc0 [ 15.182635][ C3] ? __pfx_stack_trace_consume_entry+0x10/0x10 [ 15.182641][ C3] arch_stack_walk+0xa1/0xf0 [ 15.182646][ C3] ? getname_kernel+0x53/0x2d0 [ 15.182650][ C3] stack_trace_save+0x93/0xd0 [ 15.182653][ C3] ? __pfx_stack_trace_save+0x10/0x10 [ 15.182658][ C3] set_track_prepare+0x3a/0x70 [ 15.182662][ C3] ? kmem_cache_alloc_noprof+0x288/0x330 [ 15.182665][ C3] ? rcu_is_watching+0x12/0xc0 [ 15.182669][ C3] ? trace_kmem_cache_alloc+0x2a/0xd0 [ 15.182672][ C3] ? lockdep_init_map_type+0x4b/0x280 [ 15.182677][ C3] __alloc_object+0xf7/0x2e0 [ 15.182682][ C3] __create_object+0x22/0xb0 [ 15.182685][ C3] kmem_cache_alloc_noprof+0x288/0x330 [ 15.182691][ C3] getname_kernel+0x53/0x2d0 [ 15.182695][ C3] open_exec+0x11/0x50 [ 15.182698][ C3] load_elf_binary+0x51e/0x2960 [ 15.182704][ C3] ? __lock_acquire+0x44d/0x7e0 [ 15.182709][ C3] ? find_held_lock+0x2b/0x80 [ 15.182712][ C3] ? __pfx_load_elf_binary+0x10/0x10 [ 15.182714][ C3] ? exec_binprm+0x237/0x640 [ 15.182720][ C3] exec_binprm+0x255/0x640 [ 15.182724][ C3] ? __pfx_exec_binprm+0x10/0x10 [ 15.182726][ C3] ? bprm_execve+0x93/0x490 [ 15.182731][ C3] bprm_execve+0x1af/0x490 [ 15.182734][ C3] kernel_execve+0x252/0x2f0 [ 15.182738][ C3] call_usermodehelper_exec_async+0x23e/0x460 [ 15.182744][ C3] ? lockdep_hardirqs_on+0x7c/0x110 [ 15.182747][ C3] ? __pfx_call_usermodehelper_exec_async+0x10/0x10 [ 15.182750][ C3] ? __pfx_call_usermodehelper_exec_async+0x10/0x10 [ 15.182753][ C3] ret_from_fork+0x240/0x320 [ 15.182758][ C3] ? __pfx_call_usermodehelper_exec_async+0x10/0x10 [ 15.182761][ C3] ret_from_fork_asm+0x1a/0x30 [ 15.182769][ C3] [ 15.207740][ C3] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 15.208205][ C3] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 232, name: kworker/u20:1 [ 15.208601][ C3] preempt_count: 100, expected: 0 [ 15.208807][ C3] RCU nest depth: 0, expected: 0 [ 15.209141][ C3] INFO: lockdep is turned off. [ 15.209356][ C3] Preemption disabled at: [ 15.209358][ C3] [] handle_softirqs+0xe5/0x620 [ 15.209791][ C3] CPU: 3 UID: 0 PID: 232 Comm: kworker/u20:1 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 15.209797][ C3] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 15.209800][ C3] Call Trace: [ 15.209802][ C3] [ 15.209807][ C3] dump_stack_lvl+0xb0/0xd0 [ 15.209816][ C3] __might_resched+0x360/0x5a0 [ 15.209826][ C3] down_write+0x72/0x210 [ 15.209831][ C3] ? __pfx_down_write+0x10/0x10 [ 15.209834][ C3] ? simple_recursive_removal+0x33/0x610 [ 15.209841][ C3] ? rcu_is_watching+0x12/0xc0 [ 15.209849][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 15.209854][ C3] simple_recursive_removal+0x6a/0x610 [ 15.209857][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 15.209860][ C3] ? __pfx_remove_one+0x10/0x10 [ 15.209867][ C3] debugfs_remove+0x44/0x70 [ 15.209870][ C3] ref_tracker_dir_exit+0xcf/0x740 [ 15.209876][ C3] ? __pfx_ref_tracker_free+0x10/0x10 [ 15.209879][ C3] ? __sk_destruct+0x383/0x780 [ 15.209885][ C3] ? rcu_do_batch+0x34c/0xf20 [ 15.209891][ C3] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 15.209894][ C3] ? irq_exit_rcu+0xe/0x30 [ 15.209897][ C3] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 15.209902][ C3] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 15.209908][ C3] ? unwind_get_return_address+0x13/0xa0 [ 15.209913][ C3] ? arch_stack_walk+0xa1/0xf0 [ 15.209917][ C3] ? stack_trace_save+0x93/0xd0 [ 15.209922][ C3] ? set_track_prepare+0x3a/0x70 [ 15.209928][ C3] ? __alloc_object+0xf7/0x2e0 [ 15.209931][ C3] ? __create_object+0x22/0xb0 [ 15.209934][ C3] ? kmem_cache_alloc_noprof+0x288/0x330 [ 15.209941][ C3] ? getname_kernel+0x53/0x2d0 [ 15.209949][ C3] __put_net+0x19/0x60 [ 15.209954][ C3] __sk_destruct+0x58a/0x780 [ 15.209959][ C3] ? rcu_do_batch+0x34a/0xf20 [ 15.209961][ C3] rcu_do_batch+0x34c/0xf20 [ 15.209965][ C3] ? find_held_lock+0x2b/0x80 [ 15.209970][ C3] ? __pfx_rcu_do_batch+0x10/0x10 [ 15.209974][ C3] ? mark_held_locks+0x49/0x80 [ 15.209979][ C3] ? note_gp_changes+0x182/0x1e0 [ 15.209982][ C3] ? lockdep_hardirqs_on+0x7c/0x110 [ 15.209987][ C3] rcu_core+0x2bb/0x500 [ 15.209992][ C3] handle_softirqs+0x218/0x620 [ 15.209997][ C3] __irq_exit_rcu+0xfa/0x160 [ 15.210001][ C3] irq_exit_rcu+0xe/0x30 [ 15.210004][ C3] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 15.210007][ C3] [ 15.210008][ C3] [ 15.210010][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 15.210013][ C3] RIP: 0010:unwind_get_return_address+0x13/0xa0 [ 15.210017][ C3] Code: 00 00 00 0f 1f 40 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa 0f 1f 44 00 00 48 b8 00 00 00 00 00 fc ff df <48> 89 fa 55 48 c1 ea 03 53 48 89 fb 0f b6 04 02 84 c0 74 04 3c 03 [ 15.210020][ C3] RSP: 0018:ffffc900004d7978 EFLAGS: 00000202 [ 15.210025][ C3] RAX: dffffc0000000000 RBX: ffffffff870c8380 RCX: ffffc900004d782c [ 15.210027][ C3] RDX: 0000000000000000 RSI: ffffffff8a27ab82 RDI: ffffc900004d7980 [ 15.210028][ C3] RBP: ffffc900004d7a18 R08: 0000000000000000 R09: ffffc900004d79c1 [ 15.210030][ C3] R10: 0000000000000000 R11: ffffc900004d79c0 R12: ffffc900004d7a48 [ 15.210032][ C3] R13: 0000000000000000 R14: ffff88800972c5c0 R15: 0000000000000cc0 [ 15.210035][ C3] ? __pfx_stack_trace_consume_entry+0x10/0x10 [ 15.210041][ C3] arch_stack_walk+0xa1/0xf0 [ 15.210045][ C3] ? getname_kernel+0x53/0x2d0 [ 15.210050][ C3] stack_trace_save+0x93/0xd0 [ 15.210053][ C3] ? __pfx_stack_trace_save+0x10/0x10 [ 15.210058][ C3] set_track_prepare+0x3a/0x70 [ 15.210061][ C3] ? kmem_cache_alloc_noprof+0x288/0x330 [ 15.210066][ C3] ? rcu_is_watching+0x12/0xc0 [ 15.210069][ C3] ? trace_kmem_cache_alloc+0x2a/0xd0 [ 15.210073][ C3] ? lockdep_init_map_type+0x4b/0x280 [ 15.210078][ C3] __alloc_object+0xf7/0x2e0 [ 15.210082][ C3] __create_object+0x22/0xb0 [ 15.210086][ C3] kmem_cache_alloc_noprof+0x288/0x330 [ 15.210091][ C3] getname_kernel+0x53/0x2d0 [ 15.210095][ C3] open_exec+0x11/0x50 [ 15.210098][ C3] load_elf_binary+0x51e/0x2960 [ 15.210105][ C3] ? __lock_acquire+0x44d/0x7e0 [ 15.210110][ C3] ? find_held_lock+0x2b/0x80 [ 15.210113][ C3] ? __pfx_load_elf_binary+0x10/0x10 [ 15.210115][ C3] ? exec_binprm+0x237/0x640 [ 15.210120][ C3] exec_binprm+0x255/0x640 [ 15.210125][ C3] ? __pfx_exec_binprm+0x10/0x10 [ 15.210127][ C3] ? bprm_execve+0x93/0x490 [ 15.210132][ C3] bprm_execve+0x1af/0x490 [ 15.210135][ C3] kernel_execve+0x252/0x2f0 [ 15.210139][ C3] call_usermodehelper_exec_async+0x23e/0x460 [ 15.210144][ C3] ? lockdep_hardirqs_on+0x7c/0x110 [ 15.210148][ C3] ? __pfx_call_usermodehelper_exec_async+0x10/0x10 [ 15.210151][ C3] ? __pfx_call_usermodehelper_exec_async+0x10/0x10 [ 15.210154][ C3] ret_from_fork+0x240/0x320 [ 15.210159][ C3] ? __pfx_call_usermodehelper_exec_async+0x10/0x10 [ 15.210163][ C3] ret_from_fork_asm+0x1a/0x30 [ 15.210171][ C3]