NetBSD Problem Report #59999

From www@netbsd.org  Fri Feb 13 05:09:52 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 F31631A9239
	for <gnats-bugs@gnats.NetBSD.org>; Fri, 13 Feb 2026 05:09:51 +0000 (UTC)
Message-Id: <20260213050950.F00411A923C@mollari.NetBSD.org>
Date: Fri, 13 Feb 2026 05:09:50 +0000 (UTC)
From: campbell+netbsd@mumble.net
Reply-To: campbell+netbsd@mumble.net
To: gnats-bugs@NetBSD.org
Subject: umass(4): disklabel takes minutes to fail on nonresponsive device
X-Send-Pr-Version: www-1.0
X-From4GNATS: "campbell+netbsd@mumble.net via gnats" <gnats-admin@NetBSD.org>

>Number:         59999
>Category:       kern
>Synopsis:       umass(4): disklabel takes minutes to fail on nonresponsive device
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Feb 13 05:10:00 +0000 2026
>Originator:     Taylor R Campbell
>Release:        current, 11, 10, 9, ..
>Organization:
The NotBSDisklabel Foundation, USB
>Environment:
>Description:

	My laptop has an sd(4) device that is normally nonresponsive --
	it times out on every query.  It's probably the SD card reader
	(and might be responsive if I put an SD card in it) but I
	haven't investigated.

	When I run `disklabel sd1', which /etc/security does every day,
	it takes several minutes to give up and really time out,
	printing messages like the following to dmesg every 5-10sec as
	it goes:

[ 935841.875979] umass1: BBB bulk-in clear stall failed, TIMEOUT
[ 935846.876044] umass1: BBB bulk-out clear stall failed, TIMEOUT
[ 935866.876304] umass1: BBB reset failed, TIMEOUT
[ 935871.876369] umass1: BBB bulk-in clear stall failed, TIMEOUT
[ 935876.876434] umass1: BBB bulk-out clear stall failed, TIMEOUT
[ 935896.876695] umass1: BBB reset failed, TIMEOUT
[ 935901.876760] umass1: BBB bulk-in clear stall failed, TIMEOUT
[ 935906.876825] umass1: BBB bulk-out clear stall failed, TIMEOUT
[ 935976.877736] umass1: BBB reset failed, TIMEOUT

>How-To-Repeat:

	1. find an sd(4) device that is not responsive, say sd1
	2. run `disklabel sd1' on it
	3. put a kettle on and get out the cheese and crackers to pass
	   the time while you wait

>Fix:

	Yes, please!

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.