numam-dpdk/lib/librte_kni
Yangchao Zhou 5eb1708ec1 kni: fix kernel crash with multi-segments
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().

Fixes: 8451269e6d ("kni: remove continuous memory restriction")
Cc: stable@dpdk.org

Signed-off-by: Yangchao Zhou <zhouyates@gmail.com>
Acked-by: Ferruh Yigit <ferruh.yigit@intel.com>
2019-07-15 22:48:20 +02:00
..
Makefile lib: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
meson.build lib: add reasons for components being disabled 2019-07-02 23:21:05 +02:00
rte_kni_fifo.h kni: fix kernel crash with multi-segments 2019-07-15 22:48:20 +02:00
rte_kni_version.map kni: add function to set link state on kernel interface 2018-10-26 19:46:15 +02:00
rte_kni.c kni: fix kernel crash with multi-segments 2019-07-15 22:48:20 +02:00
rte_kni.h enforce experimental tag at beginning of declarations 2019-06-29 19:04:48 +02:00