If a memory allocation failure causes bind to fail, we should take the
inpcb back out of its LB group since it's not prepared to handle
connections.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Skipped - Unit
Tests Skipped - Build Status
Buildable 47864 Build 44751: arc lint + arc unit
Event Timeline
Comment Actions
In the context of bind(2) we definitely can M_WAITOK. At what conditions is M_NOWAIT required?
Comment Actions
The inpcb mutex forces us to use M_NOWAIT here. Maybe those structures should be embedded in the port hash table instead. Though, right now we consume ~3MB per VNET jail for M_PCB mallocs.