On Thu, Nov 05, 2020 at 06:48:08PM -0800, Greg Steuck wrote:
> We hit this before[1] and I punted it then. I want to understand why this
> fails. Anton, any clue why we get this error?
>
https://syzkaller.appspot.com/text?tag=CrashLog&x=12566852500000
>
> + OVERLAY=/syzkaller/userspace/overlay
> + doas umount /altroot
> umount: /altroot: not currently mounted
> + true
> + doas vnconfig -u vnd0
> vnconfig: VNDIOCCLR: Device not configured
> + true
> + doas /sbin/vnconfig vnd0 image
> + doas mount /dev/vnd0a /altroot
> + doas cp kernel /altroot/bsd
> + test -d /syzkaller/userspace/overlay
> + doas umount /altroot
> umount: /altroot: Device busy
>
> This code[0] should copy the kernel over and succeed umounting as I don't
> see anything else using /altroot all of a sudden. I could complicate the
> script to use a unique temporary directory, but this immediately runs into
> another problem of potentially leaking resources if something dies at the
> wrong time.
file system or unveil. Are you able to reproduce it by running the