From: Thomas Huth <thuth@redhat.com>
To: Eric Biggers <ebiggers@kernel.org>, 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>,
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: Mon, 28 Sep 2026 10:34:31 +0200 [thread overview]
Message-ID: <5a5e160c-e3ec-4142-9e19-63b49ad922c4@redhat.com> (raw)
In-Reply-To: <20260925191635.GC2060@quark>
On 25/09/2026 21.16, Eric Biggers wrote:
> 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.
Yes, I think that's the way to go, and I've now also verified that the
change is working. I've now send a new version of the patch here:
https://lore.kernel.org/lkml/20260928083055.104266-2-thuth@redhat.com/
Thomas
prev parent reply other threads:[~2026-09-28 8:34 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-25 13:01 Arnd Bergmann
2026-09-25 19:16 ` Eric Biggers
2026-09-28 8:34 ` Thomas Huth [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=5a5e160c-e3ec-4142-9e19-63b49ad922c4@redhat.com \
--to=thuth@redhat.com \
--cc=arnd@arndb.de \
--cc=arnd@kernel.org \
--cc=bp@alien8.de \
--cc=dave.hansen@linux.intel.com \
--cc=ebiggers@kernel.org \
--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=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®