From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id EAE1AA0A02; Tue, 4 May 2021 20:07:50 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 63A864014D; Tue, 4 May 2021 20:07:50 +0200 (CEST) Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by mails.dpdk.org (Postfix) with ESMTP id 1307D40147; Tue, 4 May 2021 20:07:49 +0200 (CEST) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 744735C01B3; Tue, 4 May 2021 14:07:48 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Tue, 04 May 2021 14:07:48 -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=fm1; bh= NVgxhRlu/YBd234LdA+0Wjfvx0j5wNGmuVvtBHGOIkA=; b=TesB0FYQNEpAYEsm UOfjF8aJXwwSUb5aLrkyHR5AYDiBWxJz8+6y6Wo09MeZVobijQqOWP5LC8hmKrOm mURbnx+VC1BSLBiQIfy6FoPF1/RIg22osSv2xJGkwm4D8SffG2yJynFTRiAgyKL4 6c2pU1M6QflftRch2awWajCdvkpUvt2A74ZeJ/H00Jey4cfW2XO4DwUoxkLfBope 28ggW5OgDgjr72B58Pd9JSg1qwTbyByvzNrC8DYRD/q9d2xR+GQl6TET4SCXVLT4 pW/T3I+SsLzaZYZS6DRMde5JbTeeZzjUD6lNW0e+ProDHjSFK1Ghv0/1J5R24y9U lVzvSw== 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=NVgxhRlu/YBd234LdA+0Wjfvx0j5wNGmuVvtBHGOI kA=; b=dr13xjMLbs8qGRg3eurEKLufXS0xprLqu+EMmnIOlkbieifRKQ8CaeKgj kMQTFNuVLbaQujpM6O6D6nDHe5MG+dRefrAMNCZGqsID66O+gjqGAe+/jiqNvRNx VwXeriO/Ykwm6OozYBPEmlJAVGNr7T0YBBZ1i/fz2oy1IvNxVyGHqxpIKlayDDZT wsI4NCNB62DYMEDLDeDXGujIUbjjBKaldKJj6U4Y4+R4Kir4MdOpHtoQuKi5tyav Cn1XFJDbF+e8yfzf2lyX1EA/R6CrR/qET4QQ5b1sRlkvXUxUsla0yyk2qnoqJrpG ry0G461JoFq1TzNZZuCpMJTjnmqhQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrvdefiedguddvvdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefhvffufffkjghfggfgtgesthfuredttddtvdenucfhrhhomhepvfhhohhm rghsucfoohhnjhgrlhhonhcuoehthhhomhgrshesmhhonhhjrghlohhnrdhnvghtqeenuc ggtffrrghtthgvrhhnpedugefgvdefudfftdefgeelgffhueekgfffhfeujedtteeutdej ueeiiedvffegheenucfkphepjeejrddufeegrddvtdefrddukeegnecuvehluhhsthgvrh fuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepthhhohhmrghssehmohhnjhgr lhhonhdrnhgvth X-ME-Proxy: Received: from xps.localnet (184.203.134.77.rev.sfr.net [77.134.203.184]) by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 4 May 2021 14:07:46 -0400 (EDT) From: Thomas Monjalon To: Wenwu Ma , Olivier Matz Cc: dev@dpdk.org, stable@dpdk.org, Andrew Rybchenko , Pallantla Poornima , Peng Zhihong , Aaron Conole Date: Tue, 04 May 2021 20:07:45 +0200 Message-ID: <1730343.ir3RBo1Jvj@thomas> In-Reply-To: <20210427135646.871-1-olivier.matz@6wind.com> References: <20210413200513.330399-1-wenwux.ma@intel.com> <20210427135646.871-1-olivier.matz@6wind.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] [dpdk-stable] [PATCH v3 1/2] test/mempool: fix heap buffer overflow X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 27/04/2021 15:56, Olivier Matz: > The function rte_pktmbuf_init() expects that the mempool private area is > large enough and was previously initialized by rte_pktmbuf_pool_init(), > which is not the case. > > This causes the function rte_pktmbuf_priv_size() to return an > unpredictable value, and this value is used as a size in a memset. > > Replace the mempool object initializer by my_obj_init(), which does not > have this constraint, and fits the needs for this test. > > Fixes: 923ceaeac140 ("test/mempool: add unit test cases") > Cc: stable@dpdk.org > > Signed-off-by: Wenwu Ma Replaced with Reported-by and added Olivier's signature to match patch authorship. Series applied, thanks.