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) {
type = BPF_WRITE;
if (type == BPF_WRITE &&
if (type == BPF_WRITE) {
BPF_WRITE, -1, false, false);
BPF_WRITE, -1, false, false);
if (!may_access_direct_pkt_data(env, NULL, BPF_WRITE)) {
BPF_WRITE, -1, false, false);
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);
bool clobber = 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, reg, argno, size, BPF_WRITE, true, NULL);
err = err ?: check_mem_size_reg(env, mem_reg, size_reg, mem_argno, size_argno, BPF_WRITE, true, &meta);
i, BPF_DW, BPF_WRITE, -1, false, false);
i, BPF_DW, BPF_WRITE, -1, false, false);
arg_type & MEM_WRITE ? BPF_WRITE : BPF_READ,
arg_type & MEM_WRITE ? BPF_WRITE : BPF_READ,
BPF_WRITE : BPF_READ,
BPF_WRITE : BPF_READ,
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 || 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)