From nobody Fri Jul 10 04:18:42 2026 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4gxJVV5F49z6kQwd for ; Fri, 10 Jul 2026 04:18:42 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "YR1" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4gxJVV3JVWz3bc3 for ; Fri, 10 Jul 2026 04:18:42 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1783657122; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=5YjHk0xSBs/N4D7gS9ItG6rSi+zagegF+3Qp8kFaEgo=; b=IW1oJKBP0oYEPUyzVUSc02mf4IybD6RvfSqI0KtwKTAXaLAC8n9Fd3Ej0bw/5/kOkAQs9g Z0uFvzNrPawNVY75sRDsDGZ8Y0CkzUAjlE3m9CJfjAMJAtze99mdCSiCrfD2MfykeefKVo erXnNmmyQUGImbGVVZ9jvnN+/tHrQcqPXTzQP3XG3ljITdYb8MmnBMFncFj1WF1kTzBi1I ei224j6NxNbYxZKIFIw/ibfsvVzFni4s1Fis7LSjgu87iVQvJ13ywwxqJuInTgkWJkRS+D rssH3D/gAR/Nb1bxDF4emkKED9iTbMycKKiOq7D0j7WCDXGJ7ORcABUlBQUoww== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1783657122; a=rsa-sha256; cv=none; b=TTjcvGaV3m0xeTTs1lNg4VrJS5/LC0wh+QppkdpMstRsS/5KQsJ+iKnpRLDwEmUuoOJ27G lFCN04ZKYE2Sl3hyaKPqtJ7fu9M6vU3rFXmHY9ykoKJBPDfl4sd/Wx8VpsxRb3hbTDoeoJ FtqIagiAJZFHElJenVRXTuNACF+PeViYH8Upc4yOtTYY5P1S0bfxL06TexZfGf3/2Rm6uC xglzZ54lB+VMF8fploTlF64MlKsTkFRMIILdNcPU6JgGeuTJthUXFo23l4sP8V39gLtX2h OUFhe4Wh+J06MFI/PDLQ4IJD5hM0sPBiqXKqaTYGUI4b3bb1Qd/bm8lnf0ebZQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1783657122; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=5YjHk0xSBs/N4D7gS9ItG6rSi+zagegF+3Qp8kFaEgo=; b=DSoqpTIVuyZWttNMGjkCVaGIkkDJoWtugqRW73eASB842E6+vNhOJe1t/jf4FChqrIhNb3 nkEz/Ty5zKvCx9FIhKigksWboqEte0mba7KkO1l6HdReGlhunp9IvU5PUowJ4uGtJYcs1E 8AUtkboYUSgqXN2j3FtUD0ljaVSeXSI6vFCJXeADMn8NlzwnnlKzVvArOfTq8PAe4DyFwX YXdYY8PEAh0amHBW30nIJrcOkD/DRoe1CagS4emxdJ64XqoRaSPJINKsn9zB8MpURpUsX7 TZPh8m4qKg26KAX/UTx9ClZp34qF41iDE0Xr2jBDoBy6xyA5OBi2XjbZBwZpXA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4gxJVV1z15zg7B for ; Fri, 10 Jul 2026 04:18:42 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 33e63 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Fri, 10 Jul 2026 04:18:42 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Warner Losh Subject: git: 603270b4d69e - main - loader.efi: Fix off by one error in size of the virtual disk List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: imp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 603270b4d69ecf0a8405e34bd41838873ddad72d Auto-Submitted: auto-generated Date: Fri, 10 Jul 2026 04:18:42 +0000 Message-Id: <6a5072a2.33e63.542dce88@gitrepo.freebsd.org> The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=603270b4d69ecf0a8405e34bd41838873ddad72d commit 603270b4d69ecf0a8405e34bd41838873ddad72d Author: Warner Losh AuthorDate: 2026-07-10 04:04:30 +0000 Commit: Warner Losh CommitDate: 2026-07-10 04:09:41 +0000 loader.efi: Fix off by one error in size of the virtual disk The end address is the final byte in the array, not one byte past the end of the array, so we need to add 1 to get the full length. Fixes: 59219fc76a4b ("loader.efi: efiblk_memdisk_preload passes the VirtualDisks to FreeBSD") Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D58069 --- stand/efi/libefi/efipart.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stand/efi/libefi/efipart.c b/stand/efi/libefi/efipart.c index b4842e1b52aa..c80a3b966376 100644 --- a/stand/efi/libefi/efipart.c +++ b/stand/efi/libefi/efipart.c @@ -1292,7 +1292,7 @@ efiblk_memdisk_preload(void) snprintf(value, sizeof(value), "0x%016x", start); setenv(key, value, 1); snprintf(key, sizeof(key), "hint.md.%d.len", i); - snprintf(value, sizeof(value), "0x%016x", end - start); + snprintf(value, sizeof(value), "%d", end - start + 1); setenv(key, value, 1); } }