freebsd-src/sys/fs/tarfs
Dag-Erling Smørgrav 0118b0c8e5 tarfs: Fix checksum calculation.
The checksum code assumed that struct ustar_header filled an entire
block and calculcated the checksum based on the size of the structure.
The header is in fact only 500 bytes long while the checksum covers
the entire block (“logical record” in POSIX terms).  Add padding and
an assertion, and clean up the checksum code.

MFC after:	3 days
Sponsored by:	Juniper Networks, Inc.
Sponsored by:	Klara, Inc.
Reviewed by:	imp
Differential Revision:	https://reviews.freebsd.org/D44226
2024-03-06 17:14:01 +01:00
..
tarfs.h vfs: use __enum_uint8 for vtype and vstate 2023-07-05 15:06:30 +00:00
tarfs_dbg.h tarfs: Use a separate debug bit for bounce buffer usage. 2023-02-16 00:40:45 +00:00
tarfs_io.c tarfs: Don't use IO_DIRECT when reading from tarball. 2023-06-20 10:02:10 +00:00
tarfs_subr.c vfs: use __enum_uint8 for vtype and vstate 2023-07-05 15:06:30 +00:00
tarfs_vfsops.c tarfs: Fix checksum calculation. 2024-03-06 17:14:01 +01:00
tarfs_vnops.c tarfs: Fix deadlock between descent and ascent in tarfs_lookup(). 2023-02-10 17:19:45 +00:00