--- sys/geom/geom_vfs.c.orig +++ sys/geom/geom_vfs.c @@ -72,6 +72,13 @@ int vfslocked; if (bip->bio_error) { + /* + * XXX: Workaround for bio_to pointing to uninitialized memory + * after orphaning. + */ + if (bip->bio_error == ENXIO) + bip->bio_to = NULL; + printf("g_vfs_done():"); g_print_bio(bip); printf(": %s\n", strerror(bip->bio_error));