Netdev List
 help / color / mirror / Atom feed
From: patchwork-bot+netdevbpf@kernel.org
To: Marc Kleine-Budde <mkl@pengutronix.de>
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
Subject: Re: [PATCH net-next 1/9] can: gs_usb: gs_usb_probe(): init netdev completely before register_candev()
Date: Wed, 02 Dec 2026 18:10:08 +0000	[thread overview]
Message-ID: <179623500800.2109052.9930280527279321877.git-patchwork-notify@kernel.org> (raw)
In-Reply-To: <20261201130450.2195418-2-mkl@pengutronix.de>

Hello:

This series was applied to netdev/net-next.git (main)
by Marc Kleine-Budde <mkl@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!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html



  parent reply	other threads:[~2026-12-02 18:10 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-01 13:02 [PATCH net-next 0/9] pull-request: can-next 2026-12-01 Marc Kleine-Budde
2026-12-01 13:02 ` [PATCH net-next 1/9] can: gs_usb: gs_usb_probe(): init netdev completely before register_candev() Marc Kleine-Budde
2026-12-01 13:09   ` netdev-bot+sinfo
2026-12-01 13:18     ` Marc Kleine-Budde
2026-12-02 18:10   ` patchwork-bot+netdevbpf [this message]
2026-12-01 13:02 ` [PATCH net-next 2/9] can: gs_usb: gs_usb_receive_bulk_callback(): update state even if SKB allocations fails Marc Kleine-Budde
2026-12-01 13:02 ` [PATCH net-next 3/9] can: gs_usb: gs_usb_receive_bulk_callback(): check for overflow flag if SKB allocation fails Marc Kleine-Budde
2026-12-01 13:02 ` [PATCH net-next 4/9] can: gs_usb: gs_usb_receive_bulk_callback(): add missing call to can_rx_offload_irq_finish Marc Kleine-Budde
2026-12-01 13:02 ` [PATCH net-next 5/9] can: gs_usb: fix hardware timestamp state for mixed channels Marc Kleine-Budde
2026-12-01 13:03 ` [PATCH net-next 6/9] can: gs_usb: add support for context analysis Marc Kleine-Budde
2026-12-01 13:03 ` [PATCH net-next 7/9] can: gs_usb: gs_make_candev(): check can_rx_offload_add_manual() return value Marc Kleine-Budde
2026-12-01 13:03 ` [PATCH net-next 8/9] can: gs_usb: gs_usb_receive_bulk_callback(): use dev_info_ratelimited() to print re-submit info messages Marc Kleine-Budde
2026-12-01 13:03 ` [PATCH net-next 9/9] can: gs_usb: gs_usb_receive_bulk_callback(): emit error message on invalid channel instead of disconnecting interfaces Marc Kleine-Budde
  -- strict thread matches above, loose matches on Subject: below --
2026-11-30  9:15 [PATCH net-next 0/9] pull-request: can-next 2026-11-30 Marc Kleine-Budde
2026-11-30  9:15 ` [PATCH net-next 1/9] can: gs_usb: gs_usb_probe(): init netdev completely before register_candev() Marc Kleine-Budde
2026-11-30  9:23   ` netdev-bot+sinfo
2026-11-30 20:34     ` Marc Kleine-Budde
2026-12-01  9:41   ` netdev-bot+sashiko
2026-12-01 11:05     ` Marc Kleine-Budde

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179623500800.2109052.9930280527279321877.git-patchwork-notify@kernel.org \
    --to=patchwork-bot+netdevbpf@kernel.org \
    --cc=davem@davemloft.net \
    --cc=kernel@pengutronix.de \
    --cc=kuba@kernel.org \
    --cc=linux-can@vger.kernel.org \
    --cc=mailhol@kernel.org \
    --cc=mkl@pengutronix.de \
    --cc=netdev@vger.kernel.org \
    --cc=stable@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox