================================================================== BUG: KASAN: out-of-bounds in udf_write_fi+0x910/0xf20 fs/udf/namei.c:93 Write of size 18446744073709551572 at addr ffff88807b13e02c by task syz-executor373/3603 CPU: 1 PID: 3603 Comm: syz-executor373 Not tainted 6.1.0-rc4-syzkaller-00372-gaf7a05689189 #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+0xcd/0x134 lib/dump_stack.c:106 print_address_description mm/kasan/report.c:284 [inline] print_report+0x15e/0x45d mm/kasan/report.c:395 kasan_report+0xbb/0x1f0 mm/kasan/report.c:495 check_region_inline mm/kasan/generic.c:183 [inline] kasan_check_range+0x13d/0x180 mm/kasan/generic.c:189 memset+0x20/0x40 mm/kasan/shadow.c:44 udf_write_fi+0x910/0xf20 fs/udf/namei.c:93 udf_rename+0xd9f/0x1250 fs/udf/namei.c:1173 vfs_rename+0x115e/0x1a90 fs/namei.c:4778 do_renameat2+0xb5e/0xc80 fs/namei.c:4929 __do_sys_renameat2 fs/namei.c:4962 [inline] __se_sys_renameat2 fs/namei.c:4959 [inline] __x64_sys_renameat2+0xe4/0x120 fs/namei.c:4959 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fdc1e04d2f9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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:00007ffeb524d758 EFLAGS: 00000246 ORIG_RAX: 000000000000013c RAX: ffffffffffffffda RBX: 0000000000000002 RCX: 00007fdc1e04d2f9 RDX: 0000000000000004 RSI: 00000000200001c0 RDI: 0000000000000004 RBP: 00007ffeb524d770 R08: 0000000000000000 R09: 00007ffeb524d6f0 R10: 0000000020000200 R11: 0000000000000246 R12: 0000000000000005 R13: 00007ffeb524d76c R14: 431bde82d7b634db R15: 00007ffeb524d780 The buggy address belongs to the physical page: page:ffffea0001ec4f80 refcount:2 mapcount:0 mapping:ffff888011c533f8 index:0xa8 pfn:0x7b13e memcg:ffff888140188000 aops:def_blk_aops ino:700000 flags: 0xfff0000000203a(referenced|dirty|lru|active|private|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff0000000203a ffffea0001be8208 ffffea0001c65808 ffff888011c533f8 raw: 00000000000000a8 ffff888071f292b8 00000002ffffffff ffff888140188000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Movable, gfp_mask 0x148c48(GFP_NOFS|__GFP_NOFAIL|__GFP_COMP|__GFP_HARDWALL|__GFP_MOVABLE), pid 3601, tgid 3601 (syz-executor373), ts 41759669909, free_ts 41699988066 prep_new_page mm/page_alloc.c:2539 [inline] get_page_from_freelist+0x10b5/0x2d50 mm/page_alloc.c:4288 __alloc_pages+0x1c7/0x5a0 mm/page_alloc.c:5555 alloc_pages+0x1a6/0x270 mm/mempolicy.c:2285 folio_alloc+0x1c/0x70 mm/mempolicy.c:2295 filemap_alloc_folio+0x306/0x3a0 mm/filemap.c:971 __filemap_get_folio+0x328/0xd90 mm/filemap.c:1965 pagecache_get_page+0x2e/0x280 mm/folio-compat.c:110 find_or_create_page include/linux/pagemap.h:613 [inline] grow_dev_page fs/buffer.c:946 [inline] grow_buffers fs/buffer.c:1011 [inline] __getblk_slow+0x1f4/0x1030 fs/buffer.c:1038 __getblk_gfp fs/buffer.c:1333 [inline] __bread_gfp+0x228/0x320 fs/buffer.c:1367 sb_bread include/linux/buffer_head.h:338 [inline] udf_tread+0x165/0x1d0 fs/udf/misc.c:44 udf_find_entry+0xc99/0x1230 fs/udf/namei.c:206 udf_lookup fs/udf/namei.c:309 [inline] udf_lookup+0x156/0x270 fs/udf/namei.c:298 lookup_open.isra.0+0x76a/0x12a0 fs/namei.c:3391 open_last_lookups fs/namei.c:3481 [inline] path_openat+0x996/0x2860 fs/namei.c:3710 do_filp_open+0x1b6/0x400 fs/namei.c:3740 do_sys_openat2+0x16d/0x4c0 fs/open.c:1310 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1459 [inline] free_pcp_prepare+0x65c/0xd90 mm/page_alloc.c:1509 free_unref_page_prepare mm/page_alloc.c:3387 [inline] free_unref_page_list+0x172/0xc40 mm/page_alloc.c:3529 release_pages+0xc86/0x1360 mm/swap.c:1055 tlb_batch_pages_flush+0xa8/0x1a0 mm/mmu_gather.c:59 tlb_flush_mmu_free mm/mmu_gather.c:256 [inline] tlb_flush_mmu mm/mmu_gather.c:263 [inline] tlb_finish_mmu+0x147/0x7e0 mm/mmu_gather.c:363 exit_mmap+0x1fe/0x7a0 mm/mmap.c:3105 __mmput+0x128/0x4c0 kernel/fork.c:1185 mmput+0x5c/0x70 kernel/fork.c:1207 exec_mmap fs/exec.c:1035 [inline] begin_new_exec+0xf92/0x2e70 fs/exec.c:1294 load_elf_binary+0x7fd/0x4f00 fs/binfmt_elf.c:1002 search_binary_handler fs/exec.c:1727 [inline] exec_binprm fs/exec.c:1768 [inline] bprm_execve fs/exec.c:1837 [inline] bprm_execve+0x7ef/0x19f0 fs/exec.c:1799 do_execveat_common+0x724/0x890 fs/exec.c:1942 do_execve fs/exec.c:2016 [inline] __do_sys_execve fs/exec.c:2092 [inline] __se_sys_execve fs/exec.c:2087 [inline] __x64_sys_execve+0x8f/0xc0 fs/exec.c:2087 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd Memory state around the buggy address: ffff88807b13df00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff88807b13df80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff >ffff88807b13e000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^ ffff88807b13e080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88807b13e100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================