]> git.ipfire.org Git - people/arne_f/kernel.git/commit
squashfs: fix xattr id and id lookup sanity checks
authorPhillip Lougher <phillip@squashfs.org.uk>
Thu, 25 Mar 2021 04:37:35 +0000 (21:37 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 30 Mar 2021 12:41:40 +0000 (14:41 +0200)
commit693202c3e15abd6274f6b12fa1b405121cd119de
tree253b6a9351b26734bb2fd73a523df073e15872d9
parent31daf16cbd18ea3d109caa2403f87420884617d0
squashfs: fix xattr id and id lookup sanity checks

commit 8b44ca2b634527151af07447a8090a5f3a043321 upstream.

The checks for maximum metadata block size is missing
SQUASHFS_BLOCK_OFFSET (the two byte length count).

Link: https://lkml.kernel.org/r/2069685113.2081245.1614583677427@webmail.123-reg.co.uk
Fixes: f37aa4c7366e23f ("squashfs: add more sanity checks in id lookup")
Signed-off-by: Phillip Lougher <phillip@squashfs.org.uk>
Cc: Sean Nyekjaer <sean@geanix.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/squashfs/id.c
fs/squashfs/xattr_id.c