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 ffff888040a165fc by task syz-executor.5/10429 CPU: 0 PID: 10429 Comm: syz-executor.5 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 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 10429: 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 __do_kmalloc mm/slab.c:3720 [inline] __kmalloc+0x15a/0x400 mm/slab.c:3729 kmalloc include/linux/slab.h:493 [inline] udf_alloc_i_data+0x1f/0x70 fs/udf/inode.c:1612 udf_read_inode fs/udf/inode.c:1407 [inline] __udf_iget+0x2750/0x3370 fs/udf/inode.c:1883 udf_iget fs/udf/udfdecl.h:145 [inline] udf_lookup fs/udf/namei.c:333 [inline] udf_lookup+0x1c7/0x210 fs/udf/namei.c:295 lookup_open+0x5c4/0x1750 fs/namei.c:3220 do_last fs/namei.c:3334 [inline] path_openat+0x14bb/0x2970 fs/namei.c:3571 do_filp_open+0x179/0x3c0 fs/namei.c:3605 do_sys_open+0x296/0x410 fs/open.c:1081 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x5e/0xd3 Freed by task 4630: 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 do_delayed_call include/linux/delayed_call.h:28 [inline] generic_readlink fs/namei.c:4737 [inline] vfs_readlink+0x11d/0x3b0 fs/namei.c:4767 SYSC_readlinkat fs/stat.c:405 [inline] SyS_readlinkat+0x1e8/0x270 fs/stat.c:381 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 ffff888040a166c0 which belongs to the cache kmalloc-4096 of size 4096 The buggy address is located 196 bytes to the left of 4096-byte region [ffff888040a166c0, ffff888040a176c0) The buggy address belongs to the page: page:ffffea0001028580 count:1 mapcount:0 mapping:ffff888040a166c0 index:0x0 compound_mapcount: 0 flags: 0xfff00000008100(slab|head) raw: 00fff00000008100 ffff888040a166c0 0000000000000000 0000000100000001 raw: ffffea0001027c20 ffffea0002821720 ffff88813fe74dc0 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff888040a16480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888040a16500: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff888040a16580: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff888040a16600: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888040a16680: fc fc fc fc fc fc fc fc 00 00 00 00 00 00 00 00 ================================================================== audit: type=1804 audit(1669160559.355:5): pid=10441 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="ToMToU" comm="syz-executor.1" name="/root/syzkaller-testdir3531359173/syzkaller.dszQFX/53/cgroup.controllers" dev="sda1" ino=14036 res=1 BTRFS: device fsid e51554ae-5fd0-4014-9e9a-80f0549f67b2 devid 1 transid 8 /dev/loop3 FAT-fs (loop4): Unrecognized mount option "" or missing value BTRFS error (device loop3): unsupported checksum algorithm 3 FAT-fs (loop1): Unrecognized mount option "" or missing value BTRFS error (device loop3): superblock checksum mismatch BTRFS error (device loop3): open_ctree failed EXT4-fs warning (device sda1): verify_group_input:146: Cannot add at group 1025 (only 16 groups) gfs2: statfs_percent mount option requires a numeric argument between 0 and 100 gfs2: can't parse mount arguments