H A D | filter.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Linux Socket Filter - Kernel level socket filtering 8 * Copyright (c) 2011 - 2014 PLUMgrid, http://plumgrid.com 16 * Andi Kleen - Fix a few bad bugs and races. 17 * Kris Katterjohn - Added many additional checks in bpf_check_classic() 96 return -EINVA in copy_bpf_fprog_from_user() 215 BPF_CALL_4(bpf_skb_load_helper_8,const struct sk_buff *,skb,const void *,data,int,headlen,int,offset) BPF_CALL_4() argument 235 BPF_CALL_2(bpf_skb_load_helper_8_no_cache,const struct sk_buff *,skb,int,offset) BPF_CALL_2() argument 242 BPF_CALL_4(bpf_skb_load_helper_16,const struct sk_buff *,skb,const void *,data,int,headlen,int,offset) BPF_CALL_4() argument 262 BPF_CALL_2(bpf_skb_load_helper_16_no_cache,const struct sk_buff *,skb,int,offset) BPF_CALL_2() argument 269 BPF_CALL_4(bpf_skb_load_helper_32,const struct sk_buff *,skb,const void *,data,int,headlen,int,offset) BPF_CALL_4() argument 289 BPF_CALL_2(bpf_skb_load_helper_32_no_cache,const struct sk_buff *,skb,int,offset) BPF_CALL_2() argument 476 bool endian = BPF_SIZE(fp->code) == BPF_H || convert_bpf_ld_abs() local 481 int offset = fp->k; convert_bpf_ld_abs() local 1188 sk_filter_release_rcu(struct rcu_head * rcu) sk_filter_release_rcu() argument 1694 BPF_CALL_5(bpf_skb_store_bytes,struct sk_buff *,skb,u32,offset,const void *,from,u32,len,u64,flags) BPF_CALL_5() argument 1731 __bpf_skb_store_bytes(struct sk_buff * skb,u32 offset,const void * from,u32 len,u64 flags) __bpf_skb_store_bytes() argument 1737 BPF_CALL_4(bpf_skb_load_bytes,const struct sk_buff *,skb,u32,offset,void *,to,u32,len) BPF_CALL_4() argument 1767 __bpf_skb_load_bytes(const struct sk_buff * skb,u32 offset,void * to,u32 len) __bpf_skb_load_bytes() argument 1773 BPF_CALL_4(bpf_flow_dissector_load_bytes,const struct bpf_flow_dissector *,ctx,u32,offset,void *,to,u32,len) BPF_CALL_4() argument 1807 BPF_CALL_5(bpf_skb_load_bytes_relative,const struct sk_buff *,skb,u32,offset,void *,to,u32,len,u32,start_header) BPF_CALL_5() argument 1913 BPF_CALL_5(bpf_l3_csum_replace,struct sk_buff *,skb,u32,offset,u64,from,u64,to,u64,flags) BPF_CALL_5() argument 1957 BPF_CALL_5(bpf_l4_csum_replace,struct sk_buff *,skb,u32,offset,u64,from,u64,to,u64,flags) BPF_CALL_5() argument 2628 u32 len = 0, offset = 0, copy = 0, poffset = 0, bytes = end - start; BPF_CALL_4() local 2756 u32 new, i = 0, l = 0, space, copy = 0, offset = 0; BPF_CALL_4() local 2936 u32 i = 0, l = 0, space, offset = 0; BPF_CALL_4() local 3734 int offset = skb_network_offset(skb); __bpf_skb_min_len() local 3933 BPF_CALL_2(bpf_xdp_adjust_head,struct xdp_buff *,xdp,int,offset) BPF_CALL_2() argument 4008 bpf_xdp_pointer(struct xdp_buff * xdp,u32 offset,u32 len) bpf_xdp_pointer() argument 4040 BPF_CALL_4(bpf_xdp_load_bytes,struct xdp_buff *,xdp,u32,offset,void *,buf,u32,len) BPF_CALL_4() argument 4067 __bpf_xdp_load_bytes(struct xdp_buff * xdp,u32 offset,void * buf,u32 len) __bpf_xdp_load_bytes() argument 4072 BPF_CALL_4(bpf_xdp_store_bytes,struct xdp_buff *,xdp,u32,offset,void *,buf,u32,len) BPF_CALL_4() argument 4099 __bpf_xdp_store_bytes(struct xdp_buff * xdp,u32 offset,void * buf,u32 len) __bpf_xdp_store_bytes() argument 4104 bpf_xdp_frags_increase_tail(struct xdp_buff * xdp,int offset) bpf_xdp_frags_increase_tail() argument 4161 bpf_xdp_frags_shrink_tail(struct xdp_buff * xdp,int offset) bpf_xdp_frags_shrink_tail() argument 4193 BPF_CALL_2(bpf_xdp_adjust_tail,struct xdp_buff *,xdp,int,offset) BPF_CALL_2() argument 4229 BPF_CALL_2(bpf_xdp_adjust_meta,struct xdp_buff *,xdp,int,offset) BPF_CALL_2() argument 6437 BPF_CALL_4(bpf_lwt_seg6_store_bytes,struct sk_buff *,skb,u32,offset,const void *,from,u32,len) BPF_CALL_4() argument 6567 BPF_CALL_3(bpf_lwt_seg6_adjust_srh,struct sk_buff *,skb,u32,offset,s32,len) BPF_CALL_3() argument 11242 BPF_CALL_4(sk_reuseport_load_bytes,const struct sk_reuseport_kern *,reuse_kern,u32,offset,void *,to,u32,len) BPF_CALL_4() argument 11259 BPF_CALL_5(sk_reuseport_load_bytes_relative,const struct sk_reuseport_kern *,reuse_kern,u32,offset,void *,to,u32,len,u32,start_header) BPF_CALL_5() argument [all...] |