numam-spdk/test/env
Daniel Verkamp 7d24e2a4cd env_dpdk: fix mem_map translation for sizes >2MB
Add a check to prevent spdk_mem_map_set_translation() or
spdk_mem_map_clear_translation() calls that start within the valid
address range but specify a size that would access parts of the mem map
outside of the valid region.

spdk_mem_map_translate() is safe without any extra checks since it only
accesses the first entry regardless of size, and the MASK_256TB check
catches out-of-range accesses to that entry.

Change-Id: Ie1437e57b5158363bb98a6b42a26fb41a089bbad
Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com>
Reviewed-on: https://review.gerrithub.io/418106
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
2018-07-06 22:36:22 +00:00
..
memory env_dpdk: fix mem_map translation for sizes >2MB 2018-07-06 22:36:22 +00:00
pci test: move lib/env up one level 2018-03-29 00:31:24 -04:00
vtophys test: move lib/env up one level 2018-03-29 00:31:24 -04:00
env.sh test: move lib/env up one level 2018-03-29 00:31:24 -04:00
Makefile test/env: split out env_dpdk-specific tests 2018-05-24 21:27:06 +00:00