HomeFreeBSD

ext2fs: Fix the size of struct ufid and add a static assert

Description

ext2fs: Fix the size of struct ufid and add a static assert

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 packed the structure and checks via a __Static_assert().

Approved by: so
Security: FreeBSD-SA-25:02.fs
Reviewed by: markj
MFC after: 2 weeks

(cherry picked from commit bfc8e3308bee23d0f7836d57f32ed8d47da02627)
(cherry picked from commit ee931cf4a49c90487c938fa14b856401582a045c)

Details

Provenance
rmacklemAuthored on Dec 6 2024, 2:05 AM
markjCommitted on Wed, Jan 29, 5:02 PM
Parents
rGbb48aba6244c: cd9660: Make sure that struct ifid fits in generic filehandle structure
Branches
Unknown
Tags
Unknown