|author||David Daney <email@example.com>||2017-06-13 16:49:36 -0700|
|committer||David S. Miller <firstname.lastname@example.org>||2017-06-14 15:03:22 -0400|
test_bpf: Add test to make conditional jump cross a large number of insns.
On MIPS, conditional branches can only span 32k instructions. To exceed this limit in the JIT with the BPF maximum of 4k insns, we need to choose eBPF insns that expand to more than 8 machine instructions. Use BPF_LD_ABS as it is quite complex. This forces the JIT to invert the sense of the branch to branch around a long jump to the end. This (somewhat) verifies that the branch inversion logic and target address calculation of the long jumps are done correctly. Signed-off-by: David Daney <email@example.com> Acked-by: Daniel Borkmann <firstname.lastname@example.org> Signed-off-by: David S. Miller <email@example.com>
Diffstat (limited to 'samples')
0 files changed, 0 insertions, 0 deletions