HomeFreeBSD

ipv6: account for jumbo payload option

Description

ipv6: account for jumbo payload option

If a jumbo payload option is added, the length of the mbuf chain is
increased by 8 but the actual hop-by-hop extension header with the
jumbo playload option is only inserted in the packet if there are
other options. Therefore, adjust optlen to reflect the actual size
of IPv6 extension headers including the hop-by-hop extension header
containing the jumbo payload option.

Reported by: syzbot+73fe316271df473230eb@syzkaller.appspotmail.com
Reviewed by: markj, Timo Voelker
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D54394

Details

Provenance
tuexenAuthored on Jan 16 2026, 11:49 AM
Reviewer
markj
Differential Revision
D54394: ipv6: account for jumbo payload option
Parents
rGf8ddf74175c8: dwc: improve IPv4 transmit checksum offloading
Branches
Unknown
Tags
Unknown