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)
Sat, Apr 19, 9:10 AM
Unknown Object (File)
Fri, Apr 18, 12:37 PM
Unknown Object (File)
Tue, Apr 15, 8:11 PM
Unknown Object (File)
Thu, Apr 3, 3:57 PM
Unknown Object (File)
Sat, Mar 22, 6:18 PM
Unknown Object (File)
Sat, Mar 22, 6:09 PM
Unknown Object (File)
Mar 12 2025, 8:29 PM
Unknown Object (File)
Mar 11 2025, 7:43 AM
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