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 858EDA0547; Wed, 29 Sep 2021 09:23:43 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0A73240E3C; Wed, 29 Sep 2021 09:23:43 +0200 (CEST) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mails.dpdk.org (Postfix) with ESMTP id 4F9644068F; Wed, 29 Sep 2021 09:23:41 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10121"; a="224919963" X-IronPort-AV: E=Sophos;i="5.85,331,1624345200"; d="scan'208";a="224919963" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Sep 2021 00:23:39 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.85,331,1624345200"; d="scan'208";a="437539206" Received: from orsmsx603.amr.corp.intel.com ([10.22.229.16]) by orsmga006.jf.intel.com with ESMTP; 29 Sep 2021 00:23:39 -0700 Received: from orsmsx603.amr.corp.intel.com (10.22.229.16) by ORSMSX603.amr.corp.intel.com (10.22.229.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12; Wed, 29 Sep 2021 00:23:39 -0700 Received: from ORSEDG601.ED.cps.intel.com (10.7.248.6) by orsmsx603.amr.corp.intel.com (10.22.229.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12 via Frontend Transport; Wed, 29 Sep 2021 00:23:39 -0700 Received: from NAM02-BN1-obe.outbound.protection.outlook.com (104.47.51.47) by edgegateway.intel.com (134.134.137.102) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2242.12; Wed, 29 Sep 2021 00:23:39 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hfvcorPmX77g987WTsy1Dg3u48LHZVPJc3vArgLgbVGdr+IsBHrLB5x3j4zTEsnZLz+4wX0a2vNR+0xZa2Nn1byuZKQIy6SpmU60jsRynal7uP62jydGsX+fCOoBaiQM0qtn2ACcqDibg+h4lYNjB2OqSScmUdeFsRJYRBJ+VwPDIBTjg4hy/mdDqttfVBYLJ5NEPRh5MIRnWSm8YftZfg4ht0mQ+1K0miC85EAgTDJqj24wICJ3AeMzdt4Lgf1d+wbdEX7PeIBZfpBqklajDqroj7zVzs59I9rN30xDT9W+OwypUQafbN4IzNxkzYJFEedu391lsMzjrBUhXXgVxw== 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=bw8Uh599LQE57QAScBZWnrV5u70FrvSvgkO6nnRFnMs=; b=IepwF1uhI3A4Pp+W7AFCE2vm2BcmySQCi49g47ThVWPh+i/oTMwyU05u6wcp3D8c0awRxDFKpBws2tbu2/m9mwEGQHYdSI+DokIj9rqgZbj5Wq0wWLPyneHGNCDGVdMlkpc//83YO5aDNFEu9wcfkUzKoAJ+ytlZfxO4R6/9+S3CJPBUpDplG10mHx35l+aeyYYVWxWdSffZunsFMrRe+rOq2gR1dMMIlefxXpNU+h0YrFP4SM/diFLGwXCs3GuQc+2bKGhMgI+qo+FROEJ/iCZMd14CRA6HFz4oRfY9zpGwZddfwDFikkJVOJK+pc/4w1ENORnKEX+P3sOPfCs5jQ== 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=bw8Uh599LQE57QAScBZWnrV5u70FrvSvgkO6nnRFnMs=; b=OPPgdh21iqv9Ddv6nHulrXVEOWcDC3H3iv4kl7lpDJ7h091NyI9dU4WnVco46v42ki+uD2ib+60kmdgUrjqipXtZbakkG9WxxpawWHqzNnqOOcmDcWpCDIj/9QQRTXYSYLsEKyOprGYOVpsUSbjcZzTevbTraVeGQYoVYgKltoQ= Received: from MWHPR11MB1775.namprd11.prod.outlook.com (2603:10b6:300:10e::14) by MW3PR11MB4572.namprd11.prod.outlook.com (2603:10b6:303:5e::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4544.15; Wed, 29 Sep 2021 07:23:35 +0000 Received: from MWHPR11MB1775.namprd11.prod.outlook.com ([fe80::59f8:b111:9fe:a57f]) by MWHPR11MB1775.namprd11.prod.outlook.com ([fe80::59f8:b111:9fe:a57f%12]) with mapi id 15.20.4544.022; Wed, 29 Sep 2021 07:23:35 +0000 From: "Xia, Chenbo" To: "Ma, WenwuX" , "dev@dpdk.org" CC: "maxime.coquelin@redhat.com" , "Jiang, Cheng1" , "Hu, Jiayu" , "Yang, YvonneX" , "stable@dpdk.org" Thread-Topic: [PATCH v2] examples/vhost: fix use-after-free on drain vhost Thread-Index: AQHXsQVdUbt5OC8VGEmo+Xr+WfjlW6u6o6Wg Date: Wed, 29 Sep 2021 07:23:35 +0000 Message-ID: References: <20210923202946.23266-1-wenwux.ma@intel.com> <20210924172300.26245-1-wenwux.ma@intel.com> In-Reply-To: <20210924172300.26245-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: 2df9647a-2e7b-4c74-7a42-08d9831a0c95 x-ms-traffictypediagnostic: MW3PR11MB4572: 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:3173; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: uDdmZG4aFQZ3erddCCYDi1Li1OXmZSESRbVCwrydZ/EV8QNAYIPzMjpIekzqd8A8uKnnzqNVtNjGjTjXn79GE0uN4LGIYxQfE38++Ogjy7DDsA+TWb2VnuioCfkAduuQCim4Dbl9/4q1diJZOS+bY0Vs1ql6VbOK6LoaX31jFNwOwgDoqWkVs5y7RjKqZGzHl8eJ4458QpH4Fqw0ICQ9aJwKJlr+ucCLW/RU4iDRlLJr+yyJ7E8WpOL4NowQ7uzTf72KJtMCkZK9axuDr/i6uNYf1EqACkih/zWleHRZqpJmJtP1IIodCQ/GADSzJkMMeW/BLCHOD+R6P+fKwDlYNvXoC1sWE5PFmZt6bFozKDy7+eHZX+veGKR6xeJ4tk+RpTDyr4gaPOeLM9fLFBb2rSFSrpjXa8IIlkVbwi/yPXE7H3pvHPRymvQnyZnGWzuRE5kZfGKXnJKnVpcMpKRzxmxlr46l45/HEKRi8+MhGgKhyS84c7hDujHPnGvIy9pbn/OYfkT+Rnyjv/Xz0m9UIHr0CouAWCdWUBrjxvMKTO4kWDG6+hLrBPGL5BH/JF2kggy3oWFEo6sCaZvW/uzLBD0i6PbyJBPY5kIUmhf0LJl0nG81Jyx1/NfRvoo/B4XxwNYkr0jKVHLo4SyLRKIoI1R9EdIZIifzPR7WrP5R8uyOp0c7+TgK9yoJYaGc8AX2T5xhksK7wfrXT1qtvCl8Yw== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MWHPR11MB1775.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(38100700002)(6506007)(66556008)(8936002)(5660300002)(66446008)(53546011)(64756008)(66476007)(8676002)(52536014)(71200400001)(55016002)(508600001)(76116006)(9686003)(2906002)(66946007)(7696005)(86362001)(4326008)(4744005)(33656002)(54906003)(122000001)(26005)(316002)(38070700005)(110136005)(83380400001)(186003); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?utf-8?B?NWpHNHE3bDZxaDUxZ0orSTcxYk1pUVc1d0oyNlBFeVFtcXE1WFQwY3pSRUw5?= =?utf-8?B?SVdxVG5uUFJZN1J0VUdYR0ZvTHFlTFZoSm5ZQzdtcnVNNlBtNUN1VmZlazVv?= =?utf-8?B?cWYrWlh5TjF3ZjcrWERWS3ZISHVuMEl0VEVQbUEyVE9NVzNKdlBrR1FXcWVG?= =?utf-8?B?ek5LbU5mZERodkFmaXVuVVhXMkt1QUVmTUEzY3doWTNaVWFnbFVTalpOazhB?= =?utf-8?B?N2cvVE9pL09BVGE2RzRkWTN4R00zenNMMHgza1VVT3ZPK0tVc0h1Z2Uvc0Js?= =?utf-8?B?VXU5aTQ5NDlSL2szWFJHb0tFcFAyekZPMTZvNERTSUdBcFUycis1ZFQ3WktI?= =?utf-8?B?MGNxTmkrcW9aZXFoLzlFcVY4SzdSQWxTNUcvNDY0cUJnSXBKeDN1eGdPbU1L?= =?utf-8?B?UDVkckxGKzNtMDd1SWNuQXhHQythTHRtL21pTE5MNjBDMVZBZDY4VHlUQnIr?= =?utf-8?B?VHIvMTBRWlcxbzkwcUJyb01nQUgrdWU4Q2dVQURWQVFPVU9iVGZ6Wlp3d01y?= =?utf-8?B?SDZvNHFQcy8zZ2FPR1FxL3BVb2x5L0I3cGdRWHB5eEh3OWQxM0NPSWVaZ2N1?= =?utf-8?B?R1FuVVFKdVg2UXIzSlZteWs3VTY5LzNtNTdYT3YxWmZyZ2R5RzB2TUo0M3RW?= =?utf-8?B?S1hhR0Rvb01mc1N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-8?B?dW5NZGZNRFJvZUtJTmVSWU5UQ1hLdHZEcnFyTTZJRUJ2NUl0UVVIQU1kcFQv?= =?utf-8?B?cVlPNlloYWZOUi92dGx0d05oVlhGOVlzaDVydUVLeEFvSW9oa1FJQXZORjZO?= =?utf-8?B?WDBOVFcyVUVBTjZRSU1Zc3pZL1dZL0pPT1FCNlZuRmc5d0UvdVp1QUZBd29a?= =?utf-8?Q?DVJTXfI8Mg+k26DiQ6PlXJWdxfMEJWI6OpXJNZj?= 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: MWHPR11MB1775.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2df9647a-2e7b-4c74-7a42-08d9831a0c95 X-MS-Exchange-CrossTenant-originalarrivaltime: 29 Sep 2021 07:23:35.1447 (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: 8DP2fihffAYlFAN0qbUTDHJ+WVuySa54kVKhcJjw272MM2IXHCasd7yOe2irXMXlm4b6AdHaWPtyJqhrBNqndA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW3PR11MB4572 X-OriginatorOrg: intel.com Subject: Re: [dpdk-dev] [PATCH v2] 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" PiAtLS0tLU9yaWdpbmFsIE1lc3NhZ2UtLS0tLQ0KPiBGcm9tOiBNYSwgV2Vud3VYIDx3ZW53dXgu bWFAaW50ZWwuY29tPg0KPiBTZW50OiBTYXR1cmRheSwg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