mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
8aa2d4b4b9
Add a test to generate 1m ld_imm64 insns to stress the verifier. Bump the size of fill_ld_abs_vlan_push_pop test from 4k to 29k and jump_around_ld_abs from 4k to 5.5k. Larger sizes are not possible due to 16-bit offset encoding in jump instructions. Signed-off-by: Alexei Starovoitov <ast@kernel.org> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
46 lines
968 B
C
46 lines
968 B
C
{
|
|
"ld_dw: xor semi-random 64 bit imms, test 1",
|
|
.insns = { },
|
|
.data = { },
|
|
.fill_helper = bpf_fill_rand_ld_dw,
|
|
.prog_type = BPF_PROG_TYPE_SCHED_CLS,
|
|
.result = ACCEPT,
|
|
.retval = 4090,
|
|
},
|
|
{
|
|
"ld_dw: xor semi-random 64 bit imms, test 2",
|
|
.insns = { },
|
|
.data = { },
|
|
.fill_helper = bpf_fill_rand_ld_dw,
|
|
.prog_type = BPF_PROG_TYPE_SCHED_CLS,
|
|
.result = ACCEPT,
|
|
.retval = 2047,
|
|
},
|
|
{
|
|
"ld_dw: xor semi-random 64 bit imms, test 3",
|
|
.insns = { },
|
|
.data = { },
|
|
.fill_helper = bpf_fill_rand_ld_dw,
|
|
.prog_type = BPF_PROG_TYPE_SCHED_CLS,
|
|
.result = ACCEPT,
|
|
.retval = 511,
|
|
},
|
|
{
|
|
"ld_dw: xor semi-random 64 bit imms, test 4",
|
|
.insns = { },
|
|
.data = { },
|
|
.fill_helper = bpf_fill_rand_ld_dw,
|
|
.prog_type = BPF_PROG_TYPE_SCHED_CLS,
|
|
.result = ACCEPT,
|
|
.retval = 5,
|
|
},
|
|
{
|
|
"ld_dw: xor semi-random 64 bit imms, test 5",
|
|
.insns = { },
|
|
.data = { },
|
|
.fill_helper = bpf_fill_rand_ld_dw,
|
|
.prog_type = BPF_PROG_TYPE_SCHED_CLS,
|
|
.result = ACCEPT,
|
|
.retval = 1000000 - 6,
|
|
},
|