]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
xfs: add static size checks for ioctl UABI
authorWilfred Mallawa <wilfred.mallawa@wdc.com>
Wed, 11 Feb 2026 03:29:04 +0000 (13:29 +1000)
committerCarlos Maiolino <cem@kernel.org>
Wed, 25 Feb 2026 12:58:50 +0000 (13:58 +0100)
commit650b774cf94495465d6a38c31bb1a6ce697b6b37
tree3136c694b06f37e13ba5bd6793911ef7ea023416
parente97cbf863d8918452c9f81bebdade8d04e2e7b60
xfs: add static size checks for ioctl UABI

The ioctl structures in libxfs/xfs_fs.h are missing static size checks.
It is useful to have static size checks for these structures as adding
new fields to them could cause issues (e.g. extra padding that may be
inserted by the compiler). So add these checks to xfs/xfs_ondisk.h.

Due to different padding/alignment requirements across different
architectures, to avoid build failures, some structures are ommited from
the size checks. For example, structures with "compat_" definitions in
xfs/xfs_ioctl32.h are ommited.

Signed-off-by: Wilfred Mallawa <wilfred.mallawa@wdc.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
fs/xfs/libxfs/xfs_ondisk.h