HomeFreeBSD

rip: Add missing minimum length validation in rip_output()

Description

rip: Add missing minimum length validation in rip_output()

If the socket is configured such that the sender is expected to supply
the IP header, then we need to verify that it actually did so.

Reported by: syzkaller+KMSAN
Reviewed by: donner
Sponsored by: The FreeBSD Foundation

(cherry picked from commit ba21825202737a8b7e90e1ef669c7fe7e7d50325)

Details

Provenance
markjAuthored on Jul 26 2021, 8:39 PM
Parents
rGef87250124b1: mrsas(4): Report more correct maximum I/O size.
Branches
Unknown
Tags
Unknown