|
|
@@ -7234,13 +7234,13 @@ sk_reuseport_is_valid_access(int off, int size,
|
|
|
return size == size_default;
|
|
|
|
|
|
/* Fields that allow narrowing */
|
|
|
- case offsetof(struct sk_reuseport_md, eth_protocol):
|
|
|
+ case bpf_ctx_range(struct sk_reuseport_md, eth_protocol):
|
|
|
if (size < FIELD_SIZEOF(struct sk_buff, protocol))
|
|
|
return false;
|
|
|
/* fall through */
|
|
|
- case offsetof(struct sk_reuseport_md, ip_protocol):
|
|
|
- case offsetof(struct sk_reuseport_md, bind_inany):
|
|
|
- case offsetof(struct sk_reuseport_md, len):
|
|
|
+ case bpf_ctx_range(struct sk_reuseport_md, ip_protocol):
|
|
|
+ case bpf_ctx_range(struct sk_reuseport_md, bind_inany):
|
|
|
+ case bpf_ctx_range(struct sk_reuseport_md, len):
|
|
|
bpf_ctx_record_field_size(info, size_default);
|
|
|
return bpf_ctx_narrow_access_ok(off, size, size_default);
|
|
|
|