From: Michal Pecio <michal.pecio@gmail.com>
To: Alan Stern <stern@rowland.harvard.edu>
Cc: Nikhil Solanke <nikhilsolanke5@gmail.com>,
linux-usb@vger.kernel.org, gregkh@linuxfoundation.org,
mathias.nyman@linux.intel.com, sakari.ailus@linux.intel.com,
katieeliu@tencent.com, johannes.bruederl@gmail.com,
kees@kernel.org, dengjie03@kylinos.cn, limiao@kylinos.cn,
wse@tuxedocomputers.com, dev@a1rm4x.com, vahnenko2003@gmail.com,
cs@tuxedo.de, lijiayi@kylinos.cn, oneukum@suse.com,
bence98@sch.bme.hu, eeodqql09@gmail.com
Subject: Re: USB: Request for guidance investigating configuration descriptor enumeration failure
Date: Mon, 1 Jun 2026 08:49:09 +0200 [thread overview]
Message-ID: <20260601084846.433bfc51.michal.pecio@gmail.com> (raw)
In-Reply-To: <3b79ba92-1c51-420b-a5d2-8a358cafdbf6@rowland.harvard.edu>
[-- Attachment #1: Type: text/plain, Size: 2119 bytes --]
On Sun, 31 May 2026 10:12:50 -0400, Alan Stern wrote:
> On Sun, May 31, 2026 at 12:38:43PM +0200, Michal Pecio wrote:
> > I also found this article, which claims that Windows uses
> > wLength=255 for its config descriptor request "for compatibility
> > reasons". But your pcap doesn't show anything like that and so do
> > mine (Windows 10).
> >
> > https://thewindowsupdate.com/2018/10/12/how-does-usb-stack-enumerate-a-device/
> >
> > So I don't know what's true anymore. Running Windows under a Linux
> > host with individual device passthrough (e.g. qemu) could show what
> > really happens. Even better would be a USB bus analyzer. I don't
> > have one :(
>
> I do. But I don't have one of those Xbox clone devices to test. And
> I don't think I have access to any computers with EHCI controllers
> running Windows 10/11.
The thing to check would be how Windows enumerates any random device,
since I expect that Microsoft designs their own peripherals to work in
Windows out of the box without special quirks.
I have done a quick test with QEMU today. Launched it with
-device qemu-xhci
booted Windows 10 22H2 and typed in QEMU monitor
device_add usb-tablet,pcap=qemu-tablet-w10.pcap
The result is attached. The first device descriptor request uses
wLength=64, followed by proper length, and the first configuration
descriptor requests uses wLength=255.
Then there is some other stuff, and another request for the device
descriptor followed by a 9 byte request for configuration. These may
be the requests being logged by Wireshark, but I haven't installed
Wireshark in this VM yet to confirm and correlate.
So this is why I don't trust Wireshark on Windows very much.
And yes, if more people can confirm that Windows behaves like that,
I think that a quirk which mimics this exact behavior could prove more
useful than a wLength=10 one.
We don't know why the device behaves like that. Maybe it's a buffer
overflow in its FW, maybe it fingerprints the host to automagically
select "proper" mode of operation. Maybe the next such device will
check for 255 bytes exactly.
Regards,
Michal
[-- Attachment #2: qemu-tablet-w10.pcap --]
[-- Type: application/vnd.tcpdump.pcap, Size: 2843 bytes --]
next prev parent reply other threads:[~2026-06-01 6:49 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-29 21:22 USB: Request for guidance investigating configuration descriptor enumeration failure Nikhil Solanke
2026-05-30 1:58 ` Alan Stern
2026-05-30 6:57 ` Nikhil Solanke
2026-05-30 14:48 ` Alan Stern
2026-05-30 16:48 ` Nikhil Solanke
2026-05-30 20:26 ` Alan Stern
2026-05-30 20:47 ` Nikhil Solanke
2026-05-31 1:44 ` Alan Stern
2026-05-31 7:49 ` Nikhil Solanke
2026-05-31 14:03 ` Alan Stern
2026-05-31 8:16 ` Michal Pecio
2026-05-31 10:11 ` Nikhil Solanke
2026-05-31 10:38 ` Michal Pecio
2026-05-31 11:20 ` Nikhil Solanke
2026-05-31 14:12 ` Alan Stern
2026-06-01 6:49 ` Michal Pecio [this message]
2026-06-01 9:01 ` Nikhil Solanke
2026-06-02 17:30 ` Michal Pecio
2026-06-01 13:02 ` Alan Stern
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260601084846.433bfc51.michal.pecio@gmail.com \
--to=michal.pecio@gmail.com \
--cc=bence98@sch.bme.hu \
--cc=cs@tuxedo.de \
--cc=dengjie03@kylinos.cn \
--cc=dev@a1rm4x.com \
--cc=eeodqql09@gmail.com \
--cc=gregkh@linuxfoundation.org \
--cc=johannes.bruederl@gmail.com \
--cc=katieeliu@tencent.com \
--cc=kees@kernel.org \
--cc=lijiayi@kylinos.cn \
--cc=limiao@kylinos.cn \
--cc=linux-usb@vger.kernel.org \
--cc=mathias.nyman@linux.intel.com \
--cc=nikhilsolanke5@gmail.com \
--cc=oneukum@suse.com \
--cc=sakari.ailus@linux.intel.com \
--cc=stern@rowland.harvard.edu \
--cc=vahnenko2003@gmail.com \
--cc=wse@tuxedocomputers.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox