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 EF22FA0548; Mon, 20 Sep 2021 15:17:11 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8479440DF7; Mon, 20 Sep 2021 15:17:11 +0200 (CEST) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by mails.dpdk.org (Postfix) with ESMTP id E65A240DF5; Mon, 20 Sep 2021 15:17:09 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10112"; a="210363773" X-IronPort-AV: E=Sophos;i="5.85,308,1624345200"; d="scan'208";a="210363773" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Sep 2021 06:17:08 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.85,308,1624345200"; d="scan'208";a="473616118" Received: from orsmsx604.amr.corp.intel.com ([10.22.229.17]) by fmsmga007.fm.intel.com with ESMTP; 20 Sep 2021 06:17:07 -0700 Received: from orsmsx610.amr.corp.intel.com (10.22.229.23) by ORSMSX604.amr.corp.intel.com (10.22.229.17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12; Mon, 20 Sep 2021 06:17:06 -0700 Received: from orsmsx611.amr.corp.intel.com (10.22.229.24) by ORSMSX610.amr.corp.intel.com (10.22.229.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12; Mon, 20 Sep 2021 06:17:06 -0700 Received: from ORSEDG602.ED.cps.intel.com (10.7.248.7) by orsmsx611.amr.corp.intel.com (10.22.229.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12 via Frontend Transport; Mon, 20 Sep 2021 06:17:06 -0700 Received: from NAM11-BN8-obe.outbound.protection.outlook.com (104.47.58.172) by edgegateway.intel.com (134.134.137.103) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2242.12; Mon, 20 Sep 2021 06:16:29 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=EyOqDM04jeWtioEvSYnA6jekbNCaAIGwpMBranM/aGhGVK6AM89zJX6AFkKZiEQl1G2yoU2Tkw6cOwtppKp3EFCr1XGypVHybo648rvDL/hU9lAo1ZoXaq6bFa4Rj2ckUQp5hmSjpekqyyRog1yoHFvPDg2yRHxf5xwFROETE/7DFunilNuoc0sdQGJ/hkWkTm+nAlL5tE8PXP3oLvYdVCjxGbgKklDhL0nfu+bzps6Leltopc7c6+ceMY/nFCx8t6RIhnGAtD57SRMQ7vvTRy7ADvRkjgD1gRfFJRU82dwuxVXxRY7z4INLJ+g6JYSMOQqCdrsBjxu3NVoY/223QQ== 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; bh=LZ+YO2NDAE0BZbe+tQH6n8I1bjGlKC7/k8sPDcDGIys=; b=Ys+A60ycqEQoOQiRdKUL3qSG9G0d20N9honEWcxbwhtIgw7waugf7fy2Bb4cyeHDH9BI0th16NAXbHEM2Qgew5XgHDd1BNiJ1wSP+MnU7GhDqwiYsbCBrtgMy2SbU8bXsI2ODGUYb3zIbBp0Jlqc+I0Th1Ndy2MVZM2R2Oz1+dQgsvvEyc0hnfX2zwPLcwMCY3dz34h7s9azKVFUBThuU16lLm6gaTOiwk2/XZFcASr2GPupqweXe/cW4T5DKLnr+7uypTBvuCCgBg7SfTKnX7mG2D92ZrhrujfCwSODpcYsUMpzmAZ3swe4MUbI+Br5yBKLyCGGsQ1Aevy36bchiw== 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 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=LZ+YO2NDAE0BZbe+tQH6n8I1bjGlKC7/k8sPDcDGIys=; b=cRuqf+2Gu1ZMr/qUObVvhz2p1QdWdHDLw910rl3BWsVUYSFiPZx5IeZcKCqBmnwXKgTRJPqU8RFx6aw7EHU1pgG6xvrqXYnLx9rCo0RSN9Dy8ZAfWVB+iVo96LZnCbjnq6MNofC1Q2oMKgFVgfQ//U3kMWQLe5X3G1/8+gHh5XU= Received: from BL0PR11MB3043.namprd11.prod.outlook.com (2603:10b6:208:33::19) by MN2PR11MB4565.namprd11.prod.outlook.com (2603:10b6:208:26a::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4523.14; Mon, 20 Sep 2021 13:16:28 +0000 Received: from BL0PR11MB3043.namprd11.prod.outlook.com ([fe80::216d:c732:345c:3a00]) by BL0PR11MB3043.namprd11.prod.outlook.com ([fe80::216d:c732:345c:3a00%6]) with mapi id 15.20.4523.018; Mon, 20 Sep 2021 13:16:28 +0000 From: "Zhang, Roy Fan" To: "Troy, Rebecca" , "dev@dpdk.org" CC: "Trahe, Fiona" , "Trybula, ArturX" , "stable@dpdk.org" , Ashish Gupta Thread-Topic: [PATCH] test/compress: fix buffer overflow bug Thread-Index: AQHXq9Z689pzPHTF0kiTurJ1N4S9m6us65Qw Date: Mon, 20 Sep 2021 13:16:28 +0000 Message-ID: References: <20210917151207.2315536-1-rebecca.troy@intel.com> In-Reply-To: <20210917151207.2315536-1-rebecca.troy@intel.com> Accept-Language: zh-Hans-HK, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-version: 11.6.200.16 dlp-reaction: no-action dlp-product: dlpe-windows authentication-results: intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 46a3fe2b-5a74-4e18-4a2b-08d97c38daea x-ms-traffictypediagnostic: MN2PR11MB4565: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:4502; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: Y2AYVVnxwNiVOer5s18SDuWxBq0pYTgbzgE1+zoAYo4RSk3f20Lx5ddqCRlJ8DMdHmPdXj2d79BtUAAA/2WdXRM2uEsJ2A3RPJfzfxhxusSzJoS+lSkpSiUFxpHHoqqtTTq0b3VeCEN7qDD5AX5pJ3Qik1CPekE90ziOod+pLs+afwL6ZYoiiQOMEIxMjtl62mk3ZTKivFnZxxti/kIxLh8va+L2MAHVMLjpleCUJufQSfGBOzF1UBAhJY3JHfarJo4VvLuJVV5mhpv2/FkHP0wUzFbXia1M5KKCV4NvSSEVas2E/inBo52OHpAFHSV8u4TpN82NgAaDBjsTUei54scRshfD5AIviHrDirI+qrGbapPqK1J+bBGibF8D7wrdZH3LIUmH+ATBOQxJKlaXJrMIw35nL1EbxdwqfPf9Z3vWzqc/EIWFB9AGOJkm9BZCwL3wQR90U6OyCK11rlkPCYm9WNktcuH4/c31OzdmkJLlJyHI8+rX0UnGWw89Njvu5TZgoZzCepMPffGsBnpstE+flIzNObrtEB2swzAnebqnbD4aXr8t9Zq+23KimkwHLNZh/jHW4xkX540veIQqiKUDJX1eD0hU6k8dexu9nJCwJtEkmqP/A3qjILkzcHRcVHPo8ZgZ7fFS+BVJOBfYgER6SuyYpwDwBjtA+UEEDKYqIKr/pkp7aFx/7FJ7QCBSh7IdrFCZz/IHlMtlSjWPfg== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BL0PR11MB3043.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(8676002)(55016002)(26005)(83380400001)(186003)(71200400001)(8936002)(38070700005)(6506007)(316002)(4326008)(9686003)(66446008)(5660300002)(122000001)(52536014)(508600001)(64756008)(66946007)(86362001)(76116006)(66476007)(66556008)(2906002)(38100700002)(110136005)(7696005)(33656002)(54906003)(4744005)(53546011); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?Windows-1252?Q?6alRh8ovvNBMrG3ckm1VXrs1Pll88d/R5afoDerFaXiof/YgdEKbGjNL?= =?Windows-1252?Q?QqLbm73Pk2q1qhaNXjJpgW06NUwCrSLyIU3tQtqHBx/DSDv5j7FK12pO?= =?Windows-1252?Q?t7fg7FHGn5foqgNGaNwOk7JZy75h7RoHctB46F1RJJhmiZ/RZuL3Q6ih?= =?Windows-1252?Q?2lSyKGUCVJid/3w5oZOx3IT2WHpJacJNVSKtBdlYree1mBTvC2rWyrGO?= =?Windows-1252?Q?Pl+0o4Sn7gd63kiViXQsoHRd6sKNL0mgJKa2UELbgz7qfdaBXWZKKV39?= =?Windows-1252?Q?NJaKUEbOD8A33jCbkbgLLxqfjpiVg7fBw92gHeTR63RYWQJrHopQkaY4?= =?Windows-1252?Q?fMGxIuCeMETak4wzP23qb2xOpNYIBFO6cFWv4AAPrV40cV/MFUM73t8T?= =?Windows-1252?Q?18Y4ZvIdehRX9QO8tTL1+twkpFaoTRssH8x9SQK8Vglkn68u3ZzuAISf?= =?Windows-1252?Q?ylS+bqZ/mrfNPRQobhmvnoghGvMkkAm2sHigI5QIa6BuNR7Q6ICKDjcX?= =?Windows-1252?Q?eRw+aXNBvmVVMtDmRMLzK6thObEY3q/s6puCRb5g2jb6q5FuLaGzvyZf?= =?Windows-1252?Q?XIVGdpkI6eXpmpNmwWyor8BsucnCUhk5BFO88S2lVfB5Syfrbw1BH2qB?= =?Windows-1252?Q?bkxw5KnC8wcgnHNthwcSVFeRY3DWAi/6fgEQ6nYpbtgbeAa/qq0hrEQa?= =?Windows-1252?Q?CHn0q5iXdXplOsR0fYXCROkdmn74AcHsBSW0lll7UB5cyFNm0aSLYPX8?= =?Windows-1252?Q?xJakQs/1yjL4SEe4fk0toINv6PXr1yfxVuLuRK9gJaWyBiXGE/fK4whd?= =?Windows-1252?Q?2TqztaecUgGOVyYuYRAZPSXDoxQETWOqMQJnSlKDcqGS9R6Tmdrj6Xuj?= =?Windows-1252?Q?+qZBuDcOviTLQ0dGgT/bDYw4cHxTI29UX/gvgdHw/YjUMrTAmSBEt0OG?= =?Windows-1252?Q?altIWmwpDxyYlUiRfC19nr++6SRVkjA8GBUR/6w7/agFwXXuf+JBAY6P?= =?Windows-1252?Q?IFmWNcjMwFx5dHxUGPLP1PMU9G46BJj2ezwyGQ8fq72dMw+7UgbVpRMW?= =?Windows-1252?Q?g5DQSShIQLs5qSuNZV7+b8ovxhcnUpCq/SdlRN8K0qnJrLZg+1TXKjmz?= =?Windows-1252?Q?kiw3DbQHPXRLnC5tDmttrhqZ7esqnJZSmfjdqId+h/YlErhGn6LFGkME?= =?Windows-1252?Q?39JGf1xU30Y7DLiY/CVW5GBBkuNPW44yRmy4jm3a5bmOYXEwyJQvBR09?= =?Windows-1252?Q?lL0nnRN5s7X5wmBnS+GEa5x0LgosC2Yog2CXHZBzXyz/11Ha50zwZlR4?= =?Windows-1252?Q?oK32q4dYigkwfEmOvbbalVR41f0L+cTUVc3dI3fgR113JdVpUZ9Yl0py?= =?Windows-1252?Q?csuHW9DfGeDeh258cx3Bh/1lRIMN9u0po1NXjQwksgrWxAWm01l9GvDJ?= Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BL0PR11MB3043.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 46a3fe2b-5a74-4e18-4a2b-08d97c38daea X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Sep 2021 13:16:28.1376 (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: jH65KyIi8YC0cNBXAjB7ryglo04qrL6rDPVB1cHIYqUX6kIe7spIH3ihYf4+alzl3Fu8Mj6B8Jjia573ud6PDg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR11MB4565 X-OriginatorOrg: intel.com Subject: Re: [dpdk-dev] [PATCH] test/compress: fix buffer overflow bug 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" > -----Original Message----- > From: Troy, Rebecca > Sent: Friday, September 17, 2021 4:12 PM > To: dev@dpdk.org > Cc: Zhang, Roy Fan ; Troy, Rebecca > ; Trahe, Fiona ; Trybula, > ArturX ; stable@dpdk.org; Ashish Gupta > > Subject: [PATCH] test/compress: fix buffer overflow bug >=20 > Fixes stack buffer overflow bug in compressdev autotest, which > was caused by the use of buf_idx in the debug logs. Originally, buf_idx > was treated as an array instead of the reference of an integar. > This was fixed by replacing the use of buf_idx[priv_data->orig_idx] with > the variable i. >=20 > Fixes: 466a2c4bb5f4 ("test/compress: improve debug logs") > Fixes: 6bbc5a923625 ("test/compress: refactor unit tests") >=20 > Cc: fiona.trahe@intel.com > Cc: arturx.trybula@intel.com > Cc: stable@dpdk.org >=20 > Signed-off-by: Rebecca Troy > --- Acked-by: Fan Zhang