================================================================== 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+0x22f/0x250 fs/squashfs/export.c:82 Read of size 8 at addr ffff8880b11053d0 by task syz-executor160/8006 CPU: 1 PID: 8006 Comm: syz-executor160 Not tainted 4.14.212-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/0x1d3 mm/kasan/report.c:252 kasan_report_error.cold+0x8a/0x194 mm/kasan/report.c:351 kasan_report mm/kasan/report.c:409 [inline] __asan_report_load8_noabort+0x68/0x70 mm/kasan/report.c:430 squashfs_inode_lookup fs/squashfs/export.c:57 [inline] squashfs_export_iget+0x22f/0x250 fs/squashfs/export.c:82 squashfs_fh_to_dentry fs/squashfs/export.c:97 [inline] squashfs_fh_to_dentry+0x5f/0x90 fs/squashfs/export.c:90 exportfs_decode_fh+0x113/0x6bc fs/exportfs/expfs.c:433 do_handle_to_path fs/fhandle.c:153 [inline] handle_to_path fs/fhandle.c:208 [inline] do_handle_open+0x248/0x570 fs/fhandle.c:224 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x46/0xbb RIP: 0033:0x444449 RSP: 002b:00007ffeb38f26b8 EFLAGS: 00000246 ORIG_RAX: 0000000000000130 RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 0000000000444449 RDX: 0000000000000000 RSI: 00000000200003c0 RDI: 0000000000000003 RBP: 00000000006d0018 R08: 0000000000000000 R09: 00000000004002e0 R10: 00007ffe00000015 R11: 0000000000000246 R12: 0000000000402030 R13: 00000000004020c0 R14: 0000000000000000 R15: 0000000000000000 Allocated by task 6224: 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 kmem_cache_alloc+0x124/0x3c0 mm/slab.c:3552 getname_flags+0xc8/0x550 fs/namei.c:138 user_path_at_empty+0x2a/0x50 fs/namei.c:2631 user_path_at include/linux/namei.h:57 [inline] do_utimes+0x149/0x250 fs/utimes.c:152 SYSC_utimensat fs/utimes.c:184 [inline] SyS_utimensat+0xbf/0x120 fs/utimes.c:168 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x46/0xbb Freed by task 6224: 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] kmem_cache_free+0x7c/0x2b0 mm/slab.c:3758 putname+0xcd/0x110 fs/namei.c:259 filename_lookup+0x37b/0x510 fs/namei.c:2386 user_path_at include/linux/namei.h:57 [inline] do_utimes+0x149/0x250 fs/utimes.c:152 SYSC_utimensat fs/utimes.c:184 [inline] SyS_utimensat+0xbf/0x120 fs/utimes.c:168 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x46/0xbb The buggy address belongs to the object at ffff8880b11043c0 which belongs to the cache names_cache of size 4096 The buggy address is located 16 bytes to the right of 4096-byte region [ffff8880b11043c0, ffff8880b11053c0) The buggy address belongs to the page: page:ffffea0002c44100 count:1 mapcount:0 mapping:ffff8880b11043c0 index:0x0 compound_mapcount: 0 flags: 0xfff00000008100(slab|head) raw: 00fff00000008100 ffff8880b11043c0 0000000000000000 0000000100000001 raw: ffffea0002c5ff20 ffffea0002c411a0 ffff88823f8bb200 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8880b1105280: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8880b1105300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff8880b1105380: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ^ ffff8880b1105400: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8880b1105480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================