HomeFreeBSD

MFC jail: fix dangling reference bug from 6754ae2572eb

Description

MFC jail: fix dangling reference bug from 6754ae2572eb

The change to use refcounts for pr_uref was mishandled in
prison_proc_free, so killing a jail's last process could add
an extra reference, leaving it an unkillable zombie.

(cherry picked from commit 195cd6ae2481dd5ad555ed65c226b6f20908d66a)

Details

Provenance
jamieAuthored on Jan 22 2021, 6:56 PM
Parents
rG3f3b216c0b4b: MFC jail: A jail could be removed without calling OSD methods
Branches
Unknown
Tags
Unknown