2 "bpf_exit with invalid return code. test1",
4 BPF_LDX_MEM(BPF_W
, BPF_REG_0
, BPF_REG_1
, 0),
7 .errstr
= "R0 has value (0x0; 0xffffffff)",
9 .prog_type
= BPF_PROG_TYPE_CGROUP_SOCK
,
12 "bpf_exit with invalid return code. test2",
14 BPF_LDX_MEM(BPF_W
, BPF_REG_0
, BPF_REG_1
, 0),
15 BPF_ALU64_IMM(BPF_AND
, BPF_REG_0
, 1),
19 .prog_type
= BPF_PROG_TYPE_CGROUP_SOCK
,
22 "bpf_exit with invalid return code. test3",
24 BPF_LDX_MEM(BPF_W
, BPF_REG_0
, BPF_REG_1
, 0),
25 BPF_ALU64_IMM(BPF_AND
, BPF_REG_0
, 3),
28 .errstr
= "R0 has value (0x0; 0x3)",
30 .prog_type
= BPF_PROG_TYPE_CGROUP_SOCK
,
33 "bpf_exit with invalid return code. test4",
35 BPF_MOV64_IMM(BPF_REG_0
, 1),
39 .prog_type
= BPF_PROG_TYPE_CGROUP_SOCK
,
42 "bpf_exit with invalid return code. test5",
44 BPF_MOV64_IMM(BPF_REG_0
, 2),
47 .errstr
= "R0 has value (0x2; 0x0)",
49 .prog_type
= BPF_PROG_TYPE_CGROUP_SOCK
,
52 "bpf_exit with invalid return code. test6",
54 BPF_MOV64_REG(BPF_REG_0
, BPF_REG_1
),
57 .errstr
= "R0 is not a known value (ctx)",
59 .prog_type
= BPF_PROG_TYPE_CGROUP_SOCK
,
62 "bpf_exit with invalid return code. test7",
64 BPF_LDX_MEM(BPF_W
, BPF_REG_0
, BPF_REG_1
, 0),
65 BPF_LDX_MEM(BPF_W
, BPF_REG_2
, BPF_REG_1
, 4),
66 BPF_ALU64_REG(BPF_MUL
, BPF_REG_0
, BPF_REG_2
),
69 .errstr
= "R0 has unknown scalar value",
71 .prog_type
= BPF_PROG_TYPE_CGROUP_SOCK
,