NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: kern/57149
The following reply was made to PR kern/57149; it has been noted by GNATS.
From: nervoso <nervoso%k1.com.br@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc:
Subject: Re: kern/57149
Date: Mon, 09 Jan 2023 11:55:12 -0300
--=-N+rVyZphbaliuerAK3Pm
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 8bit
this problem occurs only when using "gamer" usb keyboards that have
 more than 50 variable keys
on cheap chinese or not programable keybords, that have few keys, it
does not occurs
Also, when a "gamer" type usb is connect it includes several ukbd at
once:
[ 2.694665] uhidev0: SEMICO (0x1a2c) USB gaming keyboard KX410TKL
(0x44c8), rev 1.10/1.10, addr 2, iclass 3/1
[ 2.704665] ukbd0 at uhidev0: 8 Variable keys, 6 Array codes  <<<
seems OK
[ 2.704665] uhidev1: SEMICO (0x1a2c) USB gaming keyboard KX410TKL
(0x44c8), rev 1.10/1.10, addr 2, iclass 3/1
[ 2.724665] ukbd1: autoconfiguration error: attach failed, key code
size != 8
the cpu runs fine but if the keyboard disconnect ... the system panics
on ukbd detach,
Crash version 10.0_BETA, image version 10.0_BETA.
crash: _kvm_kvatop(0)
Kernel compiled without options LOCKDEBUG.
System panicked: kernel diagnostic assertion "c->c_magic ==
CALLOUT_MAGIC" failed: file
"/home/NetBSD/BUILD/10/usr/src/sys/kern/kern_timeout.c", line 547
Backtrace from time of crash is available.
crash> bt
__kernel_end() at 0
kern_reboot() at sys_reboot
vpanic() at vpanic+0x18d
kern_assert() at __x86_indirect_thunk_rax
callout_halt() at callout_halt+0x114
ukbd_detach() at ukbd_detach+0x52
config_detach() at config_detach+0x1bc
config_detach_children() at config_detach_children+0x57
uhidev_detach() at uhidev_detach+0x28
config_detach() at config_detach+0x1bc
usb_disconnect_port() at usb_disconnect_port+0xc3
uhub_explore() at uhub_explore+0x2b7
usb_discover() at usb_discover+0x54
usb_event_thread() at usb_event_thread+0x7a
============================================
as one can see the ukbd struct data is corrupt probably when read
descripton from the keyboard
Hope it can help
--=-N+rVyZphbaliuerAK3Pm
Content-Type: text/html; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
<html><head></head><body><div>this problem occurs only when using "gamer" u=
sb keyboards that have more than 50 variable keys</div><div>on cheap =
chinese or not programable keybords, that have few keys, it does not occurs=
</div><div><br></div><div>Also, when a "gamer" type usb is connect it inclu=
des several ukbd at once:</div><div><br></div><div>[ 2.694665] uhidev0: SEM=
ICO (0x1a2c) USB gaming keyboard KX410TKL (0x44c8), rev 1.10/1.10, addr 2, =
iclass 3/1</div><div>[ 2.704665] ukbd0 at uhidev0: 8 Variable keys, 6 A=
rray codes <<< seems OK</div><div>[ 2.704665] uhidev1: =
SEMICO (0x1a2c) USB gaming keyboard KX410TKL (0x44c8), rev 1.10/1.10, addr =
2, iclass 3/1</div><div>[ 2.724665] ukbd1: autoconfiguration error: att=
ach failed, key code size !=3D 8</div><div><br></div><div>the cpu runs fine=
but if the keyboard disconnect ... the system panics on ukbd detach,</div>=
<div><br></div><div>Crash version 10.0_BETA, image version 10.0_BETA.</div>=
<div>crash: _kvm_kvatop(0)</div><div>Kernel compiled without options LOCKDE=
BUG.</div><div>System panicked: kernel diagnostic assertion "c->c_magic =
=3D=3D CALLOUT_MAGIC" failed: file "/home/NetBSD/BUILD/10/usr/src/sys/kern/=
kern_timeout.c", line 547 </div><div>Backtrace from time of crash is availa=
ble.</div><div>crash> bt</div><div>__kernel_end() at 0</div><div>kern_re=
boot() at sys_reboot</div><div>vpanic() at vpanic+0x18d</div><div>kern_asse=
rt() at __x86_indirect_thunk_rax</div><div>callout_halt() at callout_halt+0=
x114</div><div>ukbd_detach() at ukbd_detach+0x52</div><div>config_detach() =
at config_detach+0x1bc</div><div>config_detach_children() at config_detach_=
children+0x57</div><div>uhidev_detach() at uhidev_detach+0x28</div><div>con=
fig_detach() at config_detach+0x1bc</div><div>usb_disconnect_port() at usb_=
disconnect_port+0xc3</div><div>uhub_explore() at uhub_explore+0x2b7</div><d=
iv>usb_discover() at usb_discover+0x54</div><div>usb_event_thread() at usb_=
event_thread+0x7a</div><div><br></div><div>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D</div><div>as one can see the ukbd struct data i=
s corrupt probably when read descripton from the keyboard</div><div><br></d=
iv><div>Hope it can help</div><div><br></div><div class=3D"-x-evo-signature=
-wrapper"><span class=3D"-x-evo-signature" id=3D"none"></span></div></body>=
</html>
--=-N+rVyZphbaliuerAK3Pm--
Home |
Main Index |
Thread Index |
Old Index