From: "Jason A. Donenfeld" <Jason@zx2c4.com>
To: Mark Brown <broonie@kernel.org>
Cc: Shuah Khan <shuah@kernel.org>,
linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] selftest/vDSO: Fix cross build for the random tests
Date: Fri, 30 Aug 2024 17:30:07 +0200 [thread overview]
Message-ID: <ZtHlf1qaXTPwJQkJ@zx2c4.com> (raw)
In-Reply-To: <20240830-vdso-chacha-build-v1-1-78f93d2a142f@kernel.org>
On Fri, Aug 30, 2024 at 03:06:35PM +0100, Mark Brown wrote:
> Unlike the check for the standalone x86 test the check for building the
> vDSO getrandom and chacaha tests looks at the architecture for the host
> rather than the architecture for the target when deciding if they should
> be built. Since the chacha test includes some assembler code this means
> that cross building with x86 as either the target or host is broken. Use
> a check for ARCH instead.
>
> Fixes: 4920a2590e91 ("selftests/vDSO: add tests for vgetrandom")
> Signed-off-by: Mark Brown <broonie@kernel.org>
Thanks for the patch. Seems reasonable; I'll queue it up.
> ---
> The x86_64 build is still broken for me because nothing installs
> tools/arch/x86_64/vdso/vgetrandom-chacha.S (I beleive it's supposed to
> be copied from ./arch/x86/entry/vdso/vgetrandom-chacha.S but I don't see
> how?) but this at least fixes all the other architectures.
There should be a symlink installed for that. Are you using this tree?
https://git.kernel.org/pub/scm/linux/kernel/git/crng/random.git
That's where all these fixups are going for 6.12. (And yea, there are a
lot.)
next prev parent reply other threads:[~2024-08-30 15:30 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-30 14:06 [PATCH] selftest/vDSO: Fix cross build for the random tests Mark Brown
2024-08-30 15:30 ` Jason A. Donenfeld [this message]
2024-08-30 15:42 ` Mark Brown
2024-08-30 15:58 ` Jason A. Donenfeld
2024-08-30 15:34 ` Jason A. Donenfeld
2024-08-30 15:43 ` Mark Brown
2024-08-30 15:54 ` [PATCH v2] selftests: vDSO: fix cross build for getrandom and chacha tests Jason A. Donenfeld
2024-08-30 16:05 ` Mark Brown
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=ZtHlf1qaXTPwJQkJ@zx2c4.com \
--to=jason@zx2c4.com \
--cc=broonie@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-kselftest@vger.kernel.org \
--cc=shuah@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