[dpdk-dev] [PATCH] vhost: fetch again ring_addrs address after NUMA reallocation

Thomas Monjalon thomas at monjalon.net
Fri Oct 13 21:31:44 CEST 2017


13/10/2017 11:43, Jens Freimann:
> On Fri, Oct 13, 2017 at 09:30:21AM +0000, Maxime Coquelin wrote:
> >In case of NUMA reallocation, the virtqueue struct is reallocated
> >on another socket, meaning that its address changes.
> >
> >In translate_ring_addresses(), addr pointer was not fetched again
> >after the reallocation, so it pointed to freed memory.
> >
> >This patch just fetch again addr pointer after the reallocation.
> >
> >Reported-by: Yao, Lei A <lei.a.yao at intel.com>
> >Tested-by: Yao, Lei A <lei.a.yao at intel.com>
> >Signed-off-by: Maxime Coquelin <maxime.coquelin at redhat.com>
> 
> Reviewed-by: Jens Freimann <jfreimann at redhat.com>

Applied, thanks


More information about the dev mailing list