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