diff --git a/net/core/filter.c b/net/core/filter.c index b35615c469e278f3bb945e28718a4081fee97da3..370f61f9bf4ba48a2326cd3857771f7ea753afb1 100644 --- a/net/core/filter.c +++ b/net/core/filter.c @@ -7529,7 +7529,7 @@ static const struct bpf_func_proto bpf_sock_ops_load_hdr_opt_proto = { .gpl_only = false, .ret_type = RET_INTEGER, .arg1_type = ARG_PTR_TO_CTX, - .arg2_type = ARG_PTR_TO_MEM, + .arg2_type = ARG_PTR_TO_MEM | MEM_WRITE, .arg3_type = ARG_CONST_SIZE, .arg4_type = ARG_ANYTHING, };