ntfs: volume version 3.1. ================================================================== BUG: KASAN: use-after-free in ntfs_read_folio+0x9be/0x23e0 fs/ntfs/aops.c:483 Read of size 10 at addr ffff88808768b170 by task syz-executor.2/5760 CPU: 1 PID: 5760 Comm: syz-executor.2 Not tainted 6.7.0-rc7-syzkaller-00027-g505e701c0b2c #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e7/0x2d0 lib/dump_stack.c:106 print_address_description mm/kasan/report.c:364 [inline] print_report+0x163/0x540 mm/kasan/report.c:475 kasan_report+0x142/0x170 mm/kasan/report.c:588 kasan_check_range+0x27e/0x290 mm/kasan/generic.c:187 __asan_memcpy+0x29/0x70 mm/kasan/shadow.c:105 ntfs_read_folio+0x9be/0x23e0 fs/ntfs/aops.c:483 read_pages+0x5f0/0x830 mm/readahead.c:180 page_cache_ra_unbounded+0x68e/0x7c0 mm/readahead.c:269 page_cache_sync_readahead include/linux/pagemap.h:1283 [inline] filemap_get_pages+0x49c/0x2080 mm/filemap.c:2497 filemap_read+0x41b/0xec0 mm/filemap.c:2593 __kernel_read+0x425/0x8b0 fs/read_write.c:428 integrity_kernel_read+0xb0/0xf0 security/integrity/iint.c:221 ima_calc_file_hash_tfm security/integrity/ima/ima_crypto.c:485 [inline] ima_calc_file_shash security/integrity/ima/ima_crypto.c:516 [inline] ima_calc_file_hash+0xad1/0x1b30 security/integrity/ima/ima_crypto.c:573 ima_collect_measurement+0x554/0xb30 security/integrity/ima/ima_api.c:290 process_measurement+0x1373/0x21c0 security/integrity/ima/ima_main.c:359 ima_file_check+0xf1/0x170 security/integrity/ima/ima_main.c:557 do_open fs/namei.c:3624 [inline] path_openat+0x2897/0x3290 fs/namei.c:3779 do_filp_open+0x234/0x490 fs/namei.c:3809 do_sys_openat2+0x13e/0x1d0 fs/open.c:1437 do_sys_open fs/open.c:1452 [inline] __do_sys_openat fs/open.c:1468 [inline] __se_sys_openat fs/open.c:1463 [inline] __x64_sys_openat+0x247/0x290 fs/open.c:1463 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0x45/0x110 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x63/0x6b RIP: 0033:0x7f858e47cce9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 00 00 90 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 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f858f1090c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007f858e59bf80 RCX: 00007f858e47cce9 RDX: 0000000000141842 RSI: 0000000020000100 RDI: ffffffffffffff9c RBP: 00007f858e4c947a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f858e59bf80 R15: 00007ffe923a1be8 The buggy address belongs to the physical page: page:ffffea00021da2c0 refcount:0 mapcount:0 mapping:0000000000000000 index:0x1 pfn:0x8768b flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) page_type: 0xffffffff() raw: 00fff00000000000 ffffea00021da308 ffffea00021da288 0000000000000000 raw: 0000000000000001 0000000000000000 00000000ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner info is not present (never set?) Memory state around the buggy address: ffff88808768b000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff88808768b080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff >ffff88808768b100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff88808768b180: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff88808768b200: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ==================================================================