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 BFC6DA0C4A; Fri, 16 Jul 2021 04:30:59 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 44CAB4014D; Fri, 16 Jul 2021 04:30:59 +0200 (CEST) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by mails.dpdk.org (Postfix) with ESMTP id A752240143; Fri, 16 Jul 2021 04:30:57 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10046"; a="271775487" X-IronPort-AV: E=Sophos;i="5.84,244,1620716400"; d="scan'208";a="271775487" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Jul 2021 19:30:56 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.84,244,1620716400"; d="scan'208";a="506297615" Received: from fmsmsx601.amr.corp.intel.com ([10.18.126.81]) by fmsmga002.fm.intel.com with ESMTP; 15 Jul 2021 19:30:55 -0700 Received: from fmsmsx607.amr.corp.intel.com (10.18.126.87) by fmsmsx601.amr.corp.intel.com (10.18.126.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.10; Thu, 15 Jul 2021 19:30:55 -0700 Received: from fmsedg601.ED.cps.intel.com (10.1.192.135) by fmsmsx607.amr.corp.intel.com (10.18.126.87) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.10 via Frontend Transport; Thu, 15 Jul 2021 19:30:55 -0700 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (104.47.57.172) by edgegateway.intel.com (192.55.55.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2242.10; Thu, 15 Jul 2021 19:30:54 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=k0AZCp5VKg/mvRgezOy5FT/oibpZMqIVn6AEL3A6KMbF96oVsTjPFjWxm8BJpDEx1GI8+Orufx6CWCZ1DFftXW4mIdbuv8F4bZoG+AfAUaULBTy4cbIFc2leiJfr0b4pOc81jV+YiF1Kk7FqObAMC5ZD6+TZn5u3iK3bICI2LhqX/ROYbp71L9nUz8W2AL3WINooxEwvKYkGjW6PLTyqDr51d4nusywjPYm//Br5AQevxy+gzjRDruySSDm0OjG4y5YJ8Uxx5HoH0ORXCrHPcvrVHqpQURNfgQ5vO/AtlEdSLPn0bxO7+XJBL7Q+ObFXYqoKWQaXK+XDxpj8Y9IJNw== 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-SenderADCheck; bh=BFnDLlsRr1kVwlFGUz/MQmJoJdh6ukiqF5IthhA6wkk=; b=mITDE0Q9cAF6c7bFX1LTLFwsCEx6IwSSF4LJMdKxWfIOl43g16qSSRePRbm6I7tj3WCYZBVPBoT7P7X68A+zzlJoCC04U4RpAIc+rbyKSOixSJLOuLUQO76kwhJ5nFiLNdNlg0doXI070FGuW9lqS5GZeZaj3pLHBHkGLMTKiZLD74ehccgXpCXoayDYCChxC45TXVqxKjqQzU5CfWG9NtqnjP4CSVvQToPBKjSz4Q1LIxafcb0H2P/rFVUF4t/Y42eb3fUMoWJHIjHz8QwSaBEjztCGEV2++17BouOjt0Nm6A3sJiB/YlDOZqCb1AyBx+JJJZydYT0x6mmXXw7NCA== 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=BFnDLlsRr1kVwlFGUz/MQmJoJdh6ukiqF5IthhA6wkk=; b=iAT4hCxlLx3l47cpoti+Y51YbupcWzLfi0D62jJsYwvPf+u4M4dc6HYbt2WHouEvLeByHQ/mGz8FOQ1fn0/AlkialG89o31Xf+qrd3fll8u+H2VDx64PBOeOtbFGRFLV4LmPzEML7/cA7oeoRwVZjR5OmMfr5WxqZdZE0SHjG80= Received: from MN2PR11MB4063.namprd11.prod.outlook.com (2603:10b6:208:13f::22) by BL3PR11MB5745.namprd11.prod.outlook.com (2603:10b6:208:352::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4331.21; Fri, 16 Jul 2021 02:30:51 +0000 Received: from MN2PR11MB4063.namprd11.prod.outlook.com ([fe80::d447:3a7a:aad7:4d32]) by MN2PR11MB4063.namprd11.prod.outlook.com ([fe80::d447:3a7a:aad7:4d32%7]) with mapi id 15.20.4308.027; Fri, 16 Jul 2021 02:30:51 +0000 From: "Xia, Chenbo" To: "Jiang, Cheng1" , "maxime.coquelin@redhat.com" CC: "dev@dpdk.org" , "Hu, Jiayu" , "Yang, YvonneX" , "stable@dpdk.org" Thread-Topic: [PATCH v2] vhost: fix index overflow for packed ring in async vhost Thread-Index: AQHXeWEnpGnpgqCyUESUfIiIJiExsKtE4hWA Date: Fri, 16 Jul 2021 02:30:50 +0000 Message-ID: References: <20210708104432.46275-1-cheng1.jiang@intel.com> <20210715095030.55454-1-cheng1.jiang@intel.com> In-Reply-To: <20210715095030.55454-1-cheng1.jiang@intel.com> Accept-Language: en-US, zh-CN Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: 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: ce995bdc-3aa5-40c5-f50d-08d94801ba82 x-ms-traffictypediagnostic: BL3PR11MB5745: x-ld-processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:6108; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 3qEHQKp69rt5HQfOVzaCcJq0OZjqk5CUWboCHegaIRqpBw0TdtyJ0rHr0OlqbUjIPorrD0Hfr11dcUrB6BxqGTWI24dLG2nUxSfOTeTmamCsUY8xiHF5tT3xUifjTjLQVUTmo7WdVJZ1qiYfKHk3XwK+aRgc9lxVrj5D5Q8DdZliQDbzwXn8RbyYrc6ZOdGu/gGq8Tuw21Z0RzV80y6DWEpkoMXstTKs5hCEqpcb41htgbQyB5vmFV0/cPwDJd/Q3mNpbIt6BhpwNsbQW5OKH6yC8O8B5EYhrOyJWo6MotzBX5wJaR6C2d5oshhefvFGwPJ2CTBIqdSLBRojZ6O5HmpEDzicXavNd8IU+seJB2Bw/BUXeHdwAP++TMVmqWkIwuq/AfmDB7r5Zlx4hJRsG8yBU0fgVMj+lf5Cid7HmBZz6HT2nJmOK8ejl9MV3Z9m8HZSYjXshhPu+xUjf3xsY9q01mf929yU6edSM+BoG93gsc+JjG3dt43Q5Nr/oVdcsMjByEG2HuCsa8/A7ti0SywPykvhZoJWPGxOWFjCrwFSNrHac+R8uFsC+O9wjzv9sfl64rDNlBLRxkGGNQoM6lQmIuO0z+sM+2qoDhvA5TRcnFw1HEGhTh7xVyVmFeWuMAUk57p5ynEErzETcSlHTNbvyipp8fqzMrQcqFvb+HyPzRvF6CSFnifIGs3N+T8XUlIopMbsFPiDa9UhL5Szig== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MN2PR11MB4063.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(136003)(346002)(396003)(39860400002)(376002)(38100700002)(52536014)(9686003)(8676002)(122000001)(316002)(5660300002)(110136005)(26005)(66556008)(54906003)(4326008)(66476007)(64756008)(53546011)(83380400001)(186003)(55016002)(71200400001)(86362001)(7696005)(66446008)(33656002)(66946007)(6506007)(2906002)(76116006)(8936002)(478600001)(38070700004); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?utf-8?B?TEpsejlNVmtjU3p0SDFUVGFXblF4cWVzZmV3S1h6cXJtUG9wWlBKd0ZXWXRP?= =?utf-8?B?TVVvNlkrYzgraDcrU0pyeGtqdlJsazFwL3VTVTYwVjdPSVF1ZzlFY2hYbllE?= =?utf-8?B?MHZJRmphcHNVSGZDRlNqbXVYdWkwTEE1RDl1SG5lMzhlMkVLTFNLMUxiaWU2?= =?utf-8?B?T1pqM0g3azZTQkQ2OVVVTGpJbUU3MXhWRm1kS0pyU3hxMHlEVE9sMk9xb1hq?= =?utf-8?B?dGU3cXJSNUdHeXZHSEoxeGhOWVM2SWRvc1hjTkViUE9LWHJ6aFdvOEpFZndk?= =?utf-8?B?cHFKSjMwUU1EUDhmTWRIcTJqOUNseEIzWU1abmt4MGFwZHQyMWR4VlNVb3ln?= =?utf-8?B?YWM2c3ZqRWgwT0JhdWFOWjR3TjVLekIyMUFkNE91NVAvYkFQVU5kdDBneUg3?= =?utf-8?B?RWpQS1NoM2lOS3pjTWt4MzRXUWUyR2lORGRFUGN5SE9KSFNTNEcvRVFqekd5?= =?utf-8?B?RW9MZHZHK3B2SHBUM0pCSU55RjVmTkZrK0UrTVJ4OEpicHNYY0F1MmJUTVZG?= =?utf-8?B?K0s5bm1XS3ZzZUFYdWpNa3hsODA2V3I5M3g1aDVvM2Uxb3VrdFR4ZjBuR0Yz?= =?utf-8?B?VXhxcXE4U3hsanNoUFhDbVl4YjdJUDJnN2FLSS9TRHJXKzNtWFhybkJreExB?= =?utf-8?B?e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=?utf-8?B?cEd0dS9DWVJ3V0lYWitJOFhPV3BORWoxdXZDZTl5Rjg0L2RDWDAxUDArWlJo?= =?utf-8?B?SnlnNWRkSTVORmlmUUNyTmtpWmR5aFQ4NTZyaTM0ZnBtMEhPVGZkaDBNZ3dE?= =?utf-8?B?UUJZb0RlNnJYWUowTVF2RGlJbDAxMkVJWW5jTkQvUk5iSnJYd2ZCRFNvSXFh?= =?utf-8?Q?ykuZy86GUfwio4RMGw=3D?= Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: MN2PR11MB4063.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: ce995bdc-3aa5-40c5-f50d-08d94801ba82 X-MS-Exchange-CrossTenant-originalarrivaltime: 16 Jul 2021 02:30:50.9488 (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: L1THoz5PuZwPWSBt/WQGWz/gTlhXgJNP4sJvP/OyhoGmO1BJxqaMhZtMvIOmSm0J7cwuSi6U1N4IFctJ6wQg5w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL3PR11MB5745 X-OriginatorOrg: intel.com Subject: Re: [dpdk-dev] [PATCH v2] vhost: fix index overflow for packed ring in async vhost 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" PiAtLS0tLU9yaWdpbmFsIE1lc3NhZ2UtLS0tLQ0KPiBGcm9tOiBKaWFuZywgQ2hlbmcxIDxjaGVu ZzEuamlhbmdAaW50ZWwuY29tPg0KPiBTZW50OiBUaHVyc2RheSwg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