]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
jail: revert the attachment part of b4e87a632955
authorJamie Gritton <jamie@FreeBSD.org>
Fri, 1 Jan 2021 03:55:49 +0000 (19:55 -0800)
committerJamie Gritton <jamie@FreeBSD.org>
Fri, 1 Jan 2021 03:55:49 +0000 (19:55 -0800)
commitb58a46347c8dd81137ef164fba1ab6b60c5b94c4
treef0b77057212f816cc8b8779ab6cf817063cf7e9c
parentd71965127fb8cf4032d35719760ef431a654bde8
jail: revert the attachment part of b4e87a632955

The change to kern_jail_set that was supposed to "also properly clean
up when attachment fails" didn't fix a memory leak but actually caused
a double free.  Back that part out, and leave the part that manages
allprison_lock state.
sys/kern/kern_jail.c