From: "Fabio M. De Francesco" <fmdefrancesco@gmail.com>
To: syzkaller-bugs@googlegroups.com
Cc: syzbot <syzbot+355c68b459d1d96c4d06@syzkaller.appspotmail.com>,
syzkaller-bugs@googlegroups.com, linux-kernel@vger.kernel.org,
Hillf Danton <hdanton@sina.com>
Subject: Re: [syzbot] WARNING in usb_tx_block/usb_submit_urb
Date: Thu, 16 Feb 2023 10:21:33 +0100 [thread overview]
Message-ID: <2878263.e9J7NaK4W3@suse> (raw)
In-Reply-To: <20230216081834.1432-1-hdanton@sina.com>
On giovedì 16 febbraio 2023 09:18:34 CET Hillf Danton wrote:
> Fabio!
>
> On Thu, 16 Feb 2023 07:54:08 +0100 Fabio M. De Francesco
> <fmdefrancesco@gmail.com>
> > > do {
> > >
> > > int j =3D 0;
> > > i++;
> > >
> > > - if_usb_issue_boot_command(cardp, BOOT_CMD_FW_BY_USB);
> >
> > Don't we need to call if_usb_issue_boot_command() in a loop in order to
> > retry
> > the command?
>
> Nope certainly because of no sense made by sending it again, given no
> response this round.
>
Your argument looks reasonable but...
For what regards subsystems/drivers whose I'm not expert I always assume that
the authors know what they do despite bugs. I mean that looks more probable
that they have reasons to issue several calls to if_usb_issue_boot_command() /
usb_submit_urb in a loop. May be that those usb_submit_urb get lost in some
particular conditions, since they decide to try if_usb_issue_boot_command() in
a loop (but forget to kill the URB before next iteration).
I have no reasons to think you are wrong. However I don't understand the
reason that made you leave the loops untouched (except the line with the call
to if_usb_issue_boot_command().
I suppose that, if you confirm that we have no reasons to reiterate that call,
you should also leave only one loop waiting for response.
Am I missing something?
Thanks,
Fabio
next prev parent reply other threads:[~2023-02-16 9:21 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20230215110515.3833-1-hdanton@sina.com>
2023-02-15 11:57 ` [syzbot] WARNING in usb_tx_block/usb_submit_urb syzbot
2023-02-16 6:54 ` Fabio M. De Francesco
2023-02-16 7:44 ` syzbot
2023-02-16 8:26 ` Fabio M. De Francesco
2023-02-16 8:48 ` syzbot
[not found] ` <20230216081834.1432-1-hdanton@sina.com>
2023-02-16 9:21 ` Fabio M. De Francesco [this message]
2023-02-15 7:00 syzbot
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=2878263.e9J7NaK4W3@suse \
--to=fmdefrancesco@gmail.com \
--cc=hdanton@sina.com \
--cc=linux-kernel@vger.kernel.org \
--cc=syzbot+355c68b459d1d96c4d06@syzkaller.appspotmail.com \
--cc=syzkaller-bugs@googlegroups.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.