diff options
| author | Alice Mikityanska <alice@isovalent.com> | 2026-07-10 16:42:38 +0300 |
|---|---|---|
| committer | Paolo Abeni <pabeni@redhat.com> | 2026-07-22 13:47:02 +0200 |
| commit | 8475a3efe6e64c1136c3f2bb87294c072b95b7c1 (patch) | |
| tree | 02621f24938ec5299de1361324593c9e21d3f59a /include | |
| parent | efbc1aa8ed54d1f48d2855f8cff0017429531331 (diff) | |
udp: Validate UDP length in udp_gro_receive
In the previous commit we started using uh->len = 0 as a marker of a GRO
packet bigger than 65536 bytes. Filter out malformed packets coming from
the wire with len=0 at udp_gro_receive to exclude them from GRO.
Note that a similar check was present in udp_gro_receive_segment, but
not in the UDP socket gro_receive flow. By adding an early check to
udp_gro_receive, the check in udp_gro_receive_segment can be dropped.
Signed-off-by: Alice Mikityanska <alice@isovalent.com>
Reviewed-by: Willem de Bruijn <willemb@google.com>
Link: https://patch.msgid.link/20260710134242.216538-6-alice.kernel@fastmail.im
Reviewed-by: Nikolay Aleksandrov <razor@blackwall.org>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
