HomeFreeBSD

Fix synchronization of LB group access.

Description

Fix synchronization of LB group access.

Lookups are protected by an epoch section, so the LB group linkage must
be a CK_LIST rather than a plain LIST. Furthermore, we were not
deferring LB group frees, so in_pcbremlbgrouphash() could race with
readers and cause a use-after-free.

Reviewed by: sbruno, Johannes Lundberg <johalun0@gmail.com>
Tested by: gallatin
Approved by: re (gjb)
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D17031

Details

Provenance
markjAuthored on
Reviewer
sbruno
Differential Revision
D17031: Fix synchronization of lbgroup access.
Parents
rS338570: Split some checks in vm_page_activate() to make it easier to read.
Branches
Unknown
Tags
Unknown