linux-yocto/include
Arnd Bergmann d1b24a5766 ext4: fix ext4_tune_sb_params padding
commit cd16edba1c6a24af138e1a5ded2711231fffa99f upstream.

The padding at the end of struct ext4_tune_sb_params is architecture
specific and in particular is different between x86-32 and x86-64,
since the __u64 member only enforces struct alignment on the latter.

This shows up as a new warning when test-building the headers with
-Wpadded:

include/linux/ext4.h:144:1: error: padding struct size to alignment boundary with 4 bytes [-Werror=padded]

All members inside the structure are naturally aligned, so the only
difference here is the amount of padding at the end. Make the padding
explicit, to have a consistent sizeof(struct ext4_tune_sb_params) of
232 on all architectures and avoid adding compat ioctl handling for
EXT4_IOC_GET_TUNE_SB_PARAM/EXT4_IOC_SET_TUNE_SB_PARAM.

This is an ABI break on x86-32 but hopefully this can go into 6.18.y early
enough as a fixup so no actual users will be affected.  Alternatively, the
kernel could handle the ioctl commands for both sizes (232 and 228 bytes)
on all architectures.

Fixes: 04a91570ac ("ext4: implemet new ioctls to set and get superblock parameters")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Jan Kara <jack@suse.cz>
Link: https://patch.msgid.link/20251204101914.1037148-1-arnd@kernel.org
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Cc: stable@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2026-01-23 11:21:28 +01:00
..
acpi Revert "ACPI: processor: idle: Optimize ACPI idle driver registration" 2025-11-25 16:08:06 +01:00
asm-generic rqspinlock: Enclose lock/unlock within lock entry acquisitions 2025-12-18 14:03:28 +01:00
clocksource
crypto crypto: scatterwalk - Fix memcpy_sglist() to always succeed 2026-01-02 12:57:08 +01:00
cxl
drm drm/bridge: dw-hdmi-qp: Fix spurious IRQ on resume 2026-01-23 11:21:14 +01:00
dt-bindings dt-bindings: clock: mmcc-sdm660: Add missing MDSS reset 2026-01-02 12:57:07 +01:00
hyperv
keys
kunit kunit: Enforce task execution in {soft,hard}irq contexts 2026-01-08 10:16:50 +01:00
kvm
linux usb: core: add USB_QUIRK_NO_BOS for devices that hang on BOS descriptor 2026-01-23 11:21:27 +01:00
math-emu
media media: v4l2-mem2mem: Fix outdated documentation 2026-01-02 12:57:11 +01:00
memory
misc
net ipv4: ip_tunnel: spread netdev_lockdep_set_classes() 2026-01-23 11:21:15 +01:00
pcmcia
ras RAS: Report all ARM processor CPER information to userspace 2025-12-18 14:03:09 +01:00
rdma
rv
scsi scsi: core: Fix error handler encryption support 2026-01-23 11:21:23 +01:00
soc
sound ALSA: pcm: Improve the fix for race of buffer access at PCM OSS layer 2026-01-23 11:21:23 +01:00
target scsi: target: Fix LUN/device R/W and total command stats 2025-12-18 14:02:48 +01:00
trace btrfs: fix NULL dereference on root when tracing inode eviction 2026-01-17 16:35:18 +01:00
uapi ext4: fix ext4_tune_sb_params padding 2026-01-23 11:21:28 +01:00
ufs scsi: ufs: core: Move the ufshcd_enable_intr() declaration 2025-12-18 14:02:36 +01:00
vdso
video
xen
Kbuild