[dpdk-dev] [PATCH v2] kni: fix possible kernel crash with va2pa
Stephen Hemminger
stephen at networkplumber.org
Tue Jun 18 17:48:48 CEST 2019
On Tue, 12 Mar 2019 17:22:32 +0800
Yangchao Zhou <zhouyates at gmail.com> wrote:
> va2pa depends on the physical address and virtual address offset of
> current mbuf. It may get the wrong physical address of next mbuf which
> allocated in another hugepage segment.
>
> In rte_mempool_populate_default(), trying to allocate whole block of
> contiguous memory could be failed. Then, it would reserve memory in
> several memzones that have different physical address and virtual address
> offsets. The rte_mempool_populate_default() is used by
> rte_pktmbuf_pool_create().
>
> Signed-off-by: Yangchao Zhou <zhouyates at gmail.com>
Could you add a Fixes tag?
More information about the dev
mailing list