UDF-fs: error (device loop1): udf_read_tagged: read failed, block=256, location=256 UDF-fs: INFO Mounting volume 'LinuxUDF', timestamp 2022/11/17 09:39 (1000) UDF-fs: INFO Mounting volume 'LinuxUDF', timestamp 2022/11/17 09:39 (1000) ================================================================== BUG: KASAN: slab-out-of-bounds in udf_get_fileident+0x1ea/0x200 fs/udf/directory.c:178 Read of size 2 at addr ffff8880b0077fbc by task syz-executor.2/9778 CPU: 0 PID: 9778 Comm: syz-executor.2 Not tainted 4.14.299-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_load_n_noabort+0x6b/0x80 mm/kasan/report.c:440 udf_get_fileident+0x1ea/0x200 fs/udf/directory.c:178 udf_fileident_read+0x4b9/0x1840 fs/udf/directory.c:36 udf_readdir+0x4d0/0x11f0 fs/udf/dir.c:129 UDF-fs: warning (device loop4): udf_load_vrs: No VRS found UDF-fs: Scanning with blocksize 512 failed iterate_dir+0x1a0/0x5e0 fs/readdir.c:52 SYSC_getdents fs/readdir.c:272 [inline] SyS_getdents+0x125/0x240 fs/readdir.c:253 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x5e/0xd3 Allocated by task 8056: 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_trace+0x131/0x3d0 mm/slab.c:3618 kmalloc include/linux/slab.h:488 [inline] kzalloc include/linux/slab.h:661 [inline] uevent_show+0x155/0x330 drivers/base/core.c:998 dev_attr_show+0x4f/0xc0 drivers/base/core.c:722 sysfs_kf_seq_show+0x1dd/0x420 fs/sysfs/file.c:64 seq_read+0x4e4/0x1180 fs/seq_file.c:240 kernfs_fop_read+0xd7/0x500 fs/kernfs/file.c:252 __vfs_read+0xe4/0x620 fs/read_write.c:411 vfs_read+0x139/0x340 fs/read_write.c:447 SYSC_read fs/read_write.c:574 [inline] SyS_read+0xf2/0x210 fs/read_write.c:567 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x5e/0xd3 Freed by task 8056: 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] kfree+0xc9/0x250 mm/slab.c:3815 uevent_show+0x27e/0x330 drivers/base/core.c:1011 dev_attr_show+0x4f/0xc0 drivers/base/core.c:722 sysfs_kf_seq_show+0x1dd/0x420 fs/sysfs/file.c:64 seq_read+0x4e4/0x1180 fs/seq_file.c:240 kernfs_fop_read+0xd7/0x500 fs/kernfs/file.c:252 __vfs_read+0xe4/0x620 fs/read_write.c:411 vfs_read+0x139/0x340 fs/read_write.c:447 SYSC_read fs/read_write.c:574 [inline] SyS_read+0xf2/0x210 fs/read_write.c:567 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 ffff8880b00767c0 which belongs to the cache kmalloc-4096 of size 4096 The buggy address is located 2044 bytes to the right of 4096-byte region [ffff8880b00767c0, ffff8880b00777c0) The buggy address belongs to the page: page:ffffea0002c01d80 count:1 mapcount:0 mapping:ffff8880b00767c0 index:0x0 compound_mapcount: 0 flags: 0xfff00000008100(slab|head) raw: 00fff00000008100 ffff8880b00767c0 0000000000000000 0000000100000001 raw: ffffea0002c01d20 ffffea0002a2d1a0 ffff88813fe74dc0 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8880b0077e80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8880b0077f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff8880b0077f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff8880b0078000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8880b0078080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================