Thread (5 messages) flat view 5 messages, 5 authors, 29d ago

Re: [PATCH net-next v3] net/ionic: avoid OOB TX partner lookup for hwstamp RXQ

From: Simon Horman <horms@kernel.org>
Date: 2026-08-14 17:47:46
Also in: lkml, stable

On Thu, Aug 13, 2026 at 08:37:05AM +0000, Anand Khoje wrote:
The dedicated hardware timestamp RX queue is allocated with q->index
equal to lif->ionic->nrxqs_per_lif. The normal txqcqs array only
contains the regular queue pairs, so using that index to set rxq->partner
can read one entry past txqcqs[] and then write through the derived
pointer.
Only link RX/TX partners for normal queue-pair indexes. Leave the hwstamp
RX queue unpaired, and make the XDP_TX path abort cleanly if an RX queue
has no TX partner.

Fixes: 8eeed8373e1c ("ionic: Add XDP_TX support")
Signed-off-by: Anand Khoje <redacted>
Reviewed-by: Si-Wei Liu <redacted>
Reviewed-by: Shannon Nelson <redacted>
Cc: stable@vger.kernel.org
---
v3:
 Use dev_err() and return -ENXIO for a missing normal TX partner.

v2:
 Correct the Fixes tag.
Reviewed-by: Simon Horman <horms@kernel.org>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help