NetBSD Problem Report #59758

From www@netbsd.org  Thu Nov 13 19:23:38 2025
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 "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id E88811A9239
	for <gnats-bugs@gnats.NetBSD.org>; Thu, 13 Nov 2025 19:23:37 +0000 (UTC)
Message-Id: <20251113192336.B09871A923A@mollari.NetBSD.org>
Date: Thu, 13 Nov 2025 19:23:36 +0000 (UTC)
From: k0ga@shike2.net
Reply-To: k0ga@shike2.net
To: gnats-bugs@NetBSD.org
Subject: Stack overflow while running wdattach
X-Send-Pr-Version: www-1.0

>Number:         59758
>Category:       kern
>Synopsis:       Stack overflow while running wdattach
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Nov 13 19:25:00 +0000 2025
>Last-Modified:  Mon Dec 01 17:05:00 +0000 2025
>Originator:     Roberto E. Vargas Caballero
>Release:        HEAD
>Organization:
>Environment:
The error happens in the init phase of the kernel in the installer image

>Description:
Using the installer image of NetBSD HEAD in a Supermicro 5019A-FTN4 (https://www.supermicro.com/manuals/superserver/1U/MNL-2042.pdf). When the kernel tries to attach the different disks/partitions in atabusconfig_thread a a stack overflow is detected in wdattach, resulting in a panic. A picture with the full backtrace can be located at http://k0ga.sdfeu.org/netbsd-backtrace2.jpg.

>How-To-Repeat:
Boot the Supermicro 5019A-FTN4 with the NetBSD HEAD installer image

>Fix:

>Audit-Trail:
From: "Roberto E. Vargas Caballero" <k0ga@shike2.net>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: kern/59758: Stack overflow while running wdattach
Date: Mon, 1 Dec 2025 18:02:07 +0100

 Hi,

 On Thu, Nov 13, 2025 at 07:25:00PM +0000, gnats-admin@netbsd.org wrote:
 > >Category:       kern
 > >Responsible:    kern-bug-people
 > >Synopsis:       Stack overflow while running wdattach
 > >Arrival-Date:   Thu Nov 13 19:25:00 +0000 2025

 I tried to boot without the disk and the kernel was able to finish
 the boot process, so it seems more a problem related to the partition
 table than to the hardware itself.

 Regards,

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.