netdevsim: bound the peer TX queue index in nsim_start_peer_tx_queue()
Get series with b4
b4 am [email protected]Versions newest first
- v2 Latest1 patch 1 replyIn review
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/1 | netdevsim: bound the peer TX queue index in nsim_start_peer_tx_queue()drivers/ | +2 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
Cover letter [PATCH net v2 0/1] netdevsim: bound the peer TX queue index in nsim_start_peer_tx_queue()
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/[email protected]/
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(-)
Signature · 1 line
2.43.0