[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20150626131744.GF3078@e104818-lin.cambridge.arm.com>
Date: Fri, 26 Jun 2015 14:17:44 +0100
From: Catalin Marinas <catalin.marinas@....com>
To: Xi Wang <xi.wang@...il.com>
Cc: linux-arm-kernel@...ts.infradead.org,
Zi Shen Lim <zlim.lnx@...il.com>,
linux-kernel@...r.kernel.org, Alexei Starovoitov <ast@...mgrid.com>
Subject: Re: [RFC PATCH] arm64: bpf: fix endianness conversion bugs
On Thu, Jun 25, 2015 at 06:39:15PM -0700, Xi Wang wrote:
> Upper bits should be zeroed in endianness conversion:
>
> - even when there's no need to change endianness (i.e., BPF_FROM_BE
> on big endian or BPF_FROM_LE on little endian);
>
> - after rev16.
>
> This patch fixes such bugs by emitting extra instructions to clear
> upper bits.
>
> Cc: Zi Shen Lim <zlim.lnx@...il.com>
> Cc: Alexei Starovoitov <ast@...mgrid.com>
> Fixes: e54bcde3d69d ("arm64: eBPF JIT compiler")
> Signed-off-by: Xi Wang <xi.wang@...il.com>
Applied. Thanks.
--
Catalin
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists