diff options
author | Xi Wang <[email protected]> | 2015-06-25 18:39:15 -0700 |
---|---|---|
committer | Catalin Marinas <[email protected]> | 2015-06-26 14:15:39 +0100 |
commit | d63903bbc30c7ccad040851dfdb4da12d9a17bcf (patch) | |
tree | 6ddc09f1a2289e833b51b373049649f416a586bf /lib/memory-notifier-error-inject.c | |
parent | 8eee539ddea09bccae2426f09b0ba6a18b72b691 (diff) |
arm64: bpf: fix endianness conversion bugs
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 <[email protected]>
Acked-by: Alexei Starovoitov <[email protected]>
Fixes: e54bcde3d69d ("arm64: eBPF JIT compiler")
Cc: <[email protected]> # 3.18+
Signed-off-by: Xi Wang <[email protected]>
Signed-off-by: Catalin Marinas <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions