[PATCH net v2 0/1] netdevsim: bound the peer TX queue index in nsim_start_peer_tx_queue()
From: Kyuwon Cho
Date: Sat Nov 21 2026 - 14:32:16 EST
nsim_start_peer_tx_queue() can wake a TX queue past the end of the
peer's TX queue array after the device is relinked to a peer with fewer
TX queues; KASAN reports a slab-out-of-bounds read in nsim_poll(). The
patch skips the wake-up in that case.
v2: send the patch inline instead of as an attachment (Jakub).
v1: https://lore.kernel.org/netdev/179505710275.3511681.13434978152402269948@xxxxxxxxx/
The patch was written with LLM assistance; we reviewed and tested it.
With it, the reproducer from v1 no longer triggers the KASAN report.
Kyuwon Cho (1):
netdevsim: bound the peer TX queue index in nsim_start_peer_tx_queue()
drivers/net/netdevsim/netdev.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
--
2.43.0