================================================================== BUG: KFENCE: out-of-bounds in squashfs_inode_lookup fs/squashfs/export.c:43 [inline] BUG: KFENCE: out-of-bounds in squashfs_export_iget+0x47/0x120 fs/squashfs/export.c:69 Out-of-bounds access at 0xffff88823bdafff8 (8B left of kfence-#215): squashfs_inode_lookup fs/squashfs/export.c:43 [inline] squashfs_export_iget+0x47/0x120 fs/squashfs/export.c:69 exportfs_decode_fh+0x53/0x2f0 fs/exportfs/expfs.c:434 do_handle_to_path fs/fhandle.c:152 [inline] handle_to_path fs/fhandle.c:207 [inline] do_handle_open+0x12e/0x350 fs/fhandle.c:223 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 kfence-#215 [0xffff88823bdb0000-0xffff88823bdb0007, size=8, cache=kmalloc-8] allocated by task 22961: kmalloc include/linux/slab.h:557 [inline] squashfs_read_table+0x36/0x120 fs/squashfs/cache.c:413 squashfs_read_inode_lookup_table+0x6c/0x90 fs/squashfs/export.c:131 squashfs_fill_super+0x3bf/0x8f0 fs/squashfs/super.c:255 get_tree_bdev+0x1b0/0x2a0 fs/super.c:1344 vfs_get_tree+0x1d/0xd0 fs/super.c:1549 do_new_mount fs/namespace.c:2875 [inline] path_mount+0x75e/0xac0 fs/namespace.c:3205 do_mount+0x70/0x90 fs/namespace.c:3218 __do_sys_mount fs/namespace.c:3426 [inline] __se_sys_mount fs/namespace.c:3403 [inline] __x64_sys_mount+0xbf/0xe0 fs/namespace.c:3403 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 CPU: 0 PID: 22961 Comm: syz-executor.0 Not tainted 5.10.0-rc6-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:squashfs_inode_lookup fs/squashfs/export.c:44 [inline] RIP: 0010:squashfs_export_iget+0x47/0x120 fs/squashfs/export.c:69 Code: 44 00 00 48 8b 93 78 06 00 00 8d 45 ff 48 98 48 c1 e0 03 89 c1 48 c1 f8 0d 48 8b 92 e8 00 00 00 81 e1 ff 1f 00 00 89 4c 24 04 <48> 8b 04 c2 48 89 44 24 08 0f 1f 44 00 00 48 8d 54 24 08 41 b8 08 RSP: 0018:ffffc9000123bd60 EFLAGS: 00010202 RAX: ffffffffffffffff RBX: ffff88811ebab000 RCX: 0000000000001ff8 RDX: ffff88823bdb0000 RSI: 0000000000000000 RDI: ffff88811ebab000 RBP: 0000000000000000 R08: ffffffff81563930 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: ffff88810c9c7be8 R13: ffff88811eb09160 R14: 0000000000000002 R15: ffffffff81563930 FS: 00007f5e4c7ab700(0000) GS:ffff88813bc00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: ffff88823bdafff8 CR3: 000000011eae0000 CR4: 00000000001506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: exportfs_decode_fh+0x53/0x2f0 fs/exportfs/expfs.c:434 do_handle_to_path fs/fhandle.c:152 [inline] handle_to_path fs/fhandle.c:207 [inline] do_handle_open+0x12e/0x350 fs/fhandle.c:223 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x45e0f9 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:00007f5e4c7aac68 EFLAGS: 00000246 ORIG_RAX: 0000000000000130 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 000000000045e0f9 RDX: 0000000000000000 RSI: 0000000020000280 RDI: 0000000000000005 RBP: 000000000119bfc0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000119bf8c R13: 00007ffd4cbea74f R14: 00007f5e4c7ab9c0 R15: 000000000119bf8c ==================================================================