Subject: kern/5679: Kernel panics when PCMCIA modem is plugged in
To: None <gnats-bugs@gnats.netbsd.org>
From: Lennart Augustsson <augustss@cs.chalmers.se>
List: netbsd-bugs
Date: 06/30/1998 16:12:26
>Number:         5679
>Category:       kern
>Synopsis:       Kernel panics when PCMCIA modem is plugged in
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people (Kernel Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jun 30 07:20:00 1998
>Last-Modified:
>Originator:     Lennart Augustsson
>Organization:
Chalmers University
>Release:        NetBSD-current 980630
>Environment:


>Description:
	When a PCMCIA modem is plugged in the kernel sometimes
	dies.  I believe the reason is that there is a malloc()
	with M_WAITOK happening.
	Here's DDB trace:
	vm_fault()
	vm_fault_wire()
	vm_map_pageable()
	kmem_malloc()
	malloc(1000,2,0)		<-----
	com_attach_subr()
	com_pcmcia_attach()
	config_attach()
	config_found_sm()
	pcmcia_card_attach()
	pcic_attach_card()
	pcic_intr_socket()
	pcic_intr()
	Xintr5()
>How-To-Repeat:
	Plug in a PCMCIA modem card in a running system.  I don't know
	if it happens every time.
>Fix:
	Use M_NOWAIT and deal with a possible 0 return in the com
	attachment?
>Audit-Trail:
>Unformatted: