Re: [dpdk-dev] [PATCH] crypto/octeontx: fix heap use after free

2021-07-30 Thread Akhil Goyal
> Subject: [PATCH] crypto/octeontx: fix heap use after free > > When the PMD is removed, rte_cryptodev_pmd_release_device > is called which frees cryptodev->data, and then tries to free > cryptodev->data->dev_private, which causes the heap use > after free issue. > > A temporary pointer is set be

[dpdk-dev] [PATCH] crypto/octeontx: fix heap use after free

2021-07-30 Thread Akhil Goyal
When the PMD is removed, rte_cryptodev_pmd_release_device is called which frees cryptodev->data, and then tries to free cryptodev->data->dev_private, which causes the heap use after free issue. A temporary pointer is set before the free of cryptodev->data, which can then be used afterwards to free