HomeFreeBSD

MFC r352868:

Description

MFC r352868:

RFC 7112 requires a host to put the complete IP header chain
including the TCP header in the first IP packet.
Enforce this in tcp_output(). In addition make sure that at least
one byte payload fits in the TCP segement to allow making progress.
Without this check, a kernel with INVARIANTS will panic.
This issue was found by running an instance of syzkaller.

Manually resolved a conflict, since we don't have BBR in stable/12.

Reviewed by: jtl@
Sponsored by: Netflix, Inc.
Differential Revision: https://reviews.freebsd.org/D21665

Details

Provenance
tuexenAuthored on
Differential Revision
D21665: Don't send TCP segments when the IP header chain and the TCP header doesn't fit in a packet
Parents
rS353034: MFC r352652:
Branches
Unknown
Tags
Unknown