linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* arm crypto .S_shipped files sometimes get rebuilt randomly
@ 2018-03-07 19:25 Leonard Crestez
  2018-03-08  5:00 ` Masahiro Yamada
  2018-03-08 23:19 ` a Heisenbug tale (was: Re: arm crypto .S_shipped files sometimes get rebuilt randomly) Rasmus Villemoes
  0 siblings, 2 replies; 8+ messages in thread
From: Leonard Crestez @ 2018-03-07 19:25 UTC (permalink / raw)
  To: Ard Biesheuvel, Masahiro Yamada, Herbert Xu
  Cc: linux-arm-kernel, linux-kernel

Hello,

I am using a toolchain with a broken/old version of perl which doesn't
include integer.pm and I noticed it triggers occasional build failures
on arch/arm64/crypto/sha512-core.S_shipped. Workarounds are easy, but
if the purpose of the .S_shipped is to avoid the need to have all
dependencies on the build machine then something went wrong?

This was introduced by commit 7918ecef073f ("crypto: arm64/sha2 -
integrate OpenSSL implementations of SHA256/SHA512"). The makefile
rules are not terribly complicated:

quiet_cmd_perlasm = PERLASM $@
      cmd_perlasm = $(PERL) $(<) void $(@)

$(src)/sha512-core.S_shipped: $(src)/sha512-armv8.pl
	$(call cmd,perlasm)

If a decision to rerun the rule is made based on their relative
timestamps but both .S_shipped and sha512-armv8.pl are included in git
then won't the result be essentially random, depending on file checkout
order?

I see random success/failure by just running something like the
following multiple times:
	rm -rf arch/arm64/crypto
	git co -f arch/arm64/crypto
	make -- arch/arm64/crypto/

A reasonable fix might be to simply drop .S_shipped and require a
functional recent version of perl. Then if it fails it will fail
reliably.

--
Regards,
Leonard

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2018-03-12 16:52 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-07 19:25 arm crypto .S_shipped files sometimes get rebuilt randomly Leonard Crestez
2018-03-08  5:00 ` Masahiro Yamada
2018-03-08  7:02   ` Ard Biesheuvel
2018-03-08 14:11     ` Leonard Crestez
2018-03-08 23:19 ` a Heisenbug tale (was: Re: arm crypto .S_shipped files sometimes get rebuilt randomly) Rasmus Villemoes
2018-03-09  9:45   ` Ard Biesheuvel
2018-03-11  0:56     ` a Heisenbug tale Rasmus Villemoes
2018-03-12 16:52     ` a Heisenbug tale (was: Re: arm crypto .S_shipped files sometimes get rebuilt randomly) Leonard Crestez

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).