diff options
author | Michael Tuexen <tuexen@FreeBSD.org> | 2022-06-04 05:35:54 +0000 |
---|---|---|
committer | Michael Tuexen <tuexen@FreeBSD.org> | 2023-02-01 23:17:29 +0000 |
commit | f997df3164c53be1519ba87b769fc3a87a50fc34 (patch) | |
tree | da269bc9bb72f58c5fc7a046b85360c6077250b5 /sys/netinet/sctp_pcb.h | |
parent | 821f1352112e0af022ffb7cefc1c5fb81b1574be (diff) |
sctp: improve handling of sctp inpcb flags
Use an atomic operation when the inp is not write locked.
Reported by: syzbot+bf27083e9a3f8fde8b4d@syzkaller.appspotmail.com
(cherry picked from commit a5c2009dd8ab562435fb7cc2ac0922668f9511a8)
Diffstat (limited to 'sys/netinet/sctp_pcb.h')
-rw-r--r-- | sys/netinet/sctp_pcb.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/netinet/sctp_pcb.h b/sys/netinet/sctp_pcb.h index 736b0f9d54e9..687ccf6a1c50 100644 --- a/sys/netinet/sctp_pcb.h +++ b/sys/netinet/sctp_pcb.h @@ -619,6 +619,9 @@ int sctp_swap_inpcb_for_listen(struct sctp_inpcb *inp); void sctp_clean_up_stream(struct sctp_tcb *stcb, struct sctp_readhead *rh); +void + sctp_pcb_add_flags(struct sctp_inpcb *, uint32_t); + /*- * Null in last arg inpcb indicate run on ALL ep's. Specific inp in last arg * indicates run on ONLY assoc's of the specified endpoint. |