Bcc:
Subject: Re: Patch "s390: vmlinux.lds.S: Reorder sections" has been added to
the 6.17-stable tree
Reply-To:
In-Reply-To: <[email protected]>
Quoted 7 lines · Sasha Levin
This is a note to let you know that I've just added the patch titled
s390:
vmlinux.lds.S: Reorder sectionsto the 6.17-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
Quoted 7 lines
The filename of the patch is:
s390-vmlinux.lds.s-reorder-sections.patch
and it can be found in the queue-6.17 subdirectory.If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
If you take this commit, then I think this commit is also needed:
https://lore.kernel.org/all/20251008-kbuild-fix-modinfo-regressions-v1-3-9fc776c5887c@kernel.org/
Quoted 64 lines
commit
106cf24aac7413e5fb6aa632707ff81451a202c1Author: Alexey Gladkov <[email protected]> Date: Thu Sep 18 10:05:45 2025 +0200s390:
vmlinux.lds.S: Reorder sections[ Upstream commit
8d18ef04f940a8d336fe7915b5ea419c3eb0c0a6]In the upcoming changes, the
ELF_DETAILSmacro will be extended with the ".modinfo" section, which will cause an error:>> s390x-linux-ld: .tmp_vmlinux1: warning: allocated section
.modinfo' not in segment >> s390x-linux-ld: .tmp_vmlinux2: warning: allocated section.modinfo' not in segment >> s390x-linux-ld: vmlinux.unstripped: warning: allocated section `.modinfo' not in segmentThis happens because the .vmlinux.info use :NONE to override the default segment and tell the linker to not put the section in any segment at all.
To avoid this, we need to change the sections order that will be placed in the default segment.
Cc Heiko Carstens <[email protected]>Cc Vasily Gorbik <[email protected]>Cc Alexander Gordeev <[email protected]>Reported-by kernel test robot <[email protected]>Signed-off-by Alexey Gladkov <[email protected]>Acked-by Heiko Carstens <[email protected]>Link https://patch.msgid.link/20d40a7a3a053ba06a54155e777dcde7fdada1db.1758182101.git.legion@kernel.org open hereSigned-off-by Nathan Chancellor <[email protected]>Stable-dep-of:
9338d660b79a("s390/vmlinux.lds.S: Move .vmlinux.info to end of allocatable sections")Signed-off-by Sasha Levin <[email protected]>arch/s390/kernel/vmlinux.lds.S +5
-5@@ -209,6 +209,11 @@ SECTIONS . = ALIGN(PAGE_SIZE); _end = . ; + /* Debugging sections. */ + STABS_DEBUG + DWARF_DEBUG + ELF_DETAILS + /* * uncompressed image info used by the decompressor * it should match struct vmlinux_info@@ -239,11 +244,6 @@ SECTIONS #endif } :NONE - /* Debugging sections. */ - STABS_DEBUG - DWARF_DEBUG - ELF_DETAILS - /* * Make sure that the .got.plt is either completely empty or it * contains only the three reserved double words.
Signature · 1 line
Rgrds, legion