================================================================== BUG: KASAN: use-after-free in crc_itu_t+0x1d5/0x2a0 lib/crc-itu-t.c:60 Read of size 1 at addr ffff888046120000 by task syz-executor.1/31245 CPU: 1 PID: 31245 Comm: syz-executor.1 Not tainted 6.3.0-rc7-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/30/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:319 [inline] print_report+0x163/0x540 mm/kasan/report.c:430 kasan_report+0x176/0x1b0 mm/kasan/report.c:536 crc_itu_t+0x1d5/0x2a0 lib/crc-itu-t.c:60 udf_finalize_lvid fs/udf/super.c:1988 [inline] udf_sync_fs+0x1d2/0x380 fs/udf/super.c:2344 sync_filesystem+0xec/0x220 fs/sync.c:56 udf_remount_fs+0x165/0x9e0 fs/udf/super.c:622 reconfigure_super+0x3c9/0x7c0 fs/super.c:956 do_remount fs/namespace.c:2704 [inline] path_mount+0xc19/0xf80 fs/namespace.c:3364 do_mount fs/namespace.c:3385 [inline] __do_sys_mount fs/namespace.c:3594 [inline] __se_sys_mount+0x2d9/0x3c0 fs/namespace.c:3571 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f368188d69a Code: 48 c7 c2 b8 ff ff ff f7 d8 64 89 02 b8 ff ff ff ff eb d2 e8 b8 04 00 00 0f 1f 84 00 00 00 00 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f36825e4f88 EFLAGS: 00000206 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f368188d69a RDX: 0000000020000180 RSI: 0000000020000100 RDI: 0000000000000000 RBP: 00007f36825e5020 R08: 00007f36825e5020 R09: 0000000001a404ac R10: 0000000001a404ac R11: 0000000000000206 R12: 0000000020000180 R13: 0000000020000100 R14: 00007f36825e4fe0 R15: 0000000020001540 The buggy address belongs to the physical page: page:ffffea0001184800 refcount:0 mapcount:-128 mapping:0000000000000000 index:0x1 pfn:0x46120 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 ffffea0000ef0808 ffffea00020d9008 0000000000000000 raw: 0000000000000001 0000000000000005 00000000ffffff7f 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 0x140dca(GFP_HIGHUSER_MOVABLE|__GFP_COMP|__GFP_ZERO), pid 24587, tgid 5054 (syz-fuzzer), ts 837154379485, free_ts 926866732291 prep_new_page mm/page_alloc.c:2553 [inline] get_page_from_freelist+0x3246/0x33c0 mm/page_alloc.c:4326 __alloc_pages+0x255/0x670 mm/page_alloc.c:5592 __folio_alloc+0x13/0x30 mm/page_alloc.c:5624 vma_alloc_folio+0x48a/0x9a0 mm/mempolicy.c:2244 do_anonymous_page mm/memory.c:4066 [inline] handle_pte_fault mm/memory.c:4921 [inline] __handle_mm_fault mm/memory.c:5065 [inline] handle_mm_fault+0x2984/0x51c0 mm/memory.c:5211 do_user_addr_fault arch/x86/mm/fault.c:1407 [inline] handle_page_fault arch/x86/mm/fault.c:1498 [inline] exc_page_fault+0x5b1/0x7c0 arch/x86/mm/fault.c:1554 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:570 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1454 [inline] free_pcp_prepare mm/page_alloc.c:1504 [inline] free_unref_page_prepare+0xe2f/0xe70 mm/page_alloc.c:3388 free_unref_page_list+0x596/0x830 mm/page_alloc.c:3529 release_pages+0x219e/0x2470 mm/swap.c:1042 tlb_batch_pages_flush mm/mmu_gather.c:97 [inline] tlb_flush_mmu_free mm/mmu_gather.c:292 [inline] tlb_flush_mmu+0x100/0x210 mm/mmu_gather.c:299 tlb_finish_mmu+0xd4/0x1f0 mm/mmu_gather.c:391 zap_page_range_single+0x453/0x510 mm/memory.c:1729 madvise_dontneed_single_vma mm/madvise.c:803 [inline] madvise_dontneed_free mm/madvise.c:896 [inline] madvise_vma_behavior mm/madvise.c:1035 [inline] madvise_walk_vmas mm/madvise.c:1260 [inline] do_madvise+0x23ff/0x4680 mm/madvise.c:1439 __do_sys_madvise mm/madvise.c:1452 [inline] __se_sys_madvise mm/madvise.c:1450 [inline] __x64_sys_madvise+0xa5/0xb0 mm/madvise.c:1450 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd Memory state around the buggy address: ffff88804611ff00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88804611ff80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff888046120000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff888046120080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff888046120100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ==================================================================