[PATCH] fs/squashfs: Only use export table if available
Tom Rini
trini at konsulko.com
Thu Jan 12 16:18:59 CET 2023
On Sun, Dec 25, 2022 at 11:05:24AM +0100, David Oberhollenzer wrote:
> For a squashfs filesystem, the fragment table is followed by
> the following tables: NFS export table, ID table, xattr table.
>
> The export and xattr tables are both completely optional, but
> the ID table is mandatory. The Linux implementation refuses to
> mount the image if the ID table is missing. Tables that are no
> present have their location in the super block set
> to 0xFFFFFFFFFFFFFFFF.
>
> The u-boot implementation previously assumed that it can always
> rely on the export table location as an upper bound for the fragment
> table, trying (and failing) to read past filesystem bounds if it
> is not present.
>
> This patch changes the driver to use the ID table instead and only
> use the export table location if it lies between the two.
>
> Signed-off-by: David Oberhollenzer <goliath at infraroot.at>
> Reviewed-by: Miquel Raynal <miquel.raynal at bootlin.com>
Applied to u-boot/master, thanks!
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20230112/b4556d5c/attachment.sig>
More information about the U-Boot
mailing list