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=1796301268; b=ZEhxepHKWt9eDIskNSd65Oljl3C2WTCjhb3ag/b0S6aJcYktd/HolXGPPCUgWPSy2iio 6/Htjou6Y0LoQv53ssAgRtaEvdVTnnTlWenOUa3+k/qU6PKcW7Tr8d8P+uA6WHXzEJ4lY WYhchmzaBHDqb/4EQLbyGgbDwRy+dMkwNrOj1QywF2NYxHxX0XbWFT6shrtHFzImYEBHO VGqbPQgf8VHvKm4aEhmaHEBVJR/ko67xtM6dueYulHbT1ckS+9xY+tjmkFQbGbpz19m+C 3ZmEy4YYGBHSQLtK5rIkS90Y8rkLzUOCkBun70/r4HqVmMTmDlDgd6BXJ9JtWMqeZmA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796301268; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=ZDcTx2jRHShpnAo3B+UmVVfe1v8puV0x2JqSeTv6hZQ=; b=Lajq6t7ZU8QvkOeXAMMoV62m/uAu2r3tfmSbnIqViONkvSHhKWYHhRYQFyCcxiWzLodU lFelqlyxTSxgPwQadiAi7GIWOhPVB2hWGyaGB3tISIPud57AejOD3XT2kZk+1TIxFojeF cFjM6qC8F3aZEoVSSqOFpvf2npn3KDXdeH3L9Gu8o1ElvBpXf3A3umicy9hJ2piPAaiEd mqwib967bMImeiJH3WmhhK2cpxBV6HJJkMQl6mobr6y1fFeAGZ0HHLv9VdagS1DQr8xZF rIIKfWJnHhPMl5HA2IrBCi8lNWvMAUAwMTpstuopayhi/8wwF7RsmugEkEs4G9P6kCQ== 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=W2VkwW3s; 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 18437606A322 for ; Thu, 3 Dec 2026 12:34:27 +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=W2VkwW3s Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9E5491F000C1; Thu, 3 Dec 2026 12:34:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796301267; bh=ZDcTx2jRHShpnAo3B+UmVVfe1v8puV0x2JqSeTv6hZQ=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=W2VkwW3s3wTn+3cSXuEBy4UN0m6M/viya1OATGwR7LH1qQ1UbV9EfCT4N1lkg5I9W 7hVIS+s4LO6q8fD77iXlz5MNzuPRvwUe1jyTaURZOE4qbcExYZlgP2kb7PpHUYNU0o 6QCYLEyKkWlWmvwWflBbRCloR5Xij590TTuwuFQDXjqpYuv6yK3h6ibk76e53oHI2+ 0C7y5l4YGPZcrPf4+5C1GEyC2roSrtrQVM7sl3feBpC7YgwizSqTlmb7VpMcU7VNYS I6MKgx4N51dAl9HH1Z8eAHilNhSazMr1HgoMosO/PQ8vfBE3H+FEPUIZqhpfRuylpR NntcN0B84x2LA== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v2] usb: cdc-wdm: fix double submission of URB Reply-To: sashiko-reviews@lists.linux.dev To: "Timo Joannin" Cc: linux-usb@vger.kernel.org In-Reply-To: <20261203121557.249197-1-timo.joannin@gmail.com> References: <20261203121557.249197-1-timo.joannin@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Thu, 03 Dec 2026 12:34:27 +0000 X-Mailing-List: linux-usb@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list > Syzbot found a bug where "URB submitted while active". > This is because service_outstanding_interrupt() doesn't check whether > WDM_RESPONDING is already set and allows it to resubmit an already > active URB triggering the warning. >=20 > An earlier attempt to check responding in service_outstanding_interrupt() > was reverted in commit 1607830dadee > ("Revert "usb: cdc-wdm: close race between read and workqueue""), > because wdm_int_callback() left WDM_RESPONDING stuck at 1 > and service_outstanding_interrupt() decremented desc->resp_count > before checking the bit >=20 > In wdm_int_callback check the desc->resp_count before setting > the WDM_RESPONDING bit so that when desc->resp_count >=3D 1, > we leave WDM_RESPONDING unchanged. > In service_outstanding_interrupt() bail if WDM_RESPONDING is set > before decrementing desc->resp_count. >=20 > Reported-by: syzbot+eb8f169da355a394fe04@syzkaller.appspotmail.com > Closes: https://syzkaller.appspot.com/bug?extid=3Deb8f169da355a394fe04 > Fixes: 73e06865ead1 ("USB: cdc-wdm: support back-to-back USB_CDC_NOTIFY_R= ESPONSE_AVAILABLE notifications") > Signed-off-by: Timo Joannin Sashiko has reviewed this patch and found no issues. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261203121557.2491= 97-1-timo.joannin@gmail.com?part=3D1