random: crng reseeded on system resumption FAULT_INJECTION: forcing a failure. name failslab, interval 1, probability 0, space 0, times 1 CPU: 0 UID: 0 PID: 5333 Comm: syz.0.0 Not tainted 6.12.0-syzkaller-01782-gbf9aa14fc523 #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120 fail_dump lib/fault-inject.c:53 [inline] should_fail_ex+0x3b0/0x4e0 lib/fault-inject.c:154 should_failslab+0xac/0x100 mm/failslab.c:46 slab_pre_alloc_hook mm/slub.c:4038 [inline] slab_alloc_node mm/slub.c:4114 [inline] __kmalloc_cache_noprof+0x6c/0x2c0 mm/slub.c:4290 kmalloc_noprof include/linux/slab.h:879 [inline] kzalloc_noprof include/linux/slab.h:1015 [inline] async_schedule_node_domain+0x5c/0x110 kernel/async.c:208 async_schedule_domain include/linux/async.h:72 [inline] dev_cache_fw_image+0x36d/0x3e0 drivers/base/firmware_loader/main.c:1501 dpm_for_each_dev+0x58/0xc0 drivers/base/power/main.c:1963 device_cache_fw_images drivers/base/firmware_loader/main.c:1551 [inline] fw_pm_notify+0x24a/0x2f0 drivers/base/firmware_loader/main.c:1602 notifier_call_chain+0x19f/0x3e0 kernel/notifier.c:93 notifier_call_chain_robust kernel/notifier.c:128 [inline] blocking_notifier_call_chain_robust+0xe8/0x1e0 kernel/notifier.c:353 pm_notifier_call_chain_robust+0x2c/0x60 kernel/power/main.c:102 snapshot_open+0x132/0x280 kernel/power/user.c:87 misc_open+0x2cc/0x340 drivers/char/misc.c:165 chrdev_open+0x521/0x600 fs/char_dev.c:414 do_dentry_open+0x978/0x1460 fs/open.c:941 vfs_open+0x3e/0x330 fs/open.c:1071 do_open fs/namei.c:3828 [inline] path_openat+0x2c84/0x3590 fs/namei.c:3987 do_filp_open+0x27f/0x4e0 fs/namei.c:4014 do_sys_openat2+0x13e/0x1d0 fs/open.c:1398 do_sys_open fs/open.c:1413 [inline] __do_sys_openat fs/open.c:1429 [inline] __se_sys_openat fs/open.c:1424 [inline] __x64_sys_openat+0x247/0x2a0 fs/open.c:1424 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f4438f7e759 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f4439e39038 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007f4439136058 RCX: 00007f4438f7e759 RDX: 0000000000000001 RSI: 00000000200000c0 RDI: ffffffffffffff9c RBP: 00007f4439e39090 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001 R13: 0000000000000000 R14: 00007f4439136058 R15: 00007ffdad346268 ============================================ WARNING: possible recursive locking detected 6.12.0-syzkaller-01782-gbf9aa14fc523 #0 Not tainted -------------------------------------------- syz.0.0/5333 is trying to acquire lock: ffffffff8f2e6dc8 (fw_lock){+.+.}-{4:4}, at: assign_fw+0x56/0x890 drivers/base/firmware_loader/main.c:700 but task is already holding lock: ffffffff8f2e6dc8 (fw_lock){+.+.}-{4:4}, at: device_cache_fw_images drivers/base/firmware_loader/main.c:1549 [inline] ffffffff8f2e6dc8 (fw_lock){+.+.}-{4:4}, at: fw_pm_notify+0x232/0x2f0 drivers/base/firmware_loader/main.c:1602 other info that might help us debug this: Possible unsafe locking scenario: CPU0 ---- lock(fw_lock); lock(fw_lock); *** DEADLOCK *** May be due to missing lock nesting notation 5 locks held by syz.0.0/5333: #0: ffffffff8f198b08 (misc_mtx){+.+.}-{4:4}, at: misc_open+0x54/0x340 drivers/char/misc.c:129 #1: ffffffff8e7ef5e8 (system_transition_mutex){+.+.}-{4:4}, at: lock_system_sleep+0x60/0xa0 kernel/power/main.c:56 #2: ffffffff8e80faf0 ((pm_chain_head).rwsem){++++}-{4:4}, at: blocking_notifier_call_chain_robust+0xac/0x1e0 kernel/notifier.c:352 #3: ffffffff8f2e6dc8 (fw_lock){+.+.}-{4:4}, at: device_cache_fw_images drivers/base/firmware_loader/main.c:1549 [inline] #3: ffffffff8f2e6dc8 (fw_lock){+.+.}-{4:4}, at: fw_pm_notify+0x232/0x2f0 drivers/base/firmware_loader/main.c:1602 #4: ffffffff8f2e1e68 (dpm_list_mtx){+.+.}-{4:4}, at: device_pm_lock drivers/base/power/main.c:113 [inline] #4: ffffffff8f2e1e68 (dpm_list_mtx){+.+.}-{4:4}, at: dpm_for_each_dev+0x2b/0xc0 drivers/base/power/main.c:1961 stack backtrace: CPU: 0 UID: 0 PID: 5333 Comm: syz.0.0 Not tainted 6.12.0-syzkaller-01782-gbf9aa14fc523 #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120 print_deadlock_bug+0x483/0x620 kernel/locking/lockdep.c:3037 check_deadlock kernel/locking/lockdep.c:3089 [inline] validate_chain+0x15e2/0x5920 kernel/locking/lockdep.c:3891 __lock_acquire+0x1397/0x2100 kernel/locking/lockdep.c:5226 lock_acquire+0x1ed/0x550 kernel/locking/lockdep.c:5849 __mutex_lock_common kernel/locking/mutex.c:585 [inline] __mutex_lock+0x1ac/0xee0 kernel/locking/mutex.c:735 assign_fw+0x56/0x890 drivers/base/firmware_loader/main.c:700 _request_firmware+0xe16/0x13b0 drivers/base/firmware_loader/main.c:945 request_firmware drivers/base/firmware_loader/main.c:993 [inline] cache_firmware drivers/base/firmware_loader/main.c:1331 [inline] __async_dev_cache_fw_image+0xe7/0x320 drivers/base/firmware_loader/main.c:1445 async_schedule_node_domain+0xdc/0x110 kernel/async.c:221 async_schedule_domain include/linux/async.h:72 [inline] dev_cache_fw_image+0x36d/0x3e0 drivers/base/firmware_loader/main.c:1501 dpm_for_each_dev+0x58/0xc0 drivers/base/power/main.c:1963 device_cache_fw_images drivers/base/firmware_loader/main.c:1551 [inline] fw_pm_notify+0x24a/0x2f0 drivers/base/firmware_loader/main.c:1602 notifier_call_chain+0x19f/0x3e0 kernel/notifier.c:93 notifier_call_chain_robust kernel/notifier.c:128 [inline] blocking_notifier_call_chain_robust+0xe8/0x1e0 kernel/notifier.c:353 pm_notifier_call_chain_robust+0x2c/0x60 kernel/power/main.c:102 snapshot_open+0x132/0x280 kernel/power/user.c:87 misc_open+0x2cc/0x340 drivers/char/misc.c:165 chrdev_open+0x521/0x600 fs/char_dev.c:414 do_dentry_open+0x978/0x1460 fs/open.c:941 vfs_open+0x3e/0x330 fs/open.c:1071 do_open fs/namei.c:3828 [inline] path_openat+0x2c84/0x3590 fs/namei.c:3987 do_filp_open+0x27f/0x4e0 fs/namei.c:4014 do_sys_openat2+0x13e/0x1d0 fs/open.c:1398 do_sys_open fs/open.c:1413 [inline] __do_sys_openat fs/open.c:1429 [inline] __se_sys_openat fs/open.c:1424 [inline] __x64_sys_openat+0x247/0x2a0 fs/open.c:1424 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f4438f7e759 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f4439e39038 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007f4439136058 RCX: 00007f4438f7e759 RDX: 0000000000000001 RSI: 00000000200000c0 RDI: ffffffffffffff9c RBP: 00007f4439e39090 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001 R13: 0000000000000000 R14: 00007f4439136058 R15: 00007ffdad346268