UDF-fs: error (device loop0): udf_read_tagged: tag version 0x0000 != 0x0002 || 0x0003, block 0 UDF-fs: warning (device loop0): udf_load_vrs: No anchor found UDF-fs: Scanning with blocksize 512 failed UDF-fs: INFO Mounting volume 'LinuxUDF', timestamp 2022/11/22 14:59 (1000) ================================================================== BUG: KASAN: use-after-free in crc_itu_t+0xd7/0xe0 lib/crc-itu-t.c:60 Read of size 1 at addr ffff88805d9fe000 by task syz-executor115/5057 CPU: 0 PID: 5057 Comm: syz-executor115 Not tainted 6.7.0-rc6-syzkaller #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+0xd9/0x1b0 lib/dump_stack.c:106 print_address_description mm/kasan/report.c:364 [inline] print_report+0xc4/0x620 mm/kasan/report.c:475 kasan_report+0xda/0x110 mm/kasan/report.c:588 crc_itu_t+0xd7/0xe0 lib/crc-itu-t.c:60 udf_finalize_lvid+0xf2/0x1f0 fs/udf/super.c:1984 udf_sync_fs+0xea/0x150 fs/udf/super.c:2340 sync_filesystem+0x109/0x280 fs/sync.c:56 generic_shutdown_super+0x7e/0x3d0 fs/super.c:669 kill_block_super+0x3b/0x90 fs/super.c:1667 deactivate_locked_super+0xbc/0x1a0 fs/super.c:484 deactivate_super+0xde/0x100 fs/super.c:517 cleanup_mnt+0x222/0x450 fs/namespace.c:1256 task_work_run+0x14d/0x240 kernel/task_work.c:180 exit_task_work include/linux/task_work.h:38 [inline] do_exit+0xa8a/0x2ad0 kernel/exit.c:869 do_group_exit+0xd4/0x2a0 kernel/exit.c:1018 __do_sys_exit_group kernel/exit.c:1029 [inline] __se_sys_exit_group kernel/exit.c:1027 [inline] __x64_sys_exit_group+0x3e/0x50 kernel/exit.c:1027 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0x40/0x110 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x63/0x6b RIP: 0033:0x7f957f2ee469 Code: Unable to access opcode bytes at 0x7f957f2ee43f. RSP: 002b:00007ffe678d8618 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 RAX: ffffffffffffffda RBX: 0000000000000001 RCX: 00007f957f2ee469 RDX: 000000000000003c RSI: 00000000000000e7 RDI: 0000000000000001 RBP: 00007f957f38e390 R08: ffffffffffffffb8 R09: 0000000000000001 R10: 0000000000000001 R11: 0000000000000246 R12: 00007f957f38e390 R13: 0000000000000000 R14: 00007f957f3911c0 R15: 00007f957f2bb5d0 The buggy address belongs to the physical page: page:ffffea0001767f80 refcount:1 mapcount:1 mapping:0000000000000000 index:0x7fffffff5 pfn:0x5d9fe memcg:ffff888018254000 anon flags: 0xfff800000a0028(uptodate|lru|mappedtodisk|swapbacked|node=0|zone=1|lastcpupid=0x7ff) page_type: 0x0() raw: 00fff800000a0028 ffffea0001bea0c8 ffffea0001767fc8 ffff888020570661 raw: 00000007fffffff5 0000000000000000 0000000100000000 ffff888018254000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Movable, gfp_mask 0x140dca(GFP_HIGHUSER_MOVABLE|__GFP_COMP|__GFP_ZERO), pid 5068, tgid 5068 (udevd), ts 81549929515, free_ts 78458542942 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x2d0/0x350 mm/page_alloc.c:1537 prep_new_page mm/page_alloc.c:1544 [inline] get_page_from_freelist+0xa25/0x36d0 mm/page_alloc.c:3312 __alloc_pages+0x22e/0x2420 mm/page_alloc.c:4568 alloc_pages_mpol+0x258/0x5f0 mm/mempolicy.c:2133 vma_alloc_folio+0xad/0x220 mm/mempolicy.c:2172 do_anonymous_page mm/memory.c:4172 [inline] do_pte_missing mm/memory.c:3729 [inline] handle_pte_fault mm/memory.c:5039 [inline] __handle_mm_fault+0xe07/0x3d70 mm/memory.c:5180 handle_mm_fault+0x47a/0xa10 mm/memory.c:5345 do_user_addr_fault+0x30b/0x1000 arch/x86/mm/fault.c:1364 handle_page_fault arch/x86/mm/fault.c:1505 [inline] exc_page_fault+0x5d/0xc0 arch/x86/mm/fault.c:1561 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:1137 [inline] free_unref_page_prepare+0x4fa/0xaa0 mm/page_alloc.c:2347 free_unref_page_list+0xe6/0xb40 mm/page_alloc.c:2533 release_pages+0x32a/0x14f0 mm/swap.c:1042 tlb_batch_pages_flush+0x9a/0x190 mm/mmu_gather.c:98 tlb_flush_mmu_free mm/mmu_gather.c:293 [inline] tlb_flush_mmu mm/mmu_gather.c:300 [inline] tlb_finish_mmu+0x14b/0x6f0 mm/mmu_gather.c:392 exit_mmap+0x38b/0xa70 mm/mmap.c:3321 __mmput+0x12a/0x4d0 kernel/fork.c:1349 mmput+0x62/0x70 kernel/fork.c:1371 exit_mm kernel/exit.c:567 [inline] do_exit+0x9a5/0x2ad0 kernel/exit.c:856 do_group_exit+0xd4/0x2a0 kernel/exit.c:1018 __do_sys_exit_group kernel/exit.c:1029 [inline] __se_sys_exit_group kernel/exit.c:1027 [inline] __x64_sys_exit_group+0x3e/0x50 kernel/exit.c:1027 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0x40/0x110 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x63/0x6b Memory state around the buggy address: ffff88805d9fdf00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88805d9fdf80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88805d9fe000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^ ffff88805d9fe080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88805d9fe100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================