HomeFreeBSD

jail: Clean up allprison_lock handing in kern_jail_set

Description

jail: Clean up allprison_lock handing in kern_jail_set

Keep explicit track of the allprison_lock state during the final part
of kern_jail_set, instead of deducing it from the JAIL_ATTACH flag.

Also properly clean up when the attachment fails, fixing a long-
standing (though minor) memory leak.

Details

Provenance
jamieAuthored on Dec 31 2020, 11:18 PM
Parents
rG942951ba46ec: uma dbg: catch more corruption with atomics
Branches
Unknown
Tags
Unknown