================================================================== BUG: KASAN: slab-out-of-bounds in squashfs_inode_lookup fs/squashfs/export.c:57 [inline] BUG: KASAN: slab-out-of-bounds in squashfs_export_iget+0x274/0x2a0 fs/squashfs/export.c:82 Read of size 8 at addr ffff8880a21b0df8 by task syz-executor304/8119 CPU: 0 PID: 8119 Comm: syz-executor304 Not tainted 4.19.152-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1fc/0x2fe lib/dump_stack.c:118 print_address_description.cold+0x54/0x219 mm/kasan/report.c:256 kasan_report_error.cold+0x8a/0x1c7 mm/kasan/report.c:354 kasan_report mm/kasan/report.c:412 [inline] __asan_report_load8_noabort+0x88/0x90 mm/kasan/report.c:433 squashfs_inode_lookup fs/squashfs/export.c:57 [inline] squashfs_export_iget+0x274/0x2a0 fs/squashfs/export.c:82 squashfs_fh_to_dentry fs/squashfs/export.c:97 [inline] squashfs_fh_to_dentry+0x78/0xb0 fs/squashfs/export.c:90 exportfs_decode_fh+0x126/0x7d8 fs/exportfs/expfs.c:433 do_handle_to_path fs/fhandle.c:152 [inline] handle_to_path fs/fhandle.c:207 [inline] do_handle_open+0x2f4/0x650 fs/fhandle.c:223 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x4443d9 Code: 8d d7 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 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 0f 83 5b d7 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007fff8b4b0168 EFLAGS: 00000246 ORIG_RAX: 0000000000000130 RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004443d9 RDX: 0000000000000000 RSI: 0000000020000280 RDI: 0000000000000005 RBP: 00000000006cf018 R08: 00007fff00000015 R09: 00000000004002e0 R10: 00007fff8b4b0010 R11: 0000000000000246 R12: 0000000000401fc0 R13: 0000000000402050 R14: 0000000000000000 R15: 0000000000000000 Allocated by task 6419: kmem_cache_alloc_trace+0x12f/0x380 mm/slab.c:3625 kmalloc include/linux/slab.h:515 [inline] single_open+0x49/0x1e0 fs/seq_file.c:557 proc_reg_open+0x1f7/0x5b0 fs/proc/inode.c:368 do_dentry_open+0x4aa/0x1160 fs/open.c:796 do_last fs/namei.c:3421 [inline] path_openat+0x793/0x2df0 fs/namei.c:3537 do_filp_open+0x18c/0x3f0 fs/namei.c:3567 do_sys_open+0x3b3/0x520 fs/open.c:1085 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe Freed by task 6419: __cache_free mm/slab.c:3503 [inline] kfree+0xcc/0x210 mm/slab.c:3822 single_release+0x8c/0xb0 fs/seq_file.c:597 close_pdeo.part.0+0xda/0x2f0 fs/proc/inode.c:176 close_pdeo fs/proc/inode.c:401 [inline] proc_reg_release+0x21e/0x270 fs/proc/inode.c:395 __fput+0x2ce/0x890 fs/file_table.c:278 task_work_run+0x148/0x1c0 kernel/task_work.c:113 tracehook_notify_resume include/linux/tracehook.h:193 [inline] exit_to_usermode_loop+0x251/0x2a0 arch/x86/entry/common.c:167 prepare_exit_to_usermode arch/x86/entry/common.c:198 [inline] syscall_return_slowpath arch/x86/entry/common.c:271 [inline] do_syscall_64+0x538/0x620 arch/x86/entry/common.c:296 entry_SYSCALL_64_after_hwframe+0x49/0xbe The buggy address belongs to the object at ffff8880a21b0dc0 which belongs to the cache kmalloc-32 of size 32 The buggy address is located 24 bytes to the right of 32-byte region [ffff8880a21b0dc0, ffff8880a21b0de0) The buggy address belongs to the page: page:ffffea0002886c00 count:1 mapcount:0 mapping:ffff88813bff01c0 index:0xffff8880a21b0fc1 flags: 0xfff00000000100(slab) raw: 00fff00000000100 ffffea0002cb6d48 ffffea0002bbd448 ffff88813bff01c0 raw: ffff8880a21b0fc1 ffff8880a21b0000 0000000100000018 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8880a21b0c80: fb fb fb fb fc fc fc fc fb fb fb fb fc fc fc fc ffff8880a21b0d00: fb fb fb fb fc fc fc fc fb fb fb fb fc fc fc fc >ffff8880a21b0d80: fb fb fb fb fc fc fc fc fb fb fb fb fc fc fc fc ^ ffff8880a21b0e00: 00 fc fc fc fc fc fc fc 00 00 fc fc fc fc fc fc ffff8880a21b0e80: fb fb fb fb fc fc fc fc fb fb fb fb fc fc fc fc ==================================================================