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
F168654258: D33340.diff
Sat, Aug 29, 11:13 AM
Unknown Object (File)
Wed, Aug 26, 6:15 PM
Unknown Object (File)
Tue, Aug 25, 11:00 AM
Unknown Object (File)
Tue, Aug 25, 10:39 AM
Unknown Object (File)
Tue, Aug 25, 2:35 AM
Unknown Object (File)
Mon, Aug 24, 3:58 PM
Unknown Object (File)
Sun, Aug 23, 3:38 AM
Unknown Object (File)
Fri, Aug 21, 2:32 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