NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

kern/55103: /dev/wsmouse returns EINVAL



>Number:         55103
>Category:       kern
>Synopsis:       wsmouse returns EINVAL
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Mar 24 07:05:00 +0000 2020
>Originator:     Michael van Elst
>Release:        NetBSD 9.0_RC1
>Organization:
-- 
                                Michael van Elst
Internet: mlelstv%serpens.de@localhost
                                "A potential Snark may lurk in every tree."
>Environment:
	
	
System: NetBSD hoppa 9.0_RC1 NetBSD 9.0_RC1 (HOPPA) #1: Thu Dec 26 21:24:12 CET 2019 mlelstv@gossam:/home/netbsd9/obj.evbarm/home/netbsd9/src/sys/arch/evbarm/compile/HOPPA evbarm
Architecture: earmv6hf
Machine: evbarm
>Description:
Reading from /dev/wsmouse was possible to get mouse events from any program.
You would get legacy events with 32bit time_t unless the program negotiates
the current protocol version.

This now fails and a read returns EINVAL.

Reason is that the legacy handling code was moved into the COMPAT_50 module,
if the module cannot be loaded, you get ENOSYS which is then translated
into EINVAL by the wsmouse driver.

>How-To-Repeat:
hexdump -C /dev/wsmouse

>Fix:
Either move the code out of COMPAT_50 or use the current protocol
version as the default.

>Unformatted:
 	
 	


Home | Main Index | Thread Index | Old Index