NetBSD Problem Report #55956

From www@netbsd.org  Sun Jan 24 21:23:44 2021
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))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id B94EB1A923B
	for <gnats-bugs@gnats.NetBSD.org>; Sun, 24 Jan 2021 21:23:43 +0000 (UTC)
Message-Id: <20210124212342.DFEE01A923C@mollari.NetBSD.org>
Date: Sun, 24 Jan 2021 21:23:42 +0000 (UTC)
From: rspmn@arcor.de
Reply-To: rspmn@arcor.de
To: gnats-bugs@NetBSD.org
Subject: umb(4): device disconnect causes a kernel crash in umb_detach()
X-Send-Pr-Version: www-1.0

>Number:         55956
>Category:       kern
>Synopsis:       umb(4): device disconnect causes a kernel crash in umb_detach()
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jan 24 21:25:00 +0000 2021
>Closed-Date:    Wed Jun 09 06:13:17 +0000 2021
>Last-Modified:  Wed Jun 09 06:13:17 +0000 2021
>Originator:     Reinhard Speyerer
>Release:        NetBSD 9.1
>Organization:
>Environment:
NetBSD netbsd 9.1 NetBSD 9.1 (GENERIC_UMB) #1: Sat Jan 23 12:41:17 CET 2021  root@netbsd:/usr/src/sys/arch/i386/compile/GENERIC_UMB i386
>Description:
Disconnecting a USB device handled by umb(4) causes a kernel crash due
to a bug in umb_detach() which has been fixed in rev. 1.19 of if_umb.c
but NetBSD 9.1 sources still use rev. 1.18 of that file.

>How-To-Repeat:
Build a NetBSD kernel with support for umb(4), connect e.g. a Sierra
Wireless MC7304 set to AT!UDUSBCOMP=8 to a USB port and disconnect it
after umb(4) has attached to it.

>Fix:
Rebuild the kernel with rev. 1.19 of if_umb.c and reboot to make
umb_detach() work correctly:

[   547.733715] umb0 at uhub5 port 1 configuration 1 interface 12
[   547.733715] umb0: Sierra Wireless, Incorporated (0x1199) MC7304 (0x68c0), rev 2.00/0.06, addr 5
[   547.733715] umb0: version 1.0
[   610.574677] WARNING: pipe closed with active xfers on addr 5
[   610.604677] umb0: detached
[   610.604677] umb0: at uhub5 port 1 (addr 5) disconnected

>Release-Note:

>Audit-Trail:
From: David Holland <dholland-bugs@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: kern/55956: umb(4): device disconnect causes a kernel crash in
 umb_detach()
Date: Wed, 9 Jun 2021 06:02:28 +0000

 not sent to gnats (send PR comments to gnats-bugs@; note that when
 replying to yourself this usually ends up not being the default)

    ------

 From: Reinhard Speyerer <rspmn@arcor.de>
 To: kern-bug-people@netbsd.org, gnats-admin@netbsd.org, netbsd-bugs@netbsd.org
 Subject: Re: kern/55956: umb(4): device disconnect causes a kernel crash in
 	umb_detach()
 Date: Sun, 14 Feb 2021 17:51:56 +0100

 Unfortunately umb(4) currently has other bugs (including a kernel panic
 in umb_attach() when u3g(4) attaches to the serial ports). A pullup-9 of
 rev. 1.19 of if_umb.c therefore makes no sense to me at this point in time.

 PR can be closed.

 Reinhard

State-Changed-From-To: open->closed
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Wed, 09 Jun 2021 06:13:17 +0000
State-Changed-Why:
Withdrawn by submitter.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.