ertion(+), 1 deletion(-) diff --git a/net/core/filter.c b/net/core/filter.c index b9a51f322b655..d93f7dea828e5 100644 --- a/net/core/filter.c +++ b/net/core/filter.c @@ -4133,7 +4133,7 @@ static const struct bpf_func_proto bpf_xdp_store_bytes_proto = { .ret_type = RET_INTEGER, .arg1_type = ARG_PTR_TO_CTX, .arg2_type = ARG_ANYTHING, - .arg3_type = ARG_PTR_TO_UNINIT_MEM, + .arg3_type = ARG_PTR_TO_MEM | MEM_RDONLY, .arg4_type = ARG_CONST_SIZE, }; -- 2.51.0[PATCH 6.18 104/641] bpf: Fix bpf_xdp_store_bytes proto for read-only argGreg Kroah-Hartman undefinedstable@vger.kernel.org undefined undefined undefined undefined undefined‹m†–U