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=-3.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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 06C10C31E51 for ; Tue, 18 Jun 2019 13:32:57 +0000 (UTC) Received: from dpdk.org (dpdk.org [92.243.14.124]) by mail.kernel.org (Postfix) with ESMTP id 9D8E02085A for ; Tue, 18 Jun 2019 13:32:56 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9D8E02085A Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=intel.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=dev-bounces@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id DAA0D1C1BA; Tue, 18 Jun 2019 15:32:55 +0200 (CEST) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by dpdk.org (Postfix) with ESMTP id 5F06D1BD0E; Tue, 18 Jun 2019 15:32:54 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 18 Jun 2019 06:32:37 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.63,389,1557212400"; d="scan'208";a="358261398" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by fmsmga006.fm.intel.com with ESMTP; 18 Jun 2019 06:32:37 -0700 Received: from fmsmsx153.amr.corp.intel.com (10.18.125.6) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 18 Jun 2019 06:32:36 -0700 Received: from shsmsx106.ccr.corp.intel.com (10.239.4.159) by FMSMSX153.amr.corp.intel.com (10.18.125.6) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 18 Jun 2019 06:32:36 -0700 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.83]) by SHSMSX106.ccr.corp.intel.com ([169.254.10.89]) with mapi id 14.03.0439.000; Tue, 18 Jun 2019 21:32:35 +0800 From: "Zhang, Qi Z" To: "Xu, Rosen" , "Pei, Andy" , "dev@dpdk.org" CC: "stable@dpdk.org" Thread-Topic: [PATCH] net/ipn3ke: fix null pointer dereference Thread-Index: AQHVESdLExZlDESW60Ww9q/HcY46GaahkiQg Date: Tue, 18 Jun 2019 13:32:34 +0000 Message-ID: <039ED4275CED7440929022BC67E70611533A7CCC@SHSMSX103.ccr.corp.intel.com> References: <1558585882-222368-1-git-send-email-andy.pei@intel.com> <0E78D399C70DA940A335608C6ED296D73A76EE97@SHSMSX104.ccr.corp.intel.com> In-Reply-To: <0E78D399C70DA940A335608C6ED296D73A76EE97@SHSMSX104.ccr.corp.intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiNzUwOTI4NGQtYmY3My00ZDUyLTg2MzEtNTE0N2E2ZDU0NjA5IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiMHFURnJmRDBTTThwdWRQRFNMdWRwWDZMb1hGTnJzT0Nub0dMNlhtRkYxbjg1UjNPYzUrTHQyR1RtZDljekFtTyJ9 x-ctpclassification: CTP_NT dlp-product: dlpe-windows dlp-version: 11.0.600.7 dlp-reaction: no-action x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH] net/ipn3ke: fix null pointer dereference X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 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" > -----Original Message----- > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Xu, Rosen > Sent: Thursday, May 23, 2019 1:20 PM > To: Pei, Andy ; dev@dpdk.org > Cc: stable@dpdk.org > Subject: Re: [dpdk-dev] [PATCH] net/ipn3ke: fix null pointer dereference >=20 >=20 >=20 > > -----Original Message----- > > From: Pei, Andy > > Sent: Thursday, May 23, 2019 12:31 > > To: dev@dpdk.org > > Cc: Pei, Andy ; Xu, Rosen ; > > stable@dpdk.org > > Subject: [PATCH] net/ipn3ke: fix null pointer dereference > > > > In current code, scenario may happens that when function > > ipn3ke_hw_tm_node_wr is called, struct ipn3ke_tm_node n has a NULL > > element parent_node, however, the element parent_node of struct > > ipn3ke_tm_node n is used in an invalid way. > > After applying this patch, > > this null pointer dereference is avoided. > > > > Coverity issue: 337921 > > Fixes: c820468ac99c ("net/ipn3ke: support TM") > > Cc: rosen.xu@intel.com > > Cc: stable@dpdk.org > > > > Signed-off-by: Andy Pei > > --- > Acked-by: Rosen Xu Applied to dpdk-next-net-intel. Thanks Qi