public inbox for linux-usb@vger.kernel.org
 help / color / mirror / Atom feed
From: bugzilla-daemon@kernel.org
To: linux-usb@vger.kernel.org
Subject: [Bug 220272] New: Latent race condition in USB code unveiled with optimized memset_64.S
Date: Thu, 26 Jun 2025 11:39:35 +0000	[thread overview]
Message-ID: <bug-220272-208809@https.bugzilla.kernel.org/> (raw)

https://bugzilla.kernel.org/show_bug.cgi?id=220272

            Bug ID: 220272
           Summary: Latent race condition in USB code unveiled with
                    optimized memset_64.S
           Product: Drivers
           Version: 2.5
          Hardware: All
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P3
         Component: USB
          Assignee: drivers_usb@kernel-bugs.kernel.org
          Reporter: m.seyfarth@gmail.com
        Regression: No

Created attachment 308313
  --> https://bugzilla.kernel.org/attachment.cgi?id=308313&action=edit
Optimized memset_64.S for Intel Raptor Lake

Experimenting with AI to tune memset_64.S (see the attached file) for my Intel
14700KF-system unveiled a race condition in the USB code.

Once this significantly faster memset implementation is compiled-in, I've
noticed that my USB mouse (Sharkoon Light2 100) is not recognized/detected any
longer after each re-boot. The USB mouse is placed in one of the top USB slot
next to my USB keyboard (which surprisingly still works fine) on my NZXT N5
Z690 motherboard. Which one doesn't matter.

I did not get any suspect dmesg entries, the mouse is simply not recognized at
all.

I first thought of a hardware issue or defective USB slot, but re-slotting the
mouse in a different USB slot did not fix the problem eventually. The mouse
initially works fine there until the next reboot.

It also starts to work fine in the same USB slot where it wasn't recognized
after a reboot once I unplug it and plug it in the same USB slot again.

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

             reply	other threads:[~2025-06-26 11:39 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-06-26 11:39 bugzilla-daemon [this message]
2025-06-26 14:04 ` [Bug 220272] New: Latent race condition in USB code unveiled with optimized memset_64.S Greg KH
2025-06-26 14:05 ` [Bug 220272] " bugzilla-daemon
2025-06-26 14:30 ` bugzilla-daemon
2025-06-26 16:02 ` bugzilla-daemon
2025-06-26 16:20 ` bugzilla-daemon
2025-06-26 16:51 ` bugzilla-daemon
2025-06-26 16:53 ` bugzilla-daemon
2025-06-27  8:28 ` bugzilla-daemon
2025-06-27  9:17 ` bugzilla-daemon
2025-06-27 15:52 ` bugzilla-daemon
2025-06-27 16:08 ` bugzilla-daemon
2025-06-27 17:36 ` bugzilla-daemon
2025-06-28  7:22 ` bugzilla-daemon
2025-06-28 16:11 ` bugzilla-daemon
2025-06-28 17:26 ` bugzilla-daemon
2025-06-29 14:19 ` bugzilla-daemon
2025-06-30  8:57 ` bugzilla-daemon
2025-06-30  9:17 ` bugzilla-daemon
2025-06-30 14:26 ` bugzilla-daemon
2025-06-30 14:35 ` bugzilla-daemon
2025-06-30 16:51 ` bugzilla-daemon
2025-06-30 18:38 ` bugzilla-daemon
2025-06-30 19:22 ` bugzilla-daemon
2025-07-01 17:50 ` bugzilla-daemon
2025-07-02  5:48 ` bugzilla-daemon
2025-07-02  6:02 ` bugzilla-daemon
2025-07-02  8:06 ` bugzilla-daemon
2025-07-02 14:12 ` bugzilla-daemon
2025-07-02 17:20 ` bugzilla-daemon
2025-07-02 17:38 ` bugzilla-daemon
2025-07-10 20:46 ` bugzilla-daemon

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=bug-220272-208809@https.bugzilla.kernel.org/ \
    --to=bugzilla-daemon@kernel.org \
    --cc=linux-usb@vger.kernel.org \
    /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