Commit 0063ac62 authored by Phillip Lougher's avatar Phillip Lougher Committed by Zheng Zengkai
Browse files

squashfs: fix xattr id and id lookup sanity checks

stable inclusion
from stable-5.10.27
commit 269042e8ffed672e29999789debed357efda72af
bugzilla: 51493

--------------------------------

commit 8b44ca2b 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: f37aa4c7 ("squashfs: add more sanity checks in id lookup")
Signed-off-by: default avatarPhillip Lougher <phillip@squashfs.org.uk>
Cc: Sean Nyekjaer <sean@geanix.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarChen Jun <chenjun102@huawei.com>
Acked-by: default avatar  Weilong Chen <chenweilong@huawei.com>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
parent 7fe19bb6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment