From: Thomas Monjalon <thomas@monjalon.net>
To: Maxime Coquelin <maxime.coquelin@redhat.com>
Cc: dev@dpdk.org, Jens Freimann <jfreimann@redhat.com>,
yliu@fridaylinux.org, lei.a.yao@intel.com
Subject: Re: [dpdk-dev] [PATCH] vhost: fetch again ring_addrs address after NUMA reallocation
Date: Fri, 13 Oct 2017 21:31:44 +0200 [thread overview]
Message-ID: <1611613.caVE2u6YoK@xps> (raw)
In-Reply-To: <20171013094347.oq7nwfnbm3yj7zkt@dhcp-192-218.str.redhat.com>
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@intel.com>
> >Tested-by: Yao, Lei A <lei.a.yao@intel.com>
> >Signed-off-by: Maxime Coquelin <maxime.coquelin@redhat.com>
>
> Reviewed-by: Jens Freimann <jfreimann@redhat.com>
Applied, thanks
prev parent reply other threads:[~2017-10-13 19:31 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-13 9:30 Maxime Coquelin
2017-10-13 9:43 ` Jens Freimann
2017-10-13 19:31 ` Thomas Monjalon [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1611613.caVE2u6YoK@xps \
--to=thomas@monjalon.net \
--cc=dev@dpdk.org \
--cc=jfreimann@redhat.com \
--cc=lei.a.yao@intel.com \
--cc=maxime.coquelin@redhat.com \
--cc=yliu@fridaylinux.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).