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)
Thu, Apr 23, 9:47 PM
Unknown Object (File)
Tue, Apr 21, 2:05 PM
Unknown Object (File)
Tue, Apr 21, 4:46 AM
Unknown Object (File)
Mon, Apr 20, 2:15 PM
Unknown Object (File)
Mon, Apr 20, 7:33 AM
Unknown Object (File)
Sun, Apr 19, 3:10 PM
Unknown Object (File)
Sat, Apr 11, 12:26 PM
Unknown Object (File)
Sat, Apr 11, 3:32 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
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 43240
Build 40128: arc lint + arc unit