From nobody Mon Nov 23 01:52:39 2026
X-Original-To: usb@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 4jXpqC4pbSz71fPY
	for <usb@mlmmj.nyi.freebsd.org>; Mon, 23 Nov 2026 01:52:39 +0000 (UTC)
	(envelope-from bugzilla-noreply@freebsd.org)
Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3])
	(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)
	(No client certificate requested)
	by mx1.freebsd.org (Postfix) with ESMTPS id 4jXpqC44jlz4stF
	for <usb@FreeBSD.org>; Mon, 23 Nov 2026 01:52:39 +0000 (UTC)
	(envelope-from bugzilla-noreply@freebsd.org)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim;
	t=1795398759;
	h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
	 to:to:cc:mime-version:mime-version:content-type:content-type:
	 content-transfer-encoding:content-transfer-encoding;
	bh=ZQsmc+sg9XtN2qnGCRYqXjzOJTSb4CwFbIi+FOh83BI=;
	b=LZqUcRfwa916Q3lP+1XxnwSfOmGhyaZqFFKd0nzPIravr6vUnRAM8yxTGp23y9iVSDY5dA
	PibyxWLZXx8UaxRNE6fsmb8IV5yMVufijnZaOmoqdymMy8r+nlCVPWCZzWZDiiqAr7L9Ja
	KcL2vOWRjxsW6vVxxxKPFrvfYO0hLyorqpMenuG052iRWcQBvdEbM011CmWNCUlknGYRPE
	1ldNb0tZ3KTZEsXTZcXsXS2I77rm2b07DvGoHuF1ZXlxMLKGgfpn9cjJclre3ZU8KUyIH8
	zwoEo7QJ75IYBcUS885oALNvngfZoVw2EToXdqQf0yc4qjqRMSsUhQH1pMqW9g==
ARC-Seal: i=1; a=rsa-sha256; d=freebsd.org; s=dkim; cv=none; t=1795398759;
	b=VC172tZM95cEZAay3XbxsKyvhG9VPYer2b6moAuwF9yAxMG9Oz89Jncp5JqzoI8fdKXZjC
	vbfqGTxtCt/g3pSMRE3eF+xsG2Z22UjqfARSGGJN/FFIjYZKKibG3yKfzJTiwnTkQol7cb
	MFcYzpYkwSKZ4zvaL0/hzB8itSaemRd2kGc4vTly+27O3cyneyIG1PvcJ+eqfKXMFKEkTk
	mQXsl7y1RV/E+1dLvmTG/CLMAyrMSOLur5HPgbi2FIM7qMcn2yX5UGunwwi3VIaiYnIQII
	yKDqzkGrZDGba2/1urO7SnAzYbTG0rw5RpdFL/cWNBqj+xzfsCdZSPNt49HXQg==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org;
	s=dkim; t=1795398759;
	h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
	 to:to:cc:mime-version:mime-version:content-type:content-type:
	 content-transfer-encoding:content-transfer-encoding;
	bh=ZQsmc+sg9XtN2qnGCRYqXjzOJTSb4CwFbIi+FOh83BI=;
	b=ousOcOs3m8pNGms/4X1Hnqb8OOrW1EoVwLJjAXMxelqyFzcA1oE0n8IInRdlDC6hYhzqfW
	tozK+d4UvOhxozFMfuzoPej4gGy9tpTyKNeSe93DgBiCrBc8As/DwuvA4WhB6jq70VrsHC
	PkkNZagki7trmiDg9Bi/moJF4sB/a3IuzmAQ3Muunu/gCkUgy6wK5menZlY8GQ/LJDO/ZC
	3yMn7W88hMj5AKxPP1J9yx0zyrT6hW0Ku5I7U/vcHOPirDU0IC9MnPKOhctHUmf8DQbNt1
	SoRsoGOhhrWCh7X/wPd2cypqCU0wL4v29l6kdbpszs09zpl30jkGKAZK+4L8eA==
ARC-Authentication-Results: i=1;
	mx1.freebsd.org;
	none
Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d])
	(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 mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4jXpqC3kfCzV57
	for <usb@FreeBSD.org>; Mon, 23 Nov 2026 01:52:39 +0000 (UTC)
	(envelope-from bugzilla-noreply@freebsd.org)
Received: from kenobi.freebsd.org ([127.0.1.5])
	by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 6AN1qdR3056698
	for <usb@FreeBSD.org>; Mon, 23 Nov 2026 01:52:39 GMT
	(envelope-from bugzilla-noreply@freebsd.org)
Received: (from www@localhost)
	by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 6AN1qdnU056697
	for usb@FreeBSD.org; Mon, 23 Nov 2026 01:52:39 GMT
	(envelope-from bugzilla-noreply@freebsd.org)
X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f
From: bugzilla-noreply@freebsd.org
To: usb@FreeBSD.org
Subject: =?UTF-8?B?W0J1ZyAzMDEwMzBdIHVjb20oNCk6IHVjb21fY29tbWFuZF9iYXJy?=
 =?UTF-8?B?aWVyKCkgbGVhdmVzIGEgc3RhY2stYWxsb2NhdGVkIHVzYl9wcm9jX21zZyBx?=
 =?UTF-8?B?dWV1ZWQgd2hlbiB0aGUgd2FpdCBpcyBpbnRlcnJ1cHRlZCDihpIga2VybmVs?=
 =?UTF-8?B?IHBhbmljIGluIHRoZSB1Y29tIHByb2Nlc3M=?=
Date: Mon, 23 Nov 2026 01:52:39 +0000
X-Bugzilla-Reason: AssignedTo
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: Base System
X-Bugzilla-Component: usb
X-Bugzilla-Version: 15.1-RELEASE
X-Bugzilla-Keywords: 
X-Bugzilla-Severity: Affects Some People
X-Bugzilla-Who: viktor.dolgopiatov@icloud.com
X-Bugzilla-Status: New
X-Bugzilla-Resolution: 
X-Bugzilla-Priority: ---
X-Bugzilla-Assigned-To: usb@FreeBSD.org
X-Bugzilla-Flags: 
X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform
 op_sys bug_status bug_severity priority component assigned_to reporter
 attachments.created
Message-ID: <bug-301030-19105@https.bugs.freebsd.org/bugzilla/>
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset="UTF-8"
X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/
Auto-Submitted: auto-generated
List-Archive: https://lists.freebsd.org/archives/freebsd-usb
X-BeenThere: freebsd-usb@freebsd.org
List-Id: FreeBSD support for USB <freebsd-usb.FreeBSD.org>
List-Post: <mailto:freebsd-usb@FreeBSD.org>
List-Help: <mailto:freebsd-usb+help@FreeBSD.org>
List-Subscribe: <mailto:freebsd-usb+subscribe@FreeBSD.org>
List-Unsubscribe: <mailto:freebsd-usb+unsubscribe@FreeBSD.org>
List-Owner: <mailto:freebsd-usb+owner@FreeBSD.org>
Precedence: list
MIME-Version: 1.0

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D301030

            Bug ID: 301030
           Summary: ucom(4): ucom_command_barrier() leaves a
                    stack-allocated usb_proc_msg queued when the wait is
                    interrupted =E2=86=92 kernel panic in the ucom process
           Product: Base System
           Version: 15.1-RELEASE
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: usb
          Assignee: usb@FreeBSD.org
          Reporter: viktor.dolgopiatov@icloud.com

Created attachment 277582
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D277582&action=
=3Dedit
Patch: dequeue stack-allocated dummy usb_proc_msg on interrupted wait.

ucom(4): ucom_command_barrier() leaves a stack-allocated usb_proc_msg queued
when the wait is interrupted =E2=86=92 kernel panic in the ucom process

Product: Base System =C2=B7 Component: usb =C2=B7 Hardware: amd64 =C2=B7 Ve=
rsion: 15.1-RELEASE
(also present in
main as of 2026-09-27; patch applies cleanly to sys/dev/usb/serial/usb_seri=
al.c
on both)
Keywords: usb, ucom, umodem, panic, use-after-free =C2=B7 CC: usb@FreeBSD.o=
rg

## Summary

ucom_command_barrier() (sys/dev/usb/serial/usb_serial.c) enqueues a struct
usb_proc_msg dummy that lives on the
caller's kernel stack and waits for it with usb_proc_mwait_sig(). The wait =
is
interruptible. When a signal arrives,
usb_proc_mwait_impl() returns EINTR/ERESTART without removing the message f=
rom
the queue
(sys/dev/usb/usb_process.c, the loop only clears error when the message is
already gone). ucom_command_barrier()
then returns, its stack frame is reused, and the ucom process later dequeues
dummy and calls whatever now sits in
pm_callback =E2=86=92 page fault in the usb/ucom kernel thread.

ucom_command_barrier() is called from ucom_open(), ucom_ioctl() (TIOCM*) and
ucom_param(), so any process whose
threads receive signals while blocked in open(2)/ioctl(2)/tcsetattr(3) on a
ucom tty can trigger it. Go runtimes
make this frequent: they deliver SIGURG to their threads for asynchronous
preemption and SIGCHLD for every child
process. We hit it twice in 13 hours on a production box.

## Environment

- FreeBSD 15.1-RELEASE-p3 GENERIC amd64 (releng/15.1-n283611-88e7371d9dc2),
Intel N100.
- USB CDC ACM devices behind an xHCI root hub: umodem(4) + ucom(4) (an STM32
CDC device and an ST-LINK VCP, both
  full-speed behind a high-speed hub).
- A Go daemon opens /dev/cuaU*, calls tcsetattr(3) / ioctl(TIOCMBIS) and re=
ads
the port. Before the panics the
  daemon was regularly getting EINTR from tcsetattr(2) on that tty -- that =
is
the same interrupted wait.

## Panic 1 -- 2026-09-26 22:58:40 (vmcore.1)

Fatal trap 12: page fault while in kernel mode
cpuid =3D 1; apic id =3D 02
fault virtual address   =3D 0xfffffffffffffffe
fault code              =3D supervisor read instruction, page not present
instruction pointer     =3D 0x20:0xfffffffffffffffe
stack pointer           =3D 0x28:0xfffffe008ba41eb8
frame pointer           =3D 0x28:0xfffffe008ba41ef0
current process         =3D 15 (ucom)
rdi: fffffe008bae18e8 rsi: fffffe008ba41e87 rdx: fffffe008ba41e86
rcx: fffff80184b2e800  r8: fffff8003018fcd0  r9: fffffe008ba42000
rax: fffffe008bae18e8 rbx: fffff80184b2e800 rbp: fffffe008ba41ef0
r10: 0000000000000001 r11: 0000000000002af8 r12: fffff80184b2e810
r13: fffffe008bae18e8 r14: fffff8003018f780 r15: fffff80184b2e820
panic: page fault
KDB: stack backtrace:
#0 0xffffffff80bd698d at kdb_backtrace+0x5d
#1 0xffffffff80b874e6 at vpanic+0x136
#2 0xffffffff80b873a3 at panic+0x43
#3 0xffffffff81099fcd at trap_pfault+0x37d
#4 0xffffffff8106f7d8 at calltrap+0x8
#5 0xffffffff80b3d93b at fork_exit+0x7b
#6 0xffffffff810707fe at fork_trampoline+0xe
Uptime: 8h30m6s

lldb -c vmcore.1 /boot/kernel/kernel: the crashed thread is (pid 15) usb/uc=
om.
rdi (the callback argument, i.e.
the usb_proc_msg *) is 0xfffffe008bae18e8, inside the kernel-stack region.
Memory at that address:

0xfffffe008bae18e8: 0xffffffff80bbbcb5   <- tqe_next: a return address
(sched_ule_sswitch)
0xfffffe008bae18f0: 0xfffff80184b2e800   <- tqe_prev: points at up->up_qhea=
d of
the ucom process
0xfffffe008bae18f8: 0xfffffffffffffffe   <- pm_callback: garbage, =3D=3D the
faulting instruction pointer

and the ucom process queue head (rbx =3D struct usb_process *up):

0xfffff80184b2e800: 0xfffffe008bae18e8   <- up_qhead.tqh_first: the dead st=
ack
message
0xfffff80184b2e808: 0xfffff80184b2ea70

## Panic 2 -- 2026-09-27 11:13:13 (vmcore.2)

panic: vm_fault_lookup: fault on nofault entry, addr: 0xfffffe008b9a6000
cpuid =3D 0
KDB: stack backtrace:
#0 0xffffffff80bd698d at kdb_backtrace+0x5d
#1 0xffffffff80b874e6 at vpanic+0x136
#2 0xffffffff80b873a3 at panic+0x43
#3 0xffffffff80f2677e at vm_fault+0x190e
#4 0xffffffff80f24d81 at vm_fault_trap+0x81
#5 0xffffffff81099e4c at trap_pfault+0x1fc
#6 0xffffffff8106f7d8 at calltrap+0x8
#7 0xffffffff80b3d93b at fork_exit+0x7b
#8 0xffffffff810707fe at fork_trampoline+0xe
Uptime: 12h13m57s

lldb: crashed thread (pid 15) usb/ucom (tid 108659), frame #10 =3D
0xfffffe008b9a68e8 (a kernel-stack address, this
time in a guard page -> "nofault entry"). The thread's own stack is at
0xfffffe008ba55xxx, so this is not a stack
overflow but a call through a pointer into a foreign (dead) kernel stack. N=
ote
the identical low bits of the message
address in both dumps (...8e8): the same ucom_command_barrier() frame at the
same stack depth. This second panic
happened with the Go daemon running with GODEBUG=3Dasyncpreemptoff=3D1, i.e.
without SIGURG; SIGCHLD from child
processes is enough.

## Analysis

sys/dev/usb/serial/usb_serial.c around line 619 (15.1-RELEASE-p3; identical=
 in
main at 2026-09-27):

static int
ucom_command_barrier(struct ucom_softc *sc)
{
        struct ucom_super_softc *ssc =3D sc->sc_super;
        struct usb_proc_msg dummy =3D { .pm_callback =3D ucom_command_barri=
er_cb };
        struct usb_proc_msg *task;
        int error;
        ...
        task =3D usb_proc_msignal(&ssc->sc_tq, &dummy, &dummy);
        error =3D usb_proc_mwait_sig(&ssc->sc_tq, task, task);
        if (error =3D=3D 0 && sc->sc_tty !=3D NULL && tty_gone(sc->sc_tty))
                error =3D ENXIO;
        return (error);
}

usb_process.c, usb_proc_mwait_impl(..., interruptible=3Dtrue):

                while (error =3D=3D 0 && (pm0->pm_qentry.tqe_prev ||
                    pm1->pm_qentry.tqe_prev)) {
                        if (up->up_gone)
                                return (ENXIO);
                        up->up_dsleep =3D 1;
                        if (interruptible) {
                                error =3D cv_wait_sig(&up->up_drain, up->up=
_mtx);
                                if (error !=3D 0 && !USB_PROC_MSG_ENQUEUED(=
pm0)
&&
                                    !USB_PROC_MSG_ENQUEUED(pm1))
                                        error =3D 0;
                        } else {
                                cv_wait(&up->up_drain, up->up_mtx);
                        }
                }
        if (error =3D=3D ERESTART)
                error =3D EINTR;
        return (error);

On EINTR (or ENXIO via up_gone) the message stays linked in up->up_qhead wh=
ile
the caller's frame is destroyed.
usb_process() later does pm =3D TAILQ_FIRST(&up->up_qhead);
(pm->pm_callback)(pm);.

## Minimal C reproducer

Independent of Go -- any signal delivered to a thread blocked in
open(2)/ioctl(2)/tcsetattr(3) on a ucom(4) tty is
sufficient. Build with `cc -pthread ucom_bug.c -o ucom_bug`, run against any
CDC-ACM device attached through
ucom(4) (/dev/cuaU0 or a spare port):

#include <fcntl.h>
#include <pthread.h>
#include <signal.h>
#include <sys/ioctl.h>
#include <termios.h>
#include <unistd.h>

static void handler(int sig) { (void)sig; }

static void *worker(void *arg) {
    int fd =3D *(int *)arg;
    int flag =3D TIOCM_RTS;
    for (;;) {
        struct termios t;
        tcgetattr(fd, &t);
        tcsetattr(fd, TCSANOW, &t);
        ioctl(fd, TIOCMBIS, &flag);
    }
    return NULL;
}

int main(int argc, char **argv) {
    const char *dev =3D argc > 1 ? argv[1] : "/dev/cuaU0";
    int fd =3D open(dev, O_RDWR | O_NONBLOCK);
    if (fd < 0) return 1;
    signal(SIGUSR1, handler);
    pthread_t th;
    pthread_create(&th, NULL, worker, &fd);
    for (;;) {
        pthread_kill(th, SIGUSR1);
        usleep(500);
    }
}

Symptoms while running: tcsetattr() returns EINTR frequently (visible with
truss). The panic is timing-dependent --
the interrupted call must return between usb_proc_msignal() and the callback
executing, and the stack frame must be
reused before usb_process() picks the stale message. On the affected machin=
e we
observed one panic per ~8-13 hours
under a normal MAVLink workload; the reproducer amplifies the rate but is s=
till
probabilistic.

## Fix

Dequeue the stack message when the wait fails. up->up_mtx (=3D=3D sc_mtx) i=
s held
at this point, so the ucom process
cannot be in the middle of executing this particular message (callbacks run
with the mutex held and the message is
removed from the queue under the same lock). Patch attached
(ucom-command-barrier-eintr.patch, against
sys/dev/usb/serial/usb_serial.c):

        task =3D usb_proc_msignal(&ssc->sc_tq, &dummy, &dummy);
        error =3D usb_proc_mwait_sig(&ssc->sc_tq, task, task);
        if (error !=3D 0 && USB_PROC_MSG_ENQUEUED(&dummy)) {
                TAILQ_REMOVE(&ssc->sc_tq.up_qhead, &dummy, pm_qentry);
                dummy.pm_qentry.tqe_prev =3D NULL;
        }

The error !=3D 0 guard covers both non-zero return paths of
usb_proc_mwait_impl(): EINTR/ERESTART when a signal
interrupts cv_wait_sig(), and ENXIO when up_gone is set before the wait
completes. In both cases the message stays
queued and would otherwise fault.

Alternatively usb_proc_mwait_impl() could dequeue pm0/pm1 itself before
returning an error; that would also cover
ucom_queue_command(..., wait=3Dtrue) (there the messages live in the softc,=
 so no
use-after-free, but a stale
open/close task may still run later).

The patched ucom.ko has been loaded from /boot/modules via rc.conf(5) kld_l=
ist
on every boot since
2026-09-28 00:33 EEST -- five boots so far (00:33, 02:28, 13:35, 15:51, 19:=
44
EEST) under the same real
workload (a Go daemon opening and reading two ucom ttys, frequent child
processes producing SIGCHLD,
deliberate USB re-enumerations). No further panics: /var/crash/vmcore.last
remains dated 2026-09-27
11:14, from panic #2 above, before the fix.

Update, 2026-11-23: the patch has since become part of every release build =
(not
just the original
test unit) -- it is carried as base/patches/ucom-barrier-eintr.patch and
applied by our standard
release pipeline, which our own build tests verify. Just under two months
later, no new panic of this
signature has been recorded against any unit we have investigated, and a di=
rect
check of /var/crash
on one fielded unit (uptime predating 2026-11-08) shows no crash dumps at a=
ll.
We do not operate
fleet-wide crash telemetry, so this is not a verified fleet-wide negative -=
- it
is the strongest
confirmation available to us.

## Workaround for users

Run applications that talk to /dev/cuaU* without asynchronous signals where
possible, e.g. Go programs with
GODEBUG=3Dasyncpreemptoff=3D1 -- this reduces but does not eliminate the pr=
oblem
(any signal, including SIGCHLD, is
enough).

## Attachments

- ucom-command-barrier-eintr.patch
- Full panic messages above are verbatim from dmesg -M vmcore.N -N
/boot/kernel/kernel; vmcores (907 MB and 1.47 GB)
  are available on request.

--=20
You are receiving this mail because:
You are the assignee for the bug.=

From nobody Mon Nov 23 01:55:25 2026
X-Original-To: usb@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 4jXptP5D2Qz71fyG
	for <usb@mlmmj.nyi.freebsd.org>; Mon, 23 Nov 2026 01:55:25 +0000 (UTC)
	(envelope-from bugzilla-noreply@freebsd.org)
Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3])
	(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)
	(No client certificate requested)
	by mx1.freebsd.org (Postfix) with ESMTPS id 4jXptP4fcyz4t7c
	for <usb@FreeBSD.org>; Mon, 23 Nov 2026 01:55:25 +0000 (UTC)
	(envelope-from bugzilla-noreply@freebsd.org)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim;
	t=1795398925;
	h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
	 to:to:cc:mime-version:mime-version:content-type:content-type:
	 content-transfer-encoding:content-transfer-encoding:
	 in-reply-to:in-reply-to:references:references;
	bh=WpfIYWHkYfL7UJF5sNT1zDWqZhH+VOQfy+EgvObMej4=;
	b=SwSBf45pmtlslGMl9PKWaYM5SOSkN+rRS6f5xVlU1yL4SxOLC0gXmzvVRNuXrR9p5vWfMu
	5WULJbRZheUS/flecx/Z1Dd2qlUOnLdzuA7hW+6NJ7JHrcY+FknL2frUMhOdYIxn+f2zZe
	BuFHBs5qRaBrxVjXQIZ0Z4GcPkPg3ekD1JC63JhjF8m4QU3YPYYLNP4htE2OMwu/qgMoEf
	uHlUf475n5EZ3jg02IzWh/CcsSvZuMfAKVs5v4bCeblmPoXxuwrX6AkNDkDCguZbE7RnBl
	C3MxQWcs4nlzN3dMx2a6ULoMg/SG/p1WiJC3E7EAhoBmHOls4Zf9+mSfWWkomA==
ARC-Seal: i=1; a=rsa-sha256; d=freebsd.org; s=dkim; cv=none; t=1795398925;
	b=RdA2YU07cBPJHjXt5Sy8sDel9/wCOp/oOMaBFe1RTJbq1tmD7N2a8pnoA4zhHnAuoCCBaC
	yQmqa1l86gVQ3oesJFDvWvCScBUyR6kV5FOsTSn7QKdU8McOXv2N9l1VTuhvOIHuS79sGF
	Hatybse8BHUqfLeGZGF1dgu9FoRvjY7BI/o8I2HGIXv0EM1zK5J6z6lfIFe65vXhvvxtaY
	cxOTPASlemcKjyRCzdQDmxgbXTKfWZucnTF0AzoI5kghpmSM8K1EBTIjSZG+iDBkM3+ck9
	XabVRiY0hZ/sO5MnI6FrCq3B+yh+hGw9jpWrHgzLrPmt/BXwiZK1rrzH1vCbGw==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org;
	s=dkim; t=1795398925;
	h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
	 to:to:cc:mime-version:mime-version:content-type:content-type:
	 content-transfer-encoding:content-transfer-encoding:
	 in-reply-to:in-reply-to:references:references;
	bh=WpfIYWHkYfL7UJF5sNT1zDWqZhH+VOQfy+EgvObMej4=;
	b=yE3bY4A4U2ZQzoc8YtMhicZ/w77dLxx02xozIfktGHrh78GZ25LzCM/exy/BfeYtjbqcKK
	B2V/oiiNYv1jFd0vxTrJJINBXt/onGHdm2YSugAEMy5GWRkNMy6C95anWO6Fzy0KhAzWsn
	U4Ts2rdNEJNsaBdTxt/bocq8oWLl+Hlif8uWpbR8hZ3uijznGgipLD0U9QUmttXKBqsdIF
	EcULi/+Rio1iScae/a0+729DLmozf/x+8kgErL1+U4tvANMPCHaE4ZaRl+4av2tU3oKPJB
	Q38DKXOsBDuDnfWrH8k9wzDY9Qk7l/xPYYbDqACG4iPD2FZWE3mZnWLQA96k/w==
ARC-Authentication-Results: i=1;
	mx1.freebsd.org;
	none
Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d])
	(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 mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4jXptP43srzV9f
	for <usb@FreeBSD.org>; Mon, 23 Nov 2026 01:55:25 +0000 (UTC)
	(envelope-from bugzilla-noreply@freebsd.org)
Received: from kenobi.freebsd.org ([127.0.1.5])
	by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 6AN1tP8p058047
	for <usb@FreeBSD.org>; Mon, 23 Nov 2026 01:55:25 GMT
	(envelope-from bugzilla-noreply@freebsd.org)
Received: (from www@localhost)
	by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 6AN1tP1A058046
	for usb@FreeBSD.org; Mon, 23 Nov 2026 01:55:25 GMT
	(envelope-from bugzilla-noreply@freebsd.org)
X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f
From: bugzilla-noreply@freebsd.org
To: usb@FreeBSD.org
Subject: =?UTF-8?B?W0J1ZyAzMDEwMzBdIHVjb20oNCk6IHVjb21fY29tbWFuZF9iYXJy?=
 =?UTF-8?B?aWVyKCkgbGVhdmVzIGEgc3RhY2stYWxsb2NhdGVkIHVzYl9wcm9jX21zZyBx?=
 =?UTF-8?B?dWV1ZWQgd2hlbiB0aGUgd2FpdCBpcyBpbnRlcnJ1cHRlZCDihpIga2VybmVs?=
 =?UTF-8?B?IHBhbmljIGluIHRoZSB1Y29tIHByb2Nlc3M=?=
Date: Mon, 23 Nov 2026 01:55:25 +0000
X-Bugzilla-Reason: AssignedTo
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: Base System
X-Bugzilla-Component: usb
X-Bugzilla-Version: 15.1-RELEASE
X-Bugzilla-Keywords: patch-ready
X-Bugzilla-Severity: Affects Some People
X-Bugzilla-Who: viktor.dolgopiatov@icloud.com
X-Bugzilla-Status: New
X-Bugzilla-Resolution: 
X-Bugzilla-Priority: ---
X-Bugzilla-Assigned-To: usb@FreeBSD.org
X-Bugzilla-Flags: 
X-Bugzilla-Changed-Fields: keywords
Message-ID: <bug-301030-19105-zLzepvgANY@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-301030-19105@https.bugs.freebsd.org/bugzilla/>
References: <bug-301030-19105@https.bugs.freebsd.org/bugzilla/>
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset="UTF-8"
X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/
Auto-Submitted: auto-generated
List-Archive: https://lists.freebsd.org/archives/freebsd-usb
X-BeenThere: freebsd-usb@freebsd.org
List-Id: FreeBSD support for USB <freebsd-usb.FreeBSD.org>
List-Post: <mailto:freebsd-usb@FreeBSD.org>
List-Help: <mailto:freebsd-usb+help@FreeBSD.org>
List-Subscribe: <mailto:freebsd-usb+subscribe@FreeBSD.org>
List-Unsubscribe: <mailto:freebsd-usb+unsubscribe@FreeBSD.org>
List-Owner: <mailto:freebsd-usb+owner@FreeBSD.org>
Precedence: list
MIME-Version: 1.0

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D301030

Viktor Dolgopiatov <viktor.dolgopiatov@icloud.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |patch-ready

--=20
You are receiving this mail because:
You are the assignee for the bug.=

From nobody Mon Nov 23 01:58:23 2026
X-Original-To: usb@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 4jXpxq1Xsmz71flk
	for <usb@mlmmj.nyi.freebsd.org>; Mon, 23 Nov 2026 01:58:23 +0000 (UTC)
	(envelope-from bugzilla-noreply@freebsd.org)
Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3])
	(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)
	(No client certificate requested)
	by mx1.freebsd.org (Postfix) with ESMTPS id 4jXpxq0thTz4th9
	for <usb@FreeBSD.org>; Mon, 23 Nov 2026 01:58:23 +0000 (UTC)
	(envelope-from bugzilla-noreply@freebsd.org)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim;
	t=1795399103;
	h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
	 to:to:cc:mime-version:mime-version:content-type:content-type:
	 content-transfer-encoding:content-transfer-encoding:
	 in-reply-to:in-reply-to:references:references;
	bh=nvX7+O5WKcgM0kQfIBtubVZwvR0nyWjU6T64EjWt6p8=;
	b=uN9cfwC7PX1Qp+QM8AFLwYYiTGGWhtC3EkaXBm1c2GXaOs26sOHXs9iVmedjpPpKVH4KkT
	e98L+OJ3N97ZVpo9WTAlrwDWRYXzd1Yhdej9KQODvCQPQy7C4CHXHvQG08tHrm4gitDqOx
	fxORXfNTfApOiYfRa2YT6Mc46yffOEykPGCxjrWciuhY2BgDCUPvWxaPtOGLD7lDER4HVO
	yiwCa/h/d7tnBIuzVd4RaIUzqv7Wx2TQOR3m6dRhHQZLLiO+azdPqN4hTYfe/d8wy7jK/x
	u8/PYCqNAEMjI31h0Hotbtuybl0dGmCS8jdRrPnDgPEb/xV96eZm2gYS4PKwpA==
ARC-Seal: i=1; a=rsa-sha256; d=freebsd.org; s=dkim; cv=none; t=1795399103;
	b=BG0DauohxkLpOwbGfVpTc8lyvdi46T1nl25P3mln81AWh+sdVR5EAXroyI+Fieqpyu5Drq
	UlU1YV5/OQE8MSAa3DuYxDYBQDOp9lKkA+hfHRYmljrFdxhZZwDqbD1iDJ0vBL/6Y+gxas
	9GtPHFppVF1Wb1h139kwS82+5Ob3qfyTYG5UDAyVFQTA++pd/ptM5rOPH8Dsdn1Sg4vmz9
	XJaaFYhTasw2X9wy/An0QNU9Ra4YsUQ4t4uXH9d9g+fzZiBplRduZqf6Fm/ISa1Fr76vz+
	w//yU9T2dOG1Uqb//8hsRYDbr/wYWhPNU+AFuy+iQCRMH1OdlyECfQbt7nXMDA==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org;
	s=dkim; t=1795399103;
	h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
	 to:to:cc:mime-version:mime-version:content-type:content-type:
	 content-transfer-encoding:content-transfer-encoding:
	 in-reply-to:in-reply-to:references:references;
	bh=nvX7+O5WKcgM0kQfIBtubVZwvR0nyWjU6T64EjWt6p8=;
	b=iuL/L90h0+FkLD/EYcxuybg3bzY2VOnfT41E0xWl9oJCh65xRKp6KPQ+aGny7NydjxZRtr
	u1f0cnZMD7s7KhIVIaQxK5j4kdSkFZhm2qK7jB30mBva6MEV19FlWqis5fhtNV1YCbTReU
	m7QMjnV0d/f0xqSXQUtJYMCymmACf/BbsnR1nVzmUG2fvtaCG1ZhnfLXwpRZtXMnIBPB5g
	N3SsRjQvnd2yb/Wmg8Vv5k0vz0eHCNKvwPjbibJm0s3/ahPA3v6lHPWBmRNRtoQyP4MwHf
	czbsRX9WCpgQ1yrwfOvcYhK/mWJe7Tumukbma0CuNgFa0s+1HU6HT0LUqqoCDA==
ARC-Authentication-Results: i=1;
	mx1.freebsd.org;
	none
Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d])
	(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 mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4jXpxq0XpfzVMF
	for <usb@FreeBSD.org>; Mon, 23 Nov 2026 01:58:22 +0000 (UTC)
	(envelope-from bugzilla-noreply@freebsd.org)
Received: from kenobi.freebsd.org ([127.0.1.5])
	by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 6AN1wMXH059322
	for <usb@FreeBSD.org>; Mon, 23 Nov 2026 01:58:22 GMT
	(envelope-from bugzilla-noreply@freebsd.org)
Received: (from www@localhost)
	by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 6AN1wMda059321
	for usb@FreeBSD.org; Mon, 23 Nov 2026 01:58:22 GMT
	(envelope-from bugzilla-noreply@freebsd.org)
X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f
From: bugzilla-noreply@freebsd.org
To: usb@FreeBSD.org
Subject: =?UTF-8?B?W0J1ZyAzMDEwMzBdIHVjb20oNCk6IHVjb21fY29tbWFuZF9iYXJy?=
 =?UTF-8?B?aWVyKCkgbGVhdmVzIGEgc3RhY2stYWxsb2NhdGVkIHVzYl9wcm9jX21zZyBx?=
 =?UTF-8?B?dWV1ZWQgd2hlbiB0aGUgd2FpdCBpcyBpbnRlcnJ1cHRlZCDihpIga2VybmVs?=
 =?UTF-8?B?IHBhbmljIGluIHRoZSB1Y29tIHByb2Nlc3M=?=
Date: Mon, 23 Nov 2026 01:58:23 +0000
X-Bugzilla-Reason: AssignedTo
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: Base System
X-Bugzilla-Component: usb
X-Bugzilla-Version: 15.1-RELEASE
X-Bugzilla-Keywords: patch-ready
X-Bugzilla-Severity: Affects Some People
X-Bugzilla-Who: viktor.dolgopiatov@icloud.com
X-Bugzilla-Status: New
X-Bugzilla-Resolution: 
X-Bugzilla-Priority: ---
X-Bugzilla-Assigned-To: usb@FreeBSD.org
X-Bugzilla-Flags: 
X-Bugzilla-Changed-Fields: attachments.created
Message-ID: <bug-301030-19105-Uyf3hx6egp@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-301030-19105@https.bugs.freebsd.org/bugzilla/>
References: <bug-301030-19105@https.bugs.freebsd.org/bugzilla/>
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset="UTF-8"
X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/
Auto-Submitted: auto-generated
List-Archive: https://lists.freebsd.org/archives/freebsd-usb
X-BeenThere: freebsd-usb@freebsd.org
List-Id: FreeBSD support for USB <freebsd-usb.FreeBSD.org>
List-Post: <mailto:freebsd-usb@FreeBSD.org>
List-Help: <mailto:freebsd-usb+help@FreeBSD.org>
List-Subscribe: <mailto:freebsd-usb+subscribe@FreeBSD.org>
List-Unsubscribe: <mailto:freebsd-usb+unsubscribe@FreeBSD.org>
List-Owner: <mailto:freebsd-usb+owner@FreeBSD.org>
Precedence: list
MIME-Version: 1.0

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D301030

--- Comment #1 from Viktor Dolgopiatov <viktor.dolgopiatov@icloud.com> ---
Created attachment 277583
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D277583&action=
=3Dedit
Report as PDF

--=20
You are receiving this mail because:
You are the assignee for the bug.=

From nobody Mon Nov 23 01:59:12 2026
X-Original-To: usb@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 4jXpym0vMtz71gRy
	for <usb@mlmmj.nyi.freebsd.org>; Mon, 23 Nov 2026 01:59:12 +0000 (UTC)
	(envelope-from bugzilla-noreply@freebsd.org)
Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3])
	(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)
	(No client certificate requested)
	by mx1.freebsd.org (Postfix) with ESMTPS id 4jXpyl6mwMz4vCc
	for <usb@FreeBSD.org>; Mon, 23 Nov 2026 01:59:11 +0000 (UTC)
	(envelope-from bugzilla-noreply@freebsd.org)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim;
	t=1795399152;
	h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
	 to:to:cc:mime-version:mime-version:content-type:content-type:
	 content-transfer-encoding:content-transfer-encoding:
	 in-reply-to:in-reply-to:references:references;
	bh=WLd7B4S/O+l6aPKinrHsyuuJp99W3Ep7T3pi2guQeh0=;
	b=WqALYlt/0Oe+T12Eor3yW6qp/efwCFhSpes2hlpBtVjo6GKwgOuuYN1eOeoTmxDYEPdphG
	sfhOLlpnR+PFl1vopkp6+hNUQzyRwiCj2Q/opQKOPmh5XNTsydwf5H6VAkZE7OdrNgs1Mw
	+bglb2xIeP2zj5DXHSw7KgOYamHLxXQgqDRXjSD9PWYDoH+WFDoYc/WCSuw7/djtsrLT99
	hr+kIUCo3VfjkHVv2DgJ19LpBavTCj8LluUX5kUStWnVFmE5Rh8UsQDGspUs5Wbl6/p05R
	qUq755j/iuA6fLXaANdzs0IRXjta1/NlLtDZYrQTsa+dvEcRg2ZD5KiLbutOLA==
ARC-Seal: i=1; a=rsa-sha256; d=freebsd.org; s=dkim; cv=none; t=1795399151;
	b=BStDchskpYRBHmpyFUtEY01YNVforDS8fbmeAk+OdEruo5yt9iC1LB2zQp+K1260QMQDOK
	96i0CcKBeef77L6eefWMgm83Pq+TrviQNLfglkoEBoOpnW6NPLrAPZ80TIc8Iplx41j8f+
	ktDHJmqpCC3RfsZGJXk/XGd58o4xKWn51EhHoguYYgRWyY6mDI6brh+97FwmgCrbtE7Z6r
	v1w8pGIv6C4mxfD6cY3Lk+GhFU/DhWmGADEiTR02qrEzpGQV5K05sSXFldWQtZelZt5X4r
	vQAvGamZSuBOeJjomGvMyxuvevkVVu4SPT8LI9gCCo7E514wNcRqs3ClnrIPcA==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org;
	s=dkim; t=1795399151;
	h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
	 to:to:cc:mime-version:mime-version:content-type:content-type:
	 content-transfer-encoding:content-transfer-encoding:
	 in-reply-to:in-reply-to:references:references;
	bh=WLd7B4S/O+l6aPKinrHsyuuJp99W3Ep7T3pi2guQeh0=;
	b=RRU3KSk0gpXLddcDWo7ZrrPKcGvl3b5y1vmwR1W4GqXUvFJaH94wbyfCq7jlAW8Fvlx7Z2
	J6TdMz3Y2OyT0OVeS3AahzkasALgQMvXwYJb+iZwDCf9Eo/8cLnQikOudNpUJc2XBH8tFK
	AkSlonfdCW3cafGEMj7L+EP1aJrG5aqpM1+LgWJbxipNVMEzUwtDcUaGnV+kWfrb7w5hoE
	O+gITq/aQ5WJhTxSR+NccPvEplq6THbUUpfTTezJmNmNsO8zjj0xknxwG9pPowGqeMy3qc
	AThxRerg0rCCwko7P9CNO8/v8SHmjS1sqO0UfY+EJInkC1rsLmKad6M7gny95g==
ARC-Authentication-Results: i=1;
	mx1.freebsd.org;
	none
Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d])
	(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 mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4jXpyl5rh3zTSN
	for <usb@FreeBSD.org>; Mon, 23 Nov 2026 01:59:11 +0000 (UTC)
	(envelope-from bugzilla-noreply@freebsd.org)
Received: from kenobi.freebsd.org ([127.0.1.5])
	by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 6AN1xBDO059746
	for <usb@FreeBSD.org>; Mon, 23 Nov 2026 01:59:11 GMT
	(envelope-from bugzilla-noreply@freebsd.org)
Received: (from www@localhost)
	by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 6AN1xBIq059745
	for usb@FreeBSD.org; Mon, 23 Nov 2026 01:59:11 GMT
	(envelope-from bugzilla-noreply@freebsd.org)
X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f
From: bugzilla-noreply@freebsd.org
To: usb@FreeBSD.org
Subject: =?UTF-8?B?W0J1ZyAzMDEwMzBdIHVjb20oNCk6IHVjb21fY29tbWFuZF9iYXJy?=
 =?UTF-8?B?aWVyKCkgbGVhdmVzIGEgc3RhY2stYWxsb2NhdGVkIHVzYl9wcm9jX21zZyBx?=
 =?UTF-8?B?dWV1ZWQgd2hlbiB0aGUgd2FpdCBpcyBpbnRlcnJ1cHRlZCDihpIga2VybmVs?=
 =?UTF-8?B?IHBhbmljIGluIHRoZSB1Y29tIHByb2Nlc3M=?=
Date: Mon, 23 Nov 2026 01:59:12 +0000
X-Bugzilla-Reason: AssignedTo
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: Base System
X-Bugzilla-Component: usb
X-Bugzilla-Version: 15.1-RELEASE
X-Bugzilla-Keywords: patch-ready
X-Bugzilla-Severity: Affects Some People
X-Bugzilla-Who: aokblast@FreeBSD.org
X-Bugzilla-Status: New
X-Bugzilla-Resolution: 
X-Bugzilla-Priority: ---
X-Bugzilla-Assigned-To: usb@FreeBSD.org
X-Bugzilla-Flags: 
X-Bugzilla-Changed-Fields: 
Message-ID: <bug-301030-19105-08EOkt7qmp@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-301030-19105@https.bugs.freebsd.org/bugzilla/>
References: <bug-301030-19105@https.bugs.freebsd.org/bugzilla/>
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset="UTF-8"
X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/
Auto-Submitted: auto-generated
List-Archive: https://lists.freebsd.org/archives/freebsd-usb
X-BeenThere: freebsd-usb@freebsd.org
List-Id: FreeBSD support for USB <freebsd-usb.FreeBSD.org>
List-Post: <mailto:freebsd-usb@FreeBSD.org>
List-Help: <mailto:freebsd-usb+help@FreeBSD.org>
List-Subscribe: <mailto:freebsd-usb+subscribe@FreeBSD.org>
List-Unsubscribe: <mailto:freebsd-usb+unsubscribe@FreeBSD.org>
List-Owner: <mailto:freebsd-usb+owner@FreeBSD.org>
Precedence: list
MIME-Version: 1.0

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D301030

--- Comment #2 from ShengYi Hung <aokblast@FreeBSD.org> ---
(In reply to Viktor Dolgopiatov from comment #0)

Please do not write up_qhead and tq_* directly. there are some TAILQ_HEAD or
something similar.

--=20
You are receiving this mail because:
You are the assignee for the bug.=

From nobody Mon Nov 23 09:06:39 2026
X-Original-To: usb@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 4jY0Rz1Y5Bz72NhX
	for <usb@mlmmj.nyi.freebsd.org>; Mon, 23 Nov 2026 09:06:39 +0000 (UTC)
	(envelope-from bugzilla-noreply@freebsd.org)
Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3])
	(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)
	(No client certificate requested)
	by mx1.freebsd.org (Postfix) with ESMTPS id 4jY0Rz13qcz3HRh
	for <usb@FreeBSD.org>; Mon, 23 Nov 2026 09:06:39 +0000 (UTC)
	(envelope-from bugzilla-noreply@freebsd.org)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim;
	t=1795424799;
	h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
	 to:to:cc:mime-version:mime-version:content-type:content-type:
	 content-transfer-encoding:content-transfer-encoding:
	 in-reply-to:in-reply-to:references:references;
	bh=1ZYSETr7XL1PSnrCuwUo9wrrPFqvp2ZiP3alrB1dSzg=;
	b=Q30j8fRIX19095MoyNScGZqN980PrsJLX7ALTEvHJCoOQmqAsJ1lLwuE6H30VLBdGmq3TK
	eGADaCFRzRNuc2ZyD/IJBtPHCo++18qDyqGolW4ktwaBpmnh/g0jDl3GEaRKJ8wqHQAGIR
	OpgMQxwMIQVGAW5s2hYczbytpae1USk/PsyIg00FGTimSaVIAJxus4xg1ot8ajA+5G78sP
	N33KnA+0FJuvWuS56v1b17IUqGG33KVnuNwdrk8fYUX4Ex1IBRWFuGMFdSX3/3LSZnuJTI
	tTOhYgOndW3CJSX0TM6fT9YeLko+f+b1RDTc5Le7OGFV8iKSFtzfd+B2tNWhEQ==
ARC-Seal: i=1; a=rsa-sha256; d=freebsd.org; s=dkim; cv=none; t=1795424799;
	b=iDPfqcXvg5N/kKclrx5OjYdHBauzYdMhq60q31RigeWYFyYxGMRTmi43F+1cGud+v1B8jh
	maC2bygZA7tkz4csufwclQON8NrCc5hwAVTSvfHqqsnjWhJBRE3ihb6nzXicbFnLWSp7ww
	zjHIqN7iO6arRNnZG03JTUgupk1dfNuHHxHzk51sH3ejhiG2grZqRitll1u9GsYFeuDwBi
	KCYMV2eXI+DeUjhzFAzy+u75YYTEE2FDxT52XlXoS39c3Cy+ZGkhg78fzSxI9tnQMRv7gC
	bcL6mBYeqeTpXNDauKNsMbqQZx6vSdLkaiUnw6E+kDmP86p3Yhqz1TkD4E5CKw==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org;
	s=dkim; t=1795424799;
	h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
	 to:to:cc:mime-version:mime-version:content-type:content-type:
	 content-transfer-encoding:content-transfer-encoding:
	 in-reply-to:in-reply-to:references:references;
	bh=1ZYSETr7XL1PSnrCuwUo9wrrPFqvp2ZiP3alrB1dSzg=;
	b=RPpbcDVQJYdKMK4a4YcxY3YF6O8a4Ghb3Da60c+DcAgAaXx8HA7X635t2xm5tBu3wuiRpO
	XXmh8h1AJ8gmvolA2wO0bPUNg/nGuwybMnb/d8iI6YH/m7FqogVLbKgIiDn0PvTB7+UmK0
	kd7XIbOcZDOOBMzCKOLdy1aeTedP7JEhWzmzy/l/tMYvOnQQitnkNt5mfVDXgTe5UIQH89
	YLhxM3O3Oc18ApLbz5zSaV9cgG8qSt725boNy0bFJsZ5wOTGwyuYZIp7PLzd1yIjAQohVk
	LwohI9EPpefwxX/xsRc2IIejqPdsMqgHoWzghJNhwGsgn68m4m1dx/oUrnnTeg==
ARC-Authentication-Results: i=1;
	mx1.freebsd.org;
	none
Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d])
	(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 mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4jY0Rz0R6VzlDT
	for <usb@FreeBSD.org>; Mon, 23 Nov 2026 09:06:39 +0000 (UTC)
	(envelope-from bugzilla-noreply@freebsd.org)
Received: from kenobi.freebsd.org ([127.0.1.5])
	by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 6AN96cOM032440
	for <usb@FreeBSD.org>; Mon, 23 Nov 2026 09:06:38 GMT
	(envelope-from bugzilla-noreply@freebsd.org)
Received: (from www@localhost)
	by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 6AN96cwG032439
	for usb@FreeBSD.org; Mon, 23 Nov 2026 09:06:38 GMT
	(envelope-from bugzilla-noreply@freebsd.org)
X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f
From: bugzilla-noreply@freebsd.org
To: usb@FreeBSD.org
Subject: =?UTF-8?B?W0J1ZyAzMDEwMzBdIHVjb20oNCk6IHVjb21fY29tbWFuZF9iYXJy?=
 =?UTF-8?B?aWVyKCkgbGVhdmVzIGEgc3RhY2stYWxsb2NhdGVkIHVzYl9wcm9jX21zZyBx?=
 =?UTF-8?B?dWV1ZWQgd2hlbiB0aGUgd2FpdCBpcyBpbnRlcnJ1cHRlZCDihpIga2VybmVs?=
 =?UTF-8?B?IHBhbmljIGluIHRoZSB1Y29tIHByb2Nlc3M=?=
Date: Mon, 23 Nov 2026 09:06:39 +0000
X-Bugzilla-Reason: AssignedTo
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: Base System
X-Bugzilla-Component: usb
X-Bugzilla-Version: 15.1-RELEASE
X-Bugzilla-Keywords: patch-ready
X-Bugzilla-Severity: Affects Some People
X-Bugzilla-Who: viktor.dolgopiatov@icloud.com
X-Bugzilla-Status: New
X-Bugzilla-Resolution: 
X-Bugzilla-Priority: ---
X-Bugzilla-Assigned-To: usb@FreeBSD.org
X-Bugzilla-Flags: 
X-Bugzilla-Changed-Fields: 
Message-ID: <bug-301030-19105-NYzOST7ZYU@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-301030-19105@https.bugs.freebsd.org/bugzilla/>
References: <bug-301030-19105@https.bugs.freebsd.org/bugzilla/>
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset="UTF-8"
X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/
Auto-Submitted: auto-generated
List-Archive: https://lists.freebsd.org/archives/freebsd-usb
X-BeenThere: freebsd-usb@freebsd.org
List-Id: FreeBSD support for USB <freebsd-usb.FreeBSD.org>
List-Post: <mailto:freebsd-usb@FreeBSD.org>
List-Help: <mailto:freebsd-usb+help@FreeBSD.org>
List-Subscribe: <mailto:freebsd-usb+subscribe@FreeBSD.org>
List-Unsubscribe: <mailto:freebsd-usb+unsubscribe@FreeBSD.org>
List-Owner: <mailto:freebsd-usb+owner@FreeBSD.org>
Precedence: list
MIME-Version: 1.0

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D301030

--- Comment #3 from Viktor Dolgopiatov <viktor.dolgopiatov@icloud.com> ---
Thank you for the review. You are right =E2=80=94 accessing up_qhead and pm=
_qentry
directly from usb_serial.c is poor encapsulation.

Revised approach: add a new public function usb_proc_msg_dequeue() to
usb_process.c/.h, then call it from ucom_command_barrier().

usb_process.h =E2=80=94 new prototype alongside the existing usb_proc_* dec=
larations:

    int    usb_proc_msg_dequeue(struct usb_process *up, void *pm);

usb_process.c =E2=80=94 new function at the end of the file:

    /*---------------------------------------------------------------------=
---*
     *      usb_proc_msg_dequeue
     *
     * Dequeue a USB process message from the pending queue if it is
     * currently enqueued.  Must be called with the process mutex (up_mtx)
     * held.  Returns non-zero if the message was actually removed.
=20=20=20=20
*------------------------------------------------------------------------*/
    int
    usb_proc_msg_dequeue(struct usb_process *up, void *msg)
    {
            struct usb_proc_msg *pm =3D msg;

            USB_MTX_ASSERT(up->up_mtx, MA_OWNED);

            if (pm->pm_qentry.tqe_prev =3D=3D NULL)
                    return (0);
            TAILQ_REMOVE(&up->up_qhead, pm, pm_qentry);
            pm->pm_qentry.tqe_prev =3D NULL;
            return (1);
    }

usb_serial.c =E2=80=94 ucom_command_barrier() becomes:

    task =3D usb_proc_msignal(&ssc->sc_tq, &dummy, &dummy);
    error =3D usb_proc_mwait_sig(&ssc->sc_tq, task, task);
    /*
     * The wait is interruptible and "dummy" lives on our stack.
     * If a signal cut the wait short, the message must not stay
     * queued: the ucom process would later call pm_callback from
     * a dead stack frame -- kernel panic "page fault, current
     * process =3D ucom".  We hold up_mtx (=3D=3D sc_mtx) here.
     */
    if (error !=3D 0)
            usb_proc_msg_dequeue(&ssc->sc_tq, &dummy);

The void * parameter matches the existing usb_proc_msignal() and
usb_proc_mwait*() signatures; the cast to struct usb_proc_msg * happens
inside usb_process.c where the full struct definition is available.

The patch now applies from sys/dev/usb/ rather than sys/dev/usb/serial/.

Does this look acceptable, or did you have a different abstraction in mind?

--=20
You are receiving this mail because:
You are the assignee for the bug.=

From nobody Mon Nov 23 09:07:17 2026
X-Original-To: usb@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 4jY0Sj5Qfxz72NYV
	for <usb@mlmmj.nyi.freebsd.org>; Mon, 23 Nov 2026 09:07:17 +0000 (UTC)
	(envelope-from bugzilla-noreply@freebsd.org)
Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3])
	(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)
	(No client certificate requested)
	by mx1.freebsd.org (Postfix) with ESMTPS id 4jY0Sj4spDz3Hh1
	for <usb@FreeBSD.org>; Mon, 23 Nov 2026 09:07:17 +0000 (UTC)
	(envelope-from bugzilla-noreply@freebsd.org)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim;
	t=1795424837;
	h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
	 to:to:cc:mime-version:mime-version:content-type:content-type:
	 content-transfer-encoding:content-transfer-encoding:
	 in-reply-to:in-reply-to:references:references;
	bh=P+6Gnp29pjzWHxnGnBcc6+Tpp2cqWduKgL++xyYD6ZQ=;
	b=STR7TmnaUMSiZAo8MvwAm1R4QXDOm9M64b1nRTQjcTzIiVGiyDYWGlMpzoB+BFUw8Mc9xr
	lqDgZ0h53LT5giT0w4c20JuefytQv/xDM6ln6wYd/9Neln9PmZn3jyV3gkCmfLKQ38fYI4
	EZ6f74QdKysiBoVZPJ1Sy9V8SD3joVMKma1DuIoDk7aCCNTkBBbmG+XS3g2Ia8cRdVELG8
	o/O9ABA1yFVpyX0GVbWj3RaM76PlsTe/gt3WkmviAIHmf+v947HOdaKaf7g3ePJaippCff
	UcyccHNrCmE4wglcfqSoHKDjJtl8pIivzMnzF/R6rA+6BKSmVOymwmPle8YOJQ==
ARC-Seal: i=1; a=rsa-sha256; d=freebsd.org; s=dkim; cv=none; t=1795424837;
	b=a4tJ+Rq8d8ZROve12wymtH6HbeoOS0D4BF8u4PBYY/7uxsUVoK4LF2Tv3KE/eif1BI+udZ
	rojrtU5gMwNdXtjFptnjsykskeqs1Fep05LPVz1QANLf5xtf3emmJttrObm1o06GT3iWwc
	KtaeDny3dFiyC+52u8QNtBnAK70cTuAlWeziJWX9ditZh6mJz8hxHDJBPMNhmJUzgt8V4J
	+QXcDAOC3+4OJUoa0XgmtxejsCNtyCETJtD3WL1nCiRhXk2Jqqb+Tn3KCaMmxMJm7qJkzh
	IUOMY/5v7nQ1A2dlcJZzhDxux5E6OT9W+uADPxzzF/zncwTkfaK1UmpS2yz+nQ==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org;
	s=dkim; t=1795424837;
	h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
	 to:to:cc:mime-version:mime-version:content-type:content-type:
	 content-transfer-encoding:content-transfer-encoding:
	 in-reply-to:in-reply-to:references:references;
	bh=P+6Gnp29pjzWHxnGnBcc6+Tpp2cqWduKgL++xyYD6ZQ=;
	b=C5s/xA65qnJ/2/qWczA+ZWzcfoqMJ0TZEELAh6yeNqIyy3igmpl+owAVWoL8KRlgyAMvWO
	69Zbg9x0oVwehJk8g3zbqhUqn3OujnDtqDAEGN2UiOEbMC6ZDFH4jkYhk0YOHTNZbsCim1
	bQMstpg6UyLbLwM2f9mRR5pwO5zQfbB+IKRRxjeQ40svoMf20krNV9StNndpaF2JbBWCiE
	3cNATSn2RebGmUobEqjLuNwJV6H8bwJxLhCK/bUGXr4rEdbiGclZv8dM9TMiwwU9hIqw0b
	MT8q7czI6lQr7ZHNWakApNPWARBaN0xwak3GEnWSzp/Hj4LDUjuDFRPnnwwkaw==
ARC-Authentication-Results: i=1;
	mx1.freebsd.org;
	none
Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d])
	(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 mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4jY0Sj4D8YzlDV
	for <usb@FreeBSD.org>; Mon, 23 Nov 2026 09:07:17 +0000 (UTC)
	(envelope-from bugzilla-noreply@freebsd.org)
Received: from kenobi.freebsd.org ([127.0.1.5])
	by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 6AN97HWp032831
	for <usb@FreeBSD.org>; Mon, 23 Nov 2026 09:07:17 GMT
	(envelope-from bugzilla-noreply@freebsd.org)
Received: (from www@localhost)
	by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 6AN97H2Q032830
	for usb@FreeBSD.org; Mon, 23 Nov 2026 09:07:17 GMT
	(envelope-from bugzilla-noreply@freebsd.org)
X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f
From: bugzilla-noreply@freebsd.org
To: usb@FreeBSD.org
Subject: =?UTF-8?B?W0J1ZyAzMDEwMzBdIHVjb20oNCk6IHVjb21fY29tbWFuZF9iYXJy?=
 =?UTF-8?B?aWVyKCkgbGVhdmVzIGEgc3RhY2stYWxsb2NhdGVkIHVzYl9wcm9jX21zZyBx?=
 =?UTF-8?B?dWV1ZWQgd2hlbiB0aGUgd2FpdCBpcyBpbnRlcnJ1cHRlZCDihpIga2VybmVs?=
 =?UTF-8?B?IHBhbmljIGluIHRoZSB1Y29tIHByb2Nlc3M=?=
Date: Mon, 23 Nov 2026 09:07:17 +0000
X-Bugzilla-Reason: AssignedTo
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: Base System
X-Bugzilla-Component: usb
X-Bugzilla-Version: 15.1-RELEASE
X-Bugzilla-Keywords: patch-ready
X-Bugzilla-Severity: Affects Some People
X-Bugzilla-Who: viktor.dolgopiatov@icloud.com
X-Bugzilla-Status: New
X-Bugzilla-Resolution: 
X-Bugzilla-Priority: ---
X-Bugzilla-Assigned-To: usb@FreeBSD.org
X-Bugzilla-Flags: 
X-Bugzilla-Changed-Fields: 
Message-ID: <bug-301030-19105-WaH5bTl7LU@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-301030-19105@https.bugs.freebsd.org/bugzilla/>
References: <bug-301030-19105@https.bugs.freebsd.org/bugzilla/>
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset="UTF-8"
X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/
Auto-Submitted: auto-generated
List-Archive: https://lists.freebsd.org/archives/freebsd-usb
X-BeenThere: freebsd-usb@freebsd.org
List-Id: FreeBSD support for USB <freebsd-usb.FreeBSD.org>
List-Post: <mailto:freebsd-usb@FreeBSD.org>
List-Help: <mailto:freebsd-usb+help@FreeBSD.org>
List-Subscribe: <mailto:freebsd-usb+subscribe@FreeBSD.org>
List-Unsubscribe: <mailto:freebsd-usb+unsubscribe@FreeBSD.org>
List-Owner: <mailto:freebsd-usb+owner@FreeBSD.org>
Precedence: list
MIME-Version: 1.0

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D301030

--- Comment #4 from Viktor Dolgopiatov <viktor.dolgopiatov@icloud.com> ---
Thank you for the review. You are right =E2=80=94 accessing up_qhead and pm=
_qentry
directly from usb_serial.c is poor encapsulation.

Revised approach: add a new public function usb_proc_msg_dequeue() to
usb_process.c/.h, then call it from ucom_command_barrier().

usb_process.h =E2=80=94 new prototype alongside the existing usb_proc_* dec=
larations:

    int    usb_proc_msg_dequeue(struct usb_process *up, void *pm);

usb_process.c =E2=80=94 new function at the end of the file:

    /*---------------------------------------------------------------------=
---*
     *      usb_proc_msg_dequeue
     *
     * Dequeue a USB process message from the pending queue if it is
     * currently enqueued.  Must be called with the process mutex (up_mtx)
     * held.  Returns non-zero if the message was actually removed.
=20=20=20=20
*------------------------------------------------------------------------*/
    int
    usb_proc_msg_dequeue(struct usb_process *up, void *msg)
    {
            struct usb_proc_msg *pm =3D msg;

            USB_MTX_ASSERT(up->up_mtx, MA_OWNED);

            if (pm->pm_qentry.tqe_prev =3D=3D NULL)
                    return (0);
            TAILQ_REMOVE(&up->up_qhead, pm, pm_qentry);
            pm->pm_qentry.tqe_prev =3D NULL;
            return (1);
    }

usb_serial.c =E2=80=94 ucom_command_barrier() becomes:

    task =3D usb_proc_msignal(&ssc->sc_tq, &dummy, &dummy);
    error =3D usb_proc_mwait_sig(&ssc->sc_tq, task, task);
    /*
     * The wait is interruptible and "dummy" lives on our stack.
     * If a signal cut the wait short, the message must not stay
     * queued: the ucom process would later call pm_callback from
     * a dead stack frame -- kernel panic "page fault, current
     * process =3D ucom".  We hold up_mtx (=3D=3D sc_mtx) here.
     */
    if (error !=3D 0)
            usb_proc_msg_dequeue(&ssc->sc_tq, &dummy);

The void * parameter matches the existing usb_proc_msignal() and
usb_proc_mwait*() signatures; the cast to struct usb_proc_msg * happens
inside usb_process.c where the full struct definition is available.

The patch now applies from sys/dev/usb/ rather than sys/dev/usb/serial/.

Does this look acceptable, or did you have a different abstraction in mind?

--=20
You are receiving this mail because:
You are the assignee for the bug.=

From nobody Mon Nov 23 17:10:40 2026
X-Original-To: usb@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 4jYCBS4kkGz715XJ
	for <usb@mlmmj.nyi.freebsd.org>; Mon, 23 Nov 2026 17:10:40 +0000 (UTC)
	(envelope-from bugzilla-noreply@freebsd.org)
Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3])
	(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)
	(No client certificate requested)
	by mx1.freebsd.org (Postfix) with ESMTPS id 4jYCBS47v1z55y8
	for <usb@FreeBSD.org>; Mon, 23 Nov 2026 17:10:40 +0000 (UTC)
	(envelope-from bugzilla-noreply@freebsd.org)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim;
	t=1795453840;
	h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
	 to:to:cc:mime-version:mime-version:content-type:content-type:
	 content-transfer-encoding:content-transfer-encoding:
	 in-reply-to:in-reply-to:references:references;
	bh=OfAtzmQ6oYX03W3PUP6lBeOfaCILY7zwJiYVwa3yImY=;
	b=d91qUHaq2f+2ycor8SkMmpkCOHaqJ/ZS9H/shnk3e36kHSDx14lxM3qw+Wy0BycVTJgyob
	BEmlfrNeXX8gOzkUlxiLRlN7mIaApp5IperVT83rOfkFx5fhh7WKI+TBO0CgF9SKP2ygBE
	7PD8hboF3SRCCeC9eoNFeyebtNMWmh3kbZ6QKssgpTG2L8stFgHQb7cwcOjE2hxG9lS5AW
	Rc57yhmxTQi9LOeNeL78bfthtJtdfXo5CfB8pGuMFNlb0JclfQx/+De9n91d7VCrrLrc+5
	+BR1i4QRVVxxufy5LVfiTpwb3ChhVD9EUnkOK4aoYPIoWROD2+NemycAvFH75w==
ARC-Seal: i=1; a=rsa-sha256; d=freebsd.org; s=dkim; cv=none; t=1795453840;
	b=RX3G6yIqn0hReG1+Rd2oCjbuBGHc6K4ikMU/rncVEsmOpwKaOQ4sHp7fy/xE3AI8JOCUTt
	hMOFeOBVfrDwfvi4O/Ibg5s1U/xfr1Q30sy5dRg0KbE0L8M0woPsGrxlMMF8EFgiIDfNzq
	oBvPcja23SpprdvN3EXBGREC4sXgidkE3kZCz/Y9XSJd3/A+yCh3PP500TrdRtYL5lSEBm
	BTCfiTr0K9GMexEghxwdSzyRq6iGdukYPET3TfuKFKLu2VRItkMMENZF/qvTMb5lKWhXT+
	rRAvfu868X+qpQk+d7tvxTZmfAOr6f5DBxRK/eVq3YwpSDJJg+NgHTNmcGKijg==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org;
	s=dkim; t=1795453840;
	h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
	 to:to:cc:mime-version:mime-version:content-type:content-type:
	 content-transfer-encoding:content-transfer-encoding:
	 in-reply-to:in-reply-to:references:references;
	bh=OfAtzmQ6oYX03W3PUP6lBeOfaCILY7zwJiYVwa3yImY=;
	b=aiHDgoO8YqCVpmXSjks2McQ7FIKmJqEL5dX1/Ci21itCHxZThHP7bSm2mEIuTgnf4/CqKd
	BZUU0J7pZMCf8FcWPgCW//9XTCvnKD79svNrDayh8Rp6u+aOEglLChNNMnrYLoP6Bcf1Fs
	SfMMBDV38JU224E+NAUSZnNTEDBL0i4lmqJ3vDuR9eth96oI8irvUaOibig1cyGWo5AFgY
	TaHwUqRy4NRDGmNuZ/dMU/8AUSPOxS6aHJ+pBft+l/Y/zXVPl0KA6lwirG8aZchUdglHco
	EUBcoAPktnOw1sHjfZ1M0N1sdaVxZVDR7Zz2SH5kKEF81mEQy63Y/UbsUL6PPQ==
ARC-Authentication-Results: i=1;
	mx1.freebsd.org;
	none
Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d])
	(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 mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4jYCBS3nKZz10dH
	for <usb@FreeBSD.org>; Mon, 23 Nov 2026 17:10:40 +0000 (UTC)
	(envelope-from bugzilla-noreply@freebsd.org)
Received: from kenobi.freebsd.org ([127.0.1.5])
	by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 6ANHAeu9076303
	for <usb@FreeBSD.org>; Mon, 23 Nov 2026 17:10:40 GMT
	(envelope-from bugzilla-noreply@freebsd.org)
Received: (from www@localhost)
	by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 6ANHAehK076302
	for usb@FreeBSD.org; Mon, 23 Nov 2026 17:10:40 GMT
	(envelope-from bugzilla-noreply@freebsd.org)
X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f
From: bugzilla-noreply@freebsd.org
To: usb@FreeBSD.org
Subject: [Bug 301029] usb(4)/xhci(4): UAF race between
 usbd_transfer_unsetup_sub() and xhci_interrupt_poll() on struct
 usb_page_cache
Date: Mon, 23 Nov 2026 17:10:40 +0000
X-Bugzilla-Reason: AssignedTo
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: Base System
X-Bugzilla-Component: usb
X-Bugzilla-Version: 15.1-RELEASE
X-Bugzilla-Keywords: 
X-Bugzilla-Severity: Affects Some People
X-Bugzilla-Who: linimon@FreeBSD.org
X-Bugzilla-Status: New
X-Bugzilla-Resolution: 
X-Bugzilla-Priority: ---
X-Bugzilla-Assigned-To: usb@FreeBSD.org
X-Bugzilla-Flags: 
X-Bugzilla-Changed-Fields: component assigned_to
Message-ID: <bug-301029-19105-zZTJPlsVfR@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-301029-19105@https.bugs.freebsd.org/bugzilla/>
References: <bug-301029-19105@https.bugs.freebsd.org/bugzilla/>
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset="UTF-8"
X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/
Auto-Submitted: auto-generated
List-Archive: https://lists.freebsd.org/archives/freebsd-usb
X-BeenThere: freebsd-usb@freebsd.org
List-Id: FreeBSD support for USB <freebsd-usb.FreeBSD.org>
List-Post: <mailto:freebsd-usb@FreeBSD.org>
List-Help: <mailto:freebsd-usb+help@FreeBSD.org>
List-Subscribe: <mailto:freebsd-usb+subscribe@FreeBSD.org>
List-Unsubscribe: <mailto:freebsd-usb+unsubscribe@FreeBSD.org>
List-Owner: <mailto:freebsd-usb+owner@FreeBSD.org>
Precedence: list
MIME-Version: 1.0

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D301029

Mark Linimon <linimon@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|kern                        |usb
           Assignee|bugs@FreeBSD.org            |usb@FreeBSD.org

--=20
You are receiving this mail because:
You are the assignee for the bug.=

From nobody Mon Nov 23 21:12:25 2026
X-Original-To: usb@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 4jYJYR1b6Wz71bZn
	for <usb@mlmmj.nyi.freebsd.org>; Mon, 23 Nov 2026 21:12:27 +0000 (UTC)
	(envelope-from bugzilla-noreply@freebsd.org)
Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3])
	(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)
	(No client certificate requested)
	by mx1.freebsd.org (Postfix) with ESMTPS id 4jYJYR0yhlz4qpg
	for <usb@FreeBSD.org>; Mon, 23 Nov 2026 21:12:27 +0000 (UTC)
	(envelope-from bugzilla-noreply@freebsd.org)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim;
	t=1795468347;
	h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
	 to:to:cc:mime-version:mime-version:content-type:content-type:
	 content-transfer-encoding:content-transfer-encoding:
	 in-reply-to:in-reply-to:references:references;
	bh=efc+CK9T1iQLUE/m+x9b6iCsVdUIT7NpV+Ko+p9eurI=;
	b=avdTENTglVOpWIB3X+zrC1ygPNqdB5bnDHaGDY9trIHhxcsyVamkhT7//FDS15Oac7BaNt
	Jm4yyxpmy4dbcwaylle0ITB+uHht/H3nB06i4AixCffXGXvxjlklGPiOrzixLEXcX31hFx
	K+WnMBjliuGDnrvzJXxYrQwTaVqwvbH7/eScGkdZmeHR9xWOjT6pJYPWTqYFKeopXk3Ihv
	lwwksMrom1upj8uH9T6/XWM3tou0G+dPXOI8aUunz/HzorJGiWd3aV+ol9OaE3odgW6Y7j
	asXkan/WbdaXz2T81azWPKTWcBjDc4UCmLdCPV1GeBaNH5KUAx1rXYR5fR09rg==
ARC-Seal: i=1; a=rsa-sha256; d=freebsd.org; s=dkim; cv=none; t=1795468347;
	b=FqZRoQf0fTgBJ/zZPxJHQkSiyBSyrUxqQcJEbps/L4Ut4KzYPYMxkr0yFrcQ0rrsTkF+ui
	Cz+8uKonmsrCXFTOQ3eBoIAsDMe6iGGDqyUH8RS5i6/dXVOko3uUe3UuB1NrZhFGJPnYPI
	WqvJIAOKV/QS/NXKG+UUdiYV9FOmli5dMAdBbAbBg5xjyBl1Oi610XJcQGYFUAPsLRjNsY
	ScBEkRVlZxmhrnz2O76JLHvzx66znzd4OX6TNRZA0l44AA4xlvi1uUjJl5rx8TXaMow1BA
	v5P+pYTfW+wqcFKxb5JkL4ivTqa50kFxzHQmFbDgXuJ1UJ0LjS81GvnIwnheQg==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org;
	s=dkim; t=1795468347;
	h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
	 to:to:cc:mime-version:mime-version:content-type:content-type:
	 content-transfer-encoding:content-transfer-encoding:
	 in-reply-to:in-reply-to:references:references;
	bh=efc+CK9T1iQLUE/m+x9b6iCsVdUIT7NpV+Ko+p9eurI=;
	b=W7/Kqo5154SCjEptwU7oXD4tI9Q1/ndrePgYoZ9E/vgGSHTLOEcGOB261Ze7g+o4cHsTdm
	1ZIB1T+v6YRsXrjf61bq7qItX3RAZ3e/Kx7Qp20ScFsbCnx0YXLxRUCZozw8Sa68fDaFNt
	ldYxPJAibTxF9znU0HJUf5o4xBlYi0q8KEfniAFnwI9Flc2o4bXHjIBczw6RlWpB6awd4S
	tJPY/0ZItJXJKMc7aGzrx5Ypz7HRODRhtpNaDi1ov9hhn44plI1xatKs6bowODwJVWGnoX
	wWMRY6pSHei/3gHTUqwkeVBXH9qqASkbH7kA2Y0OA4hXbr3cwNd6gtPjJYaSZw==
ARC-Authentication-Results: i=1;
	mx1.freebsd.org;
	none
Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d])
	(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 mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4jYJYR0dyWz17S4
	for <usb@FreeBSD.org>; Mon, 23 Nov 2026 21:12:27 +0000 (UTC)
	(envelope-from bugzilla-noreply@freebsd.org)
Received: from kenobi.freebsd.org ([127.0.1.5])
	by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 6ANLCRCc061422
	for <usb@FreeBSD.org>; Mon, 23 Nov 2026 21:12:27 GMT
	(envelope-from bugzilla-noreply@freebsd.org)
Received: (from bugzilla@localhost)
	by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 6ANLCRkS061421
	for usb@FreeBSD.org; Mon, 23 Nov 2026 21:12:27 GMT
	(envelope-from bugzilla-noreply@freebsd.org)
X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@freebsd.org using -f
From: bugzilla-noreply@freebsd.org
To: usb@FreeBSD.org
Subject: [Bug 290417] Abort trap at smscphy_status when rebooting
Date: Mon, 23 Nov 2026 21:12:25 +0000
X-Bugzilla-Reason: AssignedTo
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: Base System
X-Bugzilla-Component: usb
X-Bugzilla-Version: 15.0-STABLE
X-Bugzilla-Keywords: crash
X-Bugzilla-Severity: Affects Many People
X-Bugzilla-Who: commit-hook@FreeBSD.org
X-Bugzilla-Status: New
X-Bugzilla-Resolution: 
X-Bugzilla-Priority: Normal
X-Bugzilla-Assigned-To: usb@FreeBSD.org
X-Bugzilla-Flags: 
X-Bugzilla-Changed-Fields: 
Message-ID: <bug-290417-19105-KhRxgwxLAY@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-290417-19105@https.bugs.freebsd.org/bugzilla/>
References: <bug-290417-19105@https.bugs.freebsd.org/bugzilla/>
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset="UTF-8"
X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/
Auto-Submitted: auto-generated
List-Archive: https://lists.freebsd.org/archives/freebsd-usb
X-BeenThere: freebsd-usb@freebsd.org
List-Id: FreeBSD support for USB <freebsd-usb.FreeBSD.org>
List-Post: <mailto:freebsd-usb@FreeBSD.org>
List-Help: <mailto:freebsd-usb+help@FreeBSD.org>
List-Subscribe: <mailto:freebsd-usb+subscribe@FreeBSD.org>
List-Unsubscribe: <mailto:freebsd-usb+unsubscribe@FreeBSD.org>
List-Owner: <mailto:freebsd-usb+owner@FreeBSD.org>
Precedence: list
MIME-Version: 1.0

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D290417

--- Comment #49 from commit-hook@FreeBSD.org ---
A commit in branch main references this bug:

URL:
https://cgit.FreeBSD.org/src/commit/?id=3Daa2d724164c7b1dd83771ec7094880ae2=
525c9d7

commit aa2d724164c7b1dd83771ec7094880ae2525c9d7
Author:     Gleb Smirnoff <glebius@FreeBSD.org>
AuthorDate: 2026-11-23 21:11:04 +0000
Commit:     Gleb Smirnoff <glebius@FreeBSD.org>
CommitDate: 2026-11-23 21:11:28 +0000

    Revert "mii: call only PHY_STATUS() from mii_pollstat()"

    This regressed bge(4).  A different patch to be proposed.

    This reverts commit ef3c76fd2030a4c7d0f9c981b7129595398e3f21.

    PR:     290417
    PR:     301046

 sys/dev/mii/mii.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--=20
You are receiving this mail because:
You are the assignee for the bug.=

