Re: [PATCH] netdevsim: fix NULL deref in port attrs after unbind
From: patchwork-bot+netdevbpf
Date: Mon Nov 09 2026 - 22:04:20 EST
Hello:
This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@xxxxxxxxxx>:
On Sat, 7 Nov 2026 17:20:09 +0800 you wrote:
> The new_port and del_port device attributes call nsim_drv_port_add() and
> nsim_drv_port_del(), which fetch the driver private data with
> dev_get_drvdata(). If the device has been unbound from the driver, that
> private data is NULL and priv_to_devlink() turns it into a bogus pointer,
> so a write to either attribute faults in devl_lock():
>
> BUG: unable to handle page fault for address: fffffffffffffeb0
> RIP: 0010:__lock_acquire
> Call Trace:
> ...
> nsim_drv_port_add
> new_port_store
>
> [...]
Here is the summary with links:
- netdevsim: fix NULL deref in port attrs after unbind
https://git.kernel.org/netdev/net-next/c/98aaf4da98d2
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html