David Howells <dhowells@xxxxxxxxxx> wrote: > But! I'm not sure why the reproducer works at all because the umount2() call > is *after* the chroot, so should fail on ENOENT before it even gets that > far. No, it shouldn't. It did chroot() not chdir(). > In fact, umount2() can be called multiple times, apparently successfully, and > doesn't actually unmount anything. Okay, because it chroot'd into the directory. Should it return EBUSY though? David