/linux-4.4.14/samples/seccomp/ |
D | bpf-helper.c | 19 struct sock_filter *filter, size_t count) in bpf_resolve_jumps() 21 struct sock_filter *begin = filter; in bpf_resolve_jumps() 89 void seccomp_bpf_print(struct sock_filter *filter, size_t count) in seccomp_bpf_print() 91 struct sock_filter *end = filter + count; in seccomp_bpf_print()
|
D | dropper.c | 30 struct sock_filter filter[] = { in install_filter()
|
D | bpf-fancy.c | 34 struct sock_filter filter[] = { in main()
|
D | bpf-helper.h | 35 struct sock_filter *filter, size_t count); 37 void seccomp_bpf_print(struct sock_filter *filter, size_t count);
|
D | bpf-direct.c | 112 struct sock_filter filter[] = { in install_filter()
|
/linux-4.4.14/tools/testing/selftests/seccomp/ |
D | seccomp_bpf.c | 157 struct sock_filter filter[] = { in TEST() 188 struct sock_filter allow[] = { in TEST() 191 struct sock_filter *filter; in TEST() 225 struct sock_filter allow[] = { in TEST() 228 struct sock_filter *filter; in TEST() 263 struct sock_filter filter[] = { in TEST() 286 struct sock_filter filter[] = { in TEST() 311 struct sock_filter filter[] = { in TEST() 329 struct sock_filter filter[] = { in TEST() 347 struct sock_filter filter[] = { in TEST_SIGNAL() [all …]
|
/linux-4.4.14/include/linux/ |
D | filter.h | 285 ((struct sock_filter) BPF_STMT(CODE, K)) 288 ((struct sock_filter) BPF_JUMP(CODE, K, JT, JF)) 316 struct sock_filter *filter; 340 struct sock_filter insns[0]; 440 typedef int (*bpf_aux_classic_check_t)(struct sock_filter *filter, 455 int sk_get_filter(struct sock *sk, struct sock_filter __user *filter, 500 static inline bool bpf_needs_clear_a(const struct sock_filter *first) in bpf_needs_clear_a() 519 static inline u16 bpf_anc_helper(const struct sock_filter *ftest) in bpf_anc_helper()
|
/linux-4.4.14/include/uapi/linux/ |
D | filter.h | 23 struct sock_filter { /* Filter block */ struct 32 struct sock_filter __user *filter; argument
|
/linux-4.4.14/tools/testing/selftests/net/ |
D | psock_lib.h | 43 struct sock_filter bpf_filter[] = { in sock_setfilter() 58 bpf_prog.len = sizeof(bpf_filter) / sizeof(struct sock_filter); in sock_setfilter()
|
/linux-4.4.14/net/sched/ |
D | act_bpf.c | 29 struct sock_filter *bpf_ops; 107 sizeof(struct sock_filter)); in tcf_bpf_dump_bpf_info() 173 .len = sizeof(struct sock_filter) * BPF_MAXINSNS }, 178 struct sock_filter *bpf_ops; in tcf_bpf_init_from_ops()
|
D | cls_bpf.c | 48 struct sock_filter *bpf_ops; 61 .len = sizeof(struct sock_filter) * BPF_MAXINSNS }, 228 struct sock_filter *bpf_ops; in cls_bpf_prog_from_ops() 442 sizeof(struct sock_filter)); in cls_bpf_dump_bpf_info()
|
/linux-4.4.14/tools/net/ |
D | bpf_dbg.c | 131 static struct sock_filter bpf_image[BPF_MAXINSNS + 1]; 216 static void bpf_disasm(const struct sock_filter f, unsigned int i) in bpf_disasm() 438 static void bpf_dump_curr(struct bpf_regs *r, struct sock_filter *f) in bpf_dump_curr() 480 static void bpf_disasm_all(const struct sock_filter *f, unsigned int len) in bpf_disasm_all() 488 static void bpf_dump_all(const struct sock_filter *f, unsigned int len) in bpf_dump_all() 498 static bool bpf_runnable(struct sock_filter *f, unsigned int len) in bpf_runnable() 632 static void bpf_single_step(struct bpf_regs *r, struct sock_filter *f, in bpf_single_step() 854 static bool bpf_handle_breakpoint(struct bpf_regs *r, struct sock_filter *f, in bpf_handle_breakpoint() 866 static int bpf_run_all(struct sock_filter *f, uint16_t bpf_len, uint8_t *pkt, in bpf_run_all() 886 static int bpf_run_stepping(struct sock_filter *f, uint16_t bpf_len, in bpf_run_stepping() [all …]
|
D | bpf_exp.y | 593 static struct sock_filter out[BPF_MAXINSNS];
|
/linux-4.4.14/include/uapi/linux/netfilter/ |
D | xt_bpf.h | 13 struct sock_filter bpf_program[XT_BPF_MAX_NUM_INSTR];
|
/linux-4.4.14/include/net/tc_act/ |
D | tc_bpf.h | 23 struct sock_filter *bpf_ops;
|
/linux-4.4.14/net/core/ |
D | ptp_classifier.c | 120 static struct sock_filter ptp_filter[] __initdata = { in ptp_classifier_init()
|
D | filter.c | 203 static bool convert_bpf_extensions(struct sock_filter *fp, in convert_bpf_extensions() 358 static int bpf_convert_filter(struct sock_filter *prog, int len, in bpf_convert_filter() 363 struct sock_filter *fp; in bpf_convert_filter() 622 static int check_load_and_stores(const struct sock_filter *filter, int flen) in check_load_and_stores() 755 static int bpf_check_classic(const struct sock_filter *filter, in bpf_check_classic() 766 const struct sock_filter *ftest = &filter[pc]; in bpf_check_classic() 935 struct sock_filter *old_prog; in bpf_migrate_filter() 944 BUILD_BUG_ON(sizeof(struct sock_filter) != in bpf_migrate_filter() 951 old_prog = kmemdup(fp->insns, old_len * sizeof(struct sock_filter), in bpf_migrate_filter() 1945 int sk_get_filter(struct sock *sk, struct sock_filter __user *ubuf, in sk_get_filter()
|
D | sock.c | 1234 len = sk_get_filter(sk, (struct sock_filter __user *)optval, len); in sock_getsockopt()
|
/linux-4.4.14/samples/bpf/ |
D | tracex5_user.c | 15 struct sock_filter filter[] = { in install_accept_all_seccomp()
|
/linux-4.4.14/drivers/net/team/ |
D | team_mode_loadbalance.c | 239 sizeof(struct sock_filter); in lb_bpf_func_get() 248 struct sock_filter *filter = (struct sock_filter *) data; in __fprog_create() 250 if (data_len % sizeof(struct sock_filter)) in __fprog_create() 260 fprog->len = data_len / sizeof(struct sock_filter); in __fprog_create()
|
/linux-4.4.14/kernel/ |
D | seccomp.c | 64 #define MAX_INSNS_PER_PATH ((1 << 18) / sizeof(struct sock_filter)) 100 static int seccomp_check_filter(struct sock_filter *filter, unsigned int flen) in seccomp_check_filter() 104 struct sock_filter *ftest = &filter[pc]; in seccomp_check_filter() 355 BUG_ON(INT_MAX / fprog->len < sizeof(struct sock_filter)); in seccomp_prepare_filter()
|
/linux-4.4.14/arch/powerpc/net/ |
D | bpf_jit_comp.c | 33 const struct sock_filter *filter = fp->insns; in bpf_jit_build_prologue() 119 const struct sock_filter *filter = fp->insns; in bpf_jit_build_body()
|
/linux-4.4.14/lib/ |
D | test_bpf.c | 72 struct sock_filter insns[MAX_INSNS]; 94 struct sock_filter *insn; in bpf_fill_maxinsns1() 114 struct sock_filter *insn; in bpf_fill_maxinsns2() 133 struct sock_filter *insn; in bpf_fill_maxinsns3() 160 struct sock_filter *insn; in bpf_fill_maxinsns4() 179 struct sock_filter *insn; in bpf_fill_maxinsns5() 202 struct sock_filter *insn; in bpf_fill_maxinsns6() 224 struct sock_filter *insn; in bpf_fill_maxinsns7() 250 struct sock_filter *insn; in bpf_fill_maxinsns8() 324 struct sock_filter *insn; in __bpf_fill_ja() [all …]
|
/linux-4.4.14/drivers/net/ppp/ |
D | ppp_generic.c | 544 static int get_filter(void __user *arg, struct sock_filter **p) in get_filter() 547 struct sock_filter *code = NULL; in get_filter() 558 len = uprog.len * sizeof(struct sock_filter); in get_filter() 761 struct sock_filter *code; in ppp_ioctl() 787 struct sock_filter *code; in ppp_ioctl()
|
/linux-4.4.14/drivers/isdn/i4l/ |
D | isdn_ppp.c | 447 static int get_filter(void __user *arg, struct sock_filter **p) in get_filter() 450 struct sock_filter *code = NULL; in get_filter() 462 len = uprog.len * sizeof(struct sock_filter); in get_filter() 636 struct sock_filter *code; in isdn_ppp_ioctl() 660 struct sock_filter *code; in isdn_ppp_ioctl()
|
/linux-4.4.14/arch/sparc/net/ |
D | bpf_jit_comp.c | 367 const struct sock_filter *filter = fp->insns; in bpf_jit_compile()
|
/linux-4.4.14/Documentation/networking/ |
D | cdc_mbim.txt | 241 static struct sock_filter dssfilter[] = {
|
D | filter.txt | 64 struct sock_filter { /* Filter block */ 77 struct sock_filter __user *filter; 93 struct sock_filter code[] = {
|
/linux-4.4.14/arch/arm/net/ |
D | bpf_jit_32.c | 516 const struct sock_filter *inst; in build_body()
|
/linux-4.4.14/arch/mips/net/ |
D | bpf_jit.c | 655 const struct sock_filter *inst; in build_body()
|