igt@xe_pm@s4* - abort - xe_pm* is trying to acquire lock:, at: efivarfs_actor, but task is already holding lock:, at: iterate_dir
<6> [92.610590] usb 1-2: reset full-speed USB device number 2 using xhci_hcd
<7> [92.750012] PM: hibernation: Basic memory bitmaps freed
<6> [92.750497] OOM killer enabled.
<6> [92.750505] Restarting tasks ... done.
<6> [92.757266] efivarfs: resyncing variable state
<4> [92.757686]
<4> [92.757690] ============================================
<4> [92.757692] WARNING: possible recursive locking detected
<4> [92.757694] 6.14.0-rc2-xe+ #1 Not tainted
<4> [92.757697] --------------------------------------------
<4> [92.757699] xe_pm/2562 is trying to acquire lock:
<4> [92.757701] ffff8881123a1558 (&sb->s_type->i_mutex_key#12){++++}-{3:3}, at: efivarfs_actor+0x94/0x100
<4> [92.757708]
but task is already holding lock:
<4> [92.757710] ffff8881112a9558 (&sb->s_type->i_mutex_key#12){++++}-{3:3}, at: iterate_dir+0x99/0x2b0
<4> [92.757716]
other info that might help us debug this:
<4> [92.757718] Possible unsafe locking scenario:
<4> [92.757720] CPU0
<4> [92.757721] ----
<4> [92.757723] lock(&sb->s_type->i_mutex_key#12);
<4> [92.757725] lock(&sb->s_type->i_mutex_key#12);
<4> [92.757728]
*** DEADLOCK ***
<4> [92.757730] May be due to missing lock nesting notation
<4> [92.757732] 7 locks held by xe_pm/2562:
<4> [92.757734] #0: ffff888113c89b38 (&f->f_pos_lock){+.+.}-{3:3}, at: fdget_pos+0x92/0xe0
<4> [92.757741] #1: ffff888110764420 (sb_writers#5){.+.+}-{0:0}, at: ksys_write+0x7c/0x100
<4> [92.757746] #2: ffff8881173f4a88 (&of->mutex#2){+.+.}-{3:3}, at: kernfs_fop_write_iter+0x11e/0x210
<4> [92.757751] #3: ffff8881029a7880 (kn->active#232){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x127/0x210
<4> [92.757756] #4: ffffffff83298fc8 (system_transition_mutex){+.+.}-{3:3}, at: lock_system_sleep+0x2b/0x40
<4> [92.757762] #5: ffffffff832aca70 ((pm_chain_head).rwsem){++++}-{3:3}, at: blocking_notifier_call_chain+0x2d/0x70
<4> [92.757769] #6: ffff8881112a9558 (&sb->s_type->i_mutex_key#12){++++}-{3:3}, at: iterate_dir+0x99/0x2b0
<4> [92.757774]
stack backtrace:
<4> [92.757776] CPU: 2 UID: 0 PID: 2562 Comm: xe_pm Not tainted 6.14.0-rc2-xe+ #1
<4> [92.757778] Hardware name: Micro-Star International Co., Ltd. MS-7D25/PRO Z690-A DDR4(MS-7D25), BIOS 1.10 12/13/2021
<4> [92.757778] Call Trace:
<4> [92.757779] <TASK>
<4> [92.757779] dump_stack_lvl+0x91/0xf0
<4> [92.757782] dump_stack+0x10/0x20
<4> [92.757784] print_deadlock_bug+0x23f/0x320
<4> [92.757786] __lock_acquire+0x145f/0x2810
<4> [92.757788] lock_acquire+0xc9/0x300
<4> [92.757790] ? efivarfs_actor+0x94/0x100
<4> [92.757791] down_write+0x3e/0xf0
<4> [92.757793] ? efivarfs_actor+0x94/0x100
<4> [92.757794] efivarfs_actor+0x94/0x100
<4> [92.757795] dcache_readdir+0x7c/0x210
<4> [92.757797] iterate_dir+0xcc/0x2b0
<4> [92.757798] efivarfs_pm_notify+0x139/0x180
<4> [92.757799] ? __pfx_efivarfs_actor+0x10/0x10
<4> [92.757801] notifier_call_chain+0x4d/0x170
<4> [92.757803] blocking_notifier_call_chain+0x47/0x70
<4> [92.757805] pm_notifier_call_chain+0x1a/0x30
<4> [92.757807] hibernate+0x259/0x480
<4> [92.757808] state_store+0xd3/0xe0
<4> [92.757809] kobj_attr_store+0xf/0x40
<4> [92.757810] sysfs_kf_write+0x49/0x80