All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ben Hutchings <ben@decadent.org.uk>
To: stable@vger.kernel.org
Subject: [stable 4.9-4.19] Fix arm64 build regression in xen-netback
Date: Mon, 1 Mar 2021 20:56:07 +0100	[thread overview]
Message-ID: <YD1G1zQT/H+CUwXF@decadent.org.uk> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 1092 bytes --]

The arm64 implementations of some atomic operations had incorrect
assembly constraints.  Depending on the compiler version and
options, this can result in a build failure for some parameter
values:

/tmp/ccDOb5nB.s: Assembler messages:
/tmp/ccDOb5nB.s:2214: Error: immediate out of range at operand 3 -- `bic w1,w0,5'

This has specifically been seen when building a 4.9 stable kernel with
gcc 6.3.0, since commit 23025393dbeb "xen/netback: use lateeoi irq
binding" was applied.  I can also reproduce it with 4.14.

I cannot reproduce it with 4.19, but the same fixes are applicable and
the issue presumably could occur when using different compiler
options.

I haven't done anything about the 4.4 branch since it does not have
that xen-netback fix and it has significantly different definitions
for arm64 atomic ops.

I've attached a mailbox of patches for each of the 4.9, 4.14, and 4.19
branches.

Ben.

-- 
Ben Hutchings
I'm always amazed by the number of people who take up solipsism because
they heard someone else explain it. - E*Borg on alt.fan.pratchett

[-- Attachment #1.2: arm64-atomic-4.9.mbox --]
[-- Type: application/mbox, Size: 27817 bytes --]

[-- Attachment #1.3: arm64-atomic-4.14.mbox --]
[-- Type: application/mbox, Size: 25979 bytes --]

[-- Attachment #1.4: arm64-atomic-4.19.mbox --]
[-- Type: application/mbox, Size: 26055 bytes --]

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

             reply	other threads:[~2021-03-01 20:09 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-01 19:56 Ben Hutchings [this message]
2021-03-04 13:49 ` [stable 4.9-4.19] Fix arm64 build regression in xen-netback Greg KH

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=YD1G1zQT/H+CUwXF@decadent.org.uk \
    --to=ben@decadent.org.uk \
    --cc=stable@vger.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.