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

From
patchwork-bot+netdevbpf@kernel.org
Date
2026-08-27 10:51:03
Also in
lkml, stable
Reply to
Aleksandr Khromov, 2026-08-24
Hello:

This patch was applied to netdev/net.git (main)
by Paolo Abeni [off-list ref]:

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

Thread (2 messages) 2 messages, 2 authors, last reply 2026-08-27
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help