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 D9356454ED; Tue, 25 Jun 2024 08:39:35 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7081A402A3; Tue, 25 Jun 2024 08:39:35 +0200 (CEST) Received: from m16.mail.163.com (m16.mail.163.com [117.135.210.2]) by mails.dpdk.org (Postfix) with ESMTP id 442B94026F for ; Tue, 25 Jun 2024 03:56:54 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=Date:From:Subject:Content-Type:MIME-Version: Message-ID; bh=Otu00s9mqKEjgS4cl1PRTE3fNKUJv0QzlceAYe2cYu4=; b=H nlVsM3w3OfzsUhKQsKM9w4uZEkZH4M4NzWvXyIWVxxoD479uHHRfIVRmG/IV6vFm C3l99bdQcdSAW5LLaddSRSqf84QI0ZOtHfK2g6FUGf27ddgxZn0JEWcnHYYRRzJK a0gm56gqJikL7kUMleMkdkPkeNT8vdy2fWwEvc+Guw= Received: from 15957197901$163.com ( [115.199.195.158] ) by ajax-webmail-wmsvr-40-104 (Coremail) ; Tue, 25 Jun 2024 09:56:50 +0800 (CST) X-Originating-IP: [115.199.195.158] Date: Tue, 25 Jun 2024 09:56:50 +0800 (CST) From: 15957197901 <15957197901@163.com> To: "Maxime Coquelin" Cc: dev@dpdk.org Subject: Re:Re: [PATCH] vhost: Fix the crash caused by accessing the released memory X-Priority: 3 X-Mailer: Coremail Webmail Server Version XT5.0.14 build 20230109(dcb5de15) Copyright (c) 2002-2024 www.mailtech.cn 163com In-Reply-To: <4a43b1af-cab5-4ce9-b0b0-e5d8e7e18af6@redhat.com> References: <20240619122739.42573-1-15957197901@163.com> <4a43b1af-cab5-4ce9-b0b0-e5d8e7e18af6@redhat.com> X-NTES-SC: AL_Qu2aC/6Tv04q5imYZukfmk4aj+c7WcS0vvsk3I9TO51wjC7p/js5ckB8PX/IyOOzLz2GjSeoeTVu8Nx8QaBXf5owkLIiJLyqhOjlmmEVrI0WtA== Content-Type: multipart/alternative; boundary="----=_Part_35368_2040792555.1719280610910" MIME-Version: 1.0 Message-ID: <61a86a45.20c7.1904d1c2e5e.Coremail.15957197901@163.com> X-Coremail-Locale: zh_CN X-CM-TRANSID: _____wD3nxrjI3pmCE4GAA--.6339W X-CM-SenderInfo: zprvmkyxrzlmmqrbiqqrwthudrp/1tbiZQcExGXAmhD25QAKsU X-Coremail-Antispam: 1U5529EdanIXcx71UUUUU7vcSsGvfC2KfnxnUU== X-Mailman-Approved-At: Tue, 25 Jun 2024 08:39:33 +0200 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 ------=_Part_35368_2040792555.1719280610910 Content-Type: text/plain; charset=GBK Content-Transfer-Encoding: base64 SGkgTWF4aW1lLAoKVGhlIHNjZW5hcmlvIHdoZXJlIEkgZW5jb3VudGVyZWQgY29yZWR1bXAgd2Fz IG92cy1kcGRro6wKCnNpbWlsYXIgdG8gcGF0Y2g6IGh0dHBzOi8vZ2l0aHViLmNvbS9EUERLL2Rw ZGsvY29tbWl0LzUyZDg3NGRjNjcwNTVhOTQzODY3NDU2ZDNlNWM3MzAxNjhiZmJhMTguCgpPbmx5 IG9uZSB0aHJlYWQgY2FsbGVkIHJ0ZV92aG9zdF9kcml2ZXJfdW5yZWdpc3RlcigpLCBidXQgYXQg dGhlIHNhbWUgdGltZSwgCgp0d28gb3RoZXIgdGhyZWFkcyBjYWxsZWQgdmhvc3RfdXNlcl9yZWFk X2NiKCkgYW5kIHZob3N0X3VzZXJfY2xpZW50X3JlY29ubmVjdCgpIHJlc3BlY3RpdmVseS4KCgoK ClRoZSBzcGVjaWZpYyByZWFzb25zIGZvciBjb3JlZHVtcCB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2My5jb20+ID4gPlRoZSBmb3JtYXQgaXMgRmlyc3RuYW1lIExhc3RuYW1lIDxlbWFpbD4g PiA+ID4+IC0tLSA+PiBsaWIvdmhvc3Qvc29ja2V0LmMgfCAyICsrID4+IDEgZmlsZSBjaGFuZ2Vk LCAyIGluc2VydGlvbnMoKykgPj4gPj4gZGlmZiAtLWdpdCBhL2xpYi92aG9zdC9zb2NrZXQuYyBi L2xpYi92aG9zdC9zb2NrZXQuYyA+PiBpbmRleCBhNzU3MjhhMmU0Li4wMTk0NjA5NmM0IDEwMDY0 NCA+PiAtLS0gYS9saWIvdmhvc3Qvc29ja2V0LmMgPj4gKysrIGIvbGliL3Zob3N0L3NvY2tldC5j ID4+IEBAIC0xMTIxLDYgKzExMjEsOCBAQCBydGVfdmhvc3RfZHJpdmVyX3VucmVnaXN0ZXIoY29u c3QgY2hhciAqcGF0aCkgPj4gaWYgKHZzb2NrZXQtPmlzX3NlcnZlcikgeyA+PiBjbG9zZSh2c29j a2V0LT5zb2NrZXRfZmQpOyA+PiB1bmxpbmsocGF0aCk7ID4+ICsgfSBlbHNlIGlmICh2c29ja2V0 LT5yZWNvbm5lY3QpIHsgPj4gKyB2aG9zdF91c2VyX3JlbW92ZV9yZWNvbm5lY3QodnNvY2tldCk7 ID4+IH0gPj4gPj4gcHRocmVhZF9tdXRleF9kZXN0cm95KCZ2c29ja2V0LT5jb25uX211dGV4KTs= ------=_Part_35368_2040792555.1719280610910 Content-Type: text/html; charset=GBK Content-Transfer-Encoding: base64 PGRpdiBzdHlsZT0ibGluZS1oZWlnaHQ6MS43O2NvbG9yOiMwMDAwMDA7Zm9udC1zaXplOjE0cHg7 Zm9udC1mYW1pbHk6QXJpYWwiPjxkaXYgaWQ9InNwbkVkaXRvckNvbnRlbnQiPjxwIHN0eWxlPSJt YXJnaW46IDA7Ij5IaSZuYnNwOzxzcGFuIHN0eWxlPSJmb250LWZhbWlseTogYXJpYWw7IHdoaXRl LXNwYWNlLWNvbGxhcHNlOiBw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