Page MenuHomeFreeBSD

sctp: Always check for a vanishing inpcb when processing COOKIE-ECHO
ClosedPublic

Authored by markj on Aug 31 2021, 4:18 PM.
Tags
None
Referenced Files
F105821225: D31755.id94493.diff
Sat, Dec 21, 5:18 AM
F105820240: D31755.id94442.diff
Sat, Dec 21, 4:54 AM
Unknown Object (File)
Sat, Nov 30, 12:54 PM
Unknown Object (File)
Nov 16 2024, 11:14 PM
Unknown Object (File)
Oct 29 2024, 1:13 PM
Unknown Object (File)
Oct 18 2024, 6:38 PM
Unknown Object (File)
Oct 18 2024, 6:37 PM
Unknown Object (File)
Oct 18 2024, 6:37 PM
Subscribers

Details

Summary

We previously did this only in the normal case where no association
exists yet. However, it is not safe to process COOKIE-ECHO even if an
association exists, as sctp_process_cookie_existing() may dereference
the socket pointer.

See also commit 0c7dc84076b64ef74c24f04400d572f75ef61bb4. I'm not 100%
sure that this is the right fix.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 41296
Build 38185: arc lint + arc unit