Page MenuHomeFreeBSD

Fix KASSERT during tcp_newtcpcb when low on memory
ClosedPublic

Authored by rscheff on Jul 6 2020, 9:56 PM.
Tags
None
Referenced Files
F114884805: D25583.diff
Fri, Apr 18, 2:57 AM
Unknown Object (File)
Mar 7 2025, 4:48 PM
Unknown Object (File)
Mar 4 2025, 10:14 PM
Unknown Object (File)
Mar 4 2025, 7:32 PM
Unknown Object (File)
Mar 4 2025, 6:25 PM
Unknown Object (File)
Mar 4 2025, 8:37 AM
Unknown Object (File)
Feb 18 2025, 12:29 PM
Unknown Object (File)
Feb 11 2025, 1:53 PM
Subscribers

Details

Summary

While testing with system default cc set to cubic, and
running a memory exhaustion validation, FreeBSD panics for a
missing inpcb reference / lock.

Test Plan

Modify modular CC, to return ENOMEM during the _cb_init() function;
load modified CC, and temporarily switch to it as default CC.
Validate that a new session fails with "socket: No buffer space available", instead of a kernel panic (kassert).
Unset the modified CC as default algorithm.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable