From: Shuah Khan <skhan@linuxfoundation.org>
To: Borislav Petkov <bp@alien8.de>
Cc: thomas.lendacky@amd.com, David Gow <davidgow@google.com>,
"x86@kernel.org" <x86@kernel.org>,
Brendan Higgins <brendan.higgins@linux.dev>,
linux-kernel@vger.kernel.org,
Thomas Gleixner <tglx@linutronix.de>,
Ingo Molnar <mingo@redhat.com>,
Shuah Khan <skhan@linuxfoundation.org>
Subject: Re: sev_es_trampoline_start undefined symbol referenced errors during kunit run
Date: Tue, 15 Apr 2025 08:25:09 -0600 [thread overview]
Message-ID: <995cfca8-c261-4cf0-96f6-b33ca5403ee5@linuxfoundation.org> (raw)
In-Reply-To: <20250414230047.GHZ_2Tnysv9zCD6-tX@fat_crate.local>
On 4/14/25 17:00, Borislav Petkov wrote:
> On Mon, Apr 14, 2025 at 04:28:44PM -0600, Shuah Khan wrote:
>> Hi Tom,
>>
>> I have been seeing sev_es_trampoline_start undefined symbol referenced errors
>> during the following kunit test runs.
>>
>> ./tools/testing/kunit/kunit.py run --arch x86_64
>> ./tools/testing/kunit/kunit.py run --alltests --arch x86_64
>>
>> The error is here:
>>
>> ERROR:root:ld:arch/x86/realmode/rm/realmode.lds:236: undefined symbol `sev_es_trampoline_start' referenced in expression
>> make[6]: *** [../arch/x86/realmode/rm/Makefile:49: arch/x86/realmode/rm/realmode.elf] Error 1
>> make[5]: *** [../arch/x86/realmode/Makefile:22: arch/x86/realmode/rm/realmode.bin] Error 2
>> make[4]: *** [../scripts/Makefile.build:461: arch/x86/realmode] Error 2
>>
>
>
> The real problem looks like that pasyms.h thing which gets included at the end
> of realmode.lds and which contains that symbol.
>
> How exactly can this be reproduced? Exact steps please.
Run these kunit tests - not out of tree. Tree has to be
clean to run these tests. Otherwise you are prompted to
run mrproper.
./tools/testing/kunit/kunit.py run --arch x86_64
or
./tools/testing/kunit/kunit.py run --alltests --arch x86_64
The tree I see this every single time I do my tree testing.
thanks,
-- Shuah
next prev parent reply other threads:[~2025-04-15 14:25 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-14 22:28 sev_es_trampoline_start undefined symbol referenced errors during kunit run Shuah Khan
2025-04-14 23:00 ` Borislav Petkov
2025-04-15 8:54 ` David Gow
2025-04-15 14:25 ` Shuah Khan [this message]
2025-04-15 18:01 ` Borislav Petkov
2025-04-15 19:06 ` Shuah Khan
2025-04-15 22:17 ` Borislav Petkov
2025-04-15 22:29 ` Shuah Khan
2025-04-16 0:32 ` David Gow
2025-04-16 1:09 ` Shuah Khan
2025-04-16 9:18 ` Borislav Petkov
2025-04-16 0:54 ` Shuah Khan
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=995cfca8-c261-4cf0-96f6-b33ca5403ee5@linuxfoundation.org \
--to=skhan@linuxfoundation.org \
--cc=bp@alien8.de \
--cc=brendan.higgins@linux.dev \
--cc=davidgow@google.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=tglx@linutronix.de \
--cc=thomas.lendacky@amd.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