NetBSD Problem Report #60067
From www@netbsd.org Mon Mar 9 21:39:14 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)
client-signature RSA-PSS (2048 bits))
(Client CN "mail.netbsd.org", Issuer "R12" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id F2C691A9239
for <gnats-bugs@gnats.NetBSD.org>; Mon, 9 Mar 2026 21:39:13 +0000 (UTC)
Message-Id: <20260309213912.ED07F1A923A@mollari.NetBSD.org>
Date: Mon, 9 Mar 2026 21:39:12 +0000 (UTC)
From: ja@sdomi.pl
Reply-To: ja@sdomi.pl
To: gnats-bugs@NetBSD.org
Subject: Segfault on disklabel partition from outside the MBR bounds
X-Send-Pr-Version: www-1.0
X-From4GNATS: "ja@sdomi.pl via gnats" <gnats-admin@NetBSD.org>
>Number: 60067
>Category: install
>Synopsis: Segfault on disklabel partition from outside the MBR bounds
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: install-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Mar 09 21:40:00 +0000 2026
>Originator: dmi
>Release: 11.0 RC2
>Organization:
>Environment:
qemu-system-i386 -cdrom ~/NetBSD-11.0_RC2-i386.iso -m 64M -drive format=raw,file=/dev/sdf -boot d -accel kvm
>Description:
Adding a user-defined disklabel partition in the installer causes UB if the "start" field is lower than the wedge start; In my case, on a 4GB drive I had created two MBR partitions:
- 64MB DOSFS
- rest of the disk NetBSD
I wanted to get the first MBR partition visible in the wedge to mount it as /boot; However, upon entering start: 0MB, size: 64MB, and accepting the settings, the main menu of the disklabel step would get mangled (repeated options / duplicate partitions) or the program would crash ( https://f.sakamoto.pl/IwIPMuDg.png )
>How-To-Repeat:
1. Boot up the installer in QEMU
2. Create MBR as described above
3. Add a disklabel part with a start of "0MB"
4. x, enter
5. Observe as the universe crumbles
>Fix:
(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.