From: "Arnd Bergmann" <arnd@arndb.de>
To: "Ard Biesheuvel" <ardb+git@google.com>,
linux-arm-kernel@lists.infradead.org
Cc: "Catalin Marinas" <catalin.marinas@arm.com>,
"Will Deacon" <will@kernel.org>,
llvm@lists.linux.dev, "Ard Biesheuvel" <ardb@kernel.org>,
"kernel test robot" <lkp@intel.com>
Subject: Re: [PATCH] arm64: Fix transient negative image size observed by the linker
Date: Tue, 01 Dec 2026 09:52:24 +0100 [thread overview]
Message-ID: <53bf5606-d884-4148-a80a-a71e49c75578@app.fastmail.com> (raw)
In-Reply-To: <20261130175121.1358891-2-ardb+git@google.com>
On Mon, Nov 30, 2026, at 18:51, Ard Biesheuvel wrote:
> From: Ard Biesheuvel <ardb@kernel.org>
>
> LLD occasionally errors out with a mysterious 'assignment to symbol foo
> does not converge', usually with a 16k page size kernel config.
>
> This turns out to be caused by the evaluation of the SPAN_NR_ENTRIES()
> macro using a preliminary value for _end that is below KIMAGE_VADDR,
> resulting in the difference to become negative. Subsequent passes
> usually recover from this, but not always, hence the config-dependent
> error.
>
> So ensure that SPAN_NR_ENTRIES() returns 1 for spans where the end
> address is smaller than or equal to the start address. This never
> occurs on the linker passes that matter, but prevents the iterative
> algorithm that LLD implements from diverging.
>
> This reverts commit dc0a08394804 ("arm64: Work around convergence
> issue with LLD linker"), which is superseded by this change.
>
> Reported-by: kernel test robot <lkp@intel.com>
> Closes:
> https://lore.kernel.org/oe-kbuild-all/20261129124345.eiR8unSx-lkp@intel.com/
> Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Hi Ard,
I've successfully tested one known instance of the bug being fixed by
this. I'll keep my randconfig tests running to ensure there are no
remaining corner cases that still run into the same symptom. If you
don't hear back from my by tomorrow:
Tested-by: Arnd Bergmann <arnd@arndb.de>
next prev parent reply other threads:[~2026-12-01 8:53 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-30 17:51 [PATCH] arm64: Fix transient negative image size observed by the linker Ard Biesheuvel
2026-12-01 8:52 ` Arnd Bergmann [this message]
2026-12-01 13:17 ` Catalin Marinas
2026-12-01 13:29 ` Ard Biesheuvel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=53bf5606-d884-4148-a80a-a71e49c75578@app.fastmail.com \
--to=arnd@arndb.de \
--cc=ardb+git@google.com \
--cc=ardb@kernel.org \
--cc=catalin.marinas@arm.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=lkp@intel.com \
--cc=llvm@lists.linux.dev \
--cc=will@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox