The patch titled Subject: Squashfs: add more sanity checks in inode lookup has been added to the -mm tree. Its filename is squashfs-add-more-sanity-checks-in-inode-lookup-v2.patch This patch should soon appear at https://ozlabs.org/~akpm/mmots/broken-out/squashfs-add-more-sanity-checks-in-inode-lookup-v2.patch and later at https://ozlabs.org/~akpm/mmotm/broken-out/squashfs-add-more-sanity-checks-in-inode-lookup-v2.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Phillip Lougher <phillip@xxxxxxxxxxxxxxx> Subject: Squashfs: add more sanity checks in inode lookup fix checkpatch issue Link: https://lkml.kernel.org/r/527909353.754618.1612769948607@xxxxxxxxxxxxxxxxxxxxx Reported-by: syzbot+04419e3ff19d2970ea28@xxxxxxxxxxxxxxxxxxxxxxxxx Signed-off-by: Phillip Lougher <phillip@xxxxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- fs/squashfs/export.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/fs/squashfs/export.c~squashfs-add-more-sanity-checks-in-inode-lookup-v2 +++ a/fs/squashfs/export.c @@ -47,7 +47,7 @@ static long long squashfs_inode_lookup(s TRACE("Entered squashfs_inode_lookup, inode_number = %d\n", ino_num); - if(ino_num == 0 || (ino_num - 1) >= msblk->inodes) + if (ino_num == 0 || (ino_num - 1) >= msblk->inodes) return -EINVAL; start = le64_to_cpu(msblk->inode_lookup_table[blk]); _ Patches currently in -mm which might be from phillip@xxxxxxxxxxxxxxx are squashfs-avoid-out-of-bounds-writes-in-decompressors.patch squashfs-add-more-sanity-checks-in-id-lookup.patch squashfs-add-more-sanity-checks-in-inode-lookup.patch squashfs-add-more-sanity-checks-in-inode-lookup-v2.patch squashfs-add-more-sanity-checks-in-xattr-id-lookup.patch squashfs-add-more-sanity-checks-in-xattr-id-lookup-v2.patch