inpcb lookups, which check inp_cred, work with pcbs that potentially went
through in_pcbfree(). So inp_cred should stay valid until SMR guarantees
its invisibility to lookups.
Submitted by: markj
Differential D33273
in_pcb: delay crfree() down into UMA dtor glebius on Dec 5 2021, 4:58 PM. Authored by Tags None Referenced Files
Details
inpcb lookups, which check inp_cred, work with pcbs that potentially went Submitted by: markj
Diff Detail
Event TimelineComment Actions Seems ok, just a couple of minor optional notes. We should really use SMR_POINTER and the other smr_types.h machinery to wrap inp_cred. This would require some churn though, since inp_cred is referenced directly in many places.
|