Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 1 Dec 2021 17:32:37 +0100
From:      Hans Petter Selasky <hps@selasky.org>
To:        Andrew Turner <andrew@fubar.geek.nz>
Cc:        freebsd-arm@freebsd.org
Subject:   Re: 14-CURRENT Kernel Panic due to USB hub?
Message-ID:  <a689e8f6-d0ef-9fbf-503c-b6a6ebcb112f@selasky.org>
In-Reply-To: <E393543F-CE4C-4B27-BDB6-2B5C2440612B@fubar.geek.nz>
References:  <fbfa2dcc-ae3f-230b-2f56-3b940b025342@morante.net> <2b555ef9-12fe-6214-79a0-cebce1933771@selasky.org> <5bfb1865-8033-0da6-27e4-3c25fb067cee@morante.net> <6F2AD5E1-5AB1-4D08-97F4-84E2905D592B@fubar.geek.nz> <B1DFC16D-47F6-4803-BF12-406EC96465B9@fubar.geek.nz> <45534c79-311b-d1df-c412-5bd782678cfb@selasky.org> <C3FE68C0-44DB-493F-9C29-C73859840C9B@fubar.geek.nz> <78ed0a6e-2ef0-46a4-f494-8eeef326d15e@selasky.org> <3E44BF3B-9181-480E-8D40-09B66203ADB6@fubar.geek.nz> <a281fe07-7963-5ff4-f18a-bbe7eb8744c7@selasky.org> <E393543F-CE4C-4B27-BDB6-2B5C2440612B@fubar.geek.nz>

next in thread | previous in thread | raw e-mail | index | archive | help
On 12/1/21 12:39, Andrew Turner wrote:
> I have. I’m hitting the KASSERT at [1]. Looking at the memory around td->td_pcb->pcb_fpflags makes me think the memory has been trashed as there are bits set that could never be so in the flags fields, and kernel pointer values that point to user memory.
> 
> Andrew
> 
> [1]https://cgit.freebsd.org/src/tree/sys/arm64/arm64/trap.c?id=6e9309bd3b04501b69593900a14e01114c7f2404#n627
> 

Hi,

Could you also dump:

td->td_name

Exactly which thread is this?

We do have a user-space build for XHCI at stand/usb/test . It won't 
attach, but maybe there is some compiler warning there?

Did you try do build a kernel with -O0 I.E. no optimization options?

--HPS



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?a689e8f6-d0ef-9fbf-503c-b6a6ebcb112f>