================================================================== 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 ffff8880a9dbd720 by task syz-executor.2/14210 CPU: 0 PID: 14210 Comm: syz-executor.2 Not tainted 4.19.155-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:0x45deb9 Code: 0d b4 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 db b3 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007fb09a0e4c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000130 RAX: ffffffffffffffda RBX: 0000000000022240 RCX: 000000000045deb9 RDX: 0000000000000000 RSI: 0000000020000040 RDI: 0000000000000005 RBP: 000000000118bf60 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000118bf2c R13: 00007ffedb6a8b3f R14: 00007fb09a0e59c0 R15: 000000000118bf2c Allocated by task 13479: kmem_cache_alloc+0x122/0x370 mm/slab.c:3559 getname_kernel+0x4e/0x370 fs/namei.c:220 call_usermodehelper_exec_async+0x500/0x6a0 kernel/umh.c:116 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415 Freed by task 13479: __cache_free mm/slab.c:3503 [inline] kmem_cache_free+0x7f/0x260 mm/slab.c:3765 putname+0xe1/0x120 fs/namei.c:261 F2FS-fs (loop1): Invalid log sectorsize (6242313) __do_execve_file+0x2b5/0x2360 fs/exec.c:1870 do_execveat_common fs/exec.c:1879 [inline] do_execve+0x35/0x50 fs/exec.c:1896 call_usermodehelper_exec_async+0x50e/0x6a0 kernel/umh.c:116 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415 F2FS-fs (loop1): Can't find valid F2FS filesystem in 1th superblock The buggy address belongs to the object at ffff8880a9dbc000 which belongs to the cache names_cache of size 4096 The buggy address is located 1824 bytes to the right of 4096-byte region [ffff8880a9dbc000, ffff8880a9dbd000) The buggy address belongs to the page: page:ffffea0002a76f00 count:1 mapcount:0 mapping:ffff88813be83e40 index:0x0 compound_mapcount: 0 flags: 0xfff00000008100(slab|head) raw: 00fff00000008100 ffffea0002d36d08 ffffea0002855e08 ffff88813be83e40 raw: 0000000000000000 ffff8880a9dbc000 0000000100000001 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8880a9dbd600: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8880a9dbd680: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff8880a9dbd700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff8880a9dbd780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8880a9dbd800: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ================================================================== F2FS-fs (loop1): Magic Mismatch, valid(0xf2f52010) - read(0x0) ceph: No mds server is up or the cluster is laggy F2FS-fs (loop1): Can't find valid F2FS filesystem in 2th superblock F2FS-fs (loop1): Invalid log sectorsize (6242313) F2FS-fs (loop1): Can't find valid F2FS filesystem in 1th superblock F2FS-fs (loop1): Magic Mismatch, valid(0xf2f52010) - read(0x0) F2FS-fs (loop1): Can't find valid F2FS filesystem in 2th superblock