Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp1480144rwi; Wed, 26 Oct 2022 16:17:41 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5hnQtYOjHmQubEjOEAP0Xt/2VPpCwMwlks3WqskXsCW+GM+oHHwLLdGGPvaFdLmGaKOlNs X-Received: by 2002:a17:907:9625:b0:78d:bb0c:4a40 with SMTP id gb37-20020a170907962500b0078dbb0c4a40mr38427940ejc.339.1666826260986; Wed, 26 Oct 2022 16:17:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666826260; cv=none; d=google.com; s=arc-20160816; b=KqhlzUqJp+AppETT5hI1E9EF3p9Z+cKaxF/TzKSk2ejO0yuvFJhQCU5WZXbgGbLoTX V2QfEypggPWLrJmx/5C8ZT34Jer3fznWmsNx7mUOKl8vqPQPWXA5kGCqkXpkrI3mFI2Y LmmucvyjJ15BbErBIZfuSTTUPV5GWYgcKzzAUfYYKBitEFYq+K8Z4LeAMjksf46zdx9a rsDHq0ZiFfAsS28NRkGow1/UollTZRWwyVkUvQXW6V/AU6fNL9VIr+AO+EDcGOFTd035 grNpCobQqZkAV6yIbL6JqI5M8thRS+fjSpnTyBjlcPNq3rUQTg04CoY6ag6eh8CZ1BJm BTWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id:dkim-signature; bh=G9HlSnsgK+NNmayTfHiW+jgNEfwRjP70ykcHsxT0g5Q=; b=w9OF6JtPGWbFzV2kkb+7/jzq5uNVi2EPv3MJyy6CZYR24WC78tydM+Ut+/PqwYb/wD 2Uy+waXAOcza93cQCjYfGTkBJE6HmkUfIrf7ne4cAGSzl8/quy/VJdGDkdWJnYura50X AaE2CNg1DJs7Ck3cBBycKPxTY9PlY6emhNngf1TbbtDD3vU+30/pNIeL9AOxS1WfJ1DC pEPL3RUsbGbIT5hj+RfOL2wRqpn7oT/ORsNf/053W+a+CHbfGS+m+0jd+3prmuhFCGgD GsqyszBDjpC8ohJzUkVbFr0ygvmwaccCTE/AlVHsJqYsJp6Tt7QxI2chknIbJ6abnsfi UFPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Yr92t2uH; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b7-20020a50ccc7000000b0045c29d74fd0si6125258edj.291.2022.10.26.16.17.15; Wed, 26 Oct 2022 16:17:40 -0700 (PDT) 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; dkim=pass header.i=@intel.com header.s=Intel header.b=Yr92t2uH; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233809AbiJZWsm (ORCPT + 99 others); Wed, 26 Oct 2022 18:48:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40448 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232903AbiJZWsh (ORCPT ); Wed, 26 Oct 2022 18:48:37 -0400 Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4F267193E2; Wed, 26 Oct 2022 15:48:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1666824517; x=1698360517; h=message-id:subject:from:to:cc:date:in-reply-to: references:mime-version:content-transfer-encoding; bh=IjLRYN8mTWR5u8at5ErLhw4tGxntLfjvcJ1Tgvk5bBI=; b=Yr92t2uHunSuMuoGnwdxINpfgdYbyytNGEVuxEKq0nJ/dzVWbVjetZyr IUfx2amyYJLzUXGXftrJ1w7jm//7bqt/TOZxQyAN1nTHW5jIkErQfGNsP Ja00uXvMJtU1Un+5w4l7bGzC5kLjbQAf0DtS3XkYQp3Ck7sGBehPNHZwo z+kHE49GUD3JnXcAV5JMunOB+Twq1O0bKfZsoKLXj/IG1iMLBjl70D+JE 7w8ytC2qwEaars0BbZrp+X4fvS3kl/Yf48eQQlMmksxhlQIVI0L7W9gyR DQbZeIm0TGERnjKeHo56vaDh0QOlaMPgNW7a53f+SLqrW/5Pf8ojAe4Tm A==; X-IronPort-AV: E=McAfee;i="6500,9779,10512"; a="295487043" X-IronPort-AV: E=Sophos;i="5.95,215,1661842800"; d="scan'208";a="295487043" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Oct 2022 15:48:36 -0700 X-IronPort-AV: E=McAfee;i="6500,9779,10512"; a="877360641" X-IronPort-AV: E=Sophos;i="5.95,215,1661842800"; d="scan'208";a="877360641" Received: from irebhi-mobl.ger.corp.intel.com (HELO spandruv-desk1.amr.corp.intel.com) ([10.209.44.122]) by fmsmga006-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Oct 2022 15:48:36 -0700 Message-ID: <180b1a4fb9cf78c8905f275e0373e009224d4639.camel@linux.intel.com> Subject: Re: BUG: bisected: thermald regression (MEMLEAK) in commit c7ff29763989bd09c433f73fae3c1e1c15d9cda4 From: srinivas pandruvada To: Mirsad Goran Todorovac , LKML , rjw@rjwysocki.net Cc: regressions@lists.linux.dev, regressions@leemhuis.info, "linux-acpi@vger.kernel.org" , Robert Moore , devel@acpica.org Date: Wed, 26 Oct 2022 15:48:35 -0700 In-Reply-To: <6c2f47c8-d6b5-074a-4c8f-e9cd04f62ef4@alu.unizg.hr> References: <9ef3674afd370050b86a68e44c97e4f0257f1adf.camel@linux.intel.com> <6c2f47c8-d6b5-074a-4c8f-e9cd04f62ef4@alu.unizg.hr> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.42.4 (3.42.4-2.fc35) MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, URIBL_BLOCKED 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 On Wed, 2022-10-26 at 19:52 +0200, Mirsad Goran Todorovac wrote: > Dear all, > > On 24. 10. 2022. 20:56, Mirsad Goran Todorovac wrote: > > On 24. 10. 2022. 20:39, srinivas pandruvada wrote: > > > > > > Thank you for the patch. Unfortunately, when applied to v6.0.3 > > > > it > > > > didn't > > > > fix the issue. > > > Thanks for the test. I copied to acpi and acpica mailing list. > > > Someone > > > can tell us what is this call doing wrong here. > > I have worse news: after every > > # systemctl stop thermald > # systemctl start thermald > > the number of leaks increases by one allocated block (apparently 80 > bytes). The effect appears to be > cummulative. > > Please find the results of the MEMLEAK scan in the attachment. > > In theory, motivated adversary could theoretically exhaust  i.e. 8 > GiB > in a loop of 10 million thermald stops/starts, Of course it needs to be debugged. To start/stop systemctl service you need root access. If you have root access, there are other worse things can be done. Thanks, Srinivas > on my laptop and 2 sec for stop+start, it would be approx. 230 days. > > Hope this helps. > > Mirsad > > -- > > Mirsad Goran Todorovac > Sistem inženjer > Grafički fakultet | Akademija likovnih umjetnosti > Sveučilište u Zagrebu