Home
last modified time | relevance | path

Searched refs:BPF_REG_0 (Results 1 – 25 of 92) sorted by relevance

1234

/tools/testing/selftests/bpf/verifier/
Dsubreg.c17 BPF_MOV64_REG(BPF_REG_1, BPF_REG_0),
18 BPF_LD_IMM64(BPF_REG_0, 0x100000000ULL),
19 BPF_ALU32_REG(BPF_ADD, BPF_REG_0, BPF_REG_1),
20 BPF_ALU64_IMM(BPF_RSH, BPF_REG_0, 32),
31 BPF_ALU64_REG(BPF_OR, BPF_REG_0, BPF_REG_1),
38 BPF_ALU32_IMM(BPF_ADD, BPF_REG_0, 0),
39 BPF_ALU64_IMM(BPF_RSH, BPF_REG_0, 32),
40 BPF_MOV64_REG(BPF_REG_6, BPF_REG_0),
43 BPF_ALU64_REG(BPF_OR, BPF_REG_0, BPF_REG_1),
44 BPF_ALU32_IMM(BPF_ADD, BPF_REG_0, -2),
[all …]
Djump.c18 BPF_MOV64_IMM(BPF_REG_0, 0),
46 BPF_MOV64_IMM(BPF_REG_0, 0),
133 BPF_MOV64_IMM(BPF_REG_0, 0),
150 BPF_MOV64_IMM(BPF_REG_0, 0),
156 BPF_MOV64_IMM(BPF_REG_0, 0),
162 BPF_MOV64_IMM(BPF_REG_0, 0),
168 BPF_MOV64_IMM(BPF_REG_0, 0),
174 BPF_MOV64_IMM(BPF_REG_0, 0),
184 BPF_MOV64_IMM(BPF_REG_0, 1),
187 BPF_MOV64_IMM(BPF_REG_0, 2),
[all …]
Dsock.c5 BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_1, 0),
6 BPF_MOV64_IMM(BPF_REG_0, 0),
18 BPF_MOV64_IMM(BPF_REG_0, 0),
20 BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_1, offsetof(struct bpf_sock, family)),
21 BPF_MOV64_IMM(BPF_REG_0, 0),
32 BPF_MOV64_IMM(BPF_REG_0, 0),
34 BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_1, offsetof(struct bpf_sock, type)),
35 BPF_MOV64_IMM(BPF_REG_0, 0),
47 BPF_MOV64_IMM(BPF_REG_0, 0),
59 BPF_MOV64_IMM(BPF_REG_0, 0),
[all …]
Dvalue_ptr_arith.c4 BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_1,
9 BPF_JMP_IMM(BPF_JEQ, BPF_REG_0, 1, 3),
11 BPF_JMP_IMM(BPF_JNE, BPF_REG_0, 1, 2),
14 BPF_JMP_IMM(BPF_JEQ, BPF_REG_0, 0, 3),
16 BPF_ALU64_REG(BPF_ADD, BPF_REG_1, BPF_REG_0),
17 BPF_LDX_MEM(BPF_B, BPF_REG_0, BPF_REG_1, 0),
18 BPF_MOV64_IMM(BPF_REG_0, 1),
29 BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_1,
34 BPF_JMP_IMM(BPF_JEQ, BPF_REG_0, 1, 3),
36 BPF_JMP_IMM(BPF_JNE, BPF_REG_0, 1, 2),
[all …]
Dbounds_deduction.c4 BPF_MOV64_IMM(BPF_REG_0, 1),
5 BPF_JMP_IMM(BPF_JSGE, BPF_REG_0, 1, 0),
6 BPF_ALU64_REG(BPF_SUB, BPF_REG_0, BPF_REG_1),
16 BPF_MOV64_IMM(BPF_REG_0, 1),
17 BPF_JMP_IMM(BPF_JSGE, BPF_REG_0, 1, 1),
19 BPF_JMP_IMM(BPF_JSLE, BPF_REG_0, 1, 1),
21 BPF_ALU64_REG(BPF_SUB, BPF_REG_1, BPF_REG_0),
32 BPF_MOV64_IMM(BPF_REG_0, 0),
33 BPF_JMP_IMM(BPF_JSLE, BPF_REG_0, 0, 0),
34 BPF_ALU64_REG(BPF_SUB, BPF_REG_0, BPF_REG_1),
[all …]
Dctx_skb.c4 BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_1,
6 BPF_JMP_IMM(BPF_JGE, BPF_REG_0, 0, 1),
7 BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_1,
9 BPF_JMP_IMM(BPF_JGE, BPF_REG_0, 0, 1),
10 BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_1,
12 BPF_JMP_IMM(BPF_JGE, BPF_REG_0, 0, 1),
13 BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_1,
15 BPF_JMP_IMM(BPF_JGE, BPF_REG_0, 0, 0),
16 BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_1,
18 BPF_JMP_IMM(BPF_JGE, BPF_REG_0, 0, 0),
[all …]
Dloops1.c4 BPF_MOV64_IMM(BPF_REG_0, 0),
5 BPF_ALU64_IMM(BPF_ADD, BPF_REG_0, 1),
6 BPF_JMP_IMM(BPF_JLT, BPF_REG_0, 4, -2),
16 BPF_MOV64_IMM(BPF_REG_0, 0),
17 BPF_ALU64_IMM(BPF_ADD, BPF_REG_0, 3),
18 BPF_JMP_IMM(BPF_JLT, BPF_REG_0, 20, -2),
28 BPF_JMP_IMM(BPF_JSLT, BPF_REG_0, 0, 2),
29 BPF_ALU64_IMM(BPF_ADD, BPF_REG_0, 1),
30 BPF_JMP_IMM(BPF_JLT, BPF_REG_0, 4, -2),
41 BPF_ALU64_IMM(BPF_ADD, BPF_REG_0, 1),
[all …]
Ddirect_packet_access.c4 BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_1,
8 BPF_ALU64_REG(BPF_SUB, BPF_REG_0, BPF_REG_2),
22 BPF_MOV64_REG(BPF_REG_0, BPF_REG_2),
23 BPF_ALU64_IMM(BPF_ADD, BPF_REG_0, 8),
24 BPF_JMP_REG(BPF_JGT, BPF_REG_0, BPF_REG_3, 1),
25 BPF_LDX_MEM(BPF_B, BPF_REG_0, BPF_REG_2, 0),
26 BPF_MOV64_IMM(BPF_REG_0, 0),
35 BPF_MOV64_IMM(BPF_REG_0, 1),
43 BPF_LDX_MEM(BPF_B, BPF_REG_0, BPF_REG_3, 7),
60 BPF_MOV64_IMM(BPF_REG_0, 0),
[all …]
Dxadd.c4 BPF_MOV64_IMM(BPF_REG_0, 1),
5 BPF_STX_MEM(BPF_DW, BPF_REG_10, BPF_REG_0, -8),
6 BPF_STX_XADD(BPF_W, BPF_REG_10, BPF_REG_0, -7),
7 BPF_LDX_MEM(BPF_DW, BPF_REG_0, BPF_REG_10, -8),
22 BPF_JMP_IMM(BPF_JNE, BPF_REG_0, 0, 1),
25 BPF_STX_XADD(BPF_W, BPF_REG_0, BPF_REG_1, 3),
26 BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_0, 3),
43 BPF_MOV64_IMM(BPF_REG_0, 99),
45 BPF_MOV64_IMM(BPF_REG_0, 1),
48 BPF_STX_XADD(BPF_W, BPF_REG_2, BPF_REG_0, 1),
[all …]
Dbounds.c9 BPF_JMP_IMM(BPF_JEQ, BPF_REG_0, 0, 9),
10 BPF_LDX_MEM(BPF_B, BPF_REG_1, BPF_REG_0, 0),
12 BPF_LDX_MEM(BPF_B, BPF_REG_3, BPF_REG_0, 1),
16 BPF_ALU64_REG(BPF_ADD, BPF_REG_0, BPF_REG_1),
17 BPF_LDX_MEM(BPF_B, BPF_REG_0, BPF_REG_0, 0),
19 BPF_MOV64_IMM(BPF_REG_0, 0),
34 BPF_JMP_IMM(BPF_JEQ, BPF_REG_0, 0, 8),
35 BPF_LDX_MEM(BPF_B, BPF_REG_1, BPF_REG_0, 0),
37 BPF_LDX_MEM(BPF_B, BPF_REG_3, BPF_REG_0, 1),
40 BPF_ALU64_REG(BPF_ADD, BPF_REG_0, BPF_REG_1),
[all …]
Dref_tracking.c5 BPF_MOV64_REG(BPF_REG_6, BPF_REG_0), /* leak reference */
16 BPF_MOV64_REG(BPF_REG_6, BPF_REG_0), /* leak reference */
29 BPF_STX_MEM(BPF_DW, BPF_REG_4, BPF_REG_0, 0),
30 BPF_MOV64_IMM(BPF_REG_0, 0),
43 BPF_STX_MEM(BPF_DW, BPF_REG_4, BPF_REG_0, 0),
44 BPF_MOV64_IMM(BPF_REG_0, 0),
56 BPF_MOV64_IMM(BPF_REG_0, 0), /* leak reference */
67 BPF_MOV64_IMM(BPF_REG_0, 0), /* leak reference */
78 BPF_MOV64_REG(BPF_REG_7, BPF_REG_0),
79 BPF_MOV64_IMM(BPF_REG_0, 0),
[all …]
Ddead_code.c7 BPF_MOV64_IMM(BPF_REG_0, 7),
8 BPF_JMP_IMM(BPF_JGE, BPF_REG_0, 10, -4),
19 BPF_MOV64_IMM(BPF_REG_0, 7),
20 BPF_JMP_IMM(BPF_JGE, BPF_REG_0, 0, 1),
21 BPF_JMP_IMM(BPF_JGE, BPF_REG_0, 10, 0),
31 BPF_JMP_IMM(BPF_JSET, BPF_REG_0, 1, 4),
32 BPF_JMP_IMM(BPF_JSET, BPF_REG_0, 1, 1),
34 BPF_MOV64_IMM(BPF_REG_0, 7),
36 BPF_MOV64_IMM(BPF_REG_0, 1),
45 BPF_MOV64_IMM(BPF_REG_0, 7),
[all …]
Dlwt.c8 BPF_MOV64_REG(BPF_REG_0, BPF_REG_2),
9 BPF_ALU64_IMM(BPF_ADD, BPF_REG_0, 8),
10 BPF_JMP_REG(BPF_JGT, BPF_REG_0, BPF_REG_3, 1),
12 BPF_MOV64_IMM(BPF_REG_0, 0),
26 BPF_MOV64_REG(BPF_REG_0, BPF_REG_2),
27 BPF_ALU64_IMM(BPF_ADD, BPF_REG_0, 8),
28 BPF_JMP_REG(BPF_JGT, BPF_REG_0, BPF_REG_3, 1),
30 BPF_MOV64_IMM(BPF_REG_0, 0),
44 BPF_MOV64_REG(BPF_REG_0, BPF_REG_2),
45 BPF_ALU64_IMM(BPF_ADD, BPF_REG_0, 8),
[all …]
Djit.c4 BPF_MOV64_IMM(BPF_REG_0, 1),
17 BPF_MOV64_IMM(BPF_REG_0, 2),
26 BPF_MOV64_IMM(BPF_REG_0, 2),
31 BPF_MOV64_IMM(BPF_REG_0, 1),
40 BPF_MOV64_IMM(BPF_REG_0, 1),
44 BPF_MOV64_IMM(BPF_REG_0, 2),
54 BPF_LD_IMM64(BPF_REG_0, 0xfefefeULL),
56 BPF_ALU64_REG(BPF_MUL, BPF_REG_0, BPF_REG_1),
57 BPF_JMP_REG(BPF_JEQ, BPF_REG_0, BPF_REG_2, 2),
58 BPF_MOV64_IMM(BPF_REG_0, 1),
[all …]
Dbasic_instr.c10 BPF_MOV64_REG(BPF_REG_0, BPF_REG_1),
23 BPF_MOV32_IMM(BPF_REG_0, 2),
25 BPF_MOV32_IMM(BPF_REG_0, 1),
35 BPF_MOV64_IMM(BPF_REG_0, 1),
36 BPF_ALU32_IMM(BPF_ARSH, BPF_REG_0, 5),
45 BPF_LD_IMM64(BPF_REG_0, 0x1122334485667788),
46 BPF_ALU32_IMM(BPF_ARSH, BPF_REG_0, 7),
55 BPF_MOV64_IMM(BPF_REG_0, 1),
57 BPF_ALU32_REG(BPF_ARSH, BPF_REG_0, BPF_REG_1),
66 BPF_LD_IMM64(BPF_REG_0, 0xffff55667788),
[all …]
Dcalls.c5 BPF_MOV64_IMM(BPF_REG_0, 1),
7 BPF_MOV64_IMM(BPF_REG_0, 2),
17 BPF_MOV64_IMM(BPF_REG_0, 1),
19 BPF_MOV64_IMM(BPF_REG_0, 2),
35 BPF_MOV64_REG(BPF_REG_2, BPF_REG_0),
38 BPF_LDX_MEM(BPF_B, BPF_REG_0, BPF_REG_0, 0),
39 BPF_MOV64_IMM(BPF_REG_0, 1),
44 BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_1,
60 BPF_MOV64_REG(BPF_REG_2, BPF_REG_0),
63 BPF_LDX_MEM(BPF_B, BPF_REG_0, BPF_REG_0, 0),
[all …]
Dbounds_mix_sign_unsign.c9 BPF_JMP_IMM(BPF_JEQ, BPF_REG_0, 0, 7),
15 BPF_ALU64_REG(BPF_ADD, BPF_REG_0, BPF_REG_1),
16 BPF_ST_MEM(BPF_B, BPF_REG_0, 0, 0),
17 BPF_MOV64_IMM(BPF_REG_0, 0),
32 BPF_JMP_IMM(BPF_JEQ, BPF_REG_0, 0, 7),
38 BPF_ALU64_REG(BPF_ADD, BPF_REG_0, BPF_REG_1),
39 BPF_ST_MEM(BPF_B, BPF_REG_0, 0, 0),
40 BPF_MOV64_IMM(BPF_REG_0, 0),
55 BPF_JMP_IMM(BPF_JEQ, BPF_REG_0, 0, 9),
63 BPF_ALU64_REG(BPF_ADD, BPF_REG_0, BPF_REG_8),
[all …]
Dld_abs.c7 BPF_MOV64_REG(BPF_REG_0, BPF_REG_1),
19 BPF_MOV64_REG(BPF_REG_0, BPF_REG_2),
31 BPF_MOV64_REG(BPF_REG_0, BPF_REG_3),
43 BPF_MOV64_REG(BPF_REG_0, BPF_REG_4),
55 BPF_MOV64_REG(BPF_REG_0, BPF_REG_5),
67 BPF_MOV64_REG(BPF_REG_0, BPF_REG_7),
89 BPF_MOV64_IMM(BPF_REG_0, 42),
110 BPF_MOV32_IMM(BPF_REG_0, 256),
112 BPF_LD_IND(BPF_DW, BPF_REG_0, 0),
124 BPF_JMP_IMM(BPF_JNE, BPF_REG_0, 0x806, 28),
[all …]
Dcgroup_storage.c7 BPF_LDX_MEM(BPF_W, BPF_REG_1, BPF_REG_0, 0),
8 BPF_MOV64_REG(BPF_REG_0, BPF_REG_1),
9 BPF_ALU64_IMM(BPF_AND, BPF_REG_0, 1),
22 BPF_LDX_MEM(BPF_W, BPF_REG_1, BPF_REG_0, 0),
23 BPF_MOV64_REG(BPF_REG_0, BPF_REG_1),
24 BPF_ALU64_IMM(BPF_AND, BPF_REG_0, 1),
38 BPF_ALU64_IMM(BPF_AND, BPF_REG_0, 1),
51 BPF_LDX_MEM(BPF_W, BPF_REG_1, BPF_REG_0, 256),
53 BPF_MOV64_IMM(BPF_REG_0, 0),
67 BPF_LDX_MEM(BPF_W, BPF_REG_1, BPF_REG_0, -2),
[all …]
Dctx_sk_msg.c4 BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_1,
14 BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_1,
24 BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_1,
34 BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_1,
44 BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_1,
54 BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_1,
56 BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_1,
58 BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_1,
60 BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_1,
70 BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_1,
[all …]
Ddiv0.c4 BPF_MOV32_IMM(BPF_REG_0, 42),
16 BPF_MOV32_IMM(BPF_REG_0, 42),
28 BPF_MOV32_IMM(BPF_REG_0, 42),
40 BPF_MOV32_IMM(BPF_REG_0, 42),
52 BPF_MOV32_IMM(BPF_REG_0, 42),
64 BPF_MOV32_IMM(BPF_REG_0, 42),
76 BPF_MOV32_IMM(BPF_REG_0, 42),
80 BPF_MOV64_REG(BPF_REG_0, BPF_REG_2),
91 BPF_MOV32_IMM(BPF_REG_0, 1),
92 BPF_ALU32_REG(BPF_DIV, BPF_REG_0, BPF_REG_1),
[all …]
Dhelper_value_access.c9 BPF_JMP_IMM(BPF_JEQ, BPF_REG_0, 0, 4),
10 BPF_MOV64_REG(BPF_REG_1, BPF_REG_0),
28 BPF_JMP_IMM(BPF_JEQ, BPF_REG_0, 0, 4),
29 BPF_MOV64_REG(BPF_REG_1, BPF_REG_0),
47 BPF_JMP_IMM(BPF_JEQ, BPF_REG_0, 0, 3),
48 BPF_MOV64_REG(BPF_REG_1, BPF_REG_0),
66 BPF_JMP_IMM(BPF_JEQ, BPF_REG_0, 0, 4),
67 BPF_MOV64_REG(BPF_REG_1, BPF_REG_0),
86 BPF_JMP_IMM(BPF_JEQ, BPF_REG_0, 0, 4),
87 BPF_MOV64_REG(BPF_REG_1, BPF_REG_0),
[all …]
Ddiv_overflow.c9 BPF_MOV32_IMM(BPF_REG_0, INT_MIN),
10 BPF_ALU32_REG(BPF_DIV, BPF_REG_0, BPF_REG_1),
20 BPF_MOV32_IMM(BPF_REG_0, INT_MIN),
21 BPF_ALU32_IMM(BPF_DIV, BPF_REG_0, -1),
34 BPF_MOV32_IMM(BPF_REG_0, 0),
35 BPF_JMP_REG(BPF_JEQ, BPF_REG_0, BPF_REG_2, 1),
36 BPF_MOV32_IMM(BPF_REG_0, 1),
48 BPF_MOV32_IMM(BPF_REG_0, 0),
49 BPF_JMP_REG(BPF_JEQ, BPF_REG_0, BPF_REG_1, 1),
50 BPF_MOV32_IMM(BPF_REG_0, 1),
[all …]
/tools/testing/selftests/bpf/
Dtest_sysctl.c50 BPF_MOV64_IMM(BPF_REG_0, 1),
61 BPF_MOV64_IMM(BPF_REG_0, 1),
72 BPF_MOV64_IMM(BPF_REG_0, 0),
89 BPF_MOV64_IMM(BPF_REG_0, 0),
93 BPF_MOV64_IMM(BPF_REG_0, 1),
110 BPF_MOV64_IMM(BPF_REG_0, 0),
114 BPF_MOV64_IMM(BPF_REG_0, 1),
127 BPF_MOV64_IMM(BPF_REG_0, 0),
128 BPF_STX_MEM(BPF_W, BPF_REG_1, BPF_REG_0,
130 BPF_MOV64_IMM(BPF_REG_0, 1),
[all …]
/tools/testing/selftests/bpf/prog_tests/
Dsockopt.c44 BPF_MOV64_IMM(BPF_REG_0, 1),
56 BPF_MOV64_IMM(BPF_REG_0, 1),
68 BPF_MOV64_IMM(BPF_REG_0, 1),
89 BPF_MOV64_IMM(BPF_REG_0, 0),
109 BPF_MOV64_IMM(BPF_REG_0, 0x80),
110 BPF_STX_MEM(BPF_W, BPF_REG_6, BPF_REG_0, 0),
113 BPF_MOV64_IMM(BPF_REG_0, 1),
130 BPF_MOV64_IMM(BPF_REG_0, 0),
131 BPF_STX_MEM(BPF_W, BPF_REG_1, BPF_REG_0,
134 BPF_MOV64_IMM(BPF_REG_0, 1),
[all …]

1234