================================================================== BUG: KASAN: use-after-free in crc_itu_t+0x21c/0x2a0 lib/crc-itu-t.c:60 Read of size 1 at addr ffff8880824d6000 by task syz-executor.1/5088 CPU: 0 PID: 5088 Comm: syz-executor.1 Not tainted 6.7.0-rc2-syzkaller-00242-g090472ed9c92 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/10/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 crc_itu_t+0x21c/0x2a0 lib/crc-itu-t.c:60 udf_finalize_lvid fs/udf/super.c:1984 [inline] udf_sync_fs+0x1d2/0x380 fs/udf/super.c:2340 sync_filesystem+0xec/0x220 fs/sync.c:56 generic_shutdown_super+0x72/0x2c0 fs/super.c:669 kill_block_super+0x44/0x90 fs/super.c:1667 deactivate_locked_super+0xc1/0x130 fs/super.c:484 cleanup_mnt+0x426/0x4c0 fs/namespace.c:1256 task_work_run+0x24a/0x300 kernel/task_work.c:180 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] exit_to_user_mode_loop+0xde/0x100 kernel/entry/common.c:171 exit_to_user_mode_prepare+0xb1/0x150 kernel/entry/common.c:204 __syscall_exit_to_user_mode_work kernel/entry/common.c:285 [inline] syscall_exit_to_user_mode+0x69/0x2a0 kernel/entry/common.c:296 do_syscall_64+0x52/0x110 arch/x86/entry/common.c:88 entry_SYSCALL_64_after_hwframe+0x63/0x6b RIP: 0033:0x7f249047de17 Code: b0 ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 0f 1f 44 00 00 31 f6 e9 09 00 00 00 66 0f 1f 84 00 00 00 00 00 b8 a6 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 01 c3 48 c7 c2 b0 ff ff ff f7 d8 64 89 02 b8 RSP: 002b:00007ffcc48117c8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00007f249047de17 RDX: 0000000000000000 RSI: 000000000000000a RDI: 00007ffcc4811880 RBP: 00007ffcc4811880 R08: 0000000000000000 R09: 0000000000000000 R10: 00000000ffffffff R11: 0000000000000246 R12: 00007ffcc4812940 R13: 00007f24904c73b9 R14: 00000000000a8356 R15: 000000000000000a The buggy address belongs to the physical page: page:ffffea0002093580 refcount:0 mapcount:0 mapping:0000000000000000 index:0x1 pfn:0x824d6 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) page_type: 0xffffffff() raw: 00fff00000000000 ffffea00020d6048 ffffea0002033c48 0000000000000000 raw: 0000000000000001 0000000000000000 00000000ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as freed page last allocated via order 0, migratetype Movable, gfp_mask 0x148c48(GFP_NOFS|__GFP_NOFAIL|__GFP_COMP|__GFP_HARDWALL|__GFP_MOVABLE), pid 18585, tgid 18583 (syz-executor.3), ts 689316474786, free_ts 689577524121 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x1e6/0x210 mm/page_alloc.c:1537 prep_new_page mm/page_alloc.c:1544 [inline] get_page_from_freelist+0x33ea/0x3570 mm/page_alloc.c:3312 __alloc_pages+0x255/0x680 mm/page_alloc.c:4568 alloc_pages_mpol+0x3de/0x640 mm/mempolicy.c:2133 alloc_pages mm/mempolicy.c:2204 [inline] folio_alloc+0x12a/0x330 mm/mempolicy.c:2211 filemap_alloc_folio+0xde/0x500 mm/filemap.c:974 __filemap_get_folio+0x431/0xbb0 mm/filemap.c:1918 grow_dev_page fs/buffer.c:1041 [inline] grow_buffers fs/buffer.c:1106 [inline] __getblk_slow fs/buffer.c:1133 [inline] bdev_getblk+0x246/0x6d0 fs/buffer.c:1429 __bread_gfp+0xaf/0x430 fs/buffer.c:1474 sb_bread include/linux/buffer_head.h:324 [inline] ntfs_bread fs/ntfs3/ntfs_fs.h:1031 [inline] ntfs_read_run_nb+0x520/0xe60 fs/ntfs3/fsntfs.c:1220 ntfs_read_bh+0x40/0x770 fs/ntfs3/fsntfs.c:1288 mi_read+0x1ed/0x5a0 fs/ntfs3/record.c:133 ntfs_read_mft fs/ntfs3/inode.c:70 [inline] ntfs_iget5+0x4d1/0x3b70 fs/ntfs3/inode.c:534 dir_search_u+0x2fa/0x3a0 fs/ntfs3/dir.c:264 ntfs_extend_init+0x27a/0x530 fs/ntfs3/fsntfs.c:250 ntfs_fill_super+0x4579/0x4c60 fs/ntfs3/super.c:1521 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1137 [inline] free_unref_page_prepare+0x931/0xa60 mm/page_alloc.c:2347 free_unref_page_list+0x5a0/0x840 mm/page_alloc.c:2533 release_pages+0x2117/0x2400 mm/swap.c:1042 __folio_batch_release+0x84/0x100 mm/swap.c:1062 folio_batch_release include/linux/pagevec.h:83 [inline] truncate_inode_pages_range+0x457/0xf70 mm/truncate.c:371 kill_bdev block/bdev.c:76 [inline] blkdev_flush_mapping+0x15c/0x2b0 block/bdev.c:632 blkdev_put_whole block/bdev.c:663 [inline] blkdev_put+0x4a9/0x770 block/bdev.c:944 bdev_release+0x57/0x70 block/bdev.c:954 blkdev_release+0x3b/0x40 block/fops.c:616 __fput+0x3cc/0xa10 fs/file_table.c:394 __do_sys_close fs/open.c:1590 [inline] __se_sys_close fs/open.c:1575 [inline] __x64_sys_close+0x7e/0x100 fs/open.c:1575 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x45/0x110 arch/x86/entry/common.c:82 entry_SYSCALL_64_after_hwframe+0x63/0x6b Memory state around the buggy address: ffff8880824d5f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8880824d5f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff8880824d6000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff8880824d6080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff8880824d6100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ==================================================================