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=1796297514; b=XKBTmYXqlcqUZAIi/jfReAzfgID5ldQc4NzN1SDhlynAHtGbfx4EMrs4zuqIcqEU2JPc cXCaQEwvmkemxFRx1r+fC6agscPrbwt6Lax7V7mT5gDKOUhH/om60e3DnamkzLwIRyu1C 1CINMSCRAkUP1gniNol73hNhWuTIXU74AX5qQ2rdMBaang8F9iQF59qslWf+X3x9mXgnY BYpPNu0S69D1pW1gWG3JAsIrIiRpGCphIOYVqq2q2yGfJhesv6/Eo+bIvrgfc4HSQszg+ h468Y6piQ5AA/g5t7Sn2mO7XSXQr0oxpkhtYVUy/jM4d2Sq9heDXE/62ZrSDIsoaFAg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796297514; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=4kgt4Gr82QH2XEohfYpDS9mvzMJYbgxZKcQLWcX8UwU=; b=EPk2vRskTVMKbaqnLnrxmsb+jlS7nc3Vo7OulXFVfyDtHpQeyz2sqTFXA09gWGhhWm2l ZFF5/trL82iqqor2eoYpY7f9615hSLLACstQvfJdR3A+IDcIgXd81FiRZ4L8Hifm0cLPa JhczSYUfqwwUGqBmsy7ah66tXXvXsGsnyv3VP2KGQJQmJF8QbYWoAJuHbnNfhqV1raac+ 4XeIxilQEjktskzX+x+880nJmNJL9x8yoVFLUi/ahCi+V50l+AQgGcvbX3+kcTjL0EDr7 mpJzjecPfC31sqC2Lag7APMHUXyq3ctZvBM230AMoRGtLXEJShN6kaTh4rzM4Dz9g8g== 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=mUbFWE8J; 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 928E2606A322 for ; Thu, 3 Dec 2026 11:31:54 +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=mUbFWE8J Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0BB651F00896; Thu, 3 Dec 2026 11:31:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796297514; bh=4kgt4Gr82QH2XEohfYpDS9mvzMJYbgxZKcQLWcX8UwU=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=mUbFWE8JIloMfqXrugfkhRWDYhLajvQj5nRCk6OmenndK1TFrtEOT8fJ/Qos05cEx sed6IB0ksGdi18gDkGcuZezBwwZDDLRHkqtY/NMoH/QC0pvQ/lvZSEM7FfjzXQR/fl tEnkRCYwXNmo/LvizkjmO6Ubf4ZguppXvLBZ4bfqAE3tkyF3MMZVPT4z8yJ888Mqoq 3kD0T3RgVDAb3m3LqbTLL1LtmQCsazZHyuUCTSyDv5sfsma5TA3a2TOvcDqP2JFo6U 5SiuEfyVlVb74qvG9cQ0ioHAgSdfX8XDzwwt2In/iXK3uwirlTAmc6OBRfC60J2n8q TEALQNco7f1wA== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH net v2] usbnet: don't lose rx mode updates that arrive during set_rx_mode() Reply-To: sashiko-reviews@lists.linux.dev To: "Mahdi Yari" Cc: linux-usb@vger.kernel.org In-Reply-To: <20261203111359.36444-1-m.yary16@gmail.com> References: <20261203111359.36444-1-m.yary16@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Thu, 03 Dec 2026 11:31:53 +0000 X-Mailing-List: linux-usb@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list > usbnet_deferred_kevent() tests EVENT_SET_RX_MODE, calls the > minidriver's set_rx_mode() and only then clears the bit. set_rx_mode() > may sleep in a control transfer. If the rx mode changes meanwhile, > usbnet_set_rx_mode() sets the bit and requeues the kevent, but the > trailing clear_bit() wipes that request, so the rerun finds the bit > clear and the new filter is never sent. >=20 > This was observed on a machine in real use: an OpenWrt router whose LAN > port, an ASIX AX88179A (0b95:1790) on cdc_ncm, is bridged with a WiFi > AP. After boot or a USB replug, WiFi clients could not reach hosts > behind the USB port. The bridge enables allmulti and promisc while the > first SET_ETHERNET_PACKET_FILTER is in flight, and usbmon shows that > request as the only one, without promisc: >=20 > S Co:1:009:0 s 21 43 000e 0000 0000 0 > [ ... ] > allyesconfig without new warnings. >=20 > Fixes: 1efed2d06c70 ("usbnet: add a callback for set_rx_mode") > Cc: stable@vger.kernel.org > Signed-off-by: Mahdi Yari Sashiko has reviewed this patch and found no issues. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261203111359.3644= 4-1-m.yary16@gmail.com?part=3D1