From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D0C23C433B4 for ; Tue, 4 May 2021 17:50:47 +0000 (UTC) Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by mail.kernel.org (Postfix) with ESMTP id 005A3613C6 for ; Tue, 4 May 2021 17:50:46 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 005A3613C6 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=monjalon.net Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=dev-bounces@dpdk.org Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C40C64014D; Tue, 4 May 2021 19:50:45 +0200 (CEST) Received: from wout5-smtp.messagingengine.com (wout5-smtp.messagingengine.com [64.147.123.21]) by mails.dpdk.org (Postfix) with ESMTP id 4446540147 for ; Tue, 4 May 2021 19:50:44 +0200 (CEST) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id CB34717D7; Tue, 4 May 2021 13:50:42 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Tue, 04 May 2021 13:50:43 -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= eDgwCmhr/soGruxBsp42uKPz5WCI9J7AaQe+DGtwOCE=; b=T+yKFdsPzrk9ClGJ s7Lu3CsPMVLIF5QEHXgn0Gdl9+WBhYDbK7ENJcjM0JNJjFlJZJSDbnRFDPLuNl6x hteVXsk93k/AWLjCutX3ZOPNQRJa0uJKbJrsF0IhQ5JHErxG3rJDKtNxLKfdHmcd eZJ8ndpj1RIMZzTwhAF3cBIGzf1nMbMnnxNcv59f8qigk6W5yot04m3kEIaaRnWT fROSyIWjFyPBkOOM7lHSPnOfCpv2QGxmG7fv4d/hSjK1rGTRQpmaXSs/dAsMFxaB jSLniGe33RjoGnKhp1SOWhvoHz9B0TSGYA9ivQGnxwuIuk3hhaF4kVmP9O1z2HqO 3l9eOg== 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=eDgwCmhr/soGruxBsp42uKPz5WCI9J7AaQe+DGtwO CE=; b=sE4kli+4CWr+Y8uj7yLqex4fMsKegsDjCtK0VFvNGmYujsa/I3BZ0Ni/I czjkz8R1ardpxrNyA3Lnz3B5ZQO5EVWpzlbDq9Fu7Hm9yEXEUXufLPPCCKLqv0WS nQRFVDdcfEAztPzemAtqnsoghiRiDvMt4Vtw6/D0MY3ThARiU271EVQgPMZk3uOw eq3c7svubD7QkuZNsc9uWhBqCy2jq0kRQv80wSHU3K5Qmh/itLkghnqG53CUx/rM m0xsKcYL2Byyck7n+xv0o/3YOIUKNbGhXcc/u23s6v6M8vRykffgydisp7emKJas 9XxG432AVVaJ5wCpOyp1qLaJMNQ7Q== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrvdefiedguddvtdcutefuodetggdotefrod 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 13:50:39 -0400 (EDT) From: Thomas Monjalon To: "Min Hu (Connor)" Cc: dev@dpdk.org, ferruh.yigit@intel.com, Olivier Matz Date: Tue, 04 May 2021 19:50:37 +0200 Message-ID: <13731350.iMDPXxZXgv@thomas> In-Reply-To: <20210428123128.GV1726@platinum> References: <1619165464-7545-1-git-send-email-humin29@huawei.com> <20210428123128.GV1726@platinum> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] [PATCH] mbuf: check mbuf dyn shared memory validity 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" 28/04/2021 14:31, Olivier Matz: > Hi Chengwen, > > On Fri, Apr 23, 2021 at 04:11:04PM +0800, Min Hu (Connor) wrote: > > From: Chengwen Feng > > > > Because mbuf dyn shared memory was allocated runtime, so it's > > necessary to check validity when dump mbuf dyn info. > > > > Also this patch adds an error logging when init shared memory fail. > > > > Fixes: 4958ca3a443a ("mbuf: support dynamic fields and flags") > > Cc: stable@dpdk.org > > > > Signed-off-by: Chengwen Feng > > Signed-off-by: Min Hu (Connor) > > Acked-by: Olivier Matz With title "mbuf: check shared memory before dumping dynamic space", applied, thanks.