Thread View: linux.kernel.netdev
1 messages
1 total messages
Started by patchwork-bot+netdevbpf
Tue, 10 Nov 2026 02:55
Re: [PATCH] netdevsim: fix NULL deref in port attrs after unbind
Author: patchwork-bot+netdevbpf
Date: Tue, 10 Nov 2026 02:55
Date: Tue, 10 Nov 2026 02:55
30 lines
8851 bytes
8851 bytes
Hello:
This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@kernel.org>:
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
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads