From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
To: Nguyen Ngoc Thang <ngocthang2710.1999@gmail.com>
Cc: Thomas Winischhofer <thomas@winischhofer.net>,
linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org,
syzbot+109061940215dd4b011e@syzkaller.appspotmail.com
Subject: Re: [PATCH] usb: sisusbvga: stop early init on the first failed transfer
Date: Thu, 3 Dec 2026 18:37:24 +0100 [thread overview]
Message-ID: <2026120354-evacuee-scalping-fa24@gregkh> (raw)
In-Reply-To: <20260923150754.31652-1-ngocthang2710.1999@gmail.com>
On Wed, Sep 23, 2026 at 10:07:53PM +0700, Nguyen Ngoc Thang wrote:
> sisusb_probe() initializes the graphics device from within the hub's
> enumeration work, i.e. with the parent hub's device lock held.
> sisusb_do_init_gfxdevice() accumulates errors with "ret |=" and keeps
> going after a failed transfer. If the device does not answer, every
> remaining transfer sits out its full timeout (5s, retried 6 times), so
> probe holds the hub lock for ~30s per access and about 10 minutes in
> total. Anything that needs that lock, such as usbdev_open() and
> usbdev_ioctl() on the root hub, is blocked for the duration and trips the
> hung task detector.
>
> Return on the first error instead. Also fold the three identical BAR
> setup sequences into a helper and the leading magic writes into a table.
> The sequence of accesses is unchanged when the device responds.
When you say "also" that means you need multiple patches.
> Reproduced with a raw-gadget device (0711:0550, six bulk endpoints that
> never complete I/O) on dummy_hcd: opening the root hub blocked for 603s
> before, 29s after.
That's fine, you are giving the system a broken device, you get a broken
system :)
thanks,
greg k-h
prev parent reply other threads:[~2026-12-04 3:22 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-23 15:07 Nguyen Ngoc Thang
2026-12-03 17:37 ` Greg Kroah-Hartman [this message]
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=2026120354-evacuee-scalping-fa24@gregkh \
--to=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=ngocthang2710.1999@gmail.com \
--cc=syzbot+109061940215dd4b011e@syzkaller.appspotmail.com \
--cc=thomas@winischhofer.net \
/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
all inboxes | Powered by JetHome®