NetBSD-Bugs archive

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

Re: port-amd64/56171: Removing USB keyboard always causes panic



Crash is reproducible with the current kernel as well using the same
keyboard+receiver combination:

uvm_fault(0xffffffff8196
trap type 6 code 0 rip 0xffffffff8045d6cd cs 0x8 rflags 0x10246 cr2
0x12 ilevel 0 rsp 0xffffd5825d7c9fa0
curlwp 0xfffffd3dfe235500 pid 0.218 lowest kstack 0xffffd5825d7c52c0
panic: trap
cpu0: Begin traceback...
vpanic() at netbsd:vpanic+0x156
snprintf() at netbsd:snprintf
startlwp() at netbsd:startlwp
alltraps() at netbsd:alltraps+0xc3
usb_task_thread() at netbsd:usb_task_thread+0x5b
cpu0: End traceback...

On Sat, May 15, 2021 at 1:15 AM Andrius V <vezhlys%gmail.com@localhost> wrote:
>
> The following reply was made to PR port-amd64/56171; it has been noted by GNATS.
>
> From: Andrius V <vezhlys%gmail.com@localhost>
> To: port-amd64-maintainer%netbsd.org@localhost, gnats-admin%netbsd.org@localhost,
>         netbsd-bugs%netbsd.org@localhost, gnats-bugs%netbsd.org@localhost
> Cc:
> Subject: Re: port-amd64/56171: Removing USB keyboard always causes panic
> Date: Sat, 15 May 2021 01:14:15 +0300
>
>  After I bit more testing, it's actually combination of keyboard and
>  wireless Logitech M560 receiver connected to it causing the panic.
>  Thus, it explains why I didn't notice it before, I started using  this
>  mouse just recently. If receiver is not connected or connected to
>  different USB port (not keyboard usb hub), NetBSD does not crash.
>  Otherwise kernel panics in all cases. I tested other few USB devices
>  connected to the keyboard (trackball, USB network card), but they
>  don't seem to trigger panic. So, it's only caused by this specific
>  combination.
>
>  On Sat, May 15, 2021 at 1:00 AM <vezhlys%gmail.com@localhost> wrote:
>  >
>  > >Number:         56171
>  > >Category:       port-amd64
>  > >Synopsis:       Removing USB keyboard always causes panic
>  > >Confidential:   no
>  > >Severity:       serious
>  > >Priority:       high
>  > >Responsible:    port-amd64-maintainer
>  > >State:          open
>  > >Class:          sw-bug
>  > >Submitter-Id:   net
>  > >Arrival-Date:   Fri May 14 22:00:00 +0000 2021
>  > >Originator:     Andrius V
>  > >Release:        NetBSD 9.2
>  > >Organization:
>  > >Environment:
>  > NetBSD  9.2 NetBSD 9.2 (GENERIC) #0: Wed May 12 22:13:25 EEST 2021  andri=
>  usv@:/home/andriusv/netbsd-src/sys/arch/amd64/compile/GENERIC amd64
>  > >Description:
>  > After building NetBSD 9.2 code, removing my Fnatic Gear Rush Pro keyboard=
>   (it also has USB hub) from USB port always causes NetBSD to crash. I belie=
>  ve it is some kind of regression since I don't remember that happening befo=
>  re, but I may try to test older kernels (and current) later if relevant. Th=
>  e system itself is Ryzen 5 3600 CPU on x370 chipset based computer. Mate de=
>  sktop environment is used. Error log (typed manually from image, thus may c=
>  ontain typos):
>  >
>  > fatal page fault in supervisor mode
>  > trap type 6 code 0x2 rip 0xffffffff8066074c cd 0x8 rflags 0x10282 cr2 0 i=
>  level 0 rsp 0xffffdb8259a66e10
>  > curlwp 0xfffffe99290d4520 pid 0.93 lowest kstack 0xffffdb8259a642c0
>  > panic: trap
>  > cpu4: Begin traceback...
>  > vpanic() at netbsd:vpanic+0x160
>  > snprintf() at netbsd:snprintf
>  > startlwp() at netbsd:startlwp
>  > alltraps() at netbsd:alltraps+0xbb
>  > xhci_device_ctrl_start() at netbsd:xhci_netbsd_ctrl_start+0x282
>  > usbd_transfer() at netbsd:usbd_transfer+0x95
>  > usbd_do_request_len() at netbsd:usbd_do_request_len+0x99
>  > usbd_do_request() at netbsd:usbd_do_request+0x24
>  > usbd_clear_endpoint_stall_task() at netbsd:usbd_clear_endpoint_stall_task=
>  +0x6f
>  > usb_task_thread() at netbsd:usb_task_thread+0x94
>  > cpu4: End traceback...
>  >
>  > Regards,
>  > Andrius V
>  > >How-To-Repeat:
>  >
>  > >Fix:
>  >
>


Home | Main Index | Thread Index | Old Index