NetBSD Problem Report #28086
From sborrill@precedence.co.uk Mon Nov 8 08:59:54 2004
Return-Path: <sborrill@precedence.co.uk>
Received: from mail.ptlnet.com (noisy.precedence.co.uk [193.82.124.98])
by narn.netbsd.org (Postfix) with ESMTP id 32DA6252383
for <gnats-bugs@gnats.netbsd.org>; Mon, 8 Nov 2004 08:59:53 +0000 (UTC)
Message-Id: <200411080859.iA88xpY08359@precedence.co.uk>
Date: Mon, 8 Nov 2004 08:59:51 GMT
From: netbsd@precedence.co.uk
Reply-To: netbsd@precedence.co.uk
To: gnats-bugs@gnats.netbsd.org
Subject: ubsa0 unitialised pointers causes panic
X-Send-Pr-Version: 3.95
>Number: 28086
>Category: kern
>Synopsis: ubsa0 unitialised pointers causes panic
>Confidential: no
>Severity: critical
>Priority: high
>Responsible: kern-bug-people
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Nov 08 09:00:00 +0000 2004
>Closed-Date: Mon Nov 08 12:55:25 +0000 2004
>Last-Modified: Fri Jun 10 08:22:00 +0000 2005
>Originator: Stephen Borrill
>Release: NetBSD 2.0_RC4
>Organization:
Precedence Technologies Ltd
>Environment:
<The following information is extracted from your kernel. Please>
<append output of "ldd", "ident" where relevant (multiple lines).>
System: NetBSD laptop 2.0_RC4 NetBSD 2.0_RC4 (LAPTOP) #0: Tue Oct 26 17:17:21 BST 2004 root@laptop:/usr/2.0/sys/arch/i386/compile/LAPTOP i386
Architecture: i386
Machine: i386
>Description:
While trying to get a Vodafone 3G mobile connect card working (which is a
ubsa attached at ohci), the kernel kept panicking when ever I tried to
output data to the ucom port. I tracked this down to an uninitialised
pointer being called in usbd_open_pipe_ival() which should have been set up
in the ubsa_attach() function. This problem appears to have always been
present. Has ubsa ever worked?
kernel: page fault trap, code=0
usbd_open_pipe_ival(0,81,1,cb168c88,64) at netbsd:usbd_open_pipe_ival+0x1a
(First parameter should not be zero!)
usbd_open_pipe_intr()
ubsa_open()
ucomopen()
spec_open()
spec_vnoperate()
VOP_OPEN()
vn_open()
sys_open()
syscall_plain()
>How-To-Repeat:
if
Plug in Vodafone 3G Mobile Connect card (with a supporting kernel: see pr
filed elsewhere for this) or probably any other ubsa device. Assume it
attaches as ucom0 at ubsa0 and ubsa0 at ohci0. Then output data to the
com port (echo A > /etc/ttyU0).
>Fix:
--- ubsa.c.orig Mon Jan 5 13:28:18 2004
+++ ubsa.c Fri Nov 5 16:57:12 2004
@@ -346,6 +348,9 @@
goto error;
}
+ /* Keep interface for interrupt */
+ sc->sc_intr_iface = sc->sc_iface;
+
if (uca.bulkin == -1) {
printf("%s: Could not find data bulk in\n", devname);
sc->sc_dying = 1;
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: augustss
State-Changed-When: Mon Nov 8 12:54:54 UTC 2004
State-Changed-Why:
Problem solved in a slightly different way.
From: John Refling <refling@stanfordalumni.org>
To: netbsd <gnats-bugs@NetBSD.org>
Cc:
Subject: Re: kern/28086
Date: Fri, 10 Jun 2005 01:19:39 -0700
some more info on this success, and another piece of hardware...
BELKIN F5U012 ExpressBus Plus Hub (dp1 dp2 dp3 rs232 parallel)
[the rs-232 serial port on this box disappears when not powered by the
external adapter, although opening the box and some clever soldering
can fix that "feature", eg, short out diode D8, check this b4 doing it]
this box works without patch:
port 1 addr 2: full speed, self powered, config 1, hub(0x1122), Philips
Semiconductors(0x04cc), rev 1.10
port 1 powered
port 2 powered
port 3 powered
port 4 addr 3: full speed, power 50 mA, config 1, USB Ver1.2 Device(0x02=
30),
USB-RS232 Interface Converter(0x0711), rev 1.03
port 5 addr 4: full speed, power 98 mA, config 1, product 0x0300(0x0300)=
,
MCT(0x0711), rev 1.04
-------------------------------------------------------------------
BELKIN F5U103 USB serial
needs patch to function (else kernel panic) in kern/28086
port 1 addr 2: full speed, power 100 mA, config 1, USB-232 Adapter(0x0103=
),
Belkin Components(0x050d), rev 2.08
Only this part of the patch to ubsa.c is needed to make it work:
- err =3D usbd_open_pipe_intr(sc->sc_intr_iface,
+ err =3D usbd_open_pipe_intr(sc->sc_iface,
---------------
this is all NetBSD/i386 ver 2.02
Thanks.
____________________________________________________________________
=
>Unformatted:
>Quarter:
>Keywords:
>Date-Required:
<Please check that the above is correct for the bug being reported,>
<and append source date of snapshot, if applicable (one line).>
(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.