Lines Matching refs:BPF_WRITE
5576 if (type == BPF_WRITE && !(cap & BPF_MAP_CAN_WRITE)) { in check_map_access_type()
6040 if (t == BPF_WRITE) in may_access_direct_pkt_data()
6058 if (t == BPF_WRITE) in may_access_direct_pkt_data()
7151 if (env->ops->btf_struct_access && !type_is_alloc(reg->type) && atype == BPF_WRITE) { in check_ptr_to_btf_access()
7318 if (t == BPF_WRITE || env->allow_uninit_stack) in check_stack_slot_within_bounds()
7431 if (t == BPF_WRITE) { in check_mem_access()
7445 if (t == BPF_WRITE && value_regno >= 0 && in check_mem_access()
7491 if (t == BPF_WRITE && rdonly_mem) { in check_mem_access()
7497 if (t == BPF_WRITE && value_regno >= 0 && in check_mem_access()
7515 if (t == BPF_WRITE && value_regno >= 0 && in check_mem_access()
7575 if (t == BPF_WRITE && !may_access_direct_pkt_data(env, NULL, t)) { in check_mem_access()
7579 if (t == BPF_WRITE && value_regno >= 0 && in check_mem_access()
7589 if (t == BPF_WRITE && value_regno >= 0 && in check_mem_access()
7600 if (t == BPF_WRITE) { in check_mem_access()
7624 if (t == BPF_WRITE) { in check_mem_access()
7716 BPF_SIZE(insn->code), BPF_WRITE, insn->src_reg, in check_store_reg()
7806 BPF_SIZE(insn->code), BPF_WRITE, -1, true, false); in check_atomic_rmw()
7913 if (type == BPF_WRITE) in check_stack_range_initialized()
8055 if (access_type == BPF_WRITE) { in check_helper_mem_access()
8069 if (access_type == BPF_WRITE) { in check_helper_mem_access()
8080 if (access_type == BPF_WRITE) { in check_helper_mem_access()
8208 err = err ?: check_helper_mem_access(env, regno, mem_size, BPF_WRITE, true, NULL); in check_mem_reg()
8235 err = err ?: check_mem_size_reg(env, reg, regno, BPF_WRITE, true, &meta); in check_kfunc_mem_size_reg()
8561 i, BPF_DW, BPF_WRITE, -1, false, false); in process_dynptr_func()
8670 i, BPF_DW, BPF_WRITE, -1, false, false); in process_iter_arg()
9687 arg_type & MEM_WRITE ? BPF_WRITE : BPF_READ, in check_func_arg()
9731 arg_type & MEM_WRITE ? BPF_WRITE : BPF_READ, in check_func_arg()
9742 BPF_WRITE : BPF_READ, in check_func_arg()
9748 BPF_WRITE : BPF_READ, in check_func_arg()
11342 BPF_WRITE, -1, false, false); in check_helper_call()
12424 err = check_mem_access(env, env->insn_idx, regno, 0, BPF_DW, BPF_WRITE, -1, false, false); in process_irq_flag()
13795 if (!may_access_direct_pkt_data(env, NULL, BPF_WRITE)) { in check_kfunc_call()
19543 BPF_WRITE, -1, false, false); in do_check()
20843 type = BPF_WRITE; in convert_ctx_accesses()
20875 if (type == BPF_WRITE && in convert_ctx_accesses()
20955 if (type == BPF_WRITE) { in convert_ctx_accesses()
21361 is_rdonly = !may_access_direct_pkt_data(env, NULL, BPF_WRITE); in specialize_kfunc()