From nobody Wed Dec 01 16:32:37 2021 X-Original-To: freebsd-arm@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id DC21A18B9B64 for ; Wed, 1 Dec 2021 16:32:50 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (turbocat.net [88.99.82.50]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4J44Pt4fh9z3tjm for ; Wed, 1 Dec 2021 16:32:50 +0000 (UTC) (envelope-from hps@selasky.org) Received: from [10.36.2.165] (unknown [178.17.145.105]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id A57ED2601CA; Wed, 1 Dec 2021 17:32:42 +0100 (CET) Message-ID: Date: Wed, 1 Dec 2021 17:32:37 +0100 List-Id: Porting FreeBSD to ARM processors List-Archive: https://lists.freebsd.org/archives/freebsd-arm List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arm@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:91.0) Gecko/20100101 Thunderbird/91.3.0 Subject: Re: 14-CURRENT Kernel Panic due to USB hub? Content-Language: en-US To: Andrew Turner Cc: freebsd-arm@freebsd.org References: <2b555ef9-12fe-6214-79a0-cebce1933771@selasky.org> <5bfb1865-8033-0da6-27e4-3c25fb067cee@morante.net> <6F2AD5E1-5AB1-4D08-97F4-84E2905D592B@fubar.geek.nz> <45534c79-311b-d1df-c412-5bd782678cfb@selasky.org> <78ed0a6e-2ef0-46a4-f494-8eeef326d15e@selasky.org> <3E44BF3B-9181-480E-8D40-09B66203ADB6@fubar.geek.nz> From: Hans Petter Selasky In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 4J44Pt4fh9z3tjm X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-ThisMailContainsUnwantedMimeParts: N 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