[PATCH] arm64: fix endianness annotation for 'struct jit_ctx' and friends

Will Deacon will.deacon at arm.com
Thu Jun 29 03:08:36 PDT 2017


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



More information about the linux-arm-kernel mailing list