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
Differential Revision: https://reviews.freebsd.org/D54394

(cherry picked from commit 1f5b1de1fdf2924066c1851ed6c73f36fe20b438)

Details

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