[Bug 253593] Process hangs if nullfs mounted cwd moved out of chroot

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Apr 1 18:57:03 UTC 2021


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=253593

--- Comment #8 from Patrick Sullivan <sulli00777 at gmail.com> ---
spoke with Peter earlier and realized that the script I posted was way too
heavy. This is enough to cause the panic here:
mkdir -p /test/jail/mnt /test/mounted/subdir && cp /rescue/(sh|sleep)
/test/jail && mount_nullfs /test/mounted /test/jail/mnt &&  chroot /test/jail
/sh -c ' cd /mnt/subdir; /sleep 10; cd .' & sleep 1; mv /test/mounted/subdir
/test/outside ; sleep 10; umount /test/jail/mnt ; rm -rf /test

It's a one liner you can copy and paste in to repro the issue.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list