Re: [PATCH net] netdevsim: update queue NAPI association on queue reset
| Newsgroups | org.kernel.vger.netdev |
|---|---|
| Message-ID | <178725541388.453960.9872212090120825046.git-patchwork-notify@kernel.org> |
Hello: This patch was applied to netdev/net.git (main) by Jakub Kicinski <[email protected]>: On Mon, 17 Aug 2026 08:25:11 +0000 you wrote: > In netdevsim, receive queues (struct nsim_rq) embed their own struct > napi_struct. When queue reset is performed (e.g. via queue_reset > debugfs), nsim_queue_start() swaps in a newly allocated struct nsim_rq, > and nsim_queue_mem_free() later deletes and frees the old one. > > However, nsim_queue_start() failed to update the queue-to-NAPI mapping > via netif_queue_set_napi(). As a result, dev->_rx[idx].napi continued to > point to the old NAPI struct. After the old queue was freed, a subsequent > queue dump via Netlink (NETDEV_CMD_QUEUE_GET) triggered a KASAN > slab-use-after-free read in nla_put_napi_id() when accessing > rxq->napi->napi_id. > > [...] Here is the summary with links: - [net] netdevsim: update queue NAPI association on queue reset https://git.kernel.org/netdev/net/c/07e98a4d5e9c You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html