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

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Fri Apr 2 18:52:30 UTC 2021


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

--- Comment #10 from Patrick Sullivan <sulli00777 at gmail.com> ---
[eshnunna]|<->|[~]Z#uname -a
FreeBSD eshnunna 14.0-CURRENT FreeBSD 14.0-CURRENT #2 pat-n245800-7e199c730ccd:
Fri Apr  2 02:28:32 PDT 2021    
root at eshnunna:/usr/obj/root/stuff/repos/freebsd-src/amd64.amd64/sys/GENERIC 
amd64
[eshnunna]|<->|[~]Z#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
[1] 971
cd: warning: failed to get name of current directory
[1]  + done       chroot /test/jail /sh -c ' cd /mnt/subdir; /sleep 10; cd .'

Looks good to me. We don't see a panic anymore.

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


More information about the freebsd-bugs mailing list