[RFC PATCH] arm64: bpf: fix endianness conversion bugs

Catalin Marinas catalin.marinas at arm.com
Fri Jun 26 06:17:44 PDT 2015


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 at gmail.com>
> Cc: Alexei Starovoitov <ast at plumgrid.com>
> Fixes: e54bcde3d69d ("arm64: eBPF JIT compiler")
> Signed-off-by: Xi Wang <xi.wang at gmail.com>

Applied. Thanks.

-- 
Catalin



More information about the linux-arm-kernel mailing list