linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Leonard Crestez <leonard.crestez@nxp.com>
To: Ard Biesheuvel <ard.biesheuvel@linaro.org>,
	Rasmus Villemoes <linux@rasmusvillemoes.dk>,
	Russell King <linux@armlinux.org.uk>,
	"Masahiro Yamada" <yamada.masahiro@socionext.com>
Cc: Herbert Xu <herbert@gondor.apana.org.au>,
	"linux-arm-kernel@lists.infradead.org"
	<linux-arm-kernel@lists.infradead.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Subject: Re: a Heisenbug tale (was: Re: arm crypto .S_shipped files sometimes get rebuilt randomly)
Date: Mon, 12 Mar 2018 18:52:12 +0200	[thread overview]
Message-ID: <1520873532.28521.18.camel@nxp.com> (raw)
In-Reply-To: <CAKv+Gu8z2aMeGEi5Jbi+CBpbyMAmxHnZCO+URrVFgb33tddppw@mail.gmail.com>

On Fri, 2018-03-09 at 09:45 +0000, Ard Biesheuvel wrote:
> On 8 March 2018 at 23:19, Rasmus Villemoes <linux@rasmusvillemoes.dk> wrote:
> > On 2018-03-07 20:25, Leonard Crestez wrote:

> > > 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?

> > About a year ago, I debugged a very similar problem for a customer. The
> > build system (an OpenEmbedded clone) did something like
> > 
> > (1) git clone -n ...
> > (2) git checkout -q $somerev
> > (3) make foo_config
> > (4) make vmlinux
> > (5) make LOADADDR=0x1234 uImage
> > (6) make modules
> > ...
> > 
> > The symptoms, when the bug appeared, was that the kernel was built with
> > some version string "4.5.6-01234-g0abcdef", but the modules (both the
> > native kernel modules and those built externally using the linux-dev
> > package) ended up in /lib/modules/4.5.6-01234-g0abcdef-dirty.

> I had no idea that _shipped files were causing issues like this, and
> AFAICT, this is not specific to this use case in arch/arm/crypto,
> right?
> 
> Russell, would you mind if we removed the _shipped.S file here and
> just assume that perl is available?

It would be good for the fix to get into stable branches so that
downstreams don't each have to invent workarounds. Isn't it much easier
to do this with an #ifdef REGENERATE_ARM_CRYPTO_ASM? It might even be a
requirement for getting into stable.

The _shipped.S stuff can be removed later just for upstream.

--
Regards,
Leonard

      parent reply	other threads:[~2018-03-12 16:52 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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     ` Leonard Crestez [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=1520873532.28521.18.camel@nxp.com \
    --to=leonard.crestez@nxp.com \
    --cc=ard.biesheuvel@linaro.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=herbert@gondor.apana.org.au \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@armlinux.org.uk \
    --cc=linux@rasmusvillemoes.dk \
    --cc=yamada.masahiro@socionext.com \
    /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;
as well as URLs for NNTP newsgroup(s).