================================================================== BUG: KASAN: use-after-free in crc_itu_t+0x21c/0x2a0 lib/crc-itu-t.c:60 Read of size 1 at addr ffff888029eda000 by task syz-executor.3/26880 CPU: 1 PID: 26880 Comm: syz-executor.3 Not tainted 6.5.0-rc5-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/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:364 [inline] print_report+0x163/0x540 mm/kasan/report.c:475 kasan_report+0x175/0x1b0 mm/kasan/report.c:588 crc_itu_t+0x21c/0x2a0 lib/crc-itu-t.c:60 udf_finalize_lvid fs/udf/super.c:1984 [inline] udf_sync_fs+0x1d2/0x380 fs/udf/super.c:2340 iterate_supers+0x12b/0x1e0 fs/super.c:744 ksys_sync+0xcc/0x1c0 fs/sync.c:103 __do_sys_sync+0xe/0x20 fs/sync.c:113 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:0x7f310267cae9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f31033be0c8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a2 RAX: ffffffffffffffda RBX: 00007f310279bf80 RCX: 00007f310267cae9 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 00007f31026c847a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f310279bf80 R15: 00007fff0bae8088 The buggy address belongs to the physical page: page:ffffea0000a7b680 refcount:0 mapcount:-128 mapping:0000000000000000 index:0x0 pfn:0x29eda flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) page_type: 0xffffff7f(buddy) raw: 00fff00000000000 ffffea0001412788 ffffea0001e02788 0000000000000000 raw: 0000000000000000 0000000000000001 00000000ffffff7f 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as freed page last allocated via order 1, migratetype Unmovable, gfp_mask 0x1d20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC|__GFP_HARDWALL), pid 26427, tgid 26427 (syz-executor.3), ts 1982514822972, free_ts 2001908293699 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x1e6/0x210 mm/page_alloc.c:1570 prep_new_page mm/page_alloc.c:1577 [inline] get_page_from_freelist+0x31e8/0x3370 mm/page_alloc.c:3221 __alloc_pages+0x255/0x670 mm/page_alloc.c:4477 alloc_slab_page+0x6a/0x160 mm/slub.c:1862 allocate_slab mm/slub.c:2009 [inline] new_slab+0x84/0x2f0 mm/slub.c:2062 ___slab_alloc+0xade/0x1100 mm/slub.c:3215 __kmem_cache_alloc_bulk mm/slub.c:3966 [inline] kmem_cache_alloc_bulk+0x196/0x4b0 mm/slub.c:4041 mt_alloc_bulk lib/maple_tree.c:164 [inline] mas_alloc_nodes+0x3df/0x800 lib/maple_tree.c:1304 mas_node_count_gfp lib/maple_tree.c:1362 [inline] mas_preallocate+0x131/0x350 lib/maple_tree.c:5547 vma_iter_prealloc mm/internal.h:1032 [inline] __split_vma+0x1e0/0x7f0 mm/mmap.c:2349 mprotect_fixup+0x5c5/0xa50 mm/mprotect.c:649 do_mprotect_pkey+0x8b3/0xd90 mm/mprotect.c:817 __do_sys_mprotect mm/mprotect.c:838 [inline] __se_sys_mprotect mm/mprotect.c:835 [inline] __x64_sys_mprotect+0x80/0x90 mm/mprotect.c:835 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 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1161 [inline] free_unref_page_prepare+0x903/0xa30 mm/page_alloc.c:2348 free_unref_page+0x37/0x3f0 mm/page_alloc.c:2443 discard_slab mm/slub.c:2108 [inline] __unfreeze_partials+0x1dc/0x220 mm/slub.c:2647 put_cpu_partial+0x116/0x180 mm/slub.c:2723 __slab_free+0x2b6/0x390 mm/slub.c:3671 qlist_free_all+0x22/0x60 mm/kasan/quarantine.c:185 kasan_quarantine_reduce+0x14b/0x160 mm/kasan/quarantine.c:292 __kasan_slab_alloc+0x23/0x70 mm/kasan/common.c:305 kasan_slab_alloc include/linux/kasan.h:186 [inline] slab_post_alloc_hook+0x6c/0x3b0 mm/slab.h:762 slab_alloc_node mm/slub.c:3470 [inline] slab_alloc mm/slub.c:3478 [inline] __kmem_cache_alloc_lru mm/slub.c:3485 [inline] kmem_cache_alloc+0x123/0x300 mm/slub.c:3494 getname_flags+0xbc/0x4e0 fs/namei.c:140 vfs_fstatat fs/stat.c:275 [inline] __do_sys_newfstatat fs/stat.c:446 [inline] __se_sys_newfstatat fs/stat.c:440 [inline] __x64_sys_newfstatat+0x12e/0x1d0 fs/stat.c:440 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: ffff888029ed9f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888029ed9f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff888029eda000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff888029eda080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff888029eda100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ==================================================================