Re: [dpdk-dev] [PATCH] mem: fix use after free in legacy mem init

2018-11-06 Thread Thomas Monjalon
06/11/2018 15:13, Anatoly Burakov: > Adding an additional failure path in DMA mask check has exposed an > issue where `hugepage` pointer may point to memory that has already > been unmapped, but pointer value is still not NULL, so failure > handler will attempt to unmap it second time if DMA mask c

[dpdk-dev] [PATCH] mem: fix use after free in legacy mem init

2018-11-06 Thread Anatoly Burakov
Adding an additional failure path in DMA mask check has exposed an issue where `hugepage` pointer may point to memory that has already been unmapped, but pointer value is still not NULL, so failure handler will attempt to unmap it second time if DMA mask check fails. Fix it by setting `hugepage` po