From: Eric Biggers <ebiggers@kernel.org>
To: Arnd Bergmann <arnd@kernel.org>
Cc: Thomas Gleixner <tglx@kernel.org>, Ingo Molnar <mingo@redhat.com>,
Borislav Petkov <bp@alien8.de>,
Dave Hansen <dave.hansen@linux.intel.com>,
x86@kernel.org, Kees Cook <kees@kernel.org>,
Thomas Huth <thuth@redhat.com>, Arnd Bergmann <arnd@arndb.de>,
"H. Peter Anvin" <hpa@zytor.com>,
linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org
Subject: Re: [PATCH] x86/purgatory: Compile purgatory with -D__DISABLE_EXPORTS
Date: Fri, 25 Sep 2026 12:16:35 -0700 [thread overview]
Message-ID: <20260925191635.GC2060@quark> (raw)
In-Reply-To: <20260925130217.3912329-1-arnd@kernel.org>
On Fri, Sep 25, 2026 at 03:01:49PM +0200, Arnd Bergmann wrote:
> From: Arnd Bergmann <arnd@arndb.de>
>
> A previous patch fixed compile-time issues by setting __NO_FORTIFY
> for all of the purgatory code, but this is insufficient and still
> leaves build failures that appeared recently in linux-next:
>
> ld.lld: error: undefined symbol: __memset
> >>> referenced by string.c
> >>> arch/x86/purgatory/purgatory.ro:(__UNIQUE_ID_addressable___memset_2)
>
> ld.lld: error: undefined symbol: __memmove
> >>> referenced by string.c
> >>> arch/x86/purgatory/purgatory.ro:(__UNIQUE_ID_addressable___memmove_3)
>
> Set __DISABLE_EXPORTS as well, to avoid pulling in a reference to the
> wrong string functions.
>
> Fixes: 65cbe410d312 ("x86/purgatory: Compile purgatory with -D__NO_FORTIFY")
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
> ---
> arch/x86/purgatory/Makefile | 4 +---
> 1 file changed, 1 insertion(+), 3 deletions(-)
>
I dropped the patch this fixes already, as I mentioned at
https://lore.kernel.org/linux-crypto/20260924174911.GA1978@sol/ . It's
gone from linux-next now. I think Thomas Huth is planning to send a
fixed version, together with the two patches that depend on this.
But compiling all of purgatory (and not just sha256.o as is the status
quo) with -D__NO_FORTIFY -D__DISABLE_EXPORTS sounds good to me.
Alternatively it could be just sha256.o and purgatory.o specifically.
But it seems it might as well just be all files.
- Eric
prev parent reply other threads:[~2026-09-25 19:16 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-25 13:01 Arnd Bergmann
2026-09-25 19:16 ` Eric Biggers [this message]
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=20260925191635.GC2060@quark \
--to=ebiggers@kernel.org \
--cc=arnd@arndb.de \
--cc=arnd@kernel.org \
--cc=bp@alien8.de \
--cc=dave.hansen@linux.intel.com \
--cc=hpa@zytor.com \
--cc=kees@kernel.org \
--cc=linux-hardening@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=tglx@kernel.org \
--cc=thuth@redhat.com \
--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
all inboxes | Powered by JetHome®