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, Mar 9, 1:12 PM
Unknown Object (File)
Mon, Feb 23, 10:13 AM
Unknown Object (File)
Sun, Feb 22, 7:17 AM
Unknown Object (File)
Wed, Feb 18, 6:40 PM
Unknown Object (File)
Wed, Feb 18, 4:20 PM
Unknown Object (File)
Jan 31 2026, 7:13 PM
Unknown Object (File)
Jan 20 2026, 2:15 PM
Unknown Object (File)
Jan 18 2026, 7:13 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