================================================================== BUG: KASAN: use-after-free in crc_itu_t+0x218/0x2a0 lib/crc-itu-t.c:60 Read of size 1 at addr ffff88806c8e2000 by task syz-executor307/3563 CPU: 0 PID: 3563 Comm: syz-executor307 Not tainted 5.15.165-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e3/0x2d0 lib/dump_stack.c:106 print_address_description+0x63/0x3b0 mm/kasan/report.c:248 __kasan_report mm/kasan/report.c:434 [inline] kasan_report+0x16b/0x1c0 mm/kasan/report.c:451 crc_itu_t+0x218/0x2a0 lib/crc-itu-t.c:60 udf_finalize_lvid fs/udf/super.c:2026 [inline] udf_sync_fs+0x1ce/0x380 fs/udf/super.c:2382 sync_filesystem+0xe8/0x220 fs/sync.c:56 generic_shutdown_super+0x6e/0x2c0 fs/super.c:448 kill_block_super+0x7a/0xe0 fs/super.c:1425 deactivate_locked_super+0xa0/0x110 fs/super.c:335 cleanup_mnt+0x44e/0x500 fs/namespace.c:1143 task_work_run+0x129/0x1a0 kernel/task_work.c:188 exit_task_work include/linux/task_work.h:33 [inline] do_exit+0x6a3/0x2480 kernel/exit.c:874 do_group_exit+0x144/0x310 kernel/exit.c:996 __do_sys_exit_group kernel/exit.c:1007 [inline] __se_sys_exit_group kernel/exit.c:1005 [inline] __x64_sys_exit_group+0x3b/0x40 kernel/exit.c:1005 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7f7eee2a8609 Code: Unable to access opcode bytes at RIP 0x7f7eee2a85df. RSP: 002b:00007ffc1a7075d8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 RAX: ffffffffffffffda RBX: 0000000000000001 RCX: 00007f7eee2a8609 RDX: 000000000000003c RSI: 00000000000000e7 RDI: 0000000000000001 RBP: 00007f7eee33d390 R08: ffffffffffffffb0 R09: 0000000000000010 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f7eee33d390 R13: 0000000000000000 R14: 00007f7eee33e200 R15: 00007f7eee273730 The buggy address belongs to the page: page:ffffea0001b23880 refcount:0 mapcount:0 mapping:0000000000000000 index:0x1 pfn:0x6c8e2 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 ffffea0001b23908 ffffea0001b233c8 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 0x108c48(GFP_NOFS|__GFP_NOFAIL|__GFP_HARDWALL|__GFP_MOVABLE), pid 3564, ts 47195348145, free_ts 47210921294 prep_new_page mm/page_alloc.c:2426 [inline] get_page_from_freelist+0x322a/0x33c0 mm/page_alloc.c:4159 __alloc_pages+0x272/0x700 mm/page_alloc.c:5423 __page_cache_alloc+0xd4/0x4a0 mm/filemap.c:1022 pagecache_get_page+0xa91/0x1010 mm/filemap.c:1940 find_or_create_page include/linux/pagemap.h:420 [inline] grow_dev_page fs/buffer.c:949 [inline] grow_buffers fs/buffer.c:1014 [inline] __getblk_slow fs/buffer.c:1041 [inline] __getblk_gfp+0x22a/0xaf0 fs/buffer.c:1336 __bread_gfp+0x2a/0x390 fs/buffer.c:1381 udf_read_tagged+0x126/0xe70 fs/udf/misc.c:219 udf_check_anchor_block+0x20c/0x700 fs/udf/super.c:1849 udf_scan_anchors+0x586/0x680 fs/udf/super.c:1928 udf_find_anchor fs/udf/super.c:1954 [inline] udf_load_vrs+0x2f6/0xc40 fs/udf/super.c:2011 udf_fill_super+0x99d/0x23a0 fs/udf/super.c:2189 mount_bdev+0x2c9/0x3f0 fs/super.c:1398 legacy_get_tree+0xeb/0x180 fs/fs_context.c:611 vfs_get_tree+0x88/0x270 fs/super.c:1528 do_new_mount+0x2ba/0xb40 fs/namespace.c:3005 do_mount fs/namespace.c:3348 [inline] __do_sys_mount fs/namespace.c:3556 [inline] __se_sys_mount+0x2d5/0x3c0 fs/namespace.c:3533 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1340 [inline] free_pcp_prepare mm/page_alloc.c:1391 [inline] free_unref_page_prepare+0xc34/0xcf0 mm/page_alloc.c:3317 free_unref_page_list+0x1f7/0x8e0 mm/page_alloc.c:3433 release_pages+0x1bb9/0x1f40 mm/swap.c:963 __pagevec_release+0x80/0xf0 mm/swap.c:983 pagevec_release include/linux/pagevec.h:81 [inline] truncate_inode_pages_range+0x48b/0x1290 mm/truncate.c:329 kill_bdev block/bdev.c:77 [inline] set_blocksize+0x2ff/0x370 block/bdev.c:157 sb_set_blocksize+0x45/0xe0 block/bdev.c:166 udf_load_vrs+0xdd/0xc40 fs/udf/super.c:1985 udf_fill_super+0x99d/0x23a0 fs/udf/super.c:2189 mount_bdev+0x2c9/0x3f0 fs/super.c:1398 legacy_get_tree+0xeb/0x180 fs/fs_context.c:611 vfs_get_tree+0x88/0x270 fs/super.c:1528 do_new_mount+0x2ba/0xb40 fs/namespace.c:3005 do_mount fs/namespace.c:3348 [inline] __do_sys_mount fs/namespace.c:3556 [inline] __se_sys_mount+0x2d5/0x3c0 fs/namespace.c:3533 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 Memory state around the buggy address: ffff88806c8e1f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88806c8e1f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88806c8e2000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff88806c8e2080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff88806c8e2100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ==================================================================