================================================================== BUG: KASAN: use-after-free in ext4_read_inline_data+0x1fb/0x2e0 fs/ext4/inline.c:209 Read of size 68 at addr ffff8881346b5d05 by task syz-executor/484 CPU: 1 UID: 0 PID: 484 Comm: syz-executor Not tainted 6.13.0-rc5-syzkaller-00161-g63676eefb7a0 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x184/0x200 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:378 [inline] print_report+0x163/0x550 mm/kasan/report.c:489 kasan_report+0x15f/0x190 mm/kasan/report.c:602 kasan_check_range+0x238/0x2b0 mm/kasan/generic.c:189 __asan_memcpy+0x2d/0x70 mm/kasan/shadow.c:105 ext4_read_inline_data+0x1fb/0x2e0 fs/ext4/inline.c:209 ext4_read_inline_dir+0x2a2/0xb30 fs/ext4/inline.c:1485 ext4_readdir+0x471/0x3a40 fs/ext4/dir.c:159 iterate_dir+0x1e9/0x5b0 fs/readdir.c:108 __do_sys_getdents64 fs/readdir.c:403 [inline] __se_sys_getdents64+0x1ce/0x490 fs/readdir.c:389 __x64_sys_getdents64+0x7b/0x90 fs/readdir.c:389 x64_sys_call+0x2d4e/0x2df0 arch/x86/include/generated/asm/syscalls_64.h:218 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0x50/0x110 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x76/0x7e RIP: 0033:0x7f7560fb8693 Code: c1 66 0f 1f 44 00 00 48 83 c4 08 48 89 ef 5b 5d e9 82 3e f8 ff 66 90 b8 ff ff ff 7f 48 39 c2 48 0f 47 d0 b8 d9 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 05 c3 0f 1f 40 00 48 c7 c2 a8 ff ff ff f7 d8 RSP: 002b:00007fff5e7daa78 EFLAGS: 00000293 ORIG_RAX: 00000000000000d9 RAX: ffffffffffffffda RBX: 0000555571d1b520 RCX: 00007f7560fb8693 RDX: 0000000000008000 RSI: 0000555571d1b520 RDI: 0000000000000006 RBP: 0000555571d1b4f4 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000001000 R11: 0000000000000293 R12: ffffffffffffffa8 R13: 0000000000000016 R14: 0000555571d1b4f0 R15: 0000000000000001 The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1346b5 flags: 0x4000000000000000(zone=1) raw: 4000000000000000 ffffea0004d1ad88 ffffea0004d1ad08 0000000000000000 raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner info is not present (never set?) Memory state around the buggy address: ffff8881346b5c00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff8881346b5c80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff >ffff8881346b5d00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff8881346b5d80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff8881346b5e00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ================================================================== EXT4-fs error (device loop0): ext4_read_inline_dir:1566: inode #12: block 5: comm syz-executor: path /0/file0/file0: bad entry in directory: rec_len % 4 != 0 - offset=24, inode=1633771873, rec_len=24929, size=148 fake=0 EXT4-fs error (device loop0): ext4_read_inline_dir:1566: inode #12: block 5: comm syz-executor: path /0/file0/file0: bad entry in directory: rec_len % 4 != 0 - offset=24, inode=1633771873, rec_len=24929, size=148 fake=0 EXT4-fs error (device loop0): empty_inline_dir:1850: inode #12: block 5: comm syz-executor: bad entry in directory: rec_len % 4 != 0 - offset=4, inode=1633771873, rec_len=24929, size=60 fake=0 EXT4-fs warning (device loop0): empty_inline_dir:1857: bad inline directory (dir #12) - inode 1633771873, rec_len 24929, name_len 97inline size 60 EXT4-fs error (device loop0): ext4_read_inline_dir:1566: inode #12: block 5: comm syz-executor: path /0/file0/file0: bad entry in directory: rec_len % 4 != 0 - offset=24, inode=1633771873, rec_len=24929, size=148 fake=0 EXT4-fs error (device loop0): ext4_read_inline_dir:1566: inode #12: block 5: comm syz-executor: path /0/file0/file0: bad entry in directory: rec_len % 4 != 0 - offset=24, inode=1633771873, rec_len=24929, size=148 fake=0 EXT4-fs error (device loop0): empty_inline_dir:1850: inode #12: block 5: comm syz-executor: bad entry in directory: rec_len % 4 != 0 - offset=4, inode=1633771873, rec_len=24929, size=60 fake=0 EXT4-fs warning (device loop0): empty_inline_dir:1857: bad inline directory (dir #12) - inode 1633771873, rec_len 24929, name_len 97inline size 60 EXT4-fs error (device loop0): ext4_read_inline_dir:1566: inode #12: block 5: comm syz-executor: path /0/file0/file0: bad entry in directory: rec_len % 4 != 0 - offset=24, inode=1633771873, rec_len=24929, size=148 fake=0 EXT4-fs error (device loop0): ext4_read_inline_dir:1566: inode #12: block 5: comm syz-executor: path /0/file0/file0: bad entry in directory: rec_len % 4 != 0 - offset=24, inode=1633771873, rec_len=24929, size=148 fake=0 EXT4-fs error (device loop0): empty_inline_dir:1850: inode #12: block 5: comm syz-executor: bad entry in directory: rec_len % 4 != 0 - offset=4, inode=1633771873, rec_len=24929, size=60 fake=0 EXT4-fs warning (device loop0): empty_inline_dir:1857: bad inline directory (dir #12) - inode 1633771873, rec_len 24929, name_len 97inline size 60 EXT4-fs warning (device loop0): empty_inline_dir:1857: bad inline directory (dir #12) - inode 1633771873, rec_len 24929, name_len 97inline size 60 EXT4-fs warning (device loop0): empty_inline_dir:1857: bad inline directory (dir #12) - inode 1633771873, rec_len 24929, name_len 97inline size 60 EXT4-fs warning (device loop0): empty_inline_dir:1857: bad inline directory (dir #12) - inode 1633771873, rec_len 24929, name_len 97inline size 60 EXT4-fs warning (device loop0): empty_inline_dir:1857: bad inline directory (dir #12) - inode 1633771873, rec_len 24929, name_len 97inline size 60 EXT4-fs warning (device loop0): empty_inline_dir:1857: bad inline directory (dir #12) - inode 1633771873, rec_len 24929, name_len 97inline size 60 EXT4-fs warning (device loop0): empty_inline_dir:1857: bad inline directory (dir #12) - inode 1633771873, rec_len 24929, name_len 97inline size 60 EXT4-fs warning (device loop0): empty_inline_dir:1857: bad inline directory (dir #12) - inode 1633771873, rec_len 24929, name_len 97inline size 60 EXT4-fs (loop0): unmounting filesystem 00000000-0000-0000-0000-000000000000.