From: Nam Le <lehoangnamtep@gmail.com>
To: Borislav Petkov <bp@alien8.de>
Cc: Segher Boessenkool <segher@kernel.crashing.org>,
Michael Matz <matz@suse.de>,
tglx@kernel.org, mingo@redhat.com, linux-kernel@vger.kernel.org,
x86@kernel.org, linux-toolchains@vger.kernel.org
Subject: Re: [PATCH] x86/boot: Discard .interp sections
Date: Wed, 8 Apr 2026 14:30:06 +0100 [thread overview]
Message-ID: <5f853c8f-67fe-4a9f-bc8b-4e5c80f4090e@gmail.com> (raw)
In-Reply-To: <20260408124950.GCadZO7qkTh83ojTHr@fat_crate.local>
On 08/04/2026 13:49, Borislav Petkov wrote:
> On Wed, Apr 08, 2026 at 01:01:24PM +0100, Nam Le wrote:
>
>> Link: https://github.com/llvm/llvm-project/issues/78873#issuecomment-1902794108
>
> From that page:
>
> "I guess the only choice is patching the kernel then."
>
> People better delete this thinking from their heads! The kernel doesn't mop up
> for everyone else's silliness.
>
>> Normally I would never add this flag, but some package manager (specifically
>> Nix) adds --dynamic-linker as a default when building any applications.
>> Ideally this should be a fix on LLVM's side of things since its a pretty
>> significant difference in behavior between ld.lld and ld.bfd, but for the
>> meantime I believe this is a minimal enough change to fix the issue.
>
> I'd like for your commit message to explain why *exactly* your patch exists.
> I.e., the Nix use case.
>
>> Thank you for the advice! Should I add a comment and submit a v2 patch for
>> the change?
>
> Michael's suggestion of using --no-dynamic-linker makes more sense to me. We
> usually protect ourselves this way from the toolchain - by turning off flags
> explicitly.
>
> Thx.
>
I am hesitant on modifying the Makefile to add the --no-dynamic-linker
flag since a previous kernel patch proposed this exact change but was
rejected a while back:
Link: https://lore.kernel.org/CAFP8O3Kqx-gdTBFn_hesWzd-6NCpGEz1=fMoJXuX+n4c7sp0Bw@mail.gmail.com/
Should I still go for the --no-dynamic-linker change regardless? Seems like
progress on this issue has stalled on all ends (Nix, LLVM, and the
kernel) ever since 2024, and I just happened to stumble on it again
recently. I'd be happy to amend the commit message to
include more context on the Nix use case.
next prev parent reply other threads:[~2026-04-08 13:30 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20260407233957.2263551-1-lehoangnamtep@gmail.com>
2026-04-08 9:52 ` [PATCH] x86/boot: Discard .interp sections Borislav Petkov
2026-04-08 9:58 ` Segher Boessenkool
2026-04-08 10:09 ` Borislav Petkov
2026-04-08 12:01 ` Nam Le
2026-04-08 12:49 ` Borislav Petkov
2026-04-08 13:30 ` Nam Le [this message]
2026-04-08 15:21 ` Borislav Petkov
2026-04-08 15:57 ` Nam Le
2026-04-08 17:20 ` Borislav Petkov
2026-04-08 12:09 ` Michael Matz
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=5f853c8f-67fe-4a9f-bc8b-4e5c80f4090e@gmail.com \
--to=lehoangnamtep@gmail.com \
--cc=bp@alien8.de \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-toolchains@vger.kernel.org \
--cc=matz@suse.de \
--cc=mingo@redhat.com \
--cc=segher@kernel.crashing.org \
--cc=tglx@kernel.org \
--cc=x86@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