diff --git a/net/core/filter.c b/net/core/filter.c index 904f65aa2f14cd17fd34a8eacb5234f24160fa3f..d42b0d4f7d8a01f02daf536ccb7254f0ab02a503 100644 --- a/net/core/filter.c +++ b/net/core/filter.c @@ -8193,7 +8193,7 @@ static bool sock_ops_is_valid_access(int off, int size, if (type == BPF_WRITE) { switch (off) { - case offsetof(struct bpf_sock_ops, reply): + case bpf_ctx_range_till(struct bpf_sock_ops, reply, replylong[3]): case offsetof(struct bpf_sock_ops, sk_txhash): if (size != size_default) return false;