BPF_WRITE
if (type == BPF_WRITE)
if (type == BPF_WRITE) {
if (type == BPF_WRITE) {
if (type == BPF_WRITE)
if (type == BPF_WRITE)
if (type == BPF_WRITE)
if (type == BPF_WRITE) {
arg_type & MEM_WRITE ? BPF_WRITE : BPF_READ,
arg_type & MEM_WRITE ? BPF_WRITE : BPF_READ,
BPF_WRITE : BPF_READ,
BPF_WRITE : BPF_READ,
BPF_WRITE, -1, false, false);
err = check_mem_access(env, env->insn_idx, regno, 0, BPF_DW, BPF_WRITE, -1, false, false);
if (!may_access_direct_pkt_data(env, NULL, BPF_WRITE)) {
BPF_WRITE, -1, false, false);
type = BPF_WRITE;
if (type == BPF_WRITE &&
if (type == BPF_WRITE) {
is_rdonly = !may_access_direct_pkt_data(env, NULL, BPF_WRITE);
if (type == BPF_WRITE && !(cap & BPF_MAP_CAN_WRITE)) {
if (t == BPF_WRITE)
if (t == BPF_WRITE)
if (env->ops->btf_struct_access && !type_is_alloc(reg->type) && atype == BPF_WRITE) {
if (t == BPF_WRITE || env->allow_uninit_stack)
if (t == BPF_WRITE) {
if (t == BPF_WRITE && value_regno >= 0 &&
if (t == BPF_WRITE && rdonly_mem) {
if (t == BPF_WRITE && value_regno >= 0 &&
if (t == BPF_WRITE && value_regno >= 0 &&
if (t == BPF_WRITE && !may_access_direct_pkt_data(env, NULL, t)) {
if (t == BPF_WRITE && value_regno >= 0 &&
if (t == BPF_WRITE && value_regno >= 0 &&
if (t == BPF_WRITE) {
if (t == BPF_WRITE) {
BPF_SIZE(insn->code), BPF_WRITE, insn->src_reg,
BPF_SIZE(insn->code), BPF_WRITE, -1, true, false);
if (type == BPF_WRITE)
if (access_type == BPF_WRITE) {
if (access_type == BPF_WRITE) {
if (access_type == BPF_WRITE) {
err = err ?: check_helper_mem_access(env, regno, mem_size, BPF_WRITE, true, NULL);
err = err ?: check_mem_size_reg(env, reg, regno, BPF_WRITE, true, &meta);
i, BPF_DW, BPF_WRITE, -1, false, false);
i, BPF_DW, BPF_WRITE, -1, false, false);
if (type == BPF_WRITE)
if (type == BPF_WRITE)
if (type == BPF_WRITE)
if (type == BPF_WRITE)
if (type == BPF_WRITE)
if (type == BPF_WRITE) { \
if (TYPE == BPF_WRITE) \
if (type == BPF_WRITE)
if (type == BPF_WRITE)
if (type == BPF_WRITE || size != sizeof(__u64))
if (type == BPF_WRITE || size != sizeof(__u64))
if (type == BPF_WRITE) {
if (type == BPF_WRITE) {
if (type == BPF_WRITE) {
if (type == BPF_WRITE) {
if (type == BPF_WRITE) {
if (type == BPF_WRITE) {
if (type == BPF_WRITE) {
if (type == BPF_WRITE) {
if (type == BPF_WRITE)
if (type == BPF_WRITE)
if (type == BPF_WRITE)
if (type == BPF_WRITE)
if (type == BPF_WRITE) {
if (type == BPF_WRITE)
if (type == BPF_WRITE)
if (type == BPF_WRITE)
if (type == BPF_WRITE)
if (type == BPF_WRITE)