]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r366750:
authorMichael Tuexen <tuexen@FreeBSD.org>
Mon, 30 Nov 2020 09:18:13 +0000 (09:18 +0000)
committerMichael Tuexen <tuexen@FreeBSD.org>
Mon, 30 Nov 2020 09:18:13 +0000 (09:18 +0000)
commit3830560c597efc6d44d2514eee987e831c0a76a2
tree32c8f710d3c5affa64e2de98ead8f5afffbab49e
parenta39bf36de002a57c8f7c0df0391a2dd332312d78
MFC r366750:

Improve the handling of cookie life times.
The staleness reported in an error cause is in us, not ms.
Enforce limits on the life time via sysct; and socket options
consistently. Update the description of the sysctl variable to
use the right unit. Also do some minor cleanups.
This also fixes an interger overflow issue if the peer can
modify the cookie. This was reported by Felix Weinrank by fuzz testing
the userland stack and in
https://oss-fuzz.com/testcase-detail/4800394024452096
sys/netinet/sctp.h
sys/netinet/sctp_input.c
sys/netinet/sctp_output.c
sys/netinet/sctp_sysctl.h
sys/netinet/sctp_usrreq.c