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
Unknown Object (File)
Sat, Sep 5, 7:28 PM
Unknown Object (File)
Wed, Sep 2, 10:39 PM
Unknown Object (File)
Aug 13 2026, 1:34 PM
Unknown Object (File)
Aug 13 2026, 1:34 PM
Unknown Object (File)
Aug 13 2026, 1:34 PM
Unknown Object (File)
Aug 13 2026, 1:33 PM
Unknown Object (File)
Aug 3 2026, 5:25 AM
Unknown Object (File)
Aug 3 2026, 12:55 AM
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