================================================================== BUG: KASAN: use-after-free in crc_itu_t+0x1d1/0x2a0 lib/crc-itu-t.c:60 Read of size 1 at addr ffff888046e0a000 by task syz-executor.3/6200 CPU: 1 PID: 6200 Comm: syz-executor.3 Not tainted 6.1.62-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/09/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e3/0x2cb lib/dump_stack.c:106 print_address_description mm/kasan/report.c:284 [inline] print_report+0x15f/0x4f0 mm/kasan/report.c:395 kasan_report+0x136/0x160 mm/kasan/report.c:495 crc_itu_t+0x1d1/0x2a0 lib/crc-itu-t.c:60 udf_finalize_lvid fs/udf/super.c:2022 [inline] udf_close_lvid+0x57a/0x9a0 fs/udf/super.c:2090 udf_put_super+0xc9/0x160 fs/udf/super.c:2360 generic_shutdown_super+0x130/0x340 fs/super.c:501 kill_block_super+0x7a/0xe0 fs/super.c:1459 deactivate_locked_super+0xa0/0x110 fs/super.c:332 cleanup_mnt+0x490/0x520 fs/namespace.c:1186 task_work_run+0x246/0x300 kernel/task_work.c:179 exit_task_work include/linux/task_work.h:38 [inline] do_exit+0xa73/0x26a0 kernel/exit.c:869 do_group_exit+0x202/0x2b0 kernel/exit.c:1019 get_signal+0x16f7/0x17d0 kernel/signal.c:2862 arch_do_signal_or_restart+0xb0/0x1a10 arch/x86/kernel/signal.c:871 exit_to_user_mode_loop+0x6a/0x100 kernel/entry/common.c:168 exit_to_user_mode_prepare+0xb1/0x140 kernel/entry/common.c:204 __syscall_exit_to_user_mode_work kernel/entry/common.c:286 [inline] syscall_exit_to_user_mode+0x60/0x270 kernel/entry/common.c:297 ret_from_fork+0x15/0x30 arch/x86/entry/entry_64.S:299 RIP: 0033:0x7fcd7867cae9 Code: Unable to access opcode bytes at 0x7fcd7867cabf. RSP: 002b:00007fcd7936a078 EFLAGS: 00000246 ORIG_RAX: 0000000000000038 RAX: 0000000000000000 RBX: 00007fcd7879c050 RCX: 00007fcd7867cae9 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 00007fcd786c847a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000006e R14: 00007fcd7879c050 R15: 00007ffcbddcc4a8 The buggy address belongs to the physical page: page:ffffea00011b8280 refcount:0 mapcount:0 mapping:0000000000000000 index:0x1 pfn:0x46e0a flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 ffffea00011ee948 ffffea0000fc8888 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 0x152c4a(GFP_NOFS|__GFP_HIGHMEM|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_HARDWALL|__GFP_MOVABLE), pid 6190, tgid 6186 (syz-executor.3), ts 342396891933, free_ts 1919556634083 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x18d/0x1b0 mm/page_alloc.c:2513 prep_new_page mm/page_alloc.c:2520 [inline] get_page_from_freelist+0x31a1/0x3320 mm/page_alloc.c:4279 __alloc_pages+0x28d/0x770 mm/page_alloc.c:5545 folio_alloc+0x1a/0x50 mm/mempolicy.c:2292 filemap_alloc_folio+0xda/0x4f0 mm/filemap.c:971 page_cache_ra_unbounded+0x1ee/0x7b0 mm/readahead.c:248 do_async_mmap_readahead mm/filemap.c:3072 [inline] filemap_fault+0x797/0x17e0 mm/filemap.c:3126 __do_fault+0x136/0x4f0 mm/memory.c:4241 do_read_fault mm/memory.c:4592 [inline] do_fault mm/memory.c:4721 [inline] handle_pte_fault mm/memory.c:4993 [inline] __handle_mm_fault mm/memory.c:5135 [inline] handle_mm_fault+0x3412/0x5340 mm/memory.c:5256 faultin_page mm/gup.c:1009 [inline] __get_user_pages+0x4f3/0x1190 mm/gup.c:1233 populate_vma_page_range+0x217/0x2b0 mm/gup.c:1590 __mm_populate+0x275/0x440 mm/gup.c:1704 mm_populate include/linux/mm.h:2797 [inline] vm_mmap_pgoff+0x22b/0x2d0 mm/util.c:525 ksys_mmap_pgoff+0x4f5/0x6d0 mm/mmap.c:1471 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1440 [inline] free_pcp_prepare mm/page_alloc.c:1490 [inline] free_unref_page_prepare+0xf63/0x1120 mm/page_alloc.c:3358 free_unref_page_list+0x663/0x900 mm/page_alloc.c:3499 release_pages+0x2836/0x2b40 mm/swap.c:1055 __pagevec_release+0x80/0xf0 mm/swap.c:1075 pagevec_release include/linux/pagevec.h:71 [inline] folio_batch_release include/linux/pagevec.h:135 [inline] truncate_inode_pages_range+0x48a/0x1340 mm/truncate.c:373 udf_evict_inode+0x21f/0x3d0 fs/udf/inode.c:157 evict+0x2a4/0x620 fs/inode.c:664 dispose_list fs/inode.c:697 [inline] evict_inodes+0x601/0x6a0 fs/inode.c:747 generic_shutdown_super+0x94/0x340 fs/super.c:480 kill_block_super+0x7a/0xe0 fs/super.c:1459 deactivate_locked_super+0xa0/0x110 fs/super.c:332 cleanup_mnt+0x490/0x520 fs/namespace.c:1186 task_work_run+0x246/0x300 kernel/task_work.c:179 exit_task_work include/linux/task_work.h:38 [inline] do_exit+0xa73/0x26a0 kernel/exit.c:869 do_group_exit+0x202/0x2b0 kernel/exit.c:1019 get_signal+0x16f7/0x17d0 kernel/signal.c:2862 Memory state around the buggy address: ffff888046e09f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888046e09f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff888046e0a000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff888046e0a080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff888046e0a100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ==================================================================