binder_alloc: 17065: binder_alloc_buf, no vma binder: BINDER_SET_CONTEXT_MGR already set binder: 17065:17077 ioctl 40046207 0 returned -16 ================================================================== BUG: KASAN: use-after-free in __ext4_check_dir_entry+0x2f9/0x340 fs/ext4/dir.c:68 Read of size 2 at addr ffff88808b5a7001 by task syz-executor.3/17086 ISOFS: Unable to identify CD-ROM format. CPU: 0 PID: 17086 Comm: syz-executor.3 Not tainted 4.14.184-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0x1b2/0x283 lib/dump_stack.c:58 print_address_description.cold+0x54/0x1dc mm/kasan/report.c:252 kasan_report_error mm/kasan/report.c:351 [inline] kasan_report mm/kasan/report.c:409 [inline] kasan_report.cold+0xa9/0x2b9 mm/kasan/report.c:393 __ext4_check_dir_entry+0x2f9/0x340 fs/ext4/dir.c:68 ext4_readdir+0x819/0x27e0 fs/ext4/dir.c:240 iterate_dir+0x1a0/0x5e0 fs/readdir.c:52 SYSC_getdents64 fs/readdir.c:355 [inline] SyS_getdents64+0x130/0x240 fs/readdir.c:336 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x46/0xbb RIP: 0033:0x45ca59 RSP: 002b:00007f6582fcdc78 EFLAGS: 00000246 ORIG_RAX: 00000000000000d9 RAX: ffffffffffffffda RBX: 00000000004dd060 RCX: 000000000045ca59 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000004 RBP: 000000000078bf00 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff R13: 00000000000000f7 R14: 00000000004c3a09 R15: 00007f6582fce6d4 Allocated by task 16701: save_stack mm/kasan/kasan.c:447 [inline] set_track mm/kasan/kasan.c:459 [inline] kasan_kmalloc.part.0+0x4f/0xd0 mm/kasan/kasan.c:551 kmem_cache_alloc_trace+0x14d/0x3f0 mm/slab.c:3618 kmalloc include/linux/slab.h:488 [inline] proc_reg_open+0x6d/0x3a0 fs/proc/inode.c:340 do_dentry_open+0x44b/0xec0 fs/open.c:777 vfs_open+0x105/0x220 fs/open.c:888 do_last fs/namei.c:3428 [inline] path_openat+0xb68/0x2aa0 fs/namei.c:3569 do_filp_open+0x18e/0x250 fs/namei.c:3603 do_sys_open+0x292/0x3e0 fs/open.c:1081 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x46/0xbb Freed by task 16701: save_stack mm/kasan/kasan.c:447 [inline] set_track mm/kasan/kasan.c:459 [inline] kasan_slab_free+0xaf/0x190 mm/kasan/kasan.c:524 __cache_free mm/slab.c:3496 [inline] kfree+0xcb/0x260 mm/slab.c:3815 close_pdeo+0x125/0x140 fs/proc/inode.c:173 proc_reg_release+0xca/0x110 fs/proc/inode.c:376 __fput+0x25f/0x7a0 fs/file_table.c:210 task_work_run+0x113/0x190 kernel/task_work.c:113 tracehook_notify_resume include/linux/tracehook.h:191 [inline] exit_to_usermode_loop+0x1ad/0x200 arch/x86/entry/common.c:164 prepare_exit_to_usermode arch/x86/entry/common.c:199 [inline] syscall_return_slowpath arch/x86/entry/common.c:270 [inline] do_syscall_64+0x4a3/0x640 arch/x86/entry/common.c:297 entry_SYSCALL_64_after_hwframe+0x46/0xbb The buggy address belongs to the object at ffff88808b5a7000 which belongs to the cache kmalloc-64 of size 64 The buggy address is located 1 bytes inside of 64-byte region [ffff88808b5a7000, ffff88808b5a7040) The buggy address belongs to the page: page:ffffea00022d69c0 count:1 mapcount:0 mapping:ffff88808b5a7000 index:0x0 flags: 0xfffe0000000100(slab) raw: 00fffe0000000100 ffff88808b5a7000 0000000000000000 0000000100000020 raw: ffffea0002205020 ffffea00028544a0 ffff8880aa800340 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff88808b5a6f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88808b5a6f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88808b5a7000: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ^ ffff88808b5a7080: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc ffff88808b5a7100: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc ================================================================== binder_alloc: 17096: binder_alloc_buf, no vma binder: 17096:17099 ioctl 89e0 20000000 returned -22 FAT-fs (loop2): error, fat_get_cluster: invalid cluster chain (i_pos 970769) FAT-fs (loop2): Filesystem has been set read-only FAT-fs (loop2): error, fat_free: invalid cluster chain (i_pos 970769) binder: BINDER_SET_CONTEXT_MGR already set binder: 17096:17114 ioctl 40046207 0 returned -16 binder: 17096:17099 ioctl 89e0 20000000 returned -22