diff options
author | Alexei Starovoitov <ast@plumgrid.com> | 2015-05-12 09:25:16 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-05-13 06:13:08 +0300 |
commit | 343f845b375989f1753f605902931fa939aa2223 (patch) | |
tree | fd2f63ee5b1cf7921993a4f9a0f35c80ac2e5485 /drivers/net/ethernet/xilinx | |
parent | e3d8ecb70e16412b14fb11c1b68ecb533bd4ea64 (diff) | |
download | linux-343f845b375989f1753f605902931fa939aa2223.tar.xz |
x86: bpf_jit: fix FROM_BE16 and FROM_LE16/32 instructions
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@plumgrid.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/xilinx')
0 files changed, 0 insertions, 0 deletions