HomeFreeBSD

cd9660: Make sure that struct ifid fits in generic filehandle structure

Description

cd9660: Make sure that struct ifid fits in generic filehandle structure

File system specific *fid structures are copied into the generic
struct fid defined in sys/mount.h.
As such, they cannot be larger than struct fid.

This patch packs the structure and checks via a __Static_assert().

Approved by: so
Security: FreeBSD-SA-25:02.fs
Reported by: Kevin Miller <mas@0x194.net>
Reviewed by: olce, imp, kib, emaste
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D47879

(cherry picked from commit 205659c43d87bd42c4a0819fde8f81e8ebba068e)
(cherry picked from commit 54974e731f279941ef7aebd7d30ba2e9299a4056)

Details

Provenance
markjAuthored on Dec 6 2024, 2:03 AM
Reviewer
olce
Differential Revision
D47879: cd9660: Make sure that struct ifid fits in generic filehandle structure
Parents
rG1574c53178e9: audit: Fix short-circuiting in syscallenter()
Branches
Unknown
Tags
Unknown