Re: [PATCH v1 2/3] net/af_packet: RX/TX rte_memcpy, bulk free, prefetch

Stephen Hemminger
2026-01-28T16:57:30Z

On Wed, 28 Jan 2026 07:37:13 -0800
Scott Mitchell <scott.k.mitch1@gmail.com> wrote:

> Thanks for the context! That makes sense. I dropped rte_memcpy and can
> re-evaluate once all my upcoming changes are merged.

The other thing worth noting is that compilers and tools like fortify
know what memcpy is and do bounds checking. But even with all the annotation
to x86 rte_memcpy() it still doesn't engage all the checks.

Plus there is the case (found in examples/fips_validation) where rte_memcpy
would read past end of array on stack.

Many platforms have rte_memcpy is just alias for memcpy.
The only ones with special code are x86 and ARM64.