From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796041055; b=yXuvndJBCxNmmDxRmLNZlNG4LOCsWcH+KuCLfjmwY2gbg89s2fypF6IyOBrvBGXlRpWQ 2DoPn1H3AXQI7r6Zfi4AEQOzkesaONyQKDdeDka1Th+o6KGvJtijVVAebReHEyMEdfg3P 3qWZiCAKdLtiVtBUhqTBPba76GnPvY+nY7NoL3QkN6/5phQcZd1sqxZiBXaA+SZBAWZmI ucK1mW/vSg9tGgaxenKhB0ojdRaMa+qIsZQP599QgdVTRvg6tPIe8qItdPjPULDU2yJJc iehtByqJ+zZISd8kYAlDIr8QMdHkbdJ7drJgC9hHTlsojL1qrsgxLm8wnc4bRMsi6jg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796041055; h=Received:DKIM-Signature:Received:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=EHNP7O7/Bl8oPHtrlC2odrp84UhAhvuV5p7M4wq4um8=; b=5dcwB9AUlma2doaFwQ4MYNuogQUT2l4JLokMpPnl3/ajL5bLgt3OE8ua2gZj3MWInqUC KfbdVMzAcg8GenwaSXDnM8UPRwY381diz1SLXorqwlczsGhJ6J2b91MxsWMMvFa/M5b8/ MQZ0ozwyOG5iAjomRmfEtYRa4U2xrgFpzKx+m/4h10nDhZ1ktTvQHjugcqujDhrXcb7bf E1JWsz/D2LkRIOYXy8ArlV+p5B0wgGQYTBoz6B8q38tBWQEQQ6q+BATDXm0dJfRqQjas+ CNAXd/BCe+8RKBudnwIiwVCsflOuFX4+lbCZZ+QTOa4L3e6M9wv0lf32amFt4PEj3nw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=DJm9Vpzu; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 58867606A325; Mon, 30 Nov 2026 12:17:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=DJm9Vpzu Received: by smtp.kernel.org (Postfix) with ESMTPSA id 932F51F000C1; Mon, 30 Nov 2026 12:17:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796041054; bh=EHNP7O7/Bl8oPHtrlC2odrp84UhAhvuV5p7M4wq4um8=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=DJm9VpzuMikx8LMzmqB8w8rytdG302/UV15SB315KyQhkj2CwD+N1iYLJKXrOOXPQ /gBZ8eDRsrrEpVSxJcs371cEg9njxUjAfMokmxauqre440d8gGQR9rlEJJXoCksHDG mbva68Zm8XcZ6mseUSmBmdsrFNT4IX8nPx4b4Ch21Ppyq3wwrUyHtum67chK8UsSBe A5cZ30jqybxXxm2mMb1XzJDgtrxGu7sVI07u43l/H0jT8/ViMo3prkRa5HE0Hd11D2 s2YBcNRzT1gqE8V9J/958FRiNdxNtvPyP+vH4PfQWGMzuuYKiot88A4ppoJJN7qNsq UewsHp6p9L2oA== Received: from johan by xi.lan with local (Exim 4.100.2) (envelope-from ) id 1xY0K4-00000003RLf-0LMW; Mon, 30 Nov 2026 13:17:32 +0100 Date: Mon, 30 Nov 2026 13:17:32 +0100 From: Johan Hovold To: YuanZhe Liu <25031212351@stu.xidian.edu.cn> Cc: Greg Kroah-Hartman , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org, Bin Yu , Cheng Wen Subject: Re: [PATCH v3 0/3] USB: serial: kobil_sct: fix write path races Message-ID: References: <20261130120548.8509-1-25031212351@stu.xidian.edu.cn> X-Mailing-List: stable@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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