============================================ WARNING: possible recursive locking detected syzkaller #0 Tainted: G U L -------------------------------------------- syz.3.2927/19177 is trying to acquire lock: ffff888027bb4278 (&p->frag_sem){.+.+}-{4:4}, at: __configfs_open_file+0xe8/0x9c0 fs/configfs/file.c:304 but task is already holding lock: ffff888027bb4278 (&p->frag_sem){.+.+}-{4:4}, at: flush_write_buffer fs/configfs/file.c:205 [inline] ffff888027bb4278 (&p->frag_sem){.+.+}-{4:4}, at: configfs_write_iter+0x219/0x4e0 fs/configfs/file.c:229 other info that might help us debug this: Possible unsafe locking scenario: CPU0 ---- lock(&p->frag_sem); lock(&p->frag_sem); *** DEADLOCK *** May be due to missing lock nesting notation 5 locks held by syz.3.2927/19177: #0: ffff88802930a9b8 (&f->f_pos_lock){+.+.}-{4:4}, at: fdget_pos+0x2a2/0x370 fs/file.c:1255 #1: ffff88801d394420 (sb_writers#19){.+.+}-{0:0}, at: ksys_write+0x12a/0x250 fs/read_write.c:738 #2: ffff88803290fc88 (&buffer->mutex#2){+.+.}-{4:4}, at: configfs_write_iter+0x75/0x4e0 fs/configfs/file.c:226 #3: ffff888027bb4278 (&p->frag_sem){.+.+}-{4:4}, at: flush_write_buffer fs/configfs/file.c:205 [inline] #3: ffff888027bb4278 (&p->frag_sem){.+.+}-{4:4}, at: configfs_write_iter+0x219/0x4e0 fs/configfs/file.c:229 #4: ffffffff8f43d668 (target_devices_lock){+.+.}-{4:4}, at: target_core_item_dbroot_store+0x21/0x370 drivers/target/target_core_configfs.c:114 stack backtrace: CPU: 1 UID: 0 PID: 19177 Comm: syz.3.2927 Tainted: G U L syzkaller #0 PREEMPT(full) Tainted: [U]=USER, [L]=SOFTLOCKUP Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/25/2025 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:120 print_deadlock_bug+0x225/0x2f0 kernel/locking/lockdep.c:3041 check_deadlock kernel/locking/lockdep.c:3093 [inline] validate_chain kernel/locking/lockdep.c:3895 [inline] __lock_acquire+0x1497/0x2890 kernel/locking/lockdep.c:5237 lock_acquire kernel/locking/lockdep.c:5868 [inline] lock_acquire+0x179/0x330 kernel/locking/lockdep.c:5825 down_read+0x9b/0x460 kernel/locking/rwsem.c:1537 __configfs_open_file+0xe8/0x9c0 fs/configfs/file.c:304 do_dentry_open+0x748/0x1590 fs/open.c:962 vfs_open+0x82/0x3f0 fs/open.c:1094 do_open fs/namei.c:4628 [inline] path_openat+0x2078/0x3140 fs/namei.c:4787 do_filp_open+0x20b/0x470 fs/namei.c:4814 file_open_name+0x2a3/0x450 fs/open.c:1376 filp_open+0x4b/0x80 fs/open.c:1396 target_core_item_dbroot_store+0x108/0x370 drivers/target/target_core_configfs.c:134 flush_write_buffer fs/configfs/file.c:207 [inline] configfs_write_iter+0x306/0x4e0 fs/configfs/file.c:229 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x7d3/0x11d0 fs/read_write.c:686 ksys_write+0x12a/0x250 fs/read_write.c:738 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f953458f7c9 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:00007f95327cd038 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f95347e6090 RCX: 00007f953458f7c9 RDX: 0000000000000100 RSI: 0000200000000240 RDI: 0000000000000004 RBP: 00007f9534613f91 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f95347e6128 R14: 00007f95347e6090 R15: 00007ffcf4a1ec88 db_root: not a directory: /sys/kernel/config/target/dbroot