git: bdb99f6f5e31 - main - sctp: remove KASSERT() which not always holds

From: Michael Tuexen <tuexen_at_FreeBSD.org>
Date: Sun, 20 Feb 2022 15:01:03 UTC
The branch main has been updated by tuexen:

URL: https://cgit.FreeBSD.org/src/commit/?id=bdb99f6f5e311cded759abceee8ee17c951a3b8d

commit bdb99f6f5e311cded759abceee8ee17c951a3b8d
Author:     Michael Tuexen <tuexen@FreeBSD.org>
AuthorDate: 2022-02-20 14:59:21 +0000
Commit:     Michael Tuexen <tuexen@FreeBSD.org>
CommitDate: 2022-02-20 14:59:21 +0000

    sctp: remove KASSERT() which not always holds
    
    Reported by:    syzbot+c907045aed2043011f3c@syzkaller.appspotmail.com
    MFC after:      3 days
---
 sys/netinet/sctp_output.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/sys/netinet/sctp_output.c b/sys/netinet/sctp_output.c
index 43804b161cda..a46264cd3efe 100644
--- a/sys/netinet/sctp_output.c
+++ b/sys/netinet/sctp_output.c
@@ -13696,8 +13696,6 @@ skip_out_eof:
 	KASSERT(stcb != NULL, ("stcb is NULL"));
 	KASSERT(hold_tcblock, ("hold_tcblock is false"));
 	SCTP_TCB_LOCK_ASSERT(stcb);
-	KASSERT((asoc->state & SCTP_STATE_ABOUT_TO_BE_FREED) == 0,
-	    ("Association about to be freed"));
 
 out:
 out_unlocked: