loop2: detected capacity change from 131072 to 0 ================================================================== BUG: KASAN: vmalloc-out-of-bounds in memcpy include/linux/string.h:447 [inline] BUG: KASAN: vmalloc-out-of-bounds in lzo_uncompress+0x44c/0x620 fs/squashfs/lzo_wrapper.c:80 Write of size 4096 at addr ffffc90000fbfffe by task syz-executor.2/11635 CPU: 0 PID: 11635 Comm: syz-executor.2 Not tainted 5.11.0-rc3-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:79 [inline] dump_stack+0x107/0x163 lib/dump_stack.c:120 print_address_description.constprop.0.cold+0x5/0x2f8 mm/kasan/report.c:230 __kasan_report mm/kasan/report.c:396 [inline] kasan_report.cold+0x79/0xd5 mm/kasan/report.c:413 check_memory_region_inline mm/kasan/generic.c:179 [inline] check_memory_region+0x13d/0x180 mm/kasan/generic.c:185 memcpy+0x39/0x60 mm/kasan/shadow.c:65 memcpy include/linux/string.h:447 [inline] lzo_uncompress+0x44c/0x620 fs/squashfs/lzo_wrapper.c:80 squashfs_decompress+0xcc/0x160 fs/squashfs/decompressor_single.c:70 squashfs_read_data+0x1f8/0xe30 fs/squashfs/block.c:214 squashfs_cache_get+0x4a9/0xd50 fs/squashfs/cache.c:110 squashfs_read_metadata+0x134/0x460 fs/squashfs/cache.c:344 squashfs_get_id+0x11c/0x1f0 fs/squashfs/id.c:42 squashfs_new_inode fs/squashfs/inode.c:51 [inline] squashfs_read_inode+0x1b4/0x1b40 fs/squashfs/inode.c:120 squashfs_fill_super+0x1140/0x23b0 fs/squashfs/super.c:310 get_tree_bdev+0x440/0x760 fs/super.c:1291 vfs_get_tree+0x89/0x2f0 fs/super.c:1496 do_new_mount fs/namespace.c:2878 [inline] path_mount+0x13ad/0x20c0 fs/namespace.c:3208 do_mount fs/namespace.c:3221 [inline] __do_sys_mount fs/namespace.c:3429 [inline] __se_sys_mount fs/namespace.c:3406 [inline] __x64_sys_mount+0x27f/0x300 fs/namespace.c:3406 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x460c6a Code: b8 a6 00 00 00 0f 05 48 3d 01 f0 ff ff 0f 83 ad 89 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 8a 89 fb ff c3 66 0f 1f 84 00 00 00 00 00 RSP: 002b:00007fe4a473ba78 EFLAGS: 00000202 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007fe4a473bb10 RCX: 0000000000460c6a RDX: 0000000020000000 RSI: 0000000020000100 RDI: 00007fe4a473bad0 RBP: 00007fe4a473bad0 R08: 00007fe4a473bb10 R09: 0000000020000000 R10: 0000000000000000 R11: 0000000000000202 R12: 0000000020000000 R13: 0000000020000100 R14: 00000000200000c0 R15: 0000000020000180 Memory state around the buggy address: ffffc90000fbff00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffffc90000fbff80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffffc90000fc0000: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 ^ ffffc90000fc0080: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 ffffc90000fc0100: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 ==================================================================