[dpdk-stable] [dpdk-dev] [PATCH v4] eal: fix create user mem map repeatedly when it exists

Thomas Monjalon thomas at monjalon.net
Thu Mar 25 15:30:16 CET 2021


07/12/2020 12:08, wangyunjian:
> From: Yunjian Wang <wangyunjian at huawei.com>
> 
> Currently, user mem maps will check if the newly mapped area is adjacent
> to any existing mapping, but will not check if the mapping is identical
> because it assumes that the API will never get called with the same
> mapping twice. This will result in duplicate entries in the user mem
> maps list.
> 
> Fix it by also checking for duplicate mappings, and skipping them if
> they are found.

Sorry, that's still difficult to read,
and it is not clear what is the impact of the bug.

+Cc some english native speakers for help.

> Fixes: 0cbce3a167f1 ("vfio: skip DMA map failure if already mapped")
> Cc: stable at dpdk.org
> 
> Signed-off-by: Yunjian Wang <wangyunjian at huawei.com>
> Acked-by: Anatoly Burakov <anatoly.burakov at intel.com>





More information about the stable mailing list