[dpdk-stable] [dpdk-dev] [PATCH] mempool: fix corruption due to invalid handler
Yuanhan Liu
yuanhan.liu at linux.intel.com
Tue Sep 27 08:30:50 CEST 2016
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 at gmail.com>
> Acked-by: Olivier Matz <olivier.matz at 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
More information about the stable
mailing list