diff --git a/net/core/filter.c b/net/core/filter.c index bb90414d7243a4a38bde90679da9070736b00fef..023e214c626c28eee8813a18d0543aafc90520fd 100644 --- a/net/core/filter.c +++ b/net/core/filter.c @@ -8974,7 +8974,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;