[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20150512.231409.160408009979608790.davem@davemloft.net>
Date: Tue, 12 May 2015 23:14:09 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: ast@...mgrid.com
Cc: daniel@...earbox.net, netdev@...r.kernel.org
Subject: Re: [PATCH net] x86: bpf_jit: fix FROM_BE16 and FROM_LE16/32
instructions
From: Alexei Starovoitov <ast@...mgrid.com>
Date: Mon, 11 May 2015 23:25:16 -0700
> FROM_BE16:
> 'ror %reg, 8' doesn't clear upper bits of the register,
> so use additional 'movzwl' insn to zero extend 16 bits into 64
>
> FROM_LE16:
> should zero extend lower 16 bits into 64 bit
>
> FROM_LE32:
> should zero extend lower 32 bits into 64 bit
>
> Fixes: 89aa075832b0 ("net: sock: allow eBPF programs to be attached to sockets")
> Signed-off-by: Alexei Starovoitov <ast@...mgrid.com>
Applied and queued up for -stable, thank you.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists