NetBSD Problem Report #60051

From www@netbsd.org  Tue Mar  3 04:41:20 2026
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256
	 client-signature RSA-PSS (2048 bits) client-digest SHA256)
	(Client CN "mail.netbsd.org", Issuer "R13" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id B79091A9239
	for <gnats-bugs@gnats.NetBSD.org>; Tue,  3 Mar 2026 04:41:19 +0000 (UTC)
Message-Id: <20260303044118.C209B1A923C@mollari.NetBSD.org>
Date: Tue,  3 Mar 2026 04:41:18 +0000 (UTC)
From: aran@100acres.us
Reply-To: aran@100acres.us
To: gnats-bugs@NetBSD.org
Subject: Netboot UEFI without disk
X-Send-Pr-Version: www-1.0
X-From4GNATS: "aran@100acres.us via gnats" <gnats-admin@NetBSD.org>

>Number:         60051
>Category:       kern
>Synopsis:       Netboot UEFI without disk
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Mar 03 04:45:00 +0000 2026
>Originator:     Aran Clauson
>Release:        NetBSD 10.1
>Organization:
>Environment:
NetBSD owl.100acres.us 10.1 NetBSD 10.1 (GENERIC) #0: Mon Dec 16 13:08:11 UTC 2024  mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/amd64/compile/GENERIC amd64
>Description:
With PR #59978 applied, NetBSD will netboot with a usb drive installed, but will not boot without a storage device.

The problem is the bootinfo array is truncated at BOOTINFO_BIOSGEOM in locore.s.  Without a storage device, the length of this entry is zero and the start function stops processing entries.  On my system, this truncates the list from 12 to 5 items.  The kernel can't write to the console and cannot find the network interface to access NFS.  
>How-To-Repeat:
Apply 59978 and try to boot from a TFTP and NFS server.
>Fix:
Mark set
RCS file: /cvsroot/src/sys/arch/i386/stand/lib/bootinfo_biosgeom.c,v
retrieving revision 1.24
diff -u -r1.24 bootinfo_biosgeom.c
--- bootinfo_biosgeom.c	1 Aug 2019 13:11:03 -0000	1.24
+++ bootinfo_biosgeom.c	3 Mar 2026 04:30:53 -0000
@@ -179,5 +179,7 @@
 	if (nvalid < nhd)
 		bibg_len -= (nhd - nvalid) * sizeof(struct bi_biosgeom_entry);

-	BI_ADD(bibg, BTINFO_BIOSGEOM, bibg_len);
+    if (bibg_len > 0) 
+      BI_ADD(bibg, BTINFO_BIOSGEOM, bibg_len);
+    
 }

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.