EXT4-fs error (device loop8): ext4_orphan_get:1399: inode #15: comm syz.8.3592: inode has both inline data and extents flags EXT4-fs error (device loop8): ext4_orphan_get:1404: comm syz.8.3592: couldn't read orphan inode 15 (err -117) EXT4-fs (loop8): mounted filesystem 00000000-0000-0000-0000-000000000000 r/w without journal. Quota mode: none. ====================================================== WARNING: possible circular locking dependency detected syzkaller #0 Not tainted ------------------------------------------------------ syz.8.3592/21066 is trying to acquire lock: ffff888066b23668 (&p->lock){+.+.}-{3:3}, at: seq_read_iter+0xb1/0xd50 fs/seq_file.c:182 but task is already holding lock: ffff88807778c418 (sb_writers#4){.+.+}-{0:0}, at: do_sendfile+0x5b9/0xf70 fs/read_write.c:1253 which lock already depends on the new lock. the existing dependency chain (in reverse order) is: -> #3 (sb_writers#4){.+.+}-{0:0}: percpu_down_read include/linux/percpu-rwsem.h:51 [inline] __sb_start_write include/linux/fs.h:1633 [inline] sb_start_write+0x4d/0x1c0 include/linux/fs.h:1708 mnt_want_write+0x41/0x90 fs/namespace.c:412 ovl_create_object+0xa7/0x2a0 fs/overlayfs/dir.c:626 lookup_open fs/namei.c:3496 [inline] open_last_lookups fs/namei.c:3564 [inline] path_openat+0x1277/0x3190 fs/namei.c:3794 do_filp_open+0x1c5/0x3d0 fs/namei.c:3824 do_sys_openat2+0x12c/0x1c0 fs/open.c:1421 do_sys_open fs/open.c:1436 [inline] __do_sys_openat fs/open.c:1452 [inline] __se_sys_openat fs/open.c:1447 [inline] __x64_sys_openat+0x139/0x160 fs/open.c:1447 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 -> #2 (&ovl_i_mutex_dir_key[depth]){++++}-{3:3}: down_read+0x46/0x2e0 kernel/locking/rwsem.c:1520 inode_lock_shared include/linux/fs.h:814 [inline] lookup_slow+0x46/0x70 fs/namei.c:1718 walk_component+0x2be/0x3f0 fs/namei.c:2010 lookup_last fs/namei.c:2467 [inline] path_lookupat+0x169/0x440 fs/namei.c:2491 filename_lookup+0x1f4/0x510 fs/namei.c:2520 kern_path+0x35/0x50 fs/namei.c:2618 lookup_bdev+0xc1/0x280 block/bdev.c:993 resume_store+0x16a/0x450 kernel/power/hibernate.c:1187 kernfs_fop_write_iter+0x3b6/0x520 fs/kernfs/file.c:352 call_write_iter include/linux/fs.h:2018 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x43b/0x940 fs/read_write.c:584 ksys_write+0x147/0x250 fs/read_write.c:637 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 -> #1 (&of->mutex){+.+.}-{3:3}: __mutex_lock_common kernel/locking/mutex.c:603 [inline] __mutex_lock+0x129/0xcc0 kernel/locking/mutex.c:747 kernfs_seq_start+0x5c/0x410 fs/kernfs/file.c:172 seq_read_iter+0x3c8/0xd50 fs/seq_file.c:225 call_read_iter include/linux/fs.h:2012 [inline] new_sync_read fs/read_write.c:389 [inline] vfs_read+0x431/0x920 fs/read_write.c:470 ksys_read+0x147/0x250 fs/read_write.c:613 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 -> #0 (&p->lock){+.+.}-{3:3}: check_prev_add kernel/locking/lockdep.c:3134 [inline] check_prevs_add kernel/locking/lockdep.c:3253 [inline] validate_chain kernel/locking/lockdep.c:3869 [inline] __lock_acquire+0x2ddb/0x7c80 kernel/locking/lockdep.c:5137 lock_acquire+0x197/0x410 kernel/locking/lockdep.c:5754 __mutex_lock_common kernel/locking/mutex.c:603 [inline] __mutex_lock+0x129/0xcc0 kernel/locking/mutex.c:747 seq_read_iter+0xb1/0xd50 fs/seq_file.c:182 call_read_iter include/linux/fs.h:2012 [inline] copy_splice_read+0x3c8/0x860 fs/splice.c:364 splice_direct_to_actor+0x25c/0x870 fs/splice.c:1069 do_splice_direct+0x1b7/0x2c0 fs/splice.c:1194 do_sendfile+0x5dc/0xf70 fs/read_write.c:1254 __do_sys_sendfile64 fs/read_write.c:1322 [inline] __se_sys_sendfile64+0x13f/0x190 fs/read_write.c:1308 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 other info that might help us debug this: Chain exists of: &p->lock --> &ovl_i_mutex_dir_key[depth] --> sb_writers#4 Possible unsafe locking scenario: CPU0 CPU1 ---- ---- rlock(sb_writers#4); lock(&ovl_i_mutex_dir_key[depth]); lock(sb_writers#4); lock(&p->lock); *** DEADLOCK *** 1 lock held by syz.8.3592/21066: #0: ffff88807778c418 (sb_writers#4){.+.+}-{0:0}, at: do_sendfile+0x5b9/0xf70 fs/read_write.c:1253 stack backtrace: CPU: 0 PID: 21066 Comm: syz.8.3592 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/25/2025 Call Trace: dump_stack_lvl+0x16c/0x230 lib/dump_stack.c:106 check_noncircular+0x2bd/0x3c0 kernel/locking/lockdep.c:2187 check_prev_add kernel/locking/lockdep.c:3134 [inline] check_prevs_add kernel/locking/lockdep.c:3253 [inline] validate_chain kernel/locking/lockdep.c:3869 [inline] __lock_acquire+0x2ddb/0x7c80 kernel/locking/lockdep.c:5137 lock_acquire+0x197/0x410 kernel/locking/lockdep.c:5754 __mutex_lock_common kernel/locking/mutex.c:603 [inline] __mutex_lock+0x129/0xcc0 kernel/locking/mutex.c:747 seq_read_iter+0xb1/0xd50 fs/seq_file.c:182 call_read_iter include/linux/fs.h:2012 [inline] copy_splice_read+0x3c8/0x860 fs/splice.c:364 splice_direct_to_actor+0x25c/0x870 fs/splice.c:1069 do_splice_direct+0x1b7/0x2c0 fs/splice.c:1194 do_sendfile+0x5dc/0xf70 fs/read_write.c:1254 __do_sys_sendfile64 fs/read_write.c:1322 [inline] __se_sys_sendfile64+0x13f/0x190 fs/read_write.c:1308 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7f0e95f8f749 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:00007f0e96e3a038 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 00007f0e961e6180 RCX: 00007f0e95f8f749 RDX: 0000000000000000 RSI: 000000000000000a RDI: 000000000000000b RBP: 00007f0e96013f91 R08: 0000000000000000 R09: 0000000000000000 R10: 00000000ffffffff R11: 0000000000000246 R12: 0000000000000000 R13: 00007f0e961e6218 R14: 00007f0e961e6180 R15: 00007fff4c8bd3b8