]> git.baikalelectronics.ru Git - 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)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 25 Mar 2021 16:22:55 +0000 (09:22 -0700)
commitd6e68aaada6464b28b0fd50ce84aa3ccfa8a3c19
treeeca98126b8d20ef308348c3916f66807cc253f55
parent80a3b395dfff5accce68547ef6c35267a1806be9
squashfs: fix xattr id and id lookup sanity checks

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: fedd994687a3ddf ("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>
fs/squashfs/id.c
fs/squashfs/xattr_id.c