Skip to contentSkip to conversation

alloc_tag-avoid-implicit-padding-in-uapi.patch removed from -mm tree

merged mm-hotfixes-stable Andrew Morton 1 participant 1 message Sep 26

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: alloc_tag: avoid implicit padding in uapi
has been removed from the -mm tree. Its filename was
alloc_tag-avoid-implicit-padding-in-uapi.patch

This patch was dropped because it was merged into the mm-hotfixes-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm

------------------------------------------------------
From: Arnd Bergmann <[email protected]>
Subject: alloc_tag: avoid implicit padding in uapi
Date: Tue, 15 Sep 2026 22:23:47 +0200

The implied padding causes a harmless warning when testing the uapi headers with -Wpadded that could in theory indicate incompatibilities or data leaks:

./usr/include/linux/alloc_tag.h:41:1: error: padding struct size to alignment boundary with 7 bytes [-Werror=padded]

The code here is fine, but it's better to make the padding explicit and avoid the warning here.

---

 include/uapi/linux/alloc_tag.h |    1 +
 1 file changed, 1 insertion(+)
include/uapi/linux/alloc_tag.h renamed from include/uapi/linux/alloc_tag.h~alloc_tag-avoid-implicit-padding-in-uapi +1 -0
@@ -38,6 +38,7 @@ struct allocinfo_counter {
 	__u64 bytes;
 	__u64 calls;
 	__u8 accurate;
+	__u8 pad[7];
 } __attribute__((aligned(8)));
 
 struct allocinfo_tag_data {

_

Patches currently in -mm which might be from [email protected] are

mm-vmscan-avoid-false-positive-wuninitialized-warning-again.patch