Home
last modified time | relevance | path

Searched refs:BPF_K (Results 1 – 25 of 45) sorted by relevance

12

/linux-6.3-rc2/samples/seccomp/
A Dbpf-helper.h46 BPF_STMT(BPF_RET+BPF_K, SECCOMP_RET_ALLOW)
48 BPF_STMT(BPF_RET+BPF_K, SECCOMP_RET_KILL)
56 BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, (nr), 0, 1), \
183 BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, (hi), 0, 5), \
186 BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, (lo), 0, 2), \
193 BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, (hi), 0, 3), \
196 BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, (lo), 2, 0), \
213 BPF_JUMP(BPF_JMP+BPF_JGT+BPF_K, (hi), 4, 0), \
215 BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, (hi), 0, 5), \
218 BPF_JUMP(BPF_JMP+BPF_JGE+BPF_K, (lo), 0, 2), \
[all …]
A Dbpf-direct.c118 BPF_STMT(BPF_RET+BPF_K, SECCOMP_RET_ALLOW), in install_filter()
121 BPF_STMT(BPF_RET+BPF_K, SECCOMP_RET_ALLOW), in install_filter()
124 BPF_STMT(BPF_RET+BPF_K, SECCOMP_RET_ALLOW), in install_filter()
125 BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, __NR_exit, 0, 1), in install_filter()
126 BPF_STMT(BPF_RET+BPF_K, SECCOMP_RET_ALLOW), in install_filter()
127 BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, __NR_read, 1, 0), in install_filter()
128 BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, __NR_write, 3, 2), in install_filter()
133 BPF_STMT(BPF_RET+BPF_K, SECCOMP_RET_KILL), in install_filter()
141 BPF_STMT(BPF_RET+BPF_K, SECCOMP_RET_ALLOW), in install_filter()
142 BPF_STMT(BPF_RET+BPF_K, SECCOMP_RET_TRAP), in install_filter()
[all …]
A Ddropper.c33 BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, arch, 0, 3), in install_filter()
36 BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, nr, 0, 1), in install_filter()
37 BPF_STMT(BPF_RET+BPF_K, in install_filter()
39 BPF_STMT(BPF_RET+BPF_K, SECCOMP_RET_ALLOW), in install_filter()
46 struct sock_filter kill = BPF_STMT(BPF_RET+BPF_K, SECCOMP_RET_KILL); in install_filter()
/linux-6.3-rc2/arch/powerpc/net/
A Dbpf_jit_comp64.c996 case BPF_JMP | BPF_JGT | BPF_K: in bpf_jit_build_body()
998 case BPF_JMP | BPF_JSGT | BPF_K: in bpf_jit_build_body()
1006 case BPF_JMP | BPF_JLT | BPF_K: in bpf_jit_build_body()
1008 case BPF_JMP | BPF_JSLT | BPF_K: in bpf_jit_build_body()
1016 case BPF_JMP | BPF_JGE | BPF_K: in bpf_jit_build_body()
1018 case BPF_JMP | BPF_JSGE | BPF_K: in bpf_jit_build_body()
1026 case BPF_JMP | BPF_JLE | BPF_K: in bpf_jit_build_body()
1028 case BPF_JMP | BPF_JSLE | BPF_K: in bpf_jit_build_body()
1036 case BPF_JMP | BPF_JEQ | BPF_K: in bpf_jit_build_body()
1042 case BPF_JMP | BPF_JNE | BPF_K: in bpf_jit_build_body()
[all …]
A Dbpf_jit_comp32.c1071 case BPF_JMP | BPF_JGT | BPF_K: in bpf_jit_build_body()
1073 case BPF_JMP | BPF_JSGT | BPF_K: in bpf_jit_build_body()
1081 case BPF_JMP | BPF_JLT | BPF_K: in bpf_jit_build_body()
1083 case BPF_JMP | BPF_JSLT | BPF_K: in bpf_jit_build_body()
1091 case BPF_JMP | BPF_JGE | BPF_K: in bpf_jit_build_body()
1093 case BPF_JMP | BPF_JSGE | BPF_K: in bpf_jit_build_body()
1101 case BPF_JMP | BPF_JLE | BPF_K: in bpf_jit_build_body()
1103 case BPF_JMP | BPF_JSLE | BPF_K: in bpf_jit_build_body()
1111 case BPF_JMP | BPF_JEQ | BPF_K: in bpf_jit_build_body()
1117 case BPF_JMP | BPF_JNE | BPF_K: in bpf_jit_build_body()
[all …]
/linux-6.3-rc2/arch/mips/net/
A Dbpf_jit_comp64.c646 case BPF_ALU | BPF_MOV | BPF_K: in build_insn()
670 case BPF_ALU | BPF_OR | BPF_K: in build_insn()
671 case BPF_ALU | BPF_AND | BPF_K: in build_insn()
672 case BPF_ALU | BPF_XOR | BPF_K: in build_insn()
673 case BPF_ALU | BPF_LSH | BPF_K: in build_insn()
689 case BPF_ALU | BPF_RSH | BPF_K: in build_insn()
691 case BPF_ALU | BPF_ADD | BPF_K: in build_insn()
692 case BPF_ALU | BPF_SUB | BPF_K: in build_insn()
693 case BPF_ALU | BPF_MUL | BPF_K: in build_insn()
694 case BPF_ALU | BPF_DIV | BPF_K: in build_insn()
[all …]
A Dbpf_jit_comp32.c1478 case BPF_ALU | BPF_MOV | BPF_K: in build_insn()
1508 case BPF_ALU | BPF_OR | BPF_K: in build_insn()
1509 case BPF_ALU | BPF_AND | BPF_K: in build_insn()
1510 case BPF_ALU | BPF_XOR | BPF_K: in build_insn()
1511 case BPF_ALU | BPF_LSH | BPF_K: in build_insn()
1512 case BPF_ALU | BPF_RSH | BPF_K: in build_insn()
1514 case BPF_ALU | BPF_ADD | BPF_K: in build_insn()
1515 case BPF_ALU | BPF_SUB | BPF_K: in build_insn()
1516 case BPF_ALU | BPF_MUL | BPF_K: in build_insn()
1517 case BPF_ALU | BPF_DIV | BPF_K: in build_insn()
[all …]
/linux-6.3-rc2/arch/loongarch/net/
A Dbpf_jit.c476 case BPF_ALU | BPF_MOV | BPF_K: in build_insn()
489 case BPF_ALU | BPF_ADD | BPF_K: in build_insn()
508 case BPF_ALU | BPF_SUB | BPF_K: in build_insn()
527 case BPF_ALU | BPF_MUL | BPF_K: in build_insn()
545 case BPF_ALU | BPF_DIV | BPF_K: in build_insn()
564 case BPF_ALU | BPF_MOD | BPF_K: in build_insn()
588 case BPF_ALU | BPF_AND | BPF_K: in build_insn()
607 case BPF_ALU | BPF_OR | BPF_K: in build_insn()
626 case BPF_ALU | BPF_XOR | BPF_K: in build_insn()
648 case BPF_ALU | BPF_LSH | BPF_K: in build_insn()
[all …]
/linux-6.3-rc2/tools/bpf/
A Dbpf_exp.y219 bpf_set_curr_instr(BPF_JMP | BPF_JEQ | BPF_K, 0, 0, $3); }
230 bpf_set_curr_instr(BPF_JMP | BPF_JEQ | BPF_K, 0, 0, $3); }
242 bpf_set_curr_instr(BPF_JMP | BPF_JEQ | BPF_K, 0, 0, $3); }
254 bpf_set_curr_instr(BPF_JMP | BPF_JGE | BPF_K, 0, 0, $3); }
266 bpf_set_curr_instr(BPF_JMP | BPF_JGT | BPF_K, 0, 0, $3); }
279 bpf_set_curr_instr(BPF_JMP | BPF_JGT | BPF_K, 0, 0, $3); }
290 bpf_set_curr_instr(BPF_JMP | BPF_JGT | BPF_K, 0, 0, $3); }
303 bpf_set_curr_instr(BPF_JMP | BPF_JGE | BPF_K, 0, 0, $3); }
314 bpf_set_curr_instr(BPF_JMP | BPF_JGE | BPF_K, 0, 0, $3); }
408 bpf_set_curr_instr(BPF_ALU | BPF_OR | BPF_K, 0, 0, $3); }
[all …]
A Dbpf_dbg.c223 case BPF_RET | BPF_K: in bpf_disasm()
308 case BPF_JMP_JGT | BPF_K: in bpf_disasm()
316 case BPF_JMP_JGE | BPF_K: in bpf_disasm()
324 case BPF_JMP_JEQ | BPF_K: in bpf_disasm()
344 case BPF_ALU_LSH | BPF_K: in bpf_disasm()
352 case BPF_ALU_RSH | BPF_K: in bpf_disasm()
360 case BPF_ALU_ADD | BPF_K: in bpf_disasm()
368 case BPF_ALU_SUB | BPF_K: in bpf_disasm()
376 case BPF_ALU_MUL | BPF_K: in bpf_disasm()
408 case BPF_ALU_OR | BPF_K: in bpf_disasm()
[all …]
/linux-6.3-rc2/tools/testing/selftests/seccomp/
A Dseccomp_bpf.c392 BPF_STMT(BPF_RET|BPF_K, SECCOMP_RET_ALLOW), in TEST()
584 BPF_STMT(BPF_RET|BPF_K, SECCOMP_RET_LOG), in TEST()
606 BPF_STMT(BPF_RET|BPF_K, 0x10000000U), in TEST_SIGNAL()
628 BPF_STMT(BPF_RET|BPF_K, 0x90000000U), in TEST_SIGNAL()
649 BPF_STMT(BPF_RET|BPF_K, SECCOMP_RET_KILL), in TEST_SIGNAL()
670 BPF_STMT(BPF_RET|BPF_K, SECCOMP_RET_KILL), in TEST_SIGNAL()
701 BPF_JUMP(BPF_JMP|BPF_JEQ|BPF_K, in TEST_SIGNAL()
703 BPF_STMT(BPF_RET|BPF_K, SECCOMP_RET_KILL), in TEST_SIGNAL()
742 BPF_STMT(BPF_RET|BPF_K, SECCOMP_RET_KILL), in TEST_SIGNAL()
823 BPF_STMT(BPF_RET|BPF_K, kill), in kill_thread_or_group()
[all …]
/linux-6.3-rc2/arch/riscv/net/
A Dbpf_jit_comp32.c988 if (BPF_SRC(code) == BPF_K) { in bpf_jit_emit_insn()
1030 case BPF_ALU | BPF_MUL | BPF_K: in bpf_jit_emit_insn()
1033 case BPF_ALU | BPF_DIV | BPF_K: in bpf_jit_emit_insn()
1036 case BPF_ALU | BPF_MOD | BPF_K: in bpf_jit_emit_insn()
1041 if (BPF_SRC(code) == BPF_K) { in bpf_jit_emit_insn()
1048 case BPF_ALU | BPF_MOV | BPF_K: in bpf_jit_emit_insn()
1049 case BPF_ALU | BPF_ADD | BPF_K: in bpf_jit_emit_insn()
1050 case BPF_ALU | BPF_SUB | BPF_K: in bpf_jit_emit_insn()
1051 case BPF_ALU | BPF_AND | BPF_K: in bpf_jit_emit_insn()
1052 case BPF_ALU | BPF_OR | BPF_K: in bpf_jit_emit_insn()
[all …]
A Dbpf_jit_comp64.c1189 case BPF_ALU | BPF_MOV | BPF_K: in bpf_jit_emit_insn()
1197 case BPF_ALU | BPF_ADD | BPF_K: in bpf_jit_emit_insn()
1208 case BPF_ALU | BPF_SUB | BPF_K: in bpf_jit_emit_insn()
1219 case BPF_ALU | BPF_AND | BPF_K: in bpf_jit_emit_insn()
1230 case BPF_ALU | BPF_OR | BPF_K: in bpf_jit_emit_insn()
1241 case BPF_ALU | BPF_XOR | BPF_K: in bpf_jit_emit_insn()
1252 case BPF_ALU | BPF_MUL | BPF_K: in bpf_jit_emit_insn()
1260 case BPF_ALU | BPF_DIV | BPF_K: in bpf_jit_emit_insn()
1268 case BPF_ALU | BPF_MOD | BPF_K: in bpf_jit_emit_insn()
1276 case BPF_ALU | BPF_LSH | BPF_K: in bpf_jit_emit_insn()
[all …]
/linux-6.3-rc2/arch/arm/net/
A Dbpf_jit_32.c1377 case BPF_ALU | BPF_MOV | BPF_K: in build_insn()
1390 case BPF_K: in build_insn()
1404 case BPF_ALU | BPF_ADD | BPF_K: in build_insn()
1406 case BPF_ALU | BPF_SUB | BPF_K: in build_insn()
1408 case BPF_ALU | BPF_OR | BPF_K: in build_insn()
1410 case BPF_ALU | BPF_AND | BPF_K: in build_insn()
1412 case BPF_ALU | BPF_XOR | BPF_K: in build_insn()
1414 case BPF_ALU | BPF_MUL | BPF_K: in build_insn()
1433 case BPF_K: in build_insn()
1456 case BPF_K: in build_insn()
[all …]
/linux-6.3-rc2/arch/s390/net/
A Dbpf_jit_comp.c808 case BPF_ALU | BPF_MOV | BPF_K: /* dst = (u32) imm */ in bpf_jit_insn()
814 case BPF_ALU64 | BPF_MOV | BPF_K: /* dst = imm */ in bpf_jit_insn()
851 case BPF_ALU64 | BPF_ADD | BPF_K: /* dst = dst + imm */ in bpf_jit_insn()
876 case BPF_ALU64 | BPF_SUB | BPF_K: /* dst = dst - imm */ in bpf_jit_insn()
906 case BPF_ALU64 | BPF_MUL | BPF_K: /* dst = dst * imm */ in bpf_jit_insn()
1062 case BPF_ALU64 | BPF_OR | BPF_K: /* dst = dst | imm */ in bpf_jit_insn()
1592 case BPF_JMP | BPF_JGT | BPF_K: /* (dst_reg > imm) */ in bpf_jit_insn()
1596 case BPF_JMP | BPF_JLT | BPF_K: /* (dst_reg < imm) */ in bpf_jit_insn()
1600 case BPF_JMP | BPF_JGE | BPF_K: /* (dst_reg >= imm) */ in bpf_jit_insn()
1604 case BPF_JMP | BPF_JLE | BPF_K: /* (dst_reg <= imm) */ in bpf_jit_insn()
[all …]
/linux-6.3-rc2/arch/x86/net/
A Dbpf_jit_comp32.c1689 case BPF_ALU | BPF_MOV | BPF_K: in do_jit()
1703 case BPF_K: in do_jit()
1718 case BPF_ALU | BPF_ADD | BPF_K: in do_jit()
1720 case BPF_ALU | BPF_SUB | BPF_K: in do_jit()
1722 case BPF_ALU | BPF_OR | BPF_K: in do_jit()
1724 case BPF_ALU | BPF_AND | BPF_K: in do_jit()
1744 case BPF_K: in do_jit()
1758 case BPF_K: in do_jit()
1778 case BPF_K: in do_jit()
1801 case BPF_K: in do_jit()
[all …]
A Dbpf_jit_comp.c1044 case BPF_ALU | BPF_ADD | BPF_K: in do_jit()
1045 case BPF_ALU | BPF_SUB | BPF_K: in do_jit()
1046 case BPF_ALU | BPF_AND | BPF_K: in do_jit()
1047 case BPF_ALU | BPF_OR | BPF_K: in do_jit()
1048 case BPF_ALU | BPF_XOR | BPF_K: in do_jit()
1093 case BPF_ALU | BPF_MOV | BPF_K: in do_jit()
1107 case BPF_ALU | BPF_MOD | BPF_K: in do_jit()
1108 case BPF_ALU | BPF_DIV | BPF_K: in do_jit()
1163 case BPF_ALU | BPF_MUL | BPF_K: in do_jit()
1189 case BPF_ALU | BPF_LSH | BPF_K: in do_jit()
[all …]
/linux-6.3-rc2/arch/arm64/net/
A Dbpf_jit_comp.c875 case BPF_ALU | BPF_MOV | BPF_K: in build_insn()
880 case BPF_ALU | BPF_ADD | BPF_K: in build_insn()
891 case BPF_ALU | BPF_SUB | BPF_K: in build_insn()
902 case BPF_ALU | BPF_AND | BPF_K: in build_insn()
912 case BPF_ALU | BPF_OR | BPF_K: in build_insn()
922 case BPF_ALU | BPF_XOR | BPF_K: in build_insn()
932 case BPF_ALU | BPF_MUL | BPF_K: in build_insn()
937 case BPF_ALU | BPF_DIV | BPF_K: in build_insn()
942 case BPF_ALU | BPF_MOD | BPF_K: in build_insn()
948 case BPF_ALU | BPF_LSH | BPF_K: in build_insn()
[all …]
/linux-6.3-rc2/arch/sparc/net/
A Dbpf_jit_comp_32.c402 case BPF_ALU | BPF_ADD | BPF_K: /* A += K; */ in bpf_jit_compile()
408 case BPF_ALU | BPF_SUB | BPF_K: /* A -= K */ in bpf_jit_compile()
414 case BPF_ALU | BPF_AND | BPF_K: /* A &= K */ in bpf_jit_compile()
420 case BPF_ALU | BPF_OR | BPF_K: /* A |= K */ in bpf_jit_compile()
427 case BPF_ALU | BPF_XOR | BPF_K: /* A ^= K */ in bpf_jit_compile()
445 case BPF_ALU | BPF_MUL | BPF_K: /* A *= K */ in bpf_jit_compile()
486 case BPF_RET | BPF_K: in bpf_jit_compile()
673 case BPF_JMP | BPF_JEQ | BPF_K: in bpf_jit_compile()
674 case BPF_JMP | BPF_JGT | BPF_K: in bpf_jit_compile()
675 case BPF_JMP | BPF_JGE | BPF_K: in bpf_jit_compile()
[all …]
A Dbpf_jit_comp_64.c1064 case BPF_ALU | BPF_MOV | BPF_K: in build_insn()
1073 case BPF_ALU | BPF_ADD | BPF_K: in build_insn()
1077 case BPF_ALU | BPF_SUB | BPF_K: in build_insn()
1081 case BPF_ALU | BPF_AND | BPF_K: in build_insn()
1085 case BPF_ALU | BPF_OR | BPF_K: in build_insn()
1089 case BPF_ALU | BPF_XOR | BPF_K: in build_insn()
1093 case BPF_ALU | BPF_MUL | BPF_K: in build_insn()
1099 case BPF_ALU | BPF_DIV | BPF_K: in build_insn()
1142 case BPF_ALU | BPF_LSH | BPF_K: in build_insn()
1148 case BPF_ALU | BPF_RSH | BPF_K: in build_insn()
[all …]
/linux-6.3-rc2/samples/bpf/
A Dbpf_insn.h30 .code = BPF_ALU64 | BPF_OP(OP) | BPF_K, \
38 .code = BPF_ALU | BPF_OP(OP) | BPF_K, \
66 .code = BPF_ALU64 | BPF_MOV | BPF_K, \
74 .code = BPF_ALU | BPF_MOV | BPF_K, \
197 .code = BPF_JMP | BPF_OP(OP) | BPF_K, \
207 .code = BPF_JMP32 | BPF_OP(OP) | BPF_K, \
/linux-6.3-rc2/kernel/bpf/
A Dcore.c1257 case BPF_ALU | BPF_ADD | BPF_K: in bpf_jit_blind_insn()
1258 case BPF_ALU | BPF_SUB | BPF_K: in bpf_jit_blind_insn()
1259 case BPF_ALU | BPF_AND | BPF_K: in bpf_jit_blind_insn()
1260 case BPF_ALU | BPF_OR | BPF_K: in bpf_jit_blind_insn()
1261 case BPF_ALU | BPF_XOR | BPF_K: in bpf_jit_blind_insn()
1262 case BPF_ALU | BPF_MUL | BPF_K: in bpf_jit_blind_insn()
1263 case BPF_ALU | BPF_MOV | BPF_K: in bpf_jit_blind_insn()
1264 case BPF_ALU | BPF_DIV | BPF_K: in bpf_jit_blind_insn()
1265 case BPF_ALU | BPF_MOD | BPF_K: in bpf_jit_blind_insn()
1285 case BPF_JMP | BPF_JEQ | BPF_K: in bpf_jit_blind_insn()
[all …]
/linux-6.3-rc2/tools/include/linux/
A Dfilter.h54 .code = BPF_ALU64 | BPF_OP(OP) | BPF_K, \
62 .code = BPF_ALU | BPF_OP(OP) | BPF_K, \
100 .code = BPF_ALU64 | BPF_MOV | BPF_K, \
108 .code = BPF_ALU | BPF_MOV | BPF_K, \
232 .code = BPF_JMP | BPF_OP(OP) | BPF_K, \
242 .code = BPF_JMP32 | BPF_OP(OP) | BPF_K, \
/linux-6.3-rc2/lib/
A Dtest_bpf.c627 if (mode == BPF_K) in __bpf_fill_alu_shift()
639 if (mode == BPF_K) in __bpf_fill_alu_shift()
3155 BPF_STMT(BPF_RET | BPF_K, 0),
3156 BPF_STMT(BPF_RET | BPF_K, 1),
3167 BPF_STMT(BPF_RET | BPF_K, 1)
3177 BPF_STMT(BPF_RET | BPF_K, 1)
3243 BPF_STMT(BPF_RET | BPF_K, 1),
3247 BPF_STMT(BPF_RET | BPF_K, 1),
4549 BPF_STMT(BPF_RET | BPF_K, 0)
4562 BPF_STMT(BPF_RET | BPF_K, 0)
[all …]
/linux-6.3-rc2/kernel/
A Dseccomp.c299 case BPF_RET | BPF_K: in seccomp_check_filter()
301 case BPF_ALU | BPF_ADD | BPF_K: in seccomp_check_filter()
303 case BPF_ALU | BPF_SUB | BPF_K: in seccomp_check_filter()
305 case BPF_ALU | BPF_MUL | BPF_K: in seccomp_check_filter()
307 case BPF_ALU | BPF_DIV | BPF_K: in seccomp_check_filter()
309 case BPF_ALU | BPF_AND | BPF_K: in seccomp_check_filter()
311 case BPF_ALU | BPF_OR | BPF_K: in seccomp_check_filter()
313 case BPF_ALU | BPF_XOR | BPF_K: in seccomp_check_filter()
315 case BPF_ALU | BPF_LSH | BPF_K: in seccomp_check_filter()
317 case BPF_ALU | BPF_RSH | BPF_K: in seccomp_check_filter()
[all …]

Completed in 110 milliseconds

12