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 03649A00C2; Thu, 13 Oct 2022 05:39:27 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A0CF942C94; Thu, 13 Oct 2022 05:39:27 +0200 (CEST) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by mails.dpdk.org (Postfix) with ESMTP id 2AFF142C27 for ; Thu, 13 Oct 2022 05:39:25 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1665632366; x=1697168366; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=ui/ZLC5jVDS6/BPTOnRHKJVP7J/m9FJhVcaiamZL61o=; b=O/KV0pS9h2ZwUkwAYT0pWxNSgx6yWIsu2i/FoUFrKsJx3Dz8fAz1LScR 4PDcRi1o/m3kyvqjcvx2sZSZWde9G0IvNzHH9ZiDF5Ex14A1lyk44S4ic G6qtgUsD+62V3V8dsC/veyKSmSjLaFOGcK1TszdRAtYqSIVgjv3tcl93U t9InXWFQe9Vxv9SossUv8+YzaBFvkZyggDoFyeXrLK8hoXJcpODbFJNOR smpfq80Oudxic8fezYpFC/0tJGbF1cUGC7SVMSOs0c3Fj4EvE08uZlYC/ Kb3bxeVOtd4Z6BICBRofQId+6jdMcODfi1QYv1GqYblAjT2VNDsZOGljE w==; X-IronPort-AV: E=McAfee;i="6500,9779,10498"; a="331468978" X-IronPort-AV: E=Sophos;i="5.95,180,1661842800"; d="scan'208";a="331468978" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Oct 2022 20:39:24 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10498"; a="689936776" X-IronPort-AV: E=Sophos;i="5.95,180,1661842800"; d="scan'208";a="689936776" Received: from fmsmsx602.amr.corp.intel.com ([10.18.126.82]) by fmsmga008.fm.intel.com with ESMTP; 12 Oct 2022 20:39:24 -0700 Received: from fmsmsx612.amr.corp.intel.com (10.18.126.92) by fmsmsx602.amr.corp.intel.com (10.18.126.82) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Wed, 12 Oct 2022 20:39:24 -0700 Received: from FMSEDG603.ED.cps.intel.com (10.1.192.133) by fmsmsx612.amr.corp.intel.com (10.18.126.92) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31 via Frontend Transport; Wed, 12 Oct 2022 20:39:24 -0700 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (104.47.57.176) by edgegateway.intel.com (192.55.55.68) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2375.31; Wed, 12 Oct 2022 20:39:24 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HM125ig4V93Fe9HXE/zVuX7arGcjcChtK333mKoaLy9tnBn1jVTWCGYWBDxHaSrGNYI36WR1ODV4eMsg+A+s9SmHLZczc29kF+zd2wrUfzF1D8kizvuvFjh9t6ZsV9t10VN28UkNpYx0M12CgXYmhu7e/2jCUxY93bUaGGHFZpWdx5gW3c4x3vVFQJvkbMjHJ21PyL6XkLxi8P8QTDahC/d0oLMdHJYdkN4TT4VZiIobq3u829eMy7XN09zx/jafpO0RqsCOTVfAxJgmd43EH4QVMC+f+SIGEhqxYu7dr7Q6NsabevtWpYBDJheNo2iAamFLHJenwj4mHrJwqqodrQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=ui/ZLC5jVDS6/BPTOnRHKJVP7J/m9FJhVcaiamZL61o=; b=iRpOhJX52MOy1mW0QBnztK2uqWyb9ofGgmoWga70IOS1/XOnLmzQ5tLO7ZtVpRB3He4b9CBVwSMYr8LWgD0UnnEhNZwfDhsd6h9YuhDiavx2jfSARmTtgjBr/vpzO8+QFOem77YXyBqcmGvbwQaMw91VpjHU+wEhfqBzTkJHEpBcN9/XSgT7/quAcxtKFojW57I8o1vh+Gcr7e15KpsKM2c6Rs1dIIJu8MTHtJsZC4Eq5IWk2MuRPN8N/sDnYVVHW905P+Uq1vlJcNhfR8JhckwCUPAipIqLofa6DsqyVlY7bIZtV60HzBzncSewMMs+t/vKnAJGIsO5uNwEYXBi5w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Received: from DM4PR11MB5994.namprd11.prod.outlook.com (2603:10b6:8:5d::20) by BN9PR11MB5321.namprd11.prod.outlook.com (2603:10b6:408:136::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5723.22; Thu, 13 Oct 2022 03:39:22 +0000 Received: from DM4PR11MB5994.namprd11.prod.outlook.com ([fe80::6fc4:1ff0:a5db:6546]) by DM4PR11MB5994.namprd11.prod.outlook.com ([fe80::6fc4:1ff0:a5db:6546%3]) with mapi id 15.20.5709.015; Thu, 13 Oct 2022 03:39:22 +0000 From: "Zhang, Qi Z" To: Markus Theil , "dev@dpdk.org" CC: "Yang, Qiming" , Tomasz Jonak Subject: RE: [PATCH] net/ice: null field checks in ice_{r,t}x_queue_release Thread-Topic: [PATCH] net/ice: null field checks in ice_{r,t}x_queue_release Thread-Index: AQHY3jYdTR2X+35AWk68bFpOgUeb664Lrh5g Date: Thu, 13 Oct 2022 03:39:22 +0000 Message-ID: References: <20221012122757.50488-1-markus.theil@tu-ilmenau.de> In-Reply-To: <20221012122757.50488-1-markus.theil@tu-ilmenau.de> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-reaction: no-action dlp-version: 11.6.500.17 dlp-product: dlpe-windows authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: DM4PR11MB5994:EE_|BN9PR11MB5321:EE_ x-ms-office365-filtering-correlation-id: f05e6a36-ec82-4a5c-29c3-08daaccc84dd x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: bHr75pzGKO9HBrJmR+kSbWoWPsDNb7f4Z6ZwTIQLLClatbAjGEuxOrWq8TTDNXrIrZwgyeq/TyEpBv3o+CgVthnvnDKnSN4vQ8cpQIxiTlXzPPwyzFOZf/yxpCXVHRY/V4vpjfnZdDTaFTPzhe9K5VhHwviycHdXezq1SgWmXfFhiHykj01fySPC+Vb+jQ95iZAeaJJxCW8tqKF4ptQ6Y5CsDpPtMhdEjhlQ66Gmop1/qO2Jn8UPBfOx+4x9NuG84szuHTIYutnEwc2MM2Ead590Df7mRkXn0Q6zAWa31AgBZAfJ0DBSyjnXft/daWhHVfkAuWCKIqKSQdVWCc7hNUm40LURJBUZcQ2j5lMzy6NThUx5K19jAyvgjzIwwe6LydeLeWiLbgGpyly0gbahGGdV1Trn9fKipUohIXqgXHKjTSHL5AghtES0fZ5p0I6YLKnT9/QhMqDa3sjpByE0tgwLsDVrvxqS2V8rR6mtmCOaaTEM5ybaHcOIkm6J/YOn9Rcr7Hm3Fe8vG1Fwzs2AUstV9HOHezwsaxXPaVYfKHuB+cGNfUbwx3FCs4WGgMWvHehcvfoNwHLb6FSTILJNUaIUMfEwSQzWgQcvFNTm2kFw6zYMs8SK3kjjRsXei+PniRVhyI0kRSgO+oI8JeJcyS4f4PvdGDh0X2GwW7wkTggjhCVmmBiDWaVH2M9t0t6SaA7WrB2KNIDkcY/P08d+kw07N+mq/SiM6LpuhxAbyBvAfVPjs6OkzEkT4/DCQMLp8YMg5iaW4iTsb9Q7YEp5Jg== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM4PR11MB5994.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230022)(136003)(39860400002)(396003)(346002)(376002)(366004)(451199015)(316002)(55016003)(110136005)(82960400001)(33656002)(54906003)(8936002)(186003)(122000001)(26005)(9686003)(52536014)(4744005)(5660300002)(2906002)(8676002)(4326008)(66476007)(7696005)(66446008)(64756008)(38100700002)(76116006)(66946007)(6506007)(66556008)(53546011)(41300700001)(71200400001)(38070700005)(83380400001)(86362001)(478600001); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?lqJlm+w83ZaC4dmUXrNdYtd5TgywnP/EbpxBPqUCjr6S1jdF2yTlqhzq2Ff4?= =?us-ascii?Q?wkdWKKDpWTf+3LCowF6WzrTUbhYiB/RX6vuv8BYL61oUxYKxutGAQX6HPIfx?= =?us-ascii?Q?5YhZ1rDVxPakqvEJWC4xW1Wo6HkNuvLsDoO3uAglPHvH+mEgpTS8sjuvzkYJ?= =?us-ascii?Q?ubicWR65YXKYEbiRw42lTJx1wZB7VCVVY8tuBYEoEd21n87kCXr7o5HguA2S?= =?us-ascii?Q?jHDI+1bJJHzMdJL/b46tajA1CYNsxgcc/dOxbbPWKOlxlnTKlkTn7yN/OdJM?= =?us-ascii?Q?VR3SuyYTD4764SkmW5WzBqoN+VpNxyUOKxMiLkjoCqSo1zJT6fZaFFbaqTrv?= =?us-ascii?Q?qW9ORrqK8dU+02DgvA8JhYpyl5K2d7sOnOBcv4e2rjioky2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DlLCtLXFJnBvwfD+G7jqvT37Z+U4MiF7XPiY2IqAzH/w1y?= =?us-ascii?Q?oPiuJNiHeGI3x7aFqUNL48MqlbtRnzX6s6Z91Qm3QStRevSvm6IN/ICQqExC?= =?us-ascii?Q?mieO8g7+IQClQdoDxMTKSNJhDPpt0Bcx5ZaGIyr1trzpW5EnepUbAVzKwzFo?= =?us-ascii?Q?yH5sedwmrs+Sc2p2FD6bCLUzfQZ6jhboMaYmDKJCZgMcP/SjTW++OfOIa1is?= =?us-ascii?Q?bIv3ZdWrIWRNPU7S2KE2EwNWfON9YFur+/69ah7y0lpMs4pzdCQ83peoFPyc?= =?us-ascii?Q?q8X2LBcdffM+5J/cb9OyWf8WKxspjZ3rv7kG+vgp?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM4PR11MB5994.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: f05e6a36-ec82-4a5c-29c3-08daaccc84dd X-MS-Exchange-CrossTenant-originalarrivaltime: 13 Oct 2022 03:39:22.8114 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 6LdmIdv8teA4vc/XoTIVEL6w6hV9t9HhYZeAUD5XkSVaSUUNKsmqRDWLsyFuTd8DWR9vg65EIMPRz2QBrnhLuA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN9PR11MB5321 X-OriginatorOrg: intel.com 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 > -----Original Message----- > From: Markus Theil > Sent: Wednesday, October 12, 2022 8:28 PM > To: dev@dpdk.org > Cc: Yang, Qiming ; Zhang, Qi Z > ; Tomasz Jonak > Subject: [PATCH] net/ice: null field checks in ice_{r,t}x_queue_release >=20 > From: Tomasz Jonak >=20 > In case rte_eth_dma_zone_reserve fails in ice_tx_queue_setup > ice_tx_queue_release is called on 0 allocated but not initialized txq str= uct. > This may happen on ENOMEM condition, size exhaustion of > memconfig->memzones array as well as some others. >=20 Added: Fixes: edec6dd83824 ("net/ice: remove redundant functions") Cc: stable@dpdk.org > Signed-off-by: Tomasz Jonak Acked-by: Qi Zhang Applied to dpdk-next-net-intel. Thanks Qi