From: Yuanhan Liu <yuanhan.liu@linux.intel.com>
To: Weiliang Luo <droidluo@gmail.com>
Cc: dpdk stable <stable@dpdk.org>, Olivier Matz <olivier.matz@6wind.com>
Subject: Re: [dpdk-stable] [dpdk-dev] [PATCH] mempool: fix corruption due to invalid handler
Date: Tue, 27 Sep 2016 14:30:50 +0800 [thread overview]
Message-ID: <20160927063050.GG25823@yliu-dev.sh.intel.com> (raw)
In-Reply-To: <1473348597-11904-1-git-send-email-droidluo@gmail.com>
On Thu, Sep 08, 2016 at 10:29:57AM -0500, Weiliang Luo wrote:
> When using rte_mempool_create(), the mempool handler is selected
> depending on the flags given by the user:
> - multi-consumer / multi-producer
> - multi-consumer / single-producer
> - single-consumer / multi-producer
> - single-consumer / single-producer
>
> The flags were not properly tested, resulting in the selection of sc/sp
> handler if sc/mp or mc/sp was asked. This can lead to corruption or
> crashes because the get/put operations are not atomic.
>
> Fixes: 449c49b93a6b ("mempool: support handler operations")
>
> Signed-off-by: Weiliang Luo <droidluo@gmail.com>
> Acked-by: Olivier Matz <olivier.matz@6wind.com>
FYI, this patch has been applied to stable branch v16.07.
It hasn't been pushed to http://dpdk.org/browse/dpdk-stable/ yet.
It will be pushed if I get no objections in around TWO days. So
please shutout if you have objections.
Thanks.
--yliu
prev parent reply other threads:[~2016-09-27 6:30 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1473348597-11904-1-git-send-email-droidluo@gmail.com>
2016-09-16 14:19 ` Thomas Monjalon
2016-09-27 6:30 ` Yuanhan Liu [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=20160927063050.GG25823@yliu-dev.sh.intel.com \
--to=yuanhan.liu@linux.intel.com \
--cc=droidluo@gmail.com \
--cc=olivier.matz@6wind.com \
--cc=stable@dpdk.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).