Re: [PATCH net v2] slip: fix use-after-free in sl_sync()

From: patchwork-bot+netdevbpf

Date: Thu Aug 27 2026 - 06:53:18 EST


Hello:

This patch was applied to netdev/net.git (main)
by Paolo Abeni <pabeni@xxxxxxxxxx>:

On Mon, 24 Aug 2026 13:05:47 +0300 you wrote:
> slip_devs[] stores bare net_device pointers and takes no reference on
> them. sl_sync() and sl_alloc() walk that table from slip_open() under
> rtnl_lock(), while an entry is dropped by sl_free_netdev(), which
> sl_setup() installs as dev->priv_destructor.
>
> priv_destructor is called from netdev_run_todo(), which deliberately
> runs with the RTNL semaphore released so that it can sleep while waiting
> for the device refcount to drop:
>
> [...]

Here is the summary with links:
- [net,v2] slip: fix use-after-free in sl_sync()
https://git.kernel.org/netdev/net/c/2c4e7c42d77e

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html