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, Oct 11, 4:28 PM
Unknown Object (File)
Sat, Oct 11, 7:57 AM
Unknown Object (File)
Sat, Oct 11, 7:56 AM
Unknown Object (File)
Sat, Oct 11, 7:56 AM
Unknown Object (File)
Sat, Oct 11, 12:36 AM
Unknown Object (File)
Sun, Oct 5, 10:25 PM
Unknown Object (File)
Sat, Sep 27, 9:30 PM
Unknown Object (File)
Sat, Sep 27, 1:59 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