On Tue, Aug 19, 2025 at 08:56:20AM +0200, Thorsten Leemhuis wrote:
On 18.08.25 14:43, Greg Kroah-Hartman wrote:
6.16-stable review patch. If anyone has any objections, please let me know.
From: Ben Hutchings benh@debian.org
[ Upstream commit 6ed5e20466c79e3b3350bae39f678f73cf564b4e ]
Currently we add padding between the bootconfig text and footer to ensure that the footer is aligned within the initramfs image. However, because only the bootconfig data is held in memory, not the full initramfs image, the footer may not be naturally aligned in memory.
This change broke the build for me in both 6.16.y and 6.15.y (did not try 6.12.y, guess it has the same problem)[1]. Reverting it or applying 26dda57695090e ("tools/bootconfig: Cleanup bootconfig footer size calculations") [v6.17-rc1] fixed things for me.
Ciao, Thorsten
[1] see https://download.copr.fedorainfracloud.org/results/@kernel-vanilla/stable-rc...
main.c: In function ‘apply_xbc’: main.c:442:41: error: ‘BOOTCONFIG_FOOTER_SIZE’ undeclared (first use in this function) 442 | static_assert(sizeof(footer) == BOOTCONFIG_FOOTER_SIZE); | ^~~~~~~~~~~~~~~~~~~~~~ main.c:442:41: note: each undeclared identifier is reported only once for each function it appears in main.c:442:23: error: expression in static assertion is not an integer 442 | static_assert(sizeof(footer) == BOOTCONFIG_FOOTER_SIZE); | ^~~~~~ make: *** [Makefile:21: bootconfig] Error 1
Thanks for the info, I'll go drop this from all queues now.
greg k-h