On Thu, Jun 02, 2022 at 09:24:18PM +0200, Thomas Sattler wrote:
with these three diffs reverted, I was able to boot all affected 5.17.x kernels (x={6,7,8,9,10,11,12})
Am 02.06.22 um 18:42 schrieb Thomas Sattler:
some more information:
$ cat /proc/version Linux version 5.17.5 (root@dragon) (x86_64-pc-linux-gnu-gcc (Gentoo 11.2.1_p20220115 p4) 11.2.1 20220115, GNU ld (Gentoo 2.37_p1 p2) 2.37) #130 SMP PREEMPT Thu Apr 28 10:50:24 CEST 2022
$ uname -mi x86_64 GenuineIntel
I tried to compile 5.17.6 without the three mentioned diffs which modify the following files:
tools/objtool/check.c and tools/objtool/elf.c and tools/objtool/include/objtool/elf.h
and was then able to successfully boot 5.17.6.
5.17.6 has commit 60d2b0b1018a ("objtool: Fix code relocs vs weak symbols"), which has a known issue that is fixed with commit ead165fa1042 ("objtool: Fix symbol creation"). If you apply ead165fa1042 on 5.17.6 or newer, does that resolve your issue?
ead165fa1042 is tagged for stable but I don't think Greg picks up patches from mainline until they are in a tagged -rc release.
Cheers, Nathan