From nobody Wed Feb 01 22:31:17 2023 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4P6c8P651dz3cCh0; Wed, 1 Feb 2023 22:31:17 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4P6c8P5V3rz4HtQ; Wed, 1 Feb 2023 22:31:17 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1675290677; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=4d7NFGtbufCORv2X/z9X9bdwH3+cfwHhe4H2J4zcIO4=; b=YYwImdd0jV2kHlN//OPSflj9I0IbncGzYrlUUshkJWQ9EYRecJYTvsr9fU+LSF8AgNE9hr qD1PLGPaCQazSrceoa5wJF9gagsDSHjkNTMpfBaZhlc0zKZP0f9iDPLSxb6LfE0oJOqQEj gZMqZwL0wUzWnfzSG0h8tcmLW519oSEm0H32Y9vNHcJY2D+AgOB0Yr2meMJWei6TdqPino 2GRosKID0H8GIxfWLV2IWwndsKgXglIaU/TomBVT84B8LzWsAe//Yyb2NjSbjBHma+ZNj+ zdHdWrPJCI2Pt/qSVE8mY41vrEjaZMTI/RQ1solCfT2pzjgjlxTsuDjlw1zP3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1675290677; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=4d7NFGtbufCORv2X/z9X9bdwH3+cfwHhe4H2J4zcIO4=; b=kX0NlzCMHqZspd4nctfJbRzVj4/032cQMw/m4EoZGlGZ54BK1oR30Qn9gZiyp5ABRDYb9R b/BanbJ5EBpXY7D+S2//ZBLA+v/yWx3F4NhhkrWtp6+MRP9v54GNE1Gqw9sHtCm+VT1vaF bsi4PKSG+ezQCc00S136JY2qjQ+n8/ESWFzEs9mOkGkMHmIzoAIdrJtAui5GqW4+DFhSsu ULTn5UhVRyzI9iax3ss3jq5Y9+Q42ZmDfxGXy2vsrQAE/XK5/qQEX22qIRjblDKLGuE6hd i6viGIcnyaCqzFKu/YG3oB3F+CgqZGw36OGo6wAXH/5m4qMZ8EsuEWSSIxe/vw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1675290677; a=rsa-sha256; cv=none; b=rnjhJ4WzpRcAefpUbjP04Of8yN9wnSofEZdUbjRIywsxRvV0Q401vTTID+FMDJmdSwkzzC TvfgrH4r14DcPJ8RWjmn56swhAdgDUUjN2G2MU/DsEknHo5o+XRaGeyWniKMKp104f41Xp bOIKYw+dfkHj9JBduaF74YctRXD2UdzuVk0TzyprjD5C54kO9qdljdeyWEF7aQp3zSOQZH Qx1LPCTply2KVmVI56wgtS3Gp6C+C5qAaBbFp3ULCpii16dMju7X/6fF/30wLY8lKn1u87 gVBkeAbdD2iKAnpa3K7eSNkqXJXzYsfnobSKsObpG6ZonFMs8pncOMJAJJhz7w== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4P6c8P4Xf1zWcB; Wed, 1 Feb 2023 22:31:17 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 311MVHQI082459; Wed, 1 Feb 2023 22:31:17 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 311MVHLt082458; Wed, 1 Feb 2023 22:31:17 GMT (envelope-from git) Date: Wed, 1 Feb 2023 22:31:17 GMT Message-Id: <202302012231.311MVHLt082458@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Michael Tuexen Subject: git: 2f4109acd8bc - stable/13 - sctp: don't refer to a potentially outdated stream List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: tuexen X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 2f4109acd8bc705ece55117a4f421a8a2bbf0b56 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by tuexen: URL: https://cgit.FreeBSD.org/src/commit/?id=2f4109acd8bc705ece55117a4f421a8a2bbf0b56 commit 2f4109acd8bc705ece55117a4f421a8a2bbf0b56 Author: Michael Tuexen AuthorDate: 2022-04-02 21:26:27 +0000 Commit: Michael Tuexen CommitDate: 2023-02-01 22:30:56 +0000 sctp: don't refer to a potentially outdated stream Reported by: syzbot+1593381019112e5bb35c@syzkaller.appspotmail.com (cherry picked from commit 52106f072fd06890fd50ce1a232cbf522ae2155c) --- sys/netinet/sctp_output.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/netinet/sctp_output.c b/sys/netinet/sctp_output.c index 3458da7e0578..63310a6cc48b 100644 --- a/sys/netinet/sctp_output.c +++ b/sys/netinet/sctp_output.c @@ -13399,6 +13399,8 @@ skip_preblock: KASSERT((asoc->state & SCTP_STATE_WAS_ABORTED) == 0, ("Association was aborted")); + /* The out streams might be reallocated. */ + strm = &asoc->strmout[srcv->sinfo_stream]; if (sp != NULL) { if (sp->msg_is_complete == 0) { strm->last_msg_incomplete = 1;