DPDK patches and discussions
 help / color / mirror / Atom feed
* [DPDK/ethdev Bug 1440] use after free in af_xdp
@ 2024-05-13 16:24 bugzilla
  0 siblings, 0 replies; only message in thread
From: bugzilla @ 2024-05-13 16:24 UTC (permalink / raw)
  To: dev

[-- Attachment #1: Type: text/plain, Size: 1181 bytes --]

https://bugs.dpdk.org/show_bug.cgi?id=1440

            Bug ID: 1440
           Summary: use after free in af_xdp
           Product: DPDK
           Version: 24.03
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: ethdev
          Assignee: dev@dpdk.org
          Reporter: stephen@networkplumber.org
  Target Milestone: ---

#if defined(XDP_UMEM_UNALIGNED_CHUNK_FLAG)
static uint16_t
af_xdp_tx_zc(void *queue, struct rte_mbuf **bufs, uint16_t nb_pkts)
{

...
        for (i = 0; i < nb_pkts; i++) {
                mbuf = bufs[i];

                if (mbuf->pool == umem->mb_pool) {
...
                } else {
...
                        desc->addr = addr | offset;
                        rte_memcpy(pkt, rte_pktmbuf_mtod(mbuf, void *),
                                        desc->len);
                        rte_pktmbuf_free(mbuf);
                        count++;
                }

                tx_bytes += mbuf->pkt_len; <<< use after free above

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #2: Type: text/html, Size: 3060 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-05-13 16:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-05-13 16:24 [DPDK/ethdev Bug 1440] use after free in af_xdp bugzilla

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).