From nobody Mon Sep 26 15:13:10 2022 X-Original-To: current@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 4MbmV31pZHz4XJsk; Mon, 26 Sep 2022 15:13:15 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (turbocat.net [IPv6:2a01:4f8:c17:6c4b::2]) (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 4MbmV23KcKz423g; Mon, 26 Sep 2022 15:13:14 +0000 (UTC) (envelope-from hps@selasky.org) Received: from [10.36.2.155] (unknown [178.232.223.95]) (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 0387226023C; Mon, 26 Sep 2022 17:13:12 +0200 (CEST) Message-ID: Date: Mon, 26 Sep 2022 17:13:10 +0200 List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:102.0) Gecko/20100101 Thunderbird/102.3.0 Subject: Re: usbhid panic when switching vt-s (invariants+witness enabled) Content-Language: en-US From: Hans Petter Selasky To: Andriy Gapon , freebsd-stable List Cc: FreeBSD Current , Vladimir Kondratyev References: <0668f473-f6d3-eacf-e4ef-f8530563daed@selasky.org> In-Reply-To: <0668f473-f6d3-eacf-e4ef-f8530563daed@selasky.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4MbmV23KcKz423g X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of hps@selasky.org designates 2a01:4f8:c17:6c4b::2 as permitted sender) smtp.mailfrom=hps@selasky.org X-Spamd-Result: default: False [-3.29 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.99)[-0.993]; R_SPF_ALLOW(-0.20)[+a:mail.turbocat.net:c]; MIME_GOOD(-0.10)[text/plain]; ASN(0.00)[asn:24940, ipnet:2a01:4f8::/32, country:DE]; MLMMJ_DEST(0.00)[current@FreeBSD.org,stable@FreeBSD.org]; FROM_EQ_ENVFROM(0.00)[]; TO_DN_ALL(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ARC_NA(0.00)[]; DMARC_NA(0.00)[selasky.org]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N On 9/23/22 23:43, Hans Petter Selasky wrote: > vpanic() at 0xffffffff808f4c84 = vpanic+0x184/frame 0xfffffe003590e900 > panic() at 0xffffffff808f4a33 = panic+0x43/frame 0xfffffe003590e960 > sleepq_add() at 0xffffffff809521ab = sleepq_add+0x37b/frame > 0xfffffe003590e9b0 > _sleep() at 0xffffffff80902118 = _sleep+0x238/frame 0xfffffe003590ea40 > usbhid_sync_xfer() at 0xffffffff8532e071 = usbhid_sync_xfer+0x171/frame > 0xfffffe003590eaa0 > usbhid_set_report() at 0xffffffff8532db26 = usbhid_set_report+0x96/frame > 0xfffffe003590eae0 > hid_set_report() at 0xffffffff80686caa = hid_set_report+0x6a/frame > 0xfffffe003590eb20 > hidbus_write() at 0xffffffff85335a7c = hidbus_write+0x5c/frame > 0xfffffe003590eb50 > hid_write() at 0xffffffff80686b98 = hid_write+0x58/frame 0xfffffe003590eb80 > hkbd_set_leds() at 0xffffffff85c1cfe6 = hkbd_set_leds+0x206/frame > 0xfffffe003590ebc0 > hkbd_ioctl_locked() at 0xffffffff85c1cd6b = > hkbd_ioctl_locked+0x33b/frame 0xfffffe003590ec20 > hkbd_ioctl_locked() at 0xffffffff85c1caff = hkbd_ioctl_locked+0xcf/frame > 0xfffffe003590ec80 > hkbd_ioctl() at 0xffffffff85c1ba5a = hkbd_ioctl+0xba/frame > 0xfffffe003590ecc0 > kbdmux_ioctl() at 0xffffffff80695d3b = kbdmux_ioctl+0x12b/frame > 0xfffffe003590ed00 > vt_window_switch() at 0xffffffff8079d969 = vt_window_switch+0x229/frame > 0xfffffe003590ed40 > vt_switch_timer() at 0xffffffff807a15a1 = vt_switch_timer+0x21/frame > 0xfffffe003590ed60 Can you test this patch: https://reviews.freebsd.org/D36715 --HPS