diff options
author | Alexei Starovoitov <ast@plumgrid.com> | 2015-05-11 23:25:16 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-05-12 23:13:08 -0400 |
commit | 343f845b375989f1753f605902931fa939aa2223 (patch) | |
tree | fd2f63ee5b1cf7921993a4f9a0f35c80ac2e5485 /arch/arc | |
parent | e3d8ecb70e16412b14fb11c1b68ecb533bd4ea64 (diff) |
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 'arch/arc')
0 files changed, 0 insertions, 0 deletions