4 BPF_JMP_IMM(BPF_JEQ
, BPF_REG_1
, 0, 1),
5 BPF_LD_IMM64(BPF_REG_0
, 0),
6 BPF_LD_IMM64(BPF_REG_0
, 0),
7 BPF_LD_IMM64(BPF_REG_0
, 1),
8 BPF_LD_IMM64(BPF_REG_0
, 1),
9 BPF_MOV64_IMM(BPF_REG_0
, 2),
12 .errstr
= "invalid BPF_LD_IMM insn",
13 .errstr_unpriv
= "R1 pointer comparison",
19 BPF_JMP_IMM(BPF_JEQ
, BPF_REG_1
, 0, 1),
20 BPF_LD_IMM64(BPF_REG_0
, 0),
21 BPF_LD_IMM64(BPF_REG_0
, 0),
22 BPF_LD_IMM64(BPF_REG_0
, 1),
23 BPF_LD_IMM64(BPF_REG_0
, 1),
26 .errstr
= "invalid BPF_LD_IMM insn",
27 .errstr_unpriv
= "R1 pointer comparison",
33 BPF_JMP_IMM(BPF_JEQ
, BPF_REG_1
, 0, 1),
34 BPF_RAW_INSN(BPF_LD
| BPF_IMM
| BPF_DW
, 0, 0, 0, 0),
35 BPF_LD_IMM64(BPF_REG_0
, 0),
36 BPF_LD_IMM64(BPF_REG_0
, 0),
37 BPF_LD_IMM64(BPF_REG_0
, 1),
38 BPF_LD_IMM64(BPF_REG_0
, 1),
41 .errstr
= "invalid bpf_ld_imm64 insn",
47 BPF_RAW_INSN(BPF_LD
| BPF_IMM
| BPF_DW
, 0, 0, 0, 0),
50 .errstr
= "invalid bpf_ld_imm64 insn",
56 BPF_RAW_INSN(BPF_LD
| BPF_IMM
| BPF_DW
, 0, 0, 0, 0),
58 .errstr
= "invalid bpf_ld_imm64 insn",
64 BPF_RAW_INSN(BPF_LD
| BPF_IMM
| BPF_DW
, 0, 0, 0, 0),
65 BPF_RAW_INSN(0, 0, 0, 0, 0),
73 BPF_RAW_INSN(BPF_LD
| BPF_IMM
| BPF_DW
, 0, 0, 0, 1),
74 BPF_RAW_INSN(0, 0, 0, 0, 1),
83 BPF_RAW_INSN(BPF_LD
| BPF_IMM
| BPF_DW
, 0, 0, 1, 1),
84 BPF_RAW_INSN(0, 0, 0, 0, 1),
87 .errstr
= "uses reserved fields",
93 BPF_RAW_INSN(BPF_LD
| BPF_IMM
| BPF_DW
, 0, 0, 0, 1),
94 BPF_RAW_INSN(0, 0, 0, 1, 1),
97 .errstr
= "invalid bpf_ld_imm64 insn",
103 BPF_RAW_INSN(BPF_LD
| BPF_IMM
| BPF_DW
, 0, 0, 0, 1),
104 BPF_RAW_INSN(0, BPF_REG_1
, 0, 0, 1),
107 .errstr
= "invalid bpf_ld_imm64 insn",
113 BPF_RAW_INSN(BPF_LD
| BPF_IMM
| BPF_DW
, 0, 0, 0, 1),
114 BPF_RAW_INSN(0, 0, BPF_REG_1
, 0, 1),
117 .errstr
= "invalid bpf_ld_imm64 insn",
123 BPF_MOV64_IMM(BPF_REG_1
, 0),
124 BPF_RAW_INSN(BPF_LD
| BPF_IMM
| BPF_DW
, 0, BPF_REG_1
, 0, 1),
125 BPF_RAW_INSN(0, 0, 0, 0, 0),
128 .errstr
= "not pointing to valid bpf_map",
134 BPF_MOV64_IMM(BPF_REG_1
, 0),
135 BPF_RAW_INSN(BPF_LD
| BPF_IMM
| BPF_DW
, 0, BPF_REG_1
, 0, 1),
136 BPF_RAW_INSN(0, 0, BPF_REG_1
, 0, 1),
139 .errstr
= "invalid bpf_ld_imm64 insn",
143 "test14 ld_imm64: reject 2nd imm != 0",
145 BPF_MOV64_IMM(BPF_REG_0
, 0),
146 BPF_RAW_INSN(BPF_LD
| BPF_IMM
| BPF_DW
, BPF_REG_1
,
147 BPF_PSEUDO_MAP_FD
, 0, 0),
148 BPF_RAW_INSN(0, 0, 0, 0, 0xfefefe),
151 .fixup_map_hash_48b
= { 1 },
152 .errstr
= "unrecognized bpf_ld_imm64 insn",