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=1796235009; b=oCDwpAz4C7bxODcaBjpBZrN2x7oHpVMIhKoDpTBCn1iNC2QYfsXltB4MCzrSbN+TK6d9 43Vq9Gahf3aEBFCnvbIzUY8SHNwe5Tj3jIN3I/zWFwPa0xkBrb2DggkUca0RMA34HQWmh 4b9U7d4ik44VisEB7Ivg1GrD7E8ZMtxK7CLNgWAvhkoEH5uD3aeoa5YWtrAizpTaP7Gsm acyQnA7FIep8XdapanuqaBMhhKnuWS7Vfwngm5iSHUua6EI4fSyIOnCkgwHVvoh1HcMUl OjkSei6nOu2tzdpTykaBnZWci8Cisd2hqtTbdXWMVjTQHEUCTxnkYecx7b/qMKF9GkA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796235009; h=Received:DKIM-Signature:Received:Content-Type:MIME-Version: Content-Transfer-Encoding:Subject:From:Message-Id:Date:References: In-Reply-To:To:Cc; bh=5gozpypB6hx8aEGJq5yI/YY7iaCV7fiAD27MNAdgF6g=; b=bwqoGofyTNoijZctVbuL4wVGN0DvdkiHAC4KbgE+hx5t6+KdliICt4RT0bCDwxVj6yEO j5ENtUNri4hkZEBY28zSPAkUm0WfCzUqCiy4xQ7BArqDwKQNltVPaSiTDBlI0f+o2HfpL qPKqwf3eadasxPJkIn0HlXOpF+PDgt6ISYnlnH3L248CpgxCNFaYw5iBkJrc2Y7W1Z5KW fKSDrpSCg6d9TMaedqiHGlhPCcHiNsbAOhUyOgMfB1tOBprTRLf8KerTyIKWs9ymnc8tV /t3uilPG90gxcTN+76cbzg+RrIYmlf591mait6LybctaXXecmgNybu3p/HSu+Fzc1qg== 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=kQtuWOd2; 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 86FB0606A686; Wed, 2 Dec 2026 18:10:09 +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=kQtuWOd2 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3D4A21F00896; Wed, 2 Dec 2026 18:10:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796235009; bh=5gozpypB6hx8aEGJq5yI/YY7iaCV7fiAD27MNAdgF6g=; h=Subject:From:Date:References:In-Reply-To:To:Cc; b=kQtuWOd2YqB8w+Y1gvM5drztd5KPFYSRbn3juBqub6I7uI7k7i6YlIchkEKygMUm8 HZgCWEhiLwr4q8jsAXKysPzviYvMlcS384jUp4f3ZRPNrD7agfZKLG6SNoJa6JkTTF D2mei1C3wBwVfMnDm+JRErtFKO9K4cfLsVuPFpUCFVkRAsTj7S4HV3gHzGhuTNqhPY cMutwK6vBWqQQblRFh1MtRT7lUnirFhgTX7vh1Zeh2emeo6L+g+Q5lHaZz1Fu40Wjx SV0VQl5i3lDUphnubWKoloCkqsxRZAb4QkULZsK1WGthdR15HewO0yANuDnJGGEn70 955ANPpogt6GQ== Received: from [10.30.226.235] (localhost [IPv6:::1]) by aws-us-west-2-korg-oddjob-rhel9-1.codeaurora.org (Postfix) with ESMTP id 346733808236; Wed, 2 Dec 2026 18:10:09 +0000 (UTC) Content-Type: text/plain; charset="utf-8" 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-Transfer-Encoding: 8bit Subject: Re: [PATCH net-next 1/9] can: gs_usb: gs_usb_probe(): init netdev completely before register_candev() From: patchwork-bot+netdevbpf@kernel.org Message-Id: <179623500800.2109052.9930280527279321877.git-patchwork-notify@kernel.org> Date: Wed, 02 Dec 2026 18:10:08 +0000 References: <20261201130450.2195418-2-mkl@pengutronix.de> In-Reply-To: <20261201130450.2195418-2-mkl@pengutronix.de> To: Marc Kleine-Budde Cc: netdev@vger.kernel.org, davem@davemloft.net, kuba@kernel.org, linux-can@vger.kernel.org, kernel@pengutronix.de, mailhol@kernel.org, stable@vger.kernel.org Hello: This series was applied to netdev/net-next.git (main) by Marc Kleine-Budde : On Tue, 1 Dec 2026 14:02:55 +0100 you wrote: > In gs_usb_probe(), gs_make_candev() is called to allocate and set up the > CAN channel, as well as to call register_candev(). However, gs_usb_probe() > defers the assignment of dev->parent and parent->hf_size_rx until after > gs_make_candev() returns. This opens a race window for the user space to > bring up the CAN interface, while it's not completely setup. > > To close the race window, initialize all CAN interfaces in a first loop and > then register them in a second loop: Don't call register_candev() from > gs_make_candev() but explicitly from gs_usb_probe(). Adjust > gs_destroy_candev() likewise, move unregister_candev() to > gs_usb_disconnect() and the error paths in gs_usb_probe(), to keep it > inverse to symmetric to gs_make_candev(). > > [...] Here is the summary with links: - [net-next,1/9] can: gs_usb: gs_usb_probe(): init netdev completely before register_candev() https://git.kernel.org/netdev/net-next/c/875041d10f35 - [net-next,2/9] can: gs_usb: gs_usb_receive_bulk_callback(): update state even if SKB allocations fails https://git.kernel.org/netdev/net-next/c/047b4a90e688 - [net-next,3/9] can: gs_usb: gs_usb_receive_bulk_callback(): check for overflow flag if SKB allocation fails https://git.kernel.org/netdev/net-next/c/4c7232b4d791 - [net-next,4/9] can: gs_usb: gs_usb_receive_bulk_callback(): add missing call to can_rx_offload_irq_finish https://git.kernel.org/netdev/net-next/c/95467fe0aec2 - [net-next,5/9] can: gs_usb: fix hardware timestamp state for mixed channels https://git.kernel.org/netdev/net-next/c/fbbbea41593a - [net-next,6/9] can: gs_usb: add support for context analysis https://git.kernel.org/netdev/net-next/c/b75689de01ef - [net-next,7/9] can: gs_usb: gs_make_candev(): check can_rx_offload_add_manual() return value https://git.kernel.org/netdev/net-next/c/c607f8879178 - [net-next,8/9] can: gs_usb: gs_usb_receive_bulk_callback(): use dev_info_ratelimited() to print re-submit info messages https://git.kernel.org/netdev/net-next/c/046a25b3ebc8 - [net-next,9/9] can: gs_usb: gs_usb_receive_bulk_callback(): emit error message on invalid channel instead of disconnecting interfaces https://git.kernel.org/netdev/net-next/c/d899445f970f You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html