From: will.deacon@arm.com (Will Deacon)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] arm64: fix endianness annotation for 'struct jit_ctx' and friends
Date: Thu, 29 Jun 2017 11:08:36 +0100 [thread overview]
Message-ID: <20170629100835.GE14607@arm.com> (raw)
In-Reply-To: <20170628145803.24543-1-luc.vanoostenryck@gmail.com>
On Wed, Jun 28, 2017 at 04:58:03PM +0200, Luc Van Oostenryck wrote:
> struct jit_ctx::image is used the store a pointer to the jitted
> intructions, which are always little-endian. These instructions
> are thus correctly converted from native order to little-endian
> before being stored but the pointer 'image' is declared as for
> native order values.
>
> Fix this by declaring the field as __le32* instead of u32*.
> Same for the pointer used in jit_fill_hole() to initialize
> the image.
>
> Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
> ---
> arch/arm64/net/bpf_jit_comp.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
Happy to take this via the arm64 tree, along with the other sparse fixes
(modulo review comments).
Ok with you, David?
Will
next prev parent reply other threads:[~2017-06-29 10:08 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-06-28 14:58 [PATCH] arm64: fix endianness annotation for 'struct jit_ctx' and friends Luc Van Oostenryck
2017-06-29 10:08 ` Will Deacon [this message]
2017-06-29 14:55 ` Luc Van Oostenryck
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=20170629100835.GE14607@arm.com \
--to=will.deacon@arm.com \
--cc=linux-arm-kernel@lists.infradead.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.