summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorAvi Weiss <thnkslprpt@gmail.com>2026-11-15 13:42:34 +0200
committerJakub Kicinski <kuba@kernel.org>2026-11-17 17:32:58 -0800
commit6e9764591bcc34705d1c7bb13b31b7e161db4110 (patch)
tree80d601f0a1e6e9dc6672d1def6de13e4800b2df8 /tools/perf/scripts/python
parentc35761f43c582460b45429f51be5c2a0f07ed9af (diff)
net: ena: avoid double-counting TX DMA mappings on failure
ena_tx_map_skb() increments tx_info->num_of_bufs after each successful DMA mapping. If a later fragment mapping fails, the error path adds the fragment index to this count before calling ena_unmap_tx_buff(). This can cause DMA unmapping of buffers that were never mapped and out-of-bounds access to the buffer array. Remove the extra increment so that cleanup uses only the number of successfully mapped buffers. Discovered by comparing the in-tree ENA driver with Amazon's standalone ENA driver. Fixes: 38005ca816a7 ("net: ena: add functions for handling Low Latency Queues in ena_netdev") Co-developed-by: Evgeny Ostrovsky <evostrov@amazon.com> Signed-off-by: Evgeny Ostrovsky <evostrov@amazon.com> Signed-off-by: Avi Weiss <thnkslprpt@gmail.com> Reviewed-by: Daniel Machon <daniel.machon@microchip.com> Link: https://patch.msgid.link/20261115114233.2307630-2-thnkslprpt@gmail.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions