revert "squashfs: harden sanity check in squashfs_read_xattr_id_table"
authorAndrew Morton <akpm@linux-foundation.org>
Fri, 3 Feb 2023 02:07:35 +0000 (18:07 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Feb 2023 11:57:07 +0000 (12:57 +0100)
commit65d07ae69bd3f8ea3ea634d7fafd8d40d82014f0
tree637b0eea65a696259494ed4b516e9a27708b2b1f
parent50267cf35ba0289333f525ca35fbf22399724d9e
revert "squashfs: harden sanity check in squashfs_read_xattr_id_table"

commit a5b21d8d791cd4db609d0bbcaa9e0c7e019888d1 upstream.

This fix was nacked by Philip, for reasons identified in the email linked
below.

Link: https://lkml.kernel.org/r/68f15d67-8945-2728-1f17-5b53a80ec52d@squashfs.org.uk
Fixes: 72e544b1b28325 ("squashfs: harden sanity check in squashfs_read_xattr_id_table")
Cc: Alexey Khoroshilov <khoroshilov@ispras.ru>
Cc: Fedor Pchelkin <pchelkin@ispras.ru>
Cc: Phillip Lougher <phillip@squashfs.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/squashfs/xattr_id.c