From: Johan Hovold <johan@kernel.org>
To: YuanZhe Liu <25031212351@stu.xidian.edu.cn>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org,
stable@vger.kernel.org, Bin Yu <byu@xidian.edu.cn>,
Cheng Wen <wencheng@xidian.edu.cn>
Subject: Re: [PATCH v3 0/3] USB: serial: kobil_sct: fix write path races
Date: Mon, 30 Nov 2026 13:17:32 +0100 [thread overview]
Message-ID: <aw1pXPpznn7xBScv@hovoldconsulting.com> (raw)
In-Reply-To: <20261130120548.8509-1-25031212351@stu.xidian.edu.cn>
On Mon, Nov 30, 2026 at 08:05:45PM +0800, YuanZhe Liu wrote:
> This series fixes the write path of the KOBIL USB serial driver.
>
> Patch 1 waits for each interrupt-out chunk to complete instead of reusing
> the URB while it is still active, and stops sending on errors.
>
> Patch 2 serializes concurrent writers so that the transmit buffer cannot
> be corrupted and the URB cannot be resubmitted by a second caller.
>
> Patch 3 moves the chunked block transmission to a work item so the tty
> write path no longer sleeps and the port private data cannot be freed
> while the driver is waiting on a transfer.
>
> ---
> v3:
> - Restart the interrupt-in URB only when the whole block was sent.
> - Add a patch to serialize concurrent writes.
> - Add a patch to move the block transmission to a work item.
>
> v2:
> - Check urb->status and stop sending the block when the transfer fails
> or the URB is killed.
> - Only restart the interrupt-in URB once the block has been sent.
> - Bail out if the port was disconnected while waiting.
Please stop this. You have been submitting a new revision every hour for
something which appears to have been all LLM generated and not tested at
all.
Make sure to mention when you submit patches how an issue was found and
how it has been tested.
Johan
prev parent reply other threads:[~2026-11-30 12:17 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-30 12:05 [PATCH v3 0/3] USB: serial: kobil_sct: fix write path races YuanZhe Liu
2026-11-30 12:05 ` [PATCH v3 1/3] USB: serial: kobil_sct: fix URB submitted while active YuanZhe Liu
2026-11-30 12:05 ` [PATCH v3 2/3] USB: serial: kobil_sct: serialize concurrent writes YuanZhe Liu
2026-11-30 12:05 ` [PATCH v3 3/3] USB: serial: kobil_sct: move block transmission to a work queue YuanZhe Liu
2026-11-30 12:17 ` Johan Hovold [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=aw1pXPpznn7xBScv@hovoldconsulting.com \
--to=johan@kernel.org \
--cc=25031212351@stu.xidian.edu.cn \
--cc=byu@xidian.edu.cn \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=stable@vger.kernel.org \
--cc=wencheng@xidian.edu.cn \
/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