UDF-fs: warning (device loop3): udf_load_vrs: No anchor found UDF-fs: Scanning with blocksize 2048 failed UDF-fs: INFO Mounting volume 'LinuxUDF', timestamp 2022/11/22 14:59 (1000) ================================================================== BUG: KASAN: slab-out-of-bounds in udf_write_aext+0x6e3/0x7d0 fs/udf/inode.c:2076 Write of size 4 at addr ffff88808fa09ff0 by task syz-executor.3/10733 CPU: 1 PID: 10733 Comm: syz-executor.3 Not tainted 4.14.302-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0x1b2/0x281 lib/dump_stack.c:58 print_address_description.cold+0x54/0x1d3 mm/kasan/report.c:252 kasan_report_error.cold+0x8a/0x191 mm/kasan/report.c:351 kasan_report mm/kasan/report.c:409 [inline] __asan_report_store_n_noabort+0x6b/0x80 mm/kasan/report.c:446 udf_write_aext+0x6e3/0x7d0 fs/udf/inode.c:2076 udf_add_entry+0xc54/0x2710 fs/udf/namei.c:501 udf_mkdir+0x122/0x620 fs/udf/namei.c:699 vfs_mkdir+0x463/0x6e0 fs/namei.c:3851 SYSC_mkdirat fs/namei.c:3874 [inline] SyS_mkdirat+0x1fd/0x270 fs/namei.c:3858 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x5e/0xd3 RIP: 0033:0x7fcda240d0a9 RSP: 002b:00007fcda097f168 EFLAGS: 00000246 ORIG_RAX: 0000000000000102 RAX: ffffffffffffffda RBX: 00007fcda252cf80 RCX: 00007fcda240d0a9 RDX: 0000000000000000 RSI: 0000000020000180 RDI: 0000000000000004 RBP: 00007fcda2468ae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffe91d63c0f R14: 00007fcda097f300 R15: 0000000000022000 Allocated by task 10687: save_stack mm/kasan/kasan.c:447 [inline] set_track mm/kasan/kasan.c:459 [inline] kasan_kmalloc+0xeb/0x160 mm/kasan/kasan.c:551 kmem_cache_alloc+0x124/0x3c0 mm/slab.c:3552 getname_flags+0xc8/0x550 fs/namei.c:138 user_path_at_empty+0x2a/0x50 fs/namei.c:2631 user_path_at include/linux/namei.h:57 [inline] vfs_statx+0xd1/0x180 fs/stat.c:185 vfs_stat include/linux/fs.h:3067 [inline] SYSC_newstat fs/stat.c:336 [inline] SyS_newstat+0x83/0xe0 fs/stat.c:332 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x5e/0xd3 Freed by task 10687: save_stack mm/kasan/kasan.c:447 [inline] set_track mm/kasan/kasan.c:459 [inline] kasan_slab_free+0xc3/0x1a0 mm/kasan/kasan.c:524 __cache_free mm/slab.c:3496 [inline] kmem_cache_free+0x7c/0x2b0 mm/slab.c:3758 putname+0xcd/0x110 fs/namei.c:259 filename_lookup+0x37b/0x510 fs/namei.c:2386 user_path_at include/linux/namei.h:57 [inline] vfs_statx+0xd1/0x180 fs/stat.c:185 vfs_stat include/linux/fs.h:3067 [inline] SYSC_newstat fs/stat.c:336 [inline] SyS_newstat+0x83/0xe0 fs/stat.c:332 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x5e/0xd3 The buggy address belongs to the object at ffff88808fa089c0 which belongs to the cache names_cache of size 4096 The buggy address is located 1584 bytes to the right of 4096-byte region [ffff88808fa089c0, ffff88808fa099c0) The buggy address belongs to the page: page:ffffea00023e8200 count:1 mapcount:0 mapping:ffff88808fa089c0 index:0x0 compound_mapcount: 0 flags: 0xfff00000008100(slab|head) raw: 00fff00000008100 ffff88808fa089c0 0000000000000000 0000000100000001 raw: ffffea000247b5a0 ffffea0002494820 ffff88823f8c1200 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff88808fa09e80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88808fa09f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff88808fa09f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff88808fa0a000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88808fa0a080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================