Skip to content
  • Mark Johnston's avatar
    Fix synchronization of LB group access. · 54af3d0d
    Mark Johnston authored
    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
    54af3d0d