UDF-fs: error (device loop0): udf_read_inode: (ino 98) failed !bh UDF-fs: error (device loop0): udf_read_inode: (ino 98) failed !bh ================================================================== BUG: KASAN: use-after-free in crc_itu_t+0x1d5/0x2b0 lib/crc-itu-t.c:60 Read of size 1 at addr ffff8880775aa000 by task syz-executor.0/5376 CPU: 0 PID: 5376 Comm: syz-executor.0 Not tainted 6.9.0-rc7-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:114 print_address_description mm/kasan/report.c:377 [inline] print_report+0x169/0x550 mm/kasan/report.c:488 kasan_report+0x143/0x180 mm/kasan/report.c:601 crc_itu_t+0x1d5/0x2b0 lib/crc-itu-t.c:60 udf_finalize_lvid fs/udf/super.c:2023 [inline] udf_sync_fs+0x1d2/0x380 fs/udf/super.c:2368 sync_filesystem+0xed/0x230 fs/sync.c:56 generic_shutdown_super+0x72/0x2d0 fs/super.c:620 kill_block_super+0x44/0x90 fs/super.c:1675 deactivate_locked_super+0xc4/0x120 fs/super.c:472 cleanup_mnt+0x426/0x4c0 fs/namespace.c:1267 task_work_run+0x24f/0x310 kernel/task_work.c:180 exit_task_work include/linux/task_work.h:38 [inline] do_exit+0xa1b/0x27d0 kernel/exit.c:878 do_group_exit+0x207/0x2c0 kernel/exit.c:1027 __do_sys_exit_group kernel/exit.c:1038 [inline] __se_sys_exit_group kernel/exit.c:1036 [inline] __x64_sys_exit_group+0x3f/0x40 kernel/exit.c:1036 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0x88/0x170 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x76/0x7e RIP: 0033:0x7f8a5327dd69 Code: Unable to access opcode bytes at 0x7f8a5327dd3f. RSP: 002b:00007ffeb68f0768 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 RAX: ffffffffffffffda RBX: 00007f8a532c935b RCX: 00007f8a5327dd69 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000005 R08: 00007ffeb68ee507 R09: 00007ffeb68f1a20 R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffeb68f1a20 R13: 00007f8a532c9336 R14: 0000000000014a6a R15: 0000000000000006 The buggy address belongs to the physical page: page: refcount:0 mapcount:-128 mapping:0000000000000000 index:0x1 pfn:0x775aa flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) page_type: 0xffffff7f(buddy) raw: 00fff00000000000 ffffea0001b0f988 ffffea0001deef08 0000000000000000 raw: 0000000000000001 0000000000000001 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 0x140cca(GFP_HIGHUSER_MOVABLE|__GFP_COMP), pid 5632, tgid 5632 (dhcpcd-run-hook), ts 87231455322, free_ts 87251029166 prep_new_page mm/page_alloc.c:1541 [inline] get_page_from_freelist+0x33de/0x3570 mm/page_alloc.c:3317 __alloc_pages+0x256/0x6b0 mm/page_alloc.c:4575 alloc_pages_mpol+0x3e8/0x680 mm/mempolicy.c:2264 vma_alloc_folio+0xf3/0x1f0 mm/mempolicy.c:2303 folio_prealloc+0x31/0x170 wp_page_copy mm/memory.c:3263 [inline] do_wp_page+0x1294/0x53c0 mm/memory.c:3660 handle_pte_fault mm/memory.c:5316 [inline] __handle_mm_fault mm/memory.c:5441 [inline] handle_mm_fault+0x1e66/0x39e0 mm/memory.c:5606 do_user_addr_fault arch/x86/mm/fault.c:1331 [inline] handle_page_fault arch/x86/mm/fault.c:1474 [inline] exc_page_fault+0x46a/0x860 arch/x86/mm/fault.c:1532 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:623 page last free pid 5632 tgid 5632 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1141 [inline] free_unref_page_prepare+0x96d/0xa80 mm/page_alloc.c:2347 free_unref_folios+0x1f2/0xc00 mm/page_alloc.c:2536 folios_put_refs+0x93a/0xa60 mm/swap.c:1034 free_pages_and_swap_cache+0x5c8/0x690 mm/swap_state.c:332 __tlb_batch_free_encoded_pages mm/mmu_gather.c:136 [inline] tlb_batch_pages_flush mm/mmu_gather.c:149 [inline] tlb_flush_mmu_free mm/mmu_gather.c:366 [inline] tlb_flush_mmu+0x3a3/0x680 mm/mmu_gather.c:373 tlb_finish_mmu+0xd4/0x200 mm/mmu_gather.c:465 exit_mmap+0x521/0xdc0 mm/mmap.c:3280 __mmput+0x115/0x3c0 kernel/fork.c:1346 exit_mm+0x220/0x310 kernel/exit.c:569 do_exit+0x99e/0x27d0 kernel/exit.c:865 do_group_exit+0x207/0x2c0 kernel/exit.c:1027 __do_sys_exit_group kernel/exit.c:1038 [inline] __se_sys_exit_group kernel/exit.c:1036 [inline] __x64_sys_exit_group+0x3f/0x40 kernel/exit.c:1036 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0x88/0x170 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x76/0x7e Memory state around the buggy address: ffff8880775a9f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8880775a9f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff8880775aa000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff8880775aa080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff8880775aa100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ==================================================================