Defined in 1 files as a prototype:

Defined in 2 files as a function:

Referenced in 2 files:

Smatch caller information:

net/core/filter.c ____bpf_xdp_load_bytes() -> bpf_xdp_copy_buf()

Type Parameter Key Value
PARAM_VALUE 0 xdp 4096-ptr_max
PARAM_VALUE 0 xdp->flags 1-u32max
PARAM_VALUE 1 off 0-u16max
PARAM_VALUE 3 len 0-u16max
PARAM_VALUE 4 flush 0
BUF_SIZE 0 xdp (-1),1-s32max
BUF_SIZE 0 xdp (-1),1-s32max
BUF_SIZE 2 buf (-1),256
BUF_SIZE 2 buf (-1),256
CAPPED_DATA 1 off 1
DATA_SOURCE 0 xdp $0
DATA_SOURCE 1 off $1
DATA_SOURCE 2 buf $2
DATA_SOURCE 3 len $3
NOCHECK_CALL
UNITS 1 off unit_byte
UNITS 3 len unit_byte

net/core/filter.c ____bpf_xdp_store_bytes() -> bpf_xdp_copy_buf()

Type Parameter Key Value
PARAM_VALUE 0 xdp 4096-ptr_max
PARAM_VALUE 0 xdp->flags 1-u32max
PARAM_VALUE 1 off 0-u16max
PARAM_VALUE 3 len 0-u16max
PARAM_VALUE 4 flush 1
BUF_SIZE 0 xdp (-1),1-s32max
BUF_SIZE 0 xdp (-1),1-s32max
BUF_SIZE 2 buf (-1),256
BUF_SIZE 2 buf (-1),256
CAPPED_DATA 1 off 1
DATA_SOURCE 0 xdp $0
DATA_SOURCE 1 off $1
DATA_SOURCE 2 buf $2
DATA_SOURCE 3 len $3
NOCHECK_CALL
UNITS 1 off unit_byte
UNITS 3 len unit_byte
USER_PTR 2 buf

net/core/filter.c bpf_xdp_copy() -> bpf_xdp_copy_buf()

Type Parameter Key Value
PARAM_VALUE 1 off 0
PARAM_VALUE 4 flush 0
CAPPED_DATA 3 len 1
CAPPED_DATA 3 len 1
DATA_SOURCE 0 xdp $1
DATA_SOURCE 1 off $2
DATA_SOURCE 2 buf $0
DATA_SOURCE 3 len $3
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
USER_DATA 1 off 0
USER_DATA 2 buf 4096-ptr_max[u]
USER_DATA 3 len 0-s32max[c]
NO_OVERFLOW_SIMPLE 3 len
UNITS 1 off unit_byte
UNITS 3 len unit_byte
LOCK2 rcu_read

kernel/bpf/helpers.c bpf_dynptr_slice() -> bpf_xdp_copy_buf()

Type Parameter Key Value
PARAM_VALUE 0 xdp 4096-ptr_max
PARAM_VALUE 4 flush 0
BUF_SIZE 0 xdp 1-s32max
CAPPED_DATA 3 len 1
CAPPED_DATA 3 len 1
DATA_SOURCE 2 buf $2
DATA_SOURCE 3 len $3
NOCHECK_CALL
UNITS 1 off unit_byte
UNITS 3 len unit_byte