Re: [PATCH v3 0/3] USB: serial: kobil_sct: fix write path races
From: Johan Hovold
Date: Mon Nov 30 2026 - 07:17:38 EST
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