================================================================== BUG: KASAN: slab-out-of-bounds in squashfs_get_id+0xb9/0x1c0 fs/squashfs/id.c:38 Read of size 8 at addr ffff8880139ddfd8 by task syz-executor029/8471 CPU: 0 PID: 8471 Comm: syz-executor029 Not tainted 5.10.0-rc2-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+0x137/0x1be lib/dump_stack.c:118 print_address_description+0x6c/0x660 mm/kasan/report.c:385 __kasan_report mm/kasan/report.c:545 [inline] kasan_report+0x136/0x1e0 mm/kasan/report.c:562 squashfs_get_id+0xb9/0x1c0 fs/squashfs/id.c:38 squashfs_new_inode fs/squashfs/inode.c:51 [inline] squashfs_read_inode+0x19d/0x2690 fs/squashfs/inode.c:120 squashfs_fill_super+0x1665/0x1c90 fs/squashfs/super.c:310 get_tree_bdev+0x3e9/0x5f0 fs/super.c:1344 vfs_get_tree+0x88/0x270 fs/super.c:1549 do_new_mount fs/namespace.c:2875 [inline] path_mount+0x17b4/0x2a20 fs/namespace.c:3205 do_mount fs/namespace.c:3218 [inline] __do_sys_mount fs/namespace.c:3426 [inline] __se_sys_mount+0x28c/0x320 fs/namespace.c:3403 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x446d2a Code: b8 08 00 00 00 0f 05 48 3d 01 f0 ff ff 0f 83 fd ad fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 0f 83 da ad fb ff c3 66 0f 1f 84 00 00 00 00 00 RSP: 002b:00007ffe07d05238 EFLAGS: 00000293 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007ffe07d05290 RCX: 0000000000446d2a RDX: 0000000020000000 RSI: 0000000020000100 RDI: 00007ffe07d05250 RBP: 00007ffe07d05250 R08: 00007ffe07d05290 R09: 00007ffe00000015 R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000001 R13: 0000000000000004 R14: 0000000000000003 R15: 0000000000000003 Allocated by task 6638: kasan_save_stack mm/kasan/common.c:48 [inline] kasan_set_track mm/kasan/common.c:56 [inline] __kasan_kmalloc+0x111/0x140 mm/kasan/common.c:461 __kmalloc+0x170/0x290 mm/slub.c:3970 kmalloc include/linux/slab.h:557 [inline] kzalloc+0x1d/0x30 include/linux/slab.h:664 smk_parse_smack+0x18e/0x220 security/smack/smack_access.c:468 smk_import_entry+0x22/0x400 security/smack/smack_access.c:564 smk_fetch security/smack/smack_lsm.c:298 [inline] smack_d_instantiate+0x6af/0xcc0 security/smack/smack_lsm.c:3409 security_d_instantiate+0xa5/0x100 security/security.c:1973 d_instantiate+0x51/0x90 fs/dcache.c:1973 shmem_symlink+0x53e/0x6f0 mm/shmem.c:3191 vfs_symlink+0x36f/0x500 fs/namei.c:3960 do_symlinkat+0x18b/0x420 fs/namei.c:3987 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 The buggy address belongs to the object at ffff8880139ddfc8 which belongs to the cache kmalloc-8 of size 8 The buggy address is located 8 bytes to the right of 8-byte region [ffff8880139ddfc8, ffff8880139ddfd0) The buggy address belongs to the page: page:0000000086e48f61 refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff8880139dd1e0 pfn:0x139dd flags: 0xfff00000000200(slab) raw: 00fff00000000200 ffffea000050e180 0000000700000007 ffff888010441c80 raw: ffff8880139dd1e0 0000000080660047 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8880139dde80: fc fb fc fc fc fc fb fc fc fc fc fb fc fc fc fc ffff8880139ddf00: fb fc fc fc fc fa fc fc fc fc fb fc fc fc fc 00 >ffff8880139ddf80: fc fc fc fc fa fc fc fc fc fb fc fc fc fc fc fc ^ ffff8880139de000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff8880139de080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ==================================================================