aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorNathan Chancellor <[email protected]>2025-11-05 22:30:27 +0000
committerNathan Chancellor <[email protected]>2025-11-06 16:50:23 +0000
commita26a6c93edfeee82cb73f55e87d995eea59ddfe8 (patch)
tree3622af9225c4236c55b06444e67a82b19676e026 /net/unix/af_unix.c
parentLinux 6.18-rc4 (diff)
downloadkernel-a26a6c93edfeee82cb73f55e87d995eea59ddfe8.tar.gz
kernel-a26a6c93edfeee82cb73f55e87d995eea59ddfe8.zip
kbuild: Strip trailing padding bytes from modules.builtin.modinfo
After commit d50f21091358 ("kbuild: align modinfo section for Secureboot Authenticode EDK2 compat"), running modules_install with certain versions of kmod (such as 29.1 in Ubuntu Jammy) in certain configurations may fail with: depmod: ERROR: kmod_builtin_iter_next: unexpected string without modname prefix The additional padding bytes to ensure .modinfo is aligned within vmlinux.unstripped are unexpected by kmod, as this section has always just been null-terminated strings. Strip the trailing padding bytes from modules.builtin.modinfo after it has been extracted from vmlinux.unstripped to restore the format that kmod expects while keeping .modinfo aligned within vmlinux.unstripped to avoid regressing the Authenticode calculation fix for EDK2. Cc: [email protected] Fixes: d50f21091358 ("kbuild: align modinfo section for Secureboot Authenticode EDK2 compat") Reported-by: Omar Sandoval <[email protected]> Reported-by: Samir M <[email protected]> Reported-by: Venkat Rao Bagalkote <[email protected]> Closes: https://lore.kernel.org/[email protected]/ Tested-by: Omar Sandoval <[email protected]> Tested-by: Samir M <[email protected]> Tested-by: Venkat Rao Bagalkote <[email protected]> Reviewed-by: Nicolas Schier <[email protected]> Link: https://patch.msgid.link/20251105-kbuild-fix-builtin-modinfo-for-kmod-v1-1-b419d8ad4606@kernel.org Signed-off-by: Nathan Chancellor <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions