Page MenuHomeFreeBSD

inpcb: use epoch protection when doing prison checks
ClosedPublic

Authored by glebius on Dec 8 2021, 6:43 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Nov 3, 8:51 AM
Unknown Object (File)
Mon, Nov 3, 8:47 AM
Unknown Object (File)
Thu, Oct 30, 11:51 PM
Unknown Object (File)
Wed, Oct 29, 3:52 PM
Unknown Object (File)
Wed, Oct 29, 1:44 PM
Unknown Object (File)
Wed, Oct 29, 1:43 PM
Unknown Object (File)
Wed, Oct 29, 1:42 PM
Unknown Object (File)
Oct 11 2025, 4:28 PM
Subscribers

Details

Summary

The pcb lookup always happens in the network epoch and in SMR section.
We can't block on a mutex due to the latter. Now that prison address
lists are protected by the network epoch, use the locked variant of KPI.

Fixes: de2d47842e8

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable