History log of /freebsd/sys/netinet/sctp_indata.c (Results 1 – 25 of 487)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 101a0f09 03-Aug-2024 Michael Tuexen <tuexen@FreeBSD.org>

sctp: improve input validation for data chunks

fsn_included should only be considered, if first_frag_seen is true.
Also, fix the resetting of the control structure, if stream queues
are flushed.
Thi

sctp: improve input validation for data chunks

fsn_included should only be considered, if first_frag_seen is true.
Also, fix the resetting of the control structure, if stream queues
are flushed.
This fixes a bug where a legitimate message sequence was incorrectly
classified as illegitimate.
Thanks to Victor Boivie for reporting the issue on the userland
stack.

MFC after: 3 days

show more ...


Revision tags: release/14.1.0
# 0d15140d 09-May-2024 Michael Tuexen <tuexen@FreeBSD.org>

sctp: minor cleanup

No functional chnage intended.
MFC after: 3 days


Revision tags: release/13.3.0
# 2fb174d1 18-Feb-2024 Gordon Bergling <gbe@FreeBSD.org>

sctp(4): Fix a typo in a source code comment

- s/anthing/anything/

MFC after: 3 days


Revision tags: release/14.0.0
# 847fa61f 24-Aug-2023 Michael Tuexen <tuexen@FreeBSD.org>

sctp: improve handling of socket shutdown for reading

If a socket is marked as cannot read anymore, drop chunks which
should be added to a control element in the receive queue.
This is consistent wi

sctp: improve handling of socket shutdown for reading

If a socket is marked as cannot read anymore, drop chunks which
should be added to a control element in the receive queue.
This is consistent with dropping control elements instead of
adding them in the same situation.

Reported by: syzbot+291f6581cecb77097b16@syzkaller.appspotmail.com
MFC after: 1 week

show more ...


# c3179e66 18-Aug-2023 Michael Tuexen <tuexen@FreeBSD.org>

sctp: cleanup cdefs.h include


# 685dc743 16-Aug-2023 Warner Losh <imp@FreeBSD.org>

sys: Remove $FreeBSD$: one-line .c pattern

Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/


# 749a7fb5 14-Aug-2023 Michael Tuexen <tuexen@FreeBSD.org>

sctp: cleanup

Do not put a variable in the stcb for passing it to a function.
Just use a parameter of the function. No functional change intended.

MFC after: 1 week


Revision tags: release/13.2.0, release/12.4.0
# 979bc32c 03-Aug-2022 Michael Tuexen <tuexen@FreeBSD.org>

sctp: tweak panic message

MFC after: 1 week


# 05b3a428 25-Jul-2022 Dimitry Andric <dim@FreeBSD.org>

Fix unused variable warnings in sctp_indata.c

With clang 15, the following -Werror warnings are produced:

sys/netinet/sctp_indata.c:3309:6: error: variable 'tot_retrans' set but not used [-Werr

Fix unused variable warnings in sctp_indata.c

With clang 15, the following -Werror warnings are produced:

sys/netinet/sctp_indata.c:3309:6: error: variable 'tot_retrans' set but not used [-Werror,-Wunused-but-set-variable]
int tot_retrans = 0;
^
sys/netinet/sctp_indata.c:3842:20: error: variable 'resend' set but not used [-Werror,-Wunused-but-set-variable]
int inflight = 0, resend = 0, inbetween = 0, acked = 0, above = 0;
^
sys/netinet/sctp_indata.c:3842:47: error: variable 'acked' set but not used [-Werror,-Wunused-but-set-variable]
int inflight = 0, resend = 0, inbetween = 0, acked = 0, above = 0;
^
sys/netinet/sctp_indata.c:3842:58: error: variable 'above' set but not used [-Werror,-Wunused-but-set-variable]
int inflight = 0, resend = 0, inbetween = 0, acked = 0, above = 0;
^

The 'tot_retrans' variable was used in sctp_strike_gap_ack_chunks(), but
refactoring in 493d8e5a830e got rid of it. Remove the variable since it
no longer serves any purpose.

The 'resend', 'acked', and 'above' variables are only used when
INVARIANTS is undefined. Ensure they are only declared and set in that
case.

MFC after: 3 days

show more ...


# edc5b6ea 14-May-2022 Michael Tuexen <tuexen@FreeBSD.org>

sctp: use sb_avail() when accessing sb_acc for reading

This is a cleanup to simplify a patch for PR 260116.

PR: 260116
MFC after: 3 days


# 9b2a35b3 14-May-2022 Michael Tuexen <tuexen@FreeBSD.org>

sctp: improve consistency

No functional change intended.

MFC after: 3 days


Revision tags: release/13.1.0
# e7e65008 29-Mar-2022 Michael Tuexen <tuexen@FreeBSD.org>

sctp: fix typos

Thanks to David Sanders for fixing the typos in the userland stack.

MFC after: 3 days


Revision tags: release/12.3.0
# 105b68b4 09-Jul-2021 Michael Tuexen <tuexen@FreeBSD.org>

sctp: Fix errno in case of association setup failures

Do not report always ETIMEDOUT, but only when appropriate. In
other cases report ECONNABORTED.

MFC after: 3 days


Revision tags: release/13.0.0
# 8dc6a1ed 31-Jan-2021 Michael Tuexen <tuexen@FreeBSD.org>

sctp: fix a locking issue for old unordered data

Thanks to Anatoly Korniltsev for reporting the issue for the
userland stack.

MFC after: 3 days


# e597bae4 09-Nov-2020 Michael Tuexen <tuexen@FreeBSD.org>

Fix a potential use-after-free bug introduced in
https://svnweb.freebsd.org/changeset/base/363046

Thanks to Taylor Brandstetter for finding this issue using fuzz testing
and reporting it in https://

Fix a potential use-after-free bug introduced in
https://svnweb.freebsd.org/changeset/base/363046

Thanks to Taylor Brandstetter for finding this issue using fuzz testing
and reporting it in https://github.com/sctplab/usrsctp/issues/547

show more ...


Revision tags: release/12.2.0
# 9f2d6263 04-Oct-2020 Michael Tuexen <tuexen@FreeBSD.org>

Use __func__ instead of __FUNCTION__ for consistency.

MFC after: 3 days


# d0ed75b3 04-Oct-2020 Michael Tuexen <tuexen@FreeBSD.org>

Cleanup, no functional change intended.

MFC after: 3 days


# 1d1b4bce 27-Sep-2020 Michael Tuexen <tuexen@FreeBSD.org>

Cleanup, no functional change intended.

MFC after: 3 days


# 8f269b82 27-Sep-2020 Michael Tuexen <tuexen@FreeBSD.org>

Improve the handling of receiving unordered and unreliable user
messages using DATA chunks. Don't use fsn_included when not being
sure that it is set to an appropriate value. If the default is
used,

Improve the handling of receiving unordered and unreliable user
messages using DATA chunks. Don't use fsn_included when not being
sure that it is set to an appropriate value. If the default is
used, which is -1, this can result in SCTP associaitons not
making any user visible progress.

Thanks to Yutaka Takeda for reporting this issue for the the
userland stack in https://github.com/pion/sctp/issues/138.

MFC after: 3 days

show more ...


# b6db274d 24-Sep-2020 Michael Tuexen <tuexen@FreeBSD.org>

Whitespace changes.

MFC after: 3 days


# 662c1305 01-Sep-2020 Mateusz Guzik <mjg@FreeBSD.org>

net: clean up empty lines in .c and .h files


# c7aa572c 31-Jul-2020 Glen Barber <gjb@FreeBSD.org>

MFH

Sponsored by: Rubicon Communications, LLC (netgate.com)


# 91e04f9e 23-Jul-2020 Michael Tuexen <tuexen@FreeBSD.org>

Detect and handle an invalid reassembly constellation, which results in
a memory leak.

Thanks to Felix Weinrank for finding this issue using fuzz testing the
userland stack.

MFC after: 1 week


# 6ddc8438 10-Jul-2020 Michael Tuexen <tuexen@FreeBSD.org>

Fix a use-after-free bug for the userland stack. The kernel
stack is not affected.
Thanks to Mark Wodrich from Google for finding and reporting the
bug.

MFC after: 1 week


# b6734d8f 09-Jul-2020 Michael Tuexen <tuexen@FreeBSD.org>

Optimize flushing of receive queues.
This addresses an issue found and reported for the userland stack in
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=21243

MFC after: 1 week


12345678910>>...20