HomeFreeBSD

krpc: Ref cnt the client structures for TLS upcalls

Description

krpc: Ref cnt the client structures for TLS upcalls

A crash occurred during testing, where the client structures had
already been free'd when the upcall thread tried to lock them.

This patch acquires a reference count on both of the structures
and these are released when the upcall is done, so that the
structures cannot be free'd prematurely. This happened because
the testing is done over a very slow vpn.

Found during a IETF bakeathon testing event this week.

(cherry picked from commit 4ba444de708bada46a88ecac17b2f6c1dc912234)

Details

Provenance
rmacklemAuthored on Apr 27 2024, 12:55 AM
Parents
rG825cb4c850f2: nfscl: Clear out a lot of cruft related to B_DIRECT
Branches
Unknown
Tags
Unknown