linux/fs/squashfs
Sean Nyekjaer c1b2028315 squashfs: fix inode lookup sanity checks
When mouting a squashfs image created without inode compression it fails
with: "unable to read inode lookup table"

It turns out that the BLOCK_OFFSET is missing when checking the
SQUASHFS_METADATA_SIZE agaist the actual size.

Link: https://lkml.kernel.org/r/20210226092903.1473545-1-sean@geanix.com
Fixes: eabac19e40 ("squashfs: add more sanity checks in inode lookup")
Signed-off-by: Sean Nyekjaer <sean@geanix.com>
Acked-by: Phillip Lougher <phillip@squashfs.org.uk>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2021-03-25 09:22:55 -07:00
..
block.c block: rename BIO_MAX_PAGES to BIO_MAX_VECS 2021-03-11 07:47:48 -07:00
cache.c
decompressor.c
decompressor.h
decompressor_multi.c
decompressor_multi_percpu.c
decompressor_single.c
dir.c
export.c squashfs: fix inode lookup sanity checks 2021-03-25 09:22:55 -07:00
file.c
file_cache.c
file_direct.c
fragment.c
id.c squashfs: add more sanity checks in id lookup 2021-02-09 17:26:44 -08:00
inode.c
Kconfig
lz4_wrapper.c
lzo_wrapper.c
Makefile
namei.c
page_actor.c
page_actor.h
squashfs.h
squashfs_fs.h squashfs: fix inode lookup sanity checks 2021-03-25 09:22:55 -07:00
squashfs_fs_i.h
squashfs_fs_sb.h squashfs: add more sanity checks in id lookup 2021-02-09 17:26:44 -08:00
super.c squashfs: add more sanity checks in id lookup 2021-02-09 17:26:44 -08:00
symlink.c
xattr.c
xattr.h squashfs: add more sanity checks in id lookup 2021-02-09 17:26:44 -08:00
xattr_id.c squashfs: add more sanity checks in xattr id lookup 2021-02-09 17:26:44 -08:00
xz_wrapper.c
zlib_wrapper.c
zstd_wrapper.c