Linux USB
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Lee Yongjun" <jun85566@gmail.com>
Cc: linux-usb@vger.kernel.org
Subject: Re: [PATCH] usb-storage: option_ms: bound probe-time bulk transfers
Date: Tue, 13 Oct 2026 13:27:13 +0000	[thread overview]
Message-ID: <sashiko-outbox-169811@kernel.org> (raw)
In-Reply-To: <20261013132033.4352-1-jun85566@gmail.com>

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [High] usb-storage: build failure due to missing usb_stor_bulk_transfer_buf_timeout() dependency
--

commit 3551a3904408bdea1ed0fe7ef3aadc1aebde4e98
Author: Lee Yongjun <jun85566@gmail.com>

usb-storage: option_ms: bound probe-time bulk transfers

This commit replaces bulk transfers in the option_ms initialization path with
timeout-aware equivalents to prevent the USB hub worker from hanging
indefinitely if a device stops responding. A 30-second timeout is introduced
for transfers in option_inquiry() and option_rezero().

Link: https://lore.kernel.org/r/20261001123135.38831-1-xy521521@gmail.com/
Link: https://syzkaller.appspot.com/bug?extid=7317196294d50d6e55c3

> diff --git a/drivers/usb/storage/option_ms.c b/drivers/usb/storage/option_ms.c
> index 7c0b05a365543..1f3d984d69326 100644
> --- a/drivers/usb/storage/option_ms.c
> +++ b/drivers/usb/storage/option_ms.c

[ ... ]

> @@ -44,9 +46,9 @@ static int option_rezero(struct us_data *us)
>  		return USB_STOR_TRANSPORT_ERROR;
>  
>  	memcpy(buffer, rezero_msg, sizeof(rezero_msg));
> -	result = usb_stor_bulk_transfer_buf(us,
> -			us->send_bulk_pipe,
> -			buffer, sizeof(rezero_msg), NULL);
> +	result = usb_stor_bulk_transfer_buf_timeout(us, us->send_bulk_pipe,
> +						    buffer, sizeof(rezero_msg), NULL,
> +						    OPTION_MS_PROBE_TIMEOUT);

[Severity: High]
Does this cause a build failure? The new helper function
usb_stor_bulk_transfer_buf_timeout() does not appear to be defined or
declared anywhere in the current tree.

The commit message notes a dependency on a pending v3 series, but without
that series applied, compiling drivers/usb/storage/option_ms.c results in
an implicit function declaration and subsequent linker failure when the
usb-storage driver is enabled. 

Should this patch be held back from the tree until its dependencies are 
merged?

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261013132033.4352-1-jun85566@gmail.com?part=1

  reply	other threads:[~2026-10-13 13:27 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-13 13:20 [PATCH] usb-storage: option_ms: bound probe-time bulk transfers Lee Yongjun
2026-10-13 13:27 ` sashiko-bot [this message]
2026-10-13 16:18 ` Greg KH

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=sashiko-outbox-169811@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=jun85566@gmail.com \
    --cc=linux-usb@vger.kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    /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