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=1796118091; b=j3FWQeh+qs7yA87N4kOVKSsFNtZuqPrJUddVz7hY9dG5PXxcfXO7IHq5cHYaG424alJI boGF5Su7EJx/ScErq8XEFX5TRAmc2qlBJ6Tu8VqoOppPIdyFgFUJ3sI0D1alIAUQV+tLB aaNw+dC3EjmBSIMu/djLc2e/Uo5MB/BFXs6AGlGPBvXnwX9k3GOSQIuj/+yuIdYHAyF1G BiBEops2J+/yOQzqmu8TzQIIIOTLbbn4IgasPN1EQfC/fHX/cAYKm+6txA940sBMVg5wS RojqdfZNgT2q1DXlUHPd3oxIYScaoq9ZaCYfz8ECJizvMys1fx2sa5TNPVo+acY53sg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796118091; h=Received:DKIM-Signature:Subject:From:To:Cc:Date:Message-ID: In-Reply-To:References:X-sashiko-severity:Content-Type: Content-Transfer-Encoding:MIME-Version; bh=7Tmq97lcEWKAGzzDmW9NdzRYWi0Vm/TBr9TXM6U9nTU=; b=Ub1WGdoYEapkbdK0lffPVIpcudyLniQixYCUyYGy+fbCqzmhj6ayby2or3QTzYxy4w84 TsHrnyXDbMYPKLPWwyrmMmJARBSP5ngaQ8HiB8xBKObJRl1JL0C9uIIDAvJkldbv24EPO qqkIV0gDL6UjLSOWWq4CuXXw6d0pyxst3HRSLJf4qwJhuLnRSK4V4d4DX/XHx60bIzo1F iWAYg0B8c5ViH8n/2EkAJjI00zoThrv4lusu4F3VxqsoALUxdklWl9OQ1fhix649Ki9oP tg8k8tqJpvJcf8zIHOz8A13eGUfCL0A50oc905cv0VLeXUW9TGQ3E1iVLlI2RwlSBYA== 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=LusXzd0R; 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 D73F4606A325; Tue, 1 Dec 2026 09:41:31 +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=LusXzd0R Received: by smtp.kernel.org (Postfix) with ESMTPSA id A4B861F00897; Tue, 1 Dec 2026 09:41:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796118091; bh=7Tmq97lcEWKAGzzDmW9NdzRYWi0Vm/TBr9TXM6U9nTU=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=LusXzd0RYcUQv41KhxKfNFlfp5xn2fJEWwAyhhb4gQi7r6s+oOWmlDoTa3yXG5QTZ 2EuVQj4c/tYKV0HcdcjceOcQqku7Pc6F2cutQZCkybWDCQz5Vem0oi7sGRYOYN0GHR mslEqFimvvwuDkQ6T4Ei50XWOLZwF/gnK5S2giLLMGr7zfnBkMUhsNI/wInMTzaqpN g9UDFrP+NUAImymIXVilHFGbEQ5TcEelzi9vVpPOwl5Bbp0ZrDWMxZhAL08vsyDlKD vNYukd2BojPtAte+ft+9P7wNB2yd7Rh0sYVSTxagYoUiIrqSrZH/mcxljlG5NfN736 O2eCXjKdNAtig== Subject: Re: [PATCH net-next 8/9] can: gs_usb: gs_usb_receive_bulk_callback(): use dev_info_ratelimited() to print re-submit info messages From: netdev-bot+sashiko@kernel.org To: mkl@pengutronix.de Cc: netdev@vger.kernel.org, davem@davemloft.net, kuba@kernel.org, linux-can@vger.kernel.org, kernel@pengutronix.de, shuangpeng.kernel@gmail.com, stable@vger.kernel.org, vadim.fedorenko@linux.dev Date: Tue, 01 Dec 2026 09:41:30 +0000 Message-ID: <179611809021.3146.12955719357828172247@kernel.org> In-Reply-To: <20261130092003.1946901-9-mkl@pengutronix.de> References: <20261130092003.1946901-9-mkl@pengutronix.de> X-sashiko-severity: Low Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Mailing-List: netdev@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Thank you for your contribution! Sashiko AI review found more severe issue(s) in other patches of this series. This mail is only an FYI, in case you want to address the nit picks below when you respin. Low priority / nit picks for your consideration: - [Low] The commit "can: gs_usb: gs_usb_receive_bulk_callback(): use dev_info_ratelimited() to print re-submit info messages" fixes a… -- can: gs_usb: gs_usb_receive_bulk_callback(): use dev_info_ratelimited() to print re-submit info messages When re-submitting the IN URB fails in gs_usb_receive_bulk_callback(), the message is now printed with dev_info_ratelimited() on the USB device. It used to go through net_ratelimit() and netdev_info(). This avoids logging against a NULL net_device when the URB is resubmitted before the netdev is known, and it drops the NULL initialization of netdev. Link: https://patch.msgid.link/20261130-gs_usb-fixes-v12-8-9ba1f84c179a@pengutronix.de > diff --git a/drivers/net/can/usb/gs_usb.c b/drivers/net/can/usb/gs_usb.c > index 2b23246fb8ebd..10769296c6e0b 100644 > --- a/drivers/net/can/usb/gs_usb.c > +++ b/drivers/net/can/usb/gs_usb.c [ ... ] > @@ -797,9 +797,10 @@ static void gs_usb_receive_bulk_callback(struct urb *urb) > if (parent->canch[rc]) > netif_device_detach(parent->canch[rc]->netdev); > } > - } else if (rc != -ESHUTDOWN && net_ratelimit()) { > - netdev_info(netdev, "failed to re-submit IN URB: %pe\n", > - ERR_PTR(rc)); > + } else if (rc != -ESHUTDOWN) { > + dev_info_ratelimited(&parent->udev->dev, > + "failed to re-submit IN URB: %pe\n", > + ERR_PTR(rc)); > } > } [Severity: Low] This patch fixes a reported problem and has Reported-by: and Closes: tags, but it has no Fixes: tag. Should one be added? The NULL netdev case comes from the early header length check in gs_usb_receive_bulk_callback(), which commit 6fe9f3279f7d added: minimum_length = sizeof(hf->header); if (urb->actual_length < minimum_length) { dev_err_ratelimited(&parent->udev->dev, "short read (actual_length=%u, minimum_length=%u)\n", urb->actual_length, minimum_length); goto resubmit_urb; } This goto reaches resubmit_urb before netdev = dev->netdev runs. If usb_submit_urb() then fails with an error other than -ENODEV or -ESHUTDOWN, the old netdev_info() call logged "(NULL net_device)". Before 6fe9f3279f7d, every goto resubmit_urb ran after netdev was assigned. Commit 6fe9f3279f7d has its own Fixes: tag, so stable trees may pick it up. Without a Fixes: tag here, those trees could miss this follow-up. Would this tag fit? Fixes: 6fe9f3279f7d ("can: gs_usb: gs_usb_receive_bulk_callback(): check actual_length before accessing header") -- Sashiko AI review · https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261130092003.1946901-2-mkl%40pengutronix.de