]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Improve the handling of cookie life times.
authorMichael Tuexen <tuexen@FreeBSD.org>
Fri, 16 Oct 2020 10:44:48 +0000 (10:44 +0000)
committerMichael Tuexen <tuexen@FreeBSD.org>
Fri, 16 Oct 2020 10:44:48 +0000 (10:44 +0000)
commita92d501617fd9dc47b148e4e8ab1bf63c92d9b14
tree0bd7093c2477e766a5b08fe5d2385157447e0e7c
parent139c09788bab89163a0378b753bc02f744b7ae10
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

MFC after: 3 days
sys/netinet/sctp.h
sys/netinet/sctp_input.c
sys/netinet/sctp_output.c
sys/netinet/sctp_sysctl.h
sys/netinet/sctp_usrreq.c