Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp2153824rwj; Sun, 18 Dec 2022 23:53:58 -0800 (PST) X-Google-Smtp-Source: AA0mqf4KlYoL2JDzsoEAE/zHz5JDEhorky9lNmg5GFiYH5DjQLQ4U6h2zaipw6Nz/Xi+iGugUzcR X-Received: by 2002:a05:6402:524b:b0:46b:8d4f:1699 with SMTP id t11-20020a056402524b00b0046b8d4f1699mr66762978edd.14.1671436438091; Sun, 18 Dec 2022 23:53:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671436438; cv=none; d=google.com; s=arc-20160816; b=ux130KkMjIzqidqStNrabQlZpHVU3cD1EAiOmIl9Jtcf3ml3+Xz7bLI56KL+rzMub5 RvF7s53YqcNfVoB/Co56EekJtXcxDbxicY/3VJ+qclJYu05BzKkNkVN9h5USkMypGTsU bounUEOSFNV9yorgS91OOESMvJzfUb7ogt32W9XT7ZzR6NnofFN+N9x7uXKux6bIa6tK FwXyDujiPhY5N+hz58GpGIeEc1+LqXD5Zum0hmUKFQCUj0lcQVvlSL7Rkh1sPU6ZsL1W nCr3SfH7k+8dCKSX0VEbDKIfeNq2VwjQdALhngda8t9AeB16PB9xAXUw4BePbL0yBFfr rSlQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from; bh=tv+bCW5mGDmvlgpQvwDo87+DiCpN2F2U49MZAD6RTiA=; b=m6H/pwbox0eaMaNkFWu3PgW31+x42D6z82WiNdz7mhnW76KqL7CGXHjzq3gv36viC2 CvcI7UpZ34xojoa/15yLEcQ41f0x44h8wH796IXiHyc1RqhJJXlp9+eHjhOBowsSI+8O W4i4lAK9hLPEUlthfQ/co9LsxRw3mSWV7X7vIy9KCgJpC4+qbONou1oGkhrAtxpdFq6E e1ySzV7Xy/19XRx+bQ4/Y6ij9WV3jRMWJ3a1RH+71uv0961luTqUyXPSQaijBTHiPcC/ Kthmej2NG2a6p5r1bLdI+zNCu2pv5UWXqvhhxzUvzaq6XTY/lSOzoO65+oVTcqxB9mCL qAEA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m22-20020aa7d356000000b0046ccce3279csi7663895edr.178.2022.12.18.23.53.41; Sun, 18 Dec 2022 23:53:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231401AbiLSHE7 (ORCPT + 70 others); Mon, 19 Dec 2022 02:04:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60640 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229537AbiLSHE6 (ORCPT ); Mon, 19 Dec 2022 02:04:58 -0500 Received: from hmat.qianxin.com (hmat.qianxin.com [220.181.41.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 596D7E33; Sun, 18 Dec 2022 23:04:51 -0800 (PST) Received: from hmat.qianxin.com (srv-mail04.esg.360es.cn [172.24.6.24]) by hmat.qianxin.com (SkyGuard) with ESMTPS id 4Nb9gZ4ltxz2LZwN; Mon, 19 Dec 2022 15:04:42 +0800 (CST) Received: from qax-bjmail04.ESG.360ES.CN (10.44.121.98) by SRV-MAIL06.ESG.360ES.CN (172.24.6.26) with Microsoft SMTP Server (TLS) id 15.0.1497.26; Mon, 19 Dec 2022 15:04:27 +0800 Received: from qax-bjmail06.ESG.360ES.CN (2402:d040:0:8425:2849:52e7:3abe:7096) by qax-bjmail04.ESG.360ES.CN (2402:d040:0:8425:e8d8:c276:4bf1:2b8c) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.20; Mon, 19 Dec 2022 15:04:27 +0800 Received: from qax-bjmail06.ESG.360ES.CN ([fe80::2849:52e7:3abe:7096]) by qax-bjmail06.ESG.360ES.CN ([fe80::2849:52e7:3abe:7096%5]) with mapi id 15.01.2308.020; Mon, 19 Dec 2022 15:04:27 +0800 From: =?utf-8?B?5p+z6I+B5bOw?= To: Sean Christopherson CC: "linux-kernel@vger.kernel.org" , "kvm@vger.kernel.org" , "pbonzini@redhat.com" , "syzkaller@googlegroups.com" Subject: =?utf-8?B?562U5aSNOiBGb3VuZCBhIG1lbW9yeSBsZWFrIGluIGt2bSBtb2R1bGU=?= Thread-Topic: Found a memory leak in kvm module Thread-Index: AdkN1svXVRrWKvJvSge7YI3WbO6bxgCl5kaAAMJGbkA= Date: Mon, 19 Dec 2022 07:04:27 +0000 Message-ID: <2895069420eb4af3a3b3a949af4010f3@qianxin.com> References: <7144ff750e554ad28aaa59e98c36d4fc@qianxin.com> In-Reply-To: Accept-Language: zh-CN, en-US Content-Language: zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.110.119.69] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SSBoYWQgdHJpZWQgdG8gcmV0ZXN0IHdpdGggeW91ciBwYXRjaCxhbmQgSSB0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