numam-dpdk/kernel
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
..
freebsd kernel/freebsd: fix module build on latest head 2019-06-27 17:27:04 +02:00
linux kni: fix kernel crash with multi-segments 2019-07-15 22:48:20 +02:00
windows eal/windows: introduce Windows support 2019-04-03 01:06:01 +02:00
Makefile build/freebsd: rename macro BSDPAPP to FREEBSD 2019-03-12 23:01:14 +01:00
meson.build build: increase readability via shortcut variables 2019-04-17 18:09:52 +02:00