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: sergio lenzi <lenzi.sergio%gmail.com@localhost>
To: NETBSD BUGS <gnats-bugs%netbsd.org@localhost>
Cc:
Subject: Re: kern/57149
Date: Mon, 9 Jan 2023 13:23:55 -0300
--00000000000052226105f1d732a5
Content-Type: text/plain; charset="UTF-8"
his problem occurs only when using "gamer" usb keyboards that have more
than 50 variable keys
on cheap chinese or not programable keyboards, 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
--00000000000052226105f1d732a5
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
<div dir=3D"ltr"><div style=3D"color:rgb(0,0,0);font-family:Cantarell;font-=
size:14.6704px;font-style:normal;font-variant-caps:normal;font-weight:400;l=
etter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;w=
hite-space:normal;word-spacing:0px;text-decoration:none">his problem occurs=
only when using "gamer" usb keyboards that have =C2=A0more than =
50 variable keys</div><div style=3D"color:rgb(0,0,0);font-family:Cantarell;=
font-size:14.6704px;font-style:normal;font-variant-caps:normal;font-weight:=
400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:n=
one;white-space:normal;word-spacing:0px;text-decoration:none">on cheap chin=
ese or not programable keyboards, that have few keys, it does not occurs</d=
iv><div style=3D"color:rgb(0,0,0);font-family:Cantarell;font-size:14.6704px=
;font-style:normal;font-variant-caps:normal;font-weight:400;letter-spacing:=
normal;text-align:start;text-indent:0px;text-transform:none;white-space:nor=
mal;word-spacing:0px;text-decoration:none"><br></div><div style=3D"color:rg=
b(0,0,0);font-family:Cantarell;font-size:14.6704px;font-style:normal;font-v=
ariant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;t=
ext-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text=
-decoration:none">Also, when a "gamer" type usb is connect it inc=
ludes several ukbd at once:</div><div style=3D"color:rgb(0,0,0);font-family=
:Cantarell;font-size:14.6704px;font-style:normal;font-variant-caps:normal;f=
ont-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-=
transform:none;white-space:normal;word-spacing:0px;text-decoration:none"><b=
r></div><div style=3D"color:rgb(0,0,0);font-family:Cantarell;font-size:14.6=
704px;font-style:normal;font-variant-caps:normal;font-weight:400;letter-spa=
cing:normal;text-align:start;text-indent:0px;text-transform:none;white-spac=
e:normal;word-spacing:0px;text-decoration:none">[ 2.694665] uhidev0: SEMICO=
(0x1a2c) USB gaming keyboard KX410TKL (0x44c8), rev 1.10/1.10, addr 2, icl=
ass 3/1</div><div style=3D"color:rgb(0,0,0);font-family:Cantarell;font-size=
:14.6704px;font-style:normal;font-variant-caps:normal;font-weight:400;lette=
r-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white=
-space:normal;word-spacing:0px;text-decoration:none">[ 2.704665] ukbd0 at u=
hidev0: 8 Variable keys, 6 Array codes =C2=A0 <<< seems OK</div><d=
iv style=3D"color:rgb(0,0,0);font-family:Cantarell;font-size:14.6704px;font=
-style:normal;font-variant-caps:normal;font-weight:400;letter-spacing:norma=
l;text-align:start;text-indent:0px;text-transform:none;white-space:normal;w=
ord-spacing:0px;text-decoration:none">[ 2.704665] uhidev1: SEMICO (0x1a2c) =
USB gaming keyboard KX410TKL (0x44c8), rev 1.10/1.10, addr 2, iclass 3/1</d=
iv><div style=3D"color:rgb(0,0,0);font-family:Cantarell;font-size:14.6704px=
;font-style:normal;font-variant-caps:normal;font-weight:400;letter-spacing:=
normal;text-align:start;text-indent:0px;text-transform:none;white-space:nor=
mal;word-spacing:0px;text-decoration:none">[ 2.724665] ukbd1: autoconfigura=
tion error: attach failed, key code size !=3D 8</div><div style=3D"color:rg=
b(0,0,0);font-family:Cantarell;font-size:14.6704px;font-style:normal;font-v=
ariant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;t=
ext-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text=
-decoration:none"><br></div><div style=3D"color:rgb(0,0,0);font-family:Cant=
arell;font-size:14.6704px;font-style:normal;font-variant-caps:normal;font-w=
eight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-trans=
form:none;white-space:normal;word-spacing:0px;text-decoration:none">the cpu=
runs fine but if the keyboard disconnect ... the system panics on ukbd det=
ach,</div><div style=3D"color:rgb(0,0,0);font-family:Cantarell;font-size:14=
.6704px;font-style:normal;font-variant-caps:normal;font-weight:400;letter-s=
pacing:normal;text-align:start;text-indent:0px;text-transform:none;white-sp=
ace:normal;word-spacing:0px;text-decoration:none"><br></div><div style=3D"c=
olor:rgb(0,0,0);font-family:Cantarell;font-size:14.6704px;font-style:normal=
;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:=
start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0=
px;text-decoration:none">Crash version 10.0_BETA, image version 10.0_BETA.<=
/div><div style=3D"color:rgb(0,0,0);font-family:Cantarell;font-size:14.6704=
px;font-style:normal;font-variant-caps:normal;font-weight:400;letter-spacin=
g:normal;text-align:start;text-indent:0px;text-transform:none;white-space:n=
ormal;word-spacing:0px;text-decoration:none">crash: _kvm_kvatop(0)</div><di=
v style=3D"color:rgb(0,0,0);font-family:Cantarell;font-size:14.6704px;font-=
style:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal=
;text-align:start;text-indent:0px;text-transform:none;white-space:normal;wo=
rd-spacing:0px;text-decoration:none">Kernel compiled without options LOCKDE=
BUG.</div><div style=3D"color:rgb(0,0,0);font-family:Cantarell;font-size:14=
.6704px;font-style:normal;font-variant-caps:normal;font-weight:400;letter-s=
pacing:normal;text-align:start;text-indent:0px;text-transform:none;white-sp=
ace:normal;word-spacing:0px;text-decoration:none">System panicked: kernel d=
iagnostic assertion "c->c_magic =3D=3D CALLOUT_MAGIC" failed: =
file "/home/NetBSD/BUILD/10/usr/src/sys/kern/kern_timeout.c", lin=
e 547<span class=3D"gmail-Apple-converted-space">=C2=A0</span></div><div st=
yle=3D"color:rgb(0,0,0);font-family:Cantarell;font-size:14.6704px;font-styl=
e:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;tex=
t-align:start;text-indent:0px;text-transform:none;white-space:normal;word-s=
pacing:0px;text-decoration:none">Backtrace from time of crash is available.=
</div><div style=3D"color:rgb(0,0,0);font-family:Cantarell;font-size:14.670=
4px;font-style:normal;font-variant-caps:normal;font-weight:400;letter-spaci=
ng:normal;text-align:start;text-indent:0px;text-transform:none;white-space:=
normal;word-spacing:0px;text-decoration:none">crash> bt</div><div style=
=3D"color:rgb(0,0,0);font-family:Cantarell;font-size:14.6704px;font-style:n=
ormal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-a=
lign:start;text-indent:0px;text-transform:none;white-space:normal;word-spac=
ing:0px;text-decoration:none">__kernel_end() at 0</div><div style=3D"color:=
rgb(0,0,0);font-family:Cantarell;font-size:14.6704px;font-style:normal;font=
-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start=
;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;te=
xt-decoration:none">kern_reboot() at sys_reboot</div><div style=3D"color:rg=
b(0,0,0);font-family:Cantarell;font-size:14.6704px;font-style:normal;font-v=
ariant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;t=
ext-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text=
-decoration:none">vpanic() at vpanic+0x18d</div><div style=3D"color:rgb(0,0=
,0);font-family:Cantarell;font-size:14.6704px;font-style:normal;font-varian=
t-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-i=
ndent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-deco=
ration:none">kern_assert() at __x86_indirect_thunk_rax</div><div style=3D"c=
olor:rgb(0,0,0);font-family:Cantarell;font-size:14.6704px;font-style:normal=
;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:=
start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0=
px;text-decoration:none">callout_halt() at callout_halt+0x114</div><div sty=
le=3D"color:rgb(0,0,0);font-family:Cantarell;font-size:14.6704px;font-style=
:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text=
-align:start;text-indent:0px;text-transform:none;white-space:normal;word-sp=
acing:0px;text-decoration:none">ukbd_detach() at ukbd_detach+0x52</div><div=
style=3D"color:rgb(0,0,0);font-family:Cantarell;font-size:14.6704px;font-s=
tyle:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;=
text-align:start;text-indent:0px;text-transform:none;white-space:normal;wor=
d-spacing:0px;text-decoration:none">config_detach() at config_detach+0x1bc<=
/div><div style=3D"color:rgb(0,0,0);font-family:Cantarell;font-size:14.6704=
px;font-style:normal;font-variant-caps:normal;font-weight:400;letter-spacin=
g:normal;text-align:start;text-indent:0px;text-transform:none;white-space:n=
ormal;word-spacing:0px;text-decoration:none">config_detach_children() at co=
nfig_detach_children+0x57</div><div style=3D"color:rgb(0,0,0);font-family:C=
antarell;font-size:14.6704px;font-style:normal;font-variant-caps:normal;fon=
t-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-tr=
ansform:none;white-space:normal;word-spacing:0px;text-decoration:none">uhid=
ev_detach() at uhidev_detach+0x28</div><div style=3D"color:rgb(0,0,0);font-=
family:Cantarell;font-size:14.6704px;font-style:normal;font-variant-caps:no=
rmal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px=
;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:no=
ne">config_detach() at config_detach+0x1bc</div><div style=3D"color:rgb(0,0=
,0);font-family:Cantarell;font-size:14.6704px;font-style:normal;font-varian=
t-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-i=
ndent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-deco=
ration:none">usb_disconnect_port() at usb_disconnect_port+0xc3</div><div st=
yle=3D"color:rgb(0,0,0);font-family:Cantarell;font-size:14.6704px;font-styl=
e:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;tex=
t-align:start;text-indent:0px;text-transform:none;white-space:normal;word-s=
pacing:0px;text-decoration:none">uhub_explore() at uhub_explore+0x2b7</div>=
<div style=3D"color:rgb(0,0,0);font-family:Cantarell;font-size:14.6704px;fo=
nt-style:normal;font-variant-caps:normal;font-weight:400;letter-spacing:nor=
mal;text-align:start;text-indent:0px;text-transform:none;white-space:normal=
;word-spacing:0px;text-decoration:none">usb_discover() at usb_discover+0x54=
</div><div style=3D"color:rgb(0,0,0);font-family:Cantarell;font-size:14.670=
4px;font-style:normal;font-variant-caps:normal;font-weight:400;letter-spaci=
ng:normal;text-align:start;text-indent:0px;text-transform:none;white-space:=
normal;word-spacing:0px;text-decoration:none">usb_event_thread() at usb_eve=
nt_thread+0x7a</div><div style=3D"color:rgb(0,0,0);font-family:Cantarell;fo=
nt-size:14.6704px;font-style:normal;font-variant-caps:normal;font-weight:40=
0;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:non=
e;white-space:normal;word-spacing:0px;text-decoration:none"><br></div><div =
style=3D"color:rgb(0,0,0);font-family:Cantarell;font-size:14.6704px;font-st=
yle:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;t=
ext-align:start;text-indent:0px;text-transform:none;white-space:normal;word=
-spacing:0px;text-decoration:none">=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 style=3D"color:rgb(0,0,0);font-family:Cantarel=
l;font-size:14.6704px;font-style:normal;font-variant-caps:normal;font-weigh=
t:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform=
:none;white-space:normal;word-spacing:0px;text-decoration:none">as one can =
see the ukbd struct data is corrupt probably when read descripton from the =
keyboard</div><div style=3D"color:rgb(0,0,0);font-family:Cantarell;font-siz=
e:14.6704px;font-style:normal;font-variant-caps:normal;font-weight:400;lett=
er-spacing:normal;text-align:start;text-indent:0px;text-transform:none;whit=
e-space:normal;word-spacing:0px;text-decoration:none"><br></div><div style=
=3D"color:rgb(0,0,0);font-family:Cantarell;font-size:14.6704px;font-style:n=
ormal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-a=
lign:start;text-indent:0px;text-transform:none;white-space:normal;word-spac=
ing:0px;text-decoration:none">Hope it can help</div><br class=3D"gmail-Appl=
e-interchange-newline"><br></div>
--00000000000052226105f1d732a5--
Home |
Main Index |
Thread Index |
Old Index