WIP FPC-III support
[linux/fpc-iii.git] / tools / testing / selftests / bpf / verifier / junk_insn.c
blob89d690f1992ad1823b02a277dbf6eb88bd861ff3
2 "junk insn",
3 .insns = {
4 BPF_RAW_INSN(0, 0, 0, 0, 0),
5 BPF_EXIT_INSN(),
6 },
7 .errstr = "unknown opcode 00",
8 .result = REJECT,
9 },
11 "junk insn2",
12 .insns = {
13 BPF_RAW_INSN(1, 0, 0, 0, 0),
14 BPF_EXIT_INSN(),
16 .errstr = "BPF_LDX uses reserved fields",
17 .result = REJECT,
20 "junk insn3",
21 .insns = {
22 BPF_RAW_INSN(-1, 0, 0, 0, 0),
23 BPF_EXIT_INSN(),
25 .errstr = "unknown opcode ff",
26 .result = REJECT,
29 "junk insn4",
30 .insns = {
31 BPF_RAW_INSN(-1, -1, -1, -1, -1),
32 BPF_EXIT_INSN(),
34 .errstr = "unknown opcode ff",
35 .result = REJECT,
38 "junk insn5",
39 .insns = {
40 BPF_RAW_INSN(0x7f, -1, -1, -1, -1),
41 BPF_EXIT_INSN(),
43 .errstr = "BPF_ALU uses reserved fields",
44 .result = REJECT,