Subject: kern/14492: Recent changes to wsmouse driver cause a system crash
To: None <gnats-bugs@gnats.netbsd.org>
From: Matthias Scheler <tron@colwyn.zhadum.de>
List: netbsd-bugs
Date: 11/07/2001 13:41:29
>Number: 14492
>Category: kern
>Synopsis: Recent changes to wsmouse driver cause a system crash
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: kern-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Nov 07 04:42:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:
>Release: NetBSD 1.5Y (2001-11-07 sources)
>Organization:
Matthias Scheler http://scheler.de/~matthias/
>Environment:
System: NetBSD lyssa.zhadum.de 1.5Y NetBSD 1.5Y (LYSSA) #0: Wed Nov 7 13:00:09 CET 2001 tron@lyssa.zhadum.de:/src/sys/compile/LYSSA i386
Architecture: i386
Machine: i386
>Description:
I've got Logitech USB-PS/2 Mouse conntect to an USB port on my system's
motherboard which works fine with NetBSD and XFree86 4.1.0 for ages:
ohci0 at pci0 dev 2 function 2: Silicon Integrated System 5597/5598 USB host controller (rev. 0x07)
ohci0: interrupting at irq 12
ohci0: OHCI version 1.0, legacy support
usb0 at ohci0: USB revision 1.0
uhub0 at usb0
uhub0: Silicon Integra OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 3 ports with 3 removable, self powered
ohci1 at pci0 dev 2 function 3: Silicon Integrated System 5597/5598 USB host controller (rev. 0x07)
ohci1: interrupting at irq 10
ohci1: OHCI version 1.0, legacy support
usb1 at ohci1: USB revision 1.0
uhub1 at usb1
uhub1: Silicon Integra OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 3 ports with 3 removable, self powered
ums0 at uhub1 port 1 configuration 1 interface 0
ums0: Logitech USB-PS/2 Mouse, rev 1.00/1.10, addr 2, iclass 3/1
ums0: 3 buttons and Z dir.
wsmouse0 at ums0 mux 0
After the recent changes to the wsmouse driver my system panics while
starting the X11 server ...
(==) NV(0): Backing store disabled
(==) NV(0): Silken mouse enabled
(**) NV(0): DPMS enabled
(**) Mouse1: Protocol: WSMouse
(**) Mouse1: Core Pointer
(==) Mouse1: Buttons: 3
(**) Mouse1: ZAxisMapping: buttons 4 and 5
(II) Keyboard "Keyboard1" handled by legacy driver
(II) XINPUT: Adding extended input device "Mouse1" (type: MOUSE)
... with this panic:
uvm_fault(0xd48ed6a0, 0x0, 0, 1) -> e
fatal page fault in supervisor mode
trap type 6 code 0 eip c02cb416 cs 8 eflags 13282 cr2 54 cpl 0
panic: trap
Begin traceback...
trap() at trap+0x1ea
--- trap (number 6) ---
wsmux_detach_sc(c08f4400,d491bf04,d491bd70,c01772a6) at wsmux_detach_sc+0xe
wsmouseopen(3100,807,2000,d491156c,d47fdd1c) at wsmouseopen+0x61
spec_open(d491bdec,20,0,0,0) at spec_open+0x14f
VOP_OPEN(d47fdd1c,807,c09e7100,d491156c,0) at VOP_OPEN+0x3b
vn_open(d491bee0,807,0,ffffffff,d491bf80) at vn_open+0x2a8
sys_open(d491156c,d491bf80,d491bf78,c0289cdc) at sys_open+0xbe
syscall_plain(1f,1f,1f,1f,8234e30) at syscall_plain+0xa7
End traceback...
syncing disks... 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15
My mouse is configured like this in "/etc/X11/XF86Config":
Section "InputDevice"
Identifier "Mouse1"
Driver "mouse"
Option "Protocol" "WSMouse"
Option "Device" "/dev/wsmouse0"
Option "ZAxisMapping" "4 5"
EndSection
>How-To-Repeat:
Start XFree86 4.1.0 on a system with the mouse recent wsmouse driver.
>Fix:
Nonde provided.
>Release-Note:
>Audit-Trail:
>Unformatted: