Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp5867168ioo; Wed, 1 Jun 2022 14:28:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxxSJsETcyRL5RXR735wisMGVhXCvur1RkL/8AtoFMTijAVVN0M+sDSeT7BPrhoO83rv1FV X-Received: by 2002:a65:668b:0:b0:3f6:4026:97cd with SMTP id b11-20020a65668b000000b003f6402697cdmr1173846pgw.420.1654118933130; Wed, 01 Jun 2022 14:28:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654118933; cv=none; d=google.com; s=arc-20160816; b=JdxwPUxgyYEuM/UOJGBJhDTBdLxBNHMSp9rAu/B62iigFU82Hgdp1sb4s8Mc65x8GW 4411Z5wPNUtMhZgc9PGrOxqzQ41sDgpKWYGaDRCRz7zBZtbeaGIz/8qmwukfY5z9QeSQ kkl7dqtwihPuod0B22wKTz1c1f30wlylGgShVXN/6W0zHET0cFr1/2WwIwWyTwXHKylw nTlnV4p5WXbx8JmUPPDa5jaT6uLyhq1sHxmKxIFsn+ozTl0tIo2FDNVU5vXfPY1JUGoz cLONeQmMtOABUwIYVHkwvLsflFjf4d9QSHeXM+muF9kXaY8Ppf4Rm/d7S6dH40NRzOGc 9rNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=SS4f2RJO4J6Dl+skZQyymBm8JwW6+FCYen5Pp0Bb79k=; b=lriAId0BEw2kzcUq40M1nlmpZ9liXZ5cOoy+V9UOh0D863c2V7B0194CpXqK0Hz92X 34IMS0FCvSw4jScwHmyaDJzmpNCvgIBJm8Fn8dtwbn2YL6ItitFDg+ojqFK02KlJZmUH 1sq5rbZ/+75LgBHsq6HQYJJMcnBP9Abnys1XyFfzF4QE5oJnX66bLSWu5YZwvP6sXAeI 2Rz/witQCOwrqilxUZwWsJ57UxSW7ow+AoVfUz9aZYo2BqaOfb+Br++N9KrrXGxir+MN JHHFgXqCKlINDeQMqaFleXbc9HSX8ppCgMXLT99CHMrjDEpjV5TqJdlTuOZ8H8BuY/QW oGWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=a6FcR9Up; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id nu8-20020a17090b1b0800b001d927ecd930si3866198pjb.178.2022.06.01.14.28.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Jun 2022 14:28:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=a6FcR9Up; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id AB00430D914; Wed, 1 Jun 2022 13:18:38 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346518AbiEaRXf (ORCPT + 99 others); Tue, 31 May 2022 13:23:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35732 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240539AbiEaRXe (ORCPT ); Tue, 31 May 2022 13:23:34 -0400 Received: from alexa-out-sd-01.qualcomm.com (alexa-out-sd-01.qualcomm.com [199.106.114.38]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 97C1290CDB for ; Tue, 31 May 2022 10:23:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1654017813; x=1685553813; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=SS4f2RJO4J6Dl+skZQyymBm8JwW6+FCYen5Pp0Bb79k=; b=a6FcR9Upput7srAQgwjIlBF8b0f4F6iCyIYTLZjBE5bJpSMSjEDdR2Wk tfJ7yMHbfgD6WBl2VHK9/T3px/bdipSv4MQ294FeoAiL7dEMtSMXV9n3S DUAcQMXXEBW8si8aUUXx19jj297OfgFpErzscIbE7WNqeBIybySuhy5zk E=; Received: from unknown (HELO ironmsg05-sd.qualcomm.com) ([10.53.140.145]) by alexa-out-sd-01.qualcomm.com with ESMTP; 31 May 2022 10:23:33 -0700 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg05-sd.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 May 2022 10:23:32 -0700 Received: from nalasex01a.na.qualcomm.com (10.47.209.196) by nasanex01c.na.qualcomm.com (10.47.97.222) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Tue, 31 May 2022 10:23:32 -0700 Received: from qian (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Tue, 31 May 2022 10:23:31 -0700 Date: Tue, 31 May 2022 13:23:29 -0400 From: Qian Cai To: Will Deacon CC: Marc Zyngier , James Morse , Alexandru Elisei , Suzuki K Poulose , Catalin Marinas , , , Subject: Re: [PATCH] KVM: arm64: Fix memory leaks from stage2 pagetable Message-ID: References: <20220526203956.143873-1-quic_qiancai@quicinc.com> <20220531165710.GB25631@willie-the-truck> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20220531165710.GB25631@willie-the-truck> X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01a.na.qualcomm.com (10.47.209.196) X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 On Tue, May 31, 2022 at 05:57:11PM +0100, Will Deacon wrote: > On Thu, May 26, 2022 at 04:39:56PM -0400, Qian Cai wrote: > > Running some SR-IOV workloads could trigger some leak reports from > > kmemleak. > > > > unreferenced object 0xffff080243cef500 (size 128): > > comm "qemu-system-aar", pid 179935, jiffies 4298359506 (age 1629.732s) > > hex dump (first 32 bytes): > > 28 00 00 00 01 00 00 00 00 e0 4c 52 03 08 ff ff (.........LR.... > > e0 af a4 7f 7c d1 ff ff a8 3c b3 08 00 80 ff ff ....|....<...... > > backtrace: > > kmem_cache_alloc_trace > > kvm_init_stage2_mmu > > Hmm, I can't spot a 128-byte allocation in here so this is pretty cryptic. > I don't really like the idea of papering over the report; we'd be better off > trying to reproduce it. As far as I would like to reproduce, I have tried it in the last a few weeks without luck. It still happens from time to time though from our daily CI, so I was thinking to plug the knowns leaks first.