HomeFreeBSD

sctp: improve input validation for data chunks

Description

sctp: improve input validation for data chunks

fsn_included should only be considered, if first_frag_seen is true.
Also, fix the resetting of the control structure, if stream queues
are flushed.
This fixes a bug where a legitimate message sequence was incorrectly
classified as illegitimate.
Thanks to Victor Boivie for reporting the issue on the userland
stack.

MFC after: 3 days

Details

Provenance
tuexenAuthored on Aug 3 2024, 11:27 AM
Parents
rGc1287a3bb1b7: x86/xen: ignore error to fetch memory map in xen_arch_init_physmem()
Branches
Unknown
Tags
Unknown