==================================================================
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 ffff8880b079ff10 by task syz-executor555/8138

CPU: 1 PID: 8138 Comm: syz-executor555 Not tainted 4.19.163-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:0x444ee9
Code: 1d d5 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 eb d4 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007ffc607d7af8 EFLAGS: 00000246 ORIG_RAX: 0000000000000130
RAX: ffffffffffffffda RBX: 00007ffc607d7ba0 RCX: 0000000000444ee9
RDX: 0000000000000000 RSI: 00000000200003c0 RDI: 0000000000000003
RBP: 0000000000000000 R08: 0000000000401100 R09: 0000000000401100
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000004a7e38
R13: 00000000004028f0 R14: 0000000000000000 R15: 0000000000000000

Allocated by task 6337:
 kmem_cache_alloc+0x122/0x370 mm/slab.c:3559
 getname_flags+0xce/0x590 fs/namei.c:140
 user_path_at_empty+0x2a/0x50 fs/namei.c:2609
 user_path_at include/linux/namei.h:57 [inline]
 vfs_statx+0x113/0x210 fs/stat.c:185
 vfs_lstat include/linux/fs.h:3138 [inline]
 __do_sys_newlstat fs/stat.c:350 [inline]
 __se_sys_newlstat+0x96/0x120 fs/stat.c:344
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe

Freed by task 6337:
 __cache_free mm/slab.c:3503 [inline]
 kmem_cache_free+0x7f/0x260 mm/slab.c:3765
 putname+0xe1/0x120 fs/namei.c:261
 filename_lookup+0x3d0/0x5a0 fs/namei.c:2358
 user_path_at include/linux/namei.h:57 [inline]
 vfs_statx+0x113/0x210 fs/stat.c:185
 vfs_lstat include/linux/fs.h:3138 [inline]
 __do_sys_newlstat fs/stat.c:350 [inline]
 __se_sys_newlstat+0x96/0x120 fs/stat.c:344
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe

The buggy address belongs to the object at ffff8880b079e740
 which belongs to the cache names_cache of size 4096
The buggy address is located 2000 bytes to the right of
 4096-byte region [ffff8880b079e740, ffff8880b079f740)
The buggy address belongs to the page:
page:ffffea0002c1e780 count:1 mapcount:0 mapping:ffff88813be83e40 index:0x0 compound_mapcount: 0
flags: 0xfff00000008100(slab|head)
raw: 00fff00000008100 ffffea0002c12708 ffffea0002cb2588 ffff88813be83e40
raw: 0000000000000000 ffff8880b079e740 0000000100000001 0000000000000000
page dumped because: kasan: bad access detected

Memory state around the buggy address:
 ffff8880b079fe00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
 ffff8880b079fe80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
>ffff8880b079ff00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
                         ^
 ffff8880b079ff80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
 ffff8880b07a0000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
==================================================================