mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Greg KH <gregkh@linuxfoundation.org>
To: Ayush Yaduvanshi <ayush37735@gmail.com>
Cc: michal.pecio@gmail.com, thomas@winischhofer.net,
	linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org,
	syzbot+3bc656a9271e7c8a5c6b@syzkaller.appspotmail.com
Subject: Re: [PATCH v2] USB: sisusbvga: avoid prolonged initialization on failure
Date: Thu, 3 Dec 2026 18:36:44 +0100	[thread overview]
Message-ID: <2026120304-remindful-pueblo-105d@gregkh> (raw)
In-Reply-To: <20260907074308.109603-1-ayush37735@gmail.com>

On Mon, Sep 07, 2026 at 01:13:08PM +0530, Ayush Yaduvanshi wrote:
> The USB core holds minor_rwsem while invoking a USB character
> device's open callback. Avoid retrying graphics-device initialization
> from open() and fail probe when early initialization fails.
> 
> Also stop sisusb_do_init_gfxdevice() after the first failed request.
> Continuing initialization after a failed USB request causes additional
> synchronous transfers and their retries against an unresponsive device.

When you say "also" that implies there should be multiple patches.
Please split this up into a patch series.

> v2:
> Stop sisusb_do_init_gfxdevice() after the first failed USB request and
> treat early initialization failure in probe() as a probe failure.
> Remove the initialization retry from sisusb_open().
> 
> The exact v2 patch was tested by syzbot using the reported reproducer,
> and the reproducer did not trigger the reported hang.

v2 stuff goes below the --- line, right?  Please fix this up.

thanks,

greg k-h

  parent reply	other threads:[~2026-12-04  3:22 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-07  7:43 Ayush Yaduvanshi
     [not found] ` <CAPgWTUSK8B5hk1+TXEkxhxX2WH8p67gE9-z2MLGc-xqdWzKnHQ@mail.gmail.com>
2026-09-19 19:10   ` Ayush Yaduvanshi
2026-12-03 17:36 ` Greg KH [this message]
  -- strict thread matches above, loose matches on Subject: below --
2026-10-14 10:02 Ayush Yaduvanshi
2026-10-14 11:45 ` Greg Kroah-Hartman
2026-09-06 22:09 Ayush
2026-09-06 22:07 Ayush

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=2026120304-remindful-pueblo-105d@gregkh \
    --to=gregkh@linuxfoundation.org \
    --cc=ayush37735@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=michal.pecio@gmail.com \
    --cc=syzbot+3bc656a9271e7c8a5c6b@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®