svn commit: r359809 - head/sys/netinet
Michael Tuexen
tuexen at FreeBSD.org
Sat Apr 11 20:36:55 UTC 2020
Author: tuexen
Date: Sat Apr 11 20:36:54 2020
New Revision: 359809
URL: https://svnweb.freebsd.org/changeset/base/359809
Log:
Zero out pointers for consistency.
This was found by running syzkaller on an INVARIANTS kernel.
MFC after: 3 days
Modified:
head/sys/netinet/sctp_output.c
Modified: head/sys/netinet/sctp_output.c
==============================================================================
--- head/sys/netinet/sctp_output.c Sat Apr 11 17:54:35 2020 (r359808)
+++ head/sys/netinet/sctp_output.c Sat Apr 11 20:36:54 2020 (r359809)
@@ -12275,6 +12275,8 @@ sctp_send_str_reset_req(struct sctp_tcb *stcb,
/* now anything on those queues? */
TAILQ_FOREACH_SAFE(sp, &oldstream[i].outqueue, next, nsp) {
TAILQ_REMOVE(&oldstream[i].outqueue, sp, next);
+ sp->ss_next.tqe_next = NULL;
+ sp->ss_next.tqe_prev = NULL;
TAILQ_INSERT_TAIL(&stcb->asoc.strmout[i].outqueue, sp, next);
}
More information about the svn-src-all
mailing list