From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <stable-bounces@dpdk.org>
Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124])
	by inbox.dpdk.org (Postfix) with ESMTP id 4F5FCA0524
	for <public@inbox.dpdk.org>; Tue, 13 Apr 2021 13:52:33 +0200 (CEST)
Received: from [217.70.189.124] (localhost [127.0.0.1])
	by mails.dpdk.org (Postfix) with ESMTP id 416D7160EAE;
	Tue, 13 Apr 2021 13:52:33 +0200 (CEST)
Received: from wout3-smtp.messagingengine.com (wout3-smtp.messagingengine.com
 [64.147.123.19])
 by mails.dpdk.org (Postfix) with ESMTP id E48E6160EAE;
 Tue, 13 Apr 2021 13:52:31 +0200 (CEST)
Received: from compute7.internal (compute7.nyi.internal [10.202.2.47])
 by mailout.west.internal (Postfix) with ESMTP id 5DFBC12FA;
 Tue, 13 Apr 2021 07:52:30 -0400 (EDT)
Received: from mailfrontend1 ([10.202.2.162])
 by compute7.internal (MEProxy); Tue, 13 Apr 2021 07:52:30 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h=
 from:to:cc:subject:date:message-id:in-reply-to:references
 :mime-version:content-transfer-encoding:content-type; s=fm3; bh=
 LL9yeuMxO19W2Tbfd9J+BR/ah7ppE0DM5/leb48P68k=; b=JReOozTpE6SywHTh
 WnDnsmT/jjrHCPYmoMgLfVxj77bFwrhvkZGAPfEH5mWbpU/5U+HDVPLia89kTx4D
 TIeTaw49nxKI2bYh2d1w458j8r2PPIYOeunHSWvdvCv0K8kc+y6vWpf9Kh+CbHHd
 iarIc3Z+jqot8QV2GhWCicCQhTZAtjrjuAj9qBS4ePWk+eX8EJIXdYLqZ7GyKkmz
 3Zm5CWrkJRADSpGJ3QXR8+NiJEaQzCKUTRtHB53LXjGLSH8/ICsg3NllzJ+z9mGi
 z4N1JfDiN42VSfFXUNziiUCJ4mYieyp1l5oj1+krkIDNDj6hVngiHg5Q77JZjWpt
 RU3/UA==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=cc:content-transfer-encoding:content-type
 :date:from:in-reply-to:message-id:mime-version:references
 :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender
 :x-sasl-enc; s=fm2; bh=LL9yeuMxO19W2Tbfd9J+BR/ah7ppE0DM5/leb48P6
 8k=; b=Ky39l7gIxStDVic0agzQz4iucPGQWSx14owO62npNRb0QCfexGCjPwLR/
 nv09kIjSPm4qopjIy1b04HxOPSvQ+a31Kt92zzgGGxBdhIoOfwLWxztRUm9futGT
 IwGwX9L4mIODjLcs+dEZdVsc1Eh0khaMOb7ImwYAI7wXMcw+37RIsUqlaJ0w8bgf
 xmSjDtV+V4WpVrktNYZeRmC1cZuCCouyY1nRHLisP1QASDmElaRw+PAYpaSHWnab
 I/GiCTREmpuDt43EEde371mwZnELTyETSuU4GLYfidynpHaWIsZAXudGb5kC6h/G
 tVndZUQCy5/f2yHy6pTWQsG3YQz4A==
X-ME-Sender: <xms:_YV1YLrFdVoMUqzN9NPNXxAsw25wtYjB1oB_k1GbFsJnpypWUB8Q_g>
 <xme:_YV1YPT-1sJ_LUbfxo5oCvL6rdu0FJJBHeXOwDMPoVlwS46FDbeYbS8v7iOAXY50D
 IEQorwy7ggixRShGg>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrudekledggeehucetufdoteggodetrfdotf
 fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen
 uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkjghfggfgtgesthfure
 dttddtvdenucfhrhhomhepvfhhohhmrghsucfoohhnjhgrlhhonhcuoehthhhomhgrshes
 mhhonhhjrghlohhnrdhnvghtqeenucggtffrrghtthgvrhhnpedugefgvdefudfftdefge
 elgffhueekgfffhfeujedtteeutdejueeiiedvffegheenucfkphepjeejrddufeegrddv
 tdefrddukeegnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrh
 homhepthhhohhmrghssehmohhnjhgrlhhonhdrnhgvth
X-ME-Proxy: <xmx:_YV1YIO9W3G44NeuFPuXr3ixBRi5h9EK4bNuN7ZU4kZe5lYSfP72Mg>
 <xmx:_YV1YCNrlTNudlsbCjQPS8AMCPbFNJhVYRtABGbV21qKRtP9Gxu8cQ>
 <xmx:_YV1YIuT7jvL00IZSIANAKa1fdII4hEFNm3umrgaE9IXS05NU5BECw>
 <xmx:_YV1YMcUQ2nihVBIkfYE9iS6zkIaeETky4BPC65qjGl7344rLwqpRw>
Received: from xps.localnet (184.203.134.77.rev.sfr.net [77.134.203.184])
 by mail.messagingengine.com (Postfix) with ESMTPA id 6CAC624005C;
 Tue, 13 Apr 2021 07:52:28 -0400 (EDT)
From: Thomas Monjalon <thomas@monjalon.net>
To: Wenwu Ma <wenwux.ma@intel.com>
Cc: olivier.matz@6wind.com, andrew.rybchenko@oktetlabs.ru, stable@dpdk.org,
 dev@dpdk.org, aconole@redhat.com
Date: Tue, 13 Apr 2021 13:52:26 +0200
Message-ID: <2483269.apo0RDFAAg@thomas>
In-Reply-To: <20210413200513.330399-1-wenwux.ma@intel.com>
References: <20210331210557.4919-1-wenwux.ma@intel.com>
 <20210413200513.330399-1-wenwux.ma@intel.com>
MIME-Version: 1.0
Content-Transfer-Encoding: 7Bit
Content-Type: text/plain; charset="us-ascii"
Subject: Re: [dpdk-stable] [v2] test/mempool: fix heap buffer overflow
X-BeenThere: stable@dpdk.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: patches for DPDK stable branches <stable.dpdk.org>
List-Unsubscribe: <https://mails.dpdk.org/options/stable>,
 <mailto:stable-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://mails.dpdk.org/archives/stable/>
List-Post: <mailto:stable@dpdk.org>
List-Help: <mailto:stable-request@dpdk.org?subject=help>
List-Subscribe: <https://mails.dpdk.org/listinfo/stable>,
 <mailto:stable-request@dpdk.org?subject=subscribe>
Errors-To: stable-bounces@dpdk.org
Sender: "stable" <stable-bounces@dpdk.org>

13/04/2021 22:05, Wenwu Ma:
> Amount of allocated memory was not enough for mempool
> which cause buffer overflow when access fields of mempool
> private structure in the rte_pktmbuf_priv_size function.

Was it causing the test to fail?
How do you reproduce the overflow?

> Fixes: 923ceaeac140 ("test/mempool: add unit test cases")
> Cc: stable@dpdk.org
> 
> Signed-off-by: Wenwu Ma <wenwux.ma@intel.com>