Subject: kern/15754: tl driver still broken
To: None <gnats-bugs@gnats.netbsd.org>
From: None <dive@endersgame.net>
List: netbsd-bugs
Date: 02/27/2002 22:39:11
>Number:         15754
>Category:       kern
>Synopsis:       ifconfig tl0 media autoselect causes a kernel panic
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Feb 27 14:40:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     
>Release:        NetBSD 1.5ZA
>Organization:
/~\ The ASCII                         Sean Davis
\ / Ribbon Campaign                    aka dive
 X  Against HTML
/ \ Email!               http://eros.endersgame.net:8000/~dive
>Environment:
System: NetBSD eros.endersgame.net 1.5ZA NetBSD 1.5ZA (EROS) #280: Wed Feb 27 01:25:59 EST 2002 dive@eros.endersgame.net:/disk2/a/cvs/netbsd-current/src/sys/arch/i386/compile/EROS i386
Architecture: i386
Machine: i386
tl0 at pci2 dev 0 function 0
tl0: Compaq Dual Port Netelligent 10/100 TX
tl0: Ethernet address 00:08:c7:a4:a9:40
tl0: interrupting at irq 9
tlphy0 at tl0 phy 31: ThunderLAN 10BASE-T media interface, rev. 5
tlphy0: 10base5
tl1 at pci2 dev 1 function 0
tl1: Compaq Dual Port Netelligent 10/100 TX
tl1: Ethernet address 00:08:c7:a4:a9:c0
tl1: interrupting at irq 3
tlphy1 at tl1 phy 31: ThunderLAN 10BASE-T media interface, rev. 5
tlphy1: 10base5

>Description:
with tl0 configured as 100baseTX full-duplex, running ifconfig
tl0 media autoselect causes a kernel panic.
>How-To-Repeat:
ifconfig tl0 media 100baseTX mediaopt full-duplex
(do that at boot, or else that will cause a panic as well)
ifconfig tl0 media autoselect
(panic)

I have submitted another problem report a while ago about this same problem,
and it appears that PR was closed without the bug being fixed.
>Fix:
I worked around it previously by putting a null pointer check in tl_ifioctl,
but manuel did not like this and (apparently) left the driver broken.
>Release-Note:
>Audit-Trail:
>Unformatted:
 current as of 20020227