From: Daniel Borkmann <dan...@iogearbox.net> Date: Tue, 2 May 2017 20:34:54 +0200
> When the instruction right before the branch destination is > a 64 bit load immediate, we currently calculate the wrong > jump offset in the ctx->offset[] array as we only account > one instruction slot for the 64 bit load immediate although > it uses two BPF instructions. Fix it up by setting the offset > into the right slot after we incremented the index. ... > Also, add a couple of test cases to make sure JITs pass > this test. Tested on Cavium ThunderX ARMv8. The added > test cases all pass after the fix. > > Fixes: 8eee539ddea0 ("arm64: bpf: fix out-of-bounds read in bpf2a64_offset()") > Reported-by: David S. Miller <da...@davemloft.net> > Signed-off-by: Daniel Borkmann <dan...@iogearbox.net> > Acked-by: Alexei Starovoitov <a...@kernel.org> Applied and queued up for -stable, thanks! I also applied your XADD patch as well. Thanks again.