Hello: This series was applied to netdev/net-next.git (main) by Marc Kleine-Budde <m…@pengutronix.de>: 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!