Revert last until we can guarantee gh_guid can't escape to the
authorkrw <krw@openbsd.org>
Fri, 11 Nov 2022 18:53:29 +0000 (18:53 +0000)
committerkrw <krw@openbsd.org>
Fri, 11 Nov 2022 18:53:29 +0000 (18:53 +0000)
d_uid written to disk.

sys/kern/subr_disk.c

index fddab8a..9d7383b 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: subr_disk.c,v 1.269 2022/11/11 12:14:01 krw Exp $     */
+/*     $OpenBSD: subr_disk.c,v 1.270 2022/11/11 18:53:29 krw Exp $     */
 /*     $NetBSD: subr_disk.c,v 1.17 1996/03/16 23:17:08 christos Exp $  */
 
 /*
@@ -688,7 +688,6 @@ spoofgpt(struct buf *bp, void (*strat)(struct buf *), const uint8_t *dosbb,
        }
 
        lp->d_magic = DISKMAGIC;
-       memcpy(lp->d_uid, (char *)&gh.gh_guid, sizeof(lp->d_uid));
        *partoffp = partoff;
        free(gp, M_DEVBUF, gpbytes);