UDF-fs: error (device loop0): udf_process_sequence: Primary Volume Descriptor not found! UDF-fs: INFO Mounting volume 'LinuxUDF', timestamp 2022/11/22 14:59 (1000) ================================================================== BUG: KASAN: slab-out-of-bounds in udf_write_aext+0x62d/0x7e0 fs/udf/inode.c:2090 Write of size 4 at addr ffff88802789fff0 by task syz-executor158/5067 CPU: 1 PID: 5067 Comm: syz-executor158 Not tainted 6.1.0-syzkaller-13872-gb6bb9676f216 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1b1/0x290 lib/dump_stack.c:106 print_address_description+0x74/0x340 mm/kasan/report.c:306 print_report+0x107/0x1f0 mm/kasan/report.c:417 kasan_report+0xcd/0x100 mm/kasan/report.c:517 udf_write_aext+0x62d/0x7e0 fs/udf/inode.c:2090 udf_add_entry+0x1712/0x3300 fs/udf/namei.c:482 udf_mkdir+0x13c/0x980 fs/udf/namei.c:681 vfs_mkdir+0x3b3/0x590 fs/namei.c:4036 do_mkdirat+0x25b/0x530 fs/namei.c:4061 __do_sys_mkdirat fs/namei.c:4076 [inline] __se_sys_mkdirat fs/namei.c:4074 [inline] __x64_sys_mkdirat+0x85/0x90 fs/namei.c:4074 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 RIP: 0033:0x7fcd9063cbc9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 51 14 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 c0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ffd42cc8a28 EFLAGS: 00000246 ORIG_RAX: 0000000000000102 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007fcd9063cbc9 RDX: 0000000000000000 RSI: 0000000020000300 RDI: 0000000000000004 RBP: 00007fcd905fc1d0 R08: 0000000000000000 R09: 0000000000000000 R10: 000000000000002e R11: 0000000000000246 R12: 00007fcd905fc260 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 Allocated by task 4908: kasan_save_stack mm/kasan/common.c:45 [inline] kasan_set_track+0x3d/0x60 mm/kasan/common.c:52 __kasan_slab_alloc+0x65/0x70 mm/kasan/common.c:325 kasan_slab_alloc include/linux/kasan.h:201 [inline] slab_post_alloc_hook mm/slab.h:761 [inline] kmem_cache_alloc_bulk+0x16a/0x1c0 mm/slub.c:4033 mt_alloc_bulk lib/maple_tree.c:157 [inline] mas_alloc_nodes+0x386/0x650 lib/maple_tree.c:1256 mas_node_count_gfp lib/maple_tree.c:1315 [inline] mas_preallocate+0x133/0x340 lib/maple_tree.c:5722 mmap_region+0x147a/0x1e20 mm/mmap.c:2679 do_mmap+0x8d9/0xf30 mm/mmap.c:1411 vm_mmap_pgoff+0x19e/0x2b0 mm/util.c:520 ksys_mmap_pgoff+0x48c/0x6d0 mm/mmap.c:1457 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 Freed by task 4908: kasan_save_stack mm/kasan/common.c:45 [inline] kasan_set_track+0x3d/0x60 mm/kasan/common.c:52 kasan_save_free_info+0x27/0x40 mm/kasan/generic.c:518 ____kasan_slab_free+0xd6/0x120 mm/kasan/common.c:236 kasan_slab_free include/linux/kasan.h:177 [inline] slab_free_hook mm/slub.c:1781 [inline] slab_free_freelist_hook+0x12e/0x1a0 mm/slub.c:1807 slab_free mm/slub.c:3787 [inline] kmem_cache_free_bulk+0x10a/0x170 mm/slub.c:3905 mt_free_bulk lib/maple_tree.c:163 [inline] mas_destroy+0x2a71/0x37a0 lib/maple_tree.c:5772 mas_store_prealloc+0x35d/0x450 lib/maple_tree.c:5706 mmap_region+0x15b3/0x1e20 mm/mmap.c:2692 do_mmap+0x8d9/0xf30 mm/mmap.c:1411 vm_mmap_pgoff+0x19e/0x2b0 mm/util.c:520 ksys_mmap_pgoff+0x48c/0x6d0 mm/mmap.c:1457 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 The buggy address belongs to the object at ffff88802789fe00 which belongs to the cache maple_node of size 256 The buggy address is located 240 bytes to the right of 256-byte region [ffff88802789fe00, ffff88802789ff00) The buggy address belongs to the physical page: page:ffffea00009e2780 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x2789e head:ffffea00009e2780 order:1 compound_mapcount:0 subpages_mapcount:0 compound_pincount:0 flags: 0xfff00000010200(slab|head|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000010200 ffff8880128cd000 dead000000000100 dead000000000122 raw: 0000000000000000 0000000000100010 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 1, migratetype Unmovable, gfp_mask 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 4676, tgid 4676 (cmp), ts 30331575427, free_ts 27843451980 prep_new_page mm/page_alloc.c:2531 [inline] get_page_from_freelist+0x742/0x7c0 mm/page_alloc.c:4283 __alloc_pages+0x259/0x560 mm/page_alloc.c:5549 alloc_slab_page+0xbd/0x190 mm/slub.c:1851 allocate_slab+0x5e/0x3c0 mm/slub.c:1998 new_slab mm/slub.c:2051 [inline] ___slab_alloc+0x782/0xe20 mm/slub.c:3193 __kmem_cache_alloc_bulk+0x143/0x3e0 mm/slub.c:3951 kmem_cache_alloc_bulk+0xef/0x1c0 mm/slub.c:4026 mt_alloc_bulk lib/maple_tree.c:157 [inline] mas_alloc_nodes+0x386/0x650 lib/maple_tree.c:1256 mas_node_count_gfp lib/maple_tree.c:1315 [inline] mas_preallocate+0x133/0x340 lib/maple_tree.c:5722 __vma_adjust+0x865/0x21b0 mm/mmap.c:715 __split_vma+0x36e/0x530 do_mas_align_munmap+0x35a/0x14e0 mm/mmap.c:2337 do_mas_munmap+0x245/0x2b0 mm/mmap.c:2498 __vm_munmap+0x23c/0x340 mm/mmap.c:2775 elf_map+0x21e/0x300 fs/binfmt_elf.c:392 load_elf_interp+0x4c9/0xdd0 fs/binfmt_elf.c:632 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1446 [inline] free_pcp_prepare+0x751/0x780 mm/page_alloc.c:1496 free_unref_page_prepare mm/page_alloc.c:3369 [inline] free_unref_page+0x19/0x4c0 mm/page_alloc.c:3464 discard_slab mm/slub.c:2098 [inline] __unfreeze_partials+0x1a5/0x1e0 mm/slub.c:2637 put_cpu_partial+0x106/0x170 mm/slub.c:2713 qlist_free_all+0x2b/0x70 mm/kasan/quarantine.c:187 kasan_quarantine_reduce+0x156/0x170 mm/kasan/quarantine.c:294 __kasan_slab_alloc+0x1f/0x70 mm/kasan/common.c:302 kasan_slab_alloc include/linux/kasan.h:201 [inline] slab_post_alloc_hook mm/slab.h:761 [inline] slab_alloc_node mm/slub.c:3452 [inline] __kmem_cache_alloc_node+0x1e0/0x340 mm/slub.c:3491 __do_kmalloc_node mm/slab_common.c:967 [inline] __kmalloc_node+0x9e/0x190 mm/slab_common.c:975 kmalloc_node include/linux/slab.h:610 [inline] kvmalloc_node+0x6e/0x180 mm/util.c:581 kvmalloc include/linux/slab.h:737 [inline] seq_buf_alloc fs/seq_file.c:38 [inline] seq_read_iter+0x1f6/0xd30 fs/seq_file.c:210 call_read_iter include/linux/fs.h:2180 [inline] new_sync_read fs/read_write.c:389 [inline] vfs_read+0x7ac/0xbf0 fs/read_write.c:470 ksys_read+0x177/0x2a0 fs/read_write.c:613 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 Memory state around the buggy address: ffff88802789fe80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88802789ff00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff88802789ff80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff8880278a0000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8880278a0080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================