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 Sat, Apr 27, 12:55 AM
Parents
rG63b747823bea: hier.7: polish entry to system manual
Branches
Unknown
Tags
Unknown