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 64BD8A0C43; Fri, 24 Sep 2021 04:22:50 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4ECD34127B; Fri, 24 Sep 2021 04:22:50 +0200 (CEST) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by mails.dpdk.org (Postfix) with ESMTP id 01CEA40687 for ; Fri, 24 Sep 2021 04:22:48 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10116"; a="211061131" X-IronPort-AV: E=Sophos;i="5.85,318,1624345200"; d="scan'208";a="211061131" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Sep 2021 19:22:48 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.85,318,1624345200"; d="scan'208";a="455337450" Received: from fmsmsx601.amr.corp.intel.com ([10.18.126.81]) by orsmga002.jf.intel.com with ESMTP; 23 Sep 2021 19:22:48 -0700 Received: from fmsmsx612.amr.corp.intel.com (10.18.126.92) 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.12; Thu, 23 Sep 2021 19:22:47 -0700 Received: from fmsmsx605.amr.corp.intel.com (10.18.126.85) 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.2242.12; Thu, 23 Sep 2021 19:22:47 -0700 Received: from fmsedg602.ED.cps.intel.com (10.1.192.136) by fmsmsx605.amr.corp.intel.com (10.18.126.85) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12 via Frontend Transport; Thu, 23 Sep 2021 19:22:47 -0700 Received: from NAM02-BN1-obe.outbound.protection.outlook.com (104.47.51.46) by edgegateway.intel.com (192.55.55.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2242.12; Thu, 23 Sep 2021 19:22:47 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZxCI+ry5LprEwPlPwkeCqunCt+F4TLUZgUfAsagC34yQYE9d+7rSzBiFJyq6gum84deBO77cODJwL0e8So8ku6JOHnY7sXBycJI4TJ9iP0FWTR7pM0pkYaWL7ERfmlgMnUxF+zBnoEgjnfuOJ9kglRDuxR8WJtQCFxg0qpEqi72nzA51JgoDuvlhc+Ut/jwPSkC1w5xVBVpgMddYOT1YoYzas6Yer64qs4mkQaO0OPFtLID37ZpF4zjUlIv+4DYBdNbjf//zjP3S+iU6SyfNleWBPJkzei4jUuSvg5xdaCjDVgot4VOYyd0jC0mjEjl1Txih01qO6cNLGyr1YU8Yqw== 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=yeyhv4ClEmQOw3apYDm/htL5Djz7D6YYHbV3TeZi68s=; b=mbluEO0FxSv3s+1eMS+De04+O3TjbgawStgtGF5V1/hBvtCbrYvh4WrwU78AJakngDXGuc2uRjFMpbSYq/ascRywACdKdYXoPxPYvPoumu3H5Sknp0KXcxBe3Q9P+7/9p4zR51zyLwkt0SJVQtt1puwdGbgsp2Hzx0lrg8T/0ykq/z4UvL8J8Dbk4akZJySFXeHRp5O3BbrJZN7EPY4At086GTDtUMZorcqNczqgUF814hq3Sqi8G7auFbK1lCh8x4JcrPjefJPn7T4On62ercw5ikLXqrpNBRXLugIoc6M900aUJ+6WGZijRdNeRtm6LQtJy5vBHZmrBSExuZSuiQ== 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=yeyhv4ClEmQOw3apYDm/htL5Djz7D6YYHbV3TeZi68s=; b=jxYXhHdBLJW8kl6W4HRcgmprcZS/u0ldPINouC3KrfiIm3UijHUd/Jh57CXb23soJlto3wkQ8HobSbbY396VJ+YYdCp/OvAwucqInCS8AUELqg/2ox4mJcETkCgbkZMkpiAmRM8gZva1dYAd3pw5Y9cRER/hRPzbhWvQeH9vb/8= Received: from MN2PR11MB4063.namprd11.prod.outlook.com (2603:10b6:208:13f::22) by MN2PR11MB4013.namprd11.prod.outlook.com (2603:10b6:208:13e::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4544.13; Fri, 24 Sep 2021 02:22:44 +0000 Received: from MN2PR11MB4063.namprd11.prod.outlook.com ([fe80::6873:dced:7f68:801]) by MN2PR11MB4063.namprd11.prod.outlook.com ([fe80::6873:dced:7f68:801%3]) with mapi id 15.20.4544.014; Fri, 24 Sep 2021 02:22:44 +0000 From: "Xia, Chenbo" To: "Ma, WenwuX" , "dev@dpdk.org" CC: "maxime.coquelin@redhat.com" , "Hu, Jiayu" , "Yang, YvonneX" Thread-Topic: [PATCH] examples/vhost: fix use-after-free on drain vhost Thread-Index: AQHXsFZCZkqqvwA4o0mU/6MBNZvUGKuydECQ Date: Fri, 24 Sep 2021 02:22:44 +0000 Message-ID: References: <20210923202946.23266-1-wenwux.ma@intel.com> In-Reply-To: <20210923202946.23266-1-wenwux.ma@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: 4e092dd5-8196-46df-2cc1-08d97f02316e x-ms-traffictypediagnostic: MN2PR11MB4013: 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:4502; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: eSnVB/l+XvFOihkBuPf37iu9w0Jm3K3ijxdzIGPrOrQ3K2LyG40MzJBXa0aCDB1Mlgod6Lr/Tmzn/0LwH1nKHv3CINFVCHur54QzMW4K6hPNS6IfdGSk2B59nzZYrGswreGzPmg80tBCc7fT31lCyLhiymQ+5IMQudzuGXsMTumDF5W9tipCJI050BZ8hv+Y8wWeCsPUcA86Sp/rQlq9HsGRYDD7rZPNzupGrOOlKowtOBWwanF3CZ36oXi3VciYAnQUxe7qkciIscf6OPKI00ScjMNehLLz7jXNgovKJ8biSU+xdHDEC5vqx1/ScCDzNNsQx/JFMDFu0pwZnBCgmFptab3ZxDT0ZSI2Q7WswkzeoMqZjC2xv3gStrBf0UMfQWENhLh0+9nDh288mmW09CCpC8AMDLm6KCvSvFJ2obnyPn7voXfx3YbO87atxmLRgCyOGO60EVp9bnIHQF3FIEdHnFVdJ4TKmcbR+j4rI3SL4iuHwv0f6ynbZ5W8zMrIofwSHc40ULOq0BLuEnC/gAb+GUDI+/cm3uRvL5USEhZ50KFK1hKs9zaErgwe1SbX1pdPA4+ZkSN2MJkGrZ6vYqUo1H4GyQVuR/nbrvz1Eikg6mvJSqOfT6GsmraNjihPPCnO/HTHwNpyaXoaN2395MUZRcN0hnc3oIOLK8Ypg/K0Ff+utvvqXP8zHO6Xbz2wK4+rMQ8Lf0tFVUacJ7pnVw== 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)(110136005)(54906003)(55016002)(316002)(66446008)(8676002)(9686003)(186003)(107886003)(66476007)(26005)(8936002)(71200400001)(64756008)(33656002)(66556008)(508600001)(66946007)(38070700005)(86362001)(52536014)(53546011)(122000001)(4326008)(76116006)(6506007)(38100700002)(5660300002)(83380400001)(7696005)(2906002); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?utf-8?B?aytrcCs3YWVYZ2hXNFhGeE5PeDVkS1ZFdW55L3JPcTNPektkM2hUSUplblEy?= =?utf-8?B?bldXc2tITUZFZFl6dGFBZnB6M1R0SkxGemN1Zms1MU5VcngxTE1LZExlb1pC?= =?utf-8?B?eEVOZkpMcHpNOFlEQWRVWmRWMFB1RVB3VlRCcDhqR1YvQU55eGxXZzZjdjN1?= =?utf-8?B?RUtlRmpVNVZScFk3a0NPcHowZmRVUjZPR211T0Z3Y2NPZnIyYmJQdno3MmQz?= =?utf-8?B?SXpQdUZrL0Fhc0luVGRMeERqYlVJNkIzQlE3aUhNTTlybk1LK0k3cGsrcFBa?= =?utf-8?B?Z3N1MDlVT3R3VWd0enJVdUJlc3EydUdTaGw3ZGxLRFNmN1FtVDJDeW9KYVJY?= =?utf-8?B?RkltQnlBazFhMmNWV01MNE15TVZpUEpRWWRVdmMraUdnWHBvY2g2YWhDdDNz?= =?utf-8?B?Y2xFankrbDVCcEVGU25heVNINjQrSW15WVdURzU1cW1RUHN3T1l4SlRSV3R3?= =?utf-8?B?SkV4cjBwcDBZODdocWo5L1orbUxWNy85ZWV2TTZXOXZZaW12dnlLd2xicWdU?= =?utf-8?B?MUpPalhNbXNSOHFQWmtGSmZ3aTA2MlQ0VlIxNUJkOG5IZVp1bGp0dHFJTXk1?= =?utf-8?B?cGdxbUkxQzErMnBnSVEwckRoY1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VDdJZGtIbExtK2djNFh2U0MxamxUSkVGakxQ?= =?utf-8?B?U1A1QnVKN1puRXhGRXBvNitYcXZyVHpWRk9XSi81djJoM09VUzBySitNSEdL?= =?utf-8?B?VFdPYkR5MmozNVZ5OXZVUUdxTlhYU0xsV0RMTVA0SWtsUHpPSkIxclc5KzQz?= =?utf-8?B?RDR3dDllRytTUlZpMUwxK3JCWU1oeFowU1lQWmEwZno2cHJhVy9LMnJqclhU?= =?utf-8?Q?v2CqNR9ukPhHN7UHxXiIlLYnN9rKqmVsLbRfDmt?= 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: 4e092dd5-8196-46df-2cc1-08d97f02316e X-MS-Exchange-CrossTenant-originalarrivaltime: 24 Sep 2021 02:22:44.4712 (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: NW4Fo0ZVwQbCp6EgC5ehI42U/CxgBUxP0bkv/CU+YY6oZpTeI6Vh4WHyHdGKuT/jVqhvbZ9sdU6RY5lkouM0Ig== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR11MB4013 X-OriginatorOrg: intel.com Subject: Re: [dpdk-dev] [PATCH] examples/vhost: fix use-after-free on drain 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" SGkgV2Vud3UsDQoNCj4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj4gRnJvbTogTWEsIFdl bnd1WCA8d2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