Subject: kern/32684: uvm_fault kernel page fault trap
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: None <ctribo@dtcc.edu>
List: netbsd-bugs
Date: 01/31/2006 23:05:01
>Number:         32684
>Category:       kern
>Synopsis:       uvm_fault kernel page fault trap
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jan 31 23:05:00 +0000 2006
>Originator:     Chris Tribo
>Release:        3.0
>Organization:
>Environment:
NetBSD Columbia.dtcc.edu 3.0 NetBSD 3.0 (GENERIC.MPACPI) #0: Mon Dec 19 01:23:45 UTC 2005  builds@works.netbsd.org:/home/builds/ab/netbsd-3-0-RELEASE/i386/200612182024Z-obj/home/builds/ab/netbsd-3-0-RELEASE/src/sys/arch/i386/compile/GENERIC.MPACPI i386
>Description:
Attempting to use a LEXAR USB 2.0 JumpDrive in NetBSD/i386 3.0 release under VMware 5.5 causes uvm_fault.

$ mount_msdos /dev/sd0e /mnt
time passes
unplugged device
umass0: BBB bulk-in clear stall failed
umass0: BBB reset failed, IOERROR
umass0: at uhub0 port 1 (addr2) disconnected
sd0(umass0:0:0:0): generic HBA error
sd0(umass0:0:0:0): generic HBA error
sd0 detached
scsibus1 detached
umass0 detached
mout_msdos: /dev/sd0e on /mnt: Input/output error
uvm_fault(0xc0841ca0, 0, 0, 1) -> 0xe
kernel: page fault trap, code=0
Stopped in pid 7.1 (usb0) at netbsd:uhci_device_ctrl_start+0xa: movl
0
x4(%eax),%eax
db{0)> bt
uhci_device_ctrl_start(c0ff0d00,0,c103823c,5,fffffff4) at netbsd:uhci_device_ctrl_start+0xa
usbd_start_next(c0ff9480,2,73,286,c0ff9480) at netbsd:usbd_start_next+0x19
uhci_abort_xfer(c1038200,6,c0e50030,5dca410,3000) at netbsd:uhci_abort_xfer+0x1dd
uhci_device_ctrl_abort(c1038200,0,0,286,5) at netbsd:uhci_device_ctrl_abort+0x10usbd_ar_pipe(c0ff9480,0,cb091edc,c03b25c2,c0ff9480) at netbsd:usbd_ar_pipe+0x22
usbd_abort_pipe(c0ff9480,0,c07daa80,c102fc80,c102fc80) at netbsd:usbd_abort_pipe+0x30
usbd_kill_pipe(c0ff9480,c102fc80,c0f79c1c,c1038000,c0f79d00) at netbsd:usbd_kill_pipe+0x10
usb_free_device(c102fc80,c0f79c00,10,1,ca7ab350) at netbsd:usb_free_device+0xa9
uhub_explore(c0f79d00,0,cb091f8c,c05ad6c4,0) at netbsd:uhub_explore+0x21d
usb_discover(c0f79d80,1f4,0,0,c0100a95) at netbsd:usb_discover+0x36
usb_event_thread(c0f79d80,916000,91f000,0,c0100321) at netbsd:usb_event_thread+0x5d
 
dumping to dev 0,1 offset 525943

core file available if needed
>How-To-Repeat:
Try using a USB device on an i850 Pentium 4 system, attempt to mount the file system, it hangs, when you unplug the device the system locks up
>Fix: