mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH net v2 0/1] netdevsim: bound the peer TX queue index in nsim_start_peer_tx_queue()
@ 2026-11-21 19:32 Kyuwon Cho
  2026-11-21 19:32 ` [PATCH net v2 1/1] " Kyuwon Cho
  2026-11-21 19:38 ` [PATCH net v2 0/1] " netdev-bot+sinfo
  0 siblings, 2 replies; 4+ messages in thread
From: Kyuwon Cho @ 2026-11-21 19:32 UTC (permalink / raw)
  To: Jakub Kicinski
  Cc: Breno Leitao, Andrew Lunn, David S. Miller, Eric Dumazet,
	Paolo Abeni, netdev, linux-kernel

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@gmail.com/

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-11-21 20:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-21 19:32 [PATCH net v2 0/1] netdevsim: bound the peer TX queue index in nsim_start_peer_tx_queue() Kyuwon Cho
2026-11-21 19:32 ` [PATCH net v2 1/1] " Kyuwon Cho
2026-11-21 19:38 ` [PATCH net v2 0/1] " netdev-bot+sinfo
2026-11-21 20:00   ` Kyuwon Cho

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®