Re: [dpdk-dev] [PATCH v3 9/9] mem: fix possible use-after-free

2018-04-27 Thread Bruce Richardson
On Wed, Apr 25, 2018 at 10:56:47AM +0100, Anatoly Burakov wrote: > If user has specified a flag to unmap the area right after mapping it, > we were passing an already-unmapped pointer to RTE_LOG. This is not an > issue since RTE_LOG doesn't actually dereference the pointer, but fix > it anyway by m

[dpdk-dev] [PATCH v3 9/9] mem: fix possible use-after-free

2018-04-25 Thread Anatoly Burakov
If user has specified a flag to unmap the area right after mapping it, we were passing an already-unmapped pointer to RTE_LOG. This is not an issue since RTE_LOG doesn't actually dereference the pointer, but fix it anyway by moving call to RTE_LOG to before unmap. Coverity issue: 272584 Fixes: b7