Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp52854pxy; Wed, 21 Apr 2021 18:15:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzYmcBAFPggSw/NwZu6Y0jSxAYWDqnWfDoIRvwqVF5PKY44Gbff7J4FN9nXtcC9nwenWxEE X-Received: by 2002:a17:90b:3796:: with SMTP id mz22mr8153593pjb.80.1619054120293; Wed, 21 Apr 2021 18:15:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619054120; cv=none; d=google.com; s=arc-20160816; b=NUI8RkXsYZJWewW3sr6dwNadag3uYBj6iCodatEvmCEP5W0IIUdHxZ9CELyRoCdItF CRwEuAyF0SzOuzj58dD+vo0C8vbD/9NjriEKGRMnAAg0cNhm+1H1dEay9j6TUuYUG2uS z82SZ7W3OvvEiywZRnrps/JjE5eAGoc4tvkO/eRariXdnVoTKhIxqSUEWds4tkK2r3Uj AyDxIJpPYqhJcGRTQh10dRaafTjef3OddBgVGCg8aXTun2bBdbVq4OQ0TI9rPiRdvRxo Qn0s1nSkm5dcy9Zk8GDlWFy7Sevp2RFBy4zyqiyJEwWmvpWZ8SkQjgN/YjSk+RkMZObB QjLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:organization :from:references:cc:to:subject:ironport-sdr:ironport-sdr; bh=n+w+f3IFkNUDOM2Zr0JDZotTKSWUfOFSmTb1fGTUUMU=; b=l2TF5T6k3QhaAX3Uy/WSYc7OnaK6c5zPhtOK6cDoBoNRJPRFvhzHyVbFxbPygT2+s4 zr+RjBhmzwvzu0yhsgZiDyzJVpIaofx5sHrFYjsJlQIDnxkzjC++mjJRKAlQ4Vqa02o/ JexrgRKsKsBQumwhNevwP6MKKrTO3GLGfdCG+wEop52u54a+HwWILDcH2A9MspRjawSy 7upF401VGMPjTQ1U3mJB1HDzYWO5jVzRlvWWFwygr41dUfKisEoYyKt+lYtcxgTEeBU7 OC9K677GxlVFxUEqCv4AyTZhXwAM1mqs5DGkyN5nB/dhhtk0f+iF291PdBE7CXxKONQM ZOzA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t129si1155422pfb.112.2021.04.21.18.15.08; Wed, 21 Apr 2021 18:15:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243449AbhDURyZ (ORCPT + 99 others); Wed, 21 Apr 2021 13:54:25 -0400 Received: from mga14.intel.com ([192.55.52.115]:48932 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243375AbhDURyX (ORCPT ); Wed, 21 Apr 2021 13:54:23 -0400 IronPort-SDR: /VL4ZreGaq6NI8kUJ8vgtQrN+cZJ7hf08CRxYeKReBfxL4ZQX9VrcNc7+cVBgzEBV6cjzEfZFS w8vol+H6NhQQ== X-IronPort-AV: E=McAfee;i="6200,9189,9961"; a="195301534" X-IronPort-AV: E=Sophos;i="5.82,240,1613462400"; d="scan'208";a="195301534" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Apr 2021 10:53:50 -0700 IronPort-SDR: RIZb0MRHyztcffxl5iuuncej8/aH9ccGhf462926I1z18DfGJgyipFc05YsTshajOraCiHkp8p c8B9HWXwNp7w== X-IronPort-AV: E=Sophos;i="5.82,240,1613462400"; d="scan'208";a="427609582" Received: from rjwysock-mobl1.ger.corp.intel.com (HELO [10.249.153.90]) ([10.249.153.90]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Apr 2021 10:53:49 -0700 Subject: Re: [PATCH 038/190] Revert "cpuidle: Fix three reference count leaks" To: Greg Kroah-Hartman , linux-kernel@vger.kernel.org Cc: Qiushi Wu References: <20210421130105.1226686-1-gregkh@linuxfoundation.org> <20210421130105.1226686-39-gregkh@linuxfoundation.org> From: "Rafael J. Wysocki" Organization: Intel Technology Poland Sp. z o. o., KRS 101882, ul. Slowackiego 173, 80-298 Gdansk Message-ID: <6fc7a639-f97f-923e-04e7-6402b4e6ef7f@intel.com> Date: Wed, 21 Apr 2021 19:53:46 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.9.1 MIME-Version: 1.0 In-Reply-To: <20210421130105.1226686-39-gregkh@linuxfoundation.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 4/21/2021 2:58 PM, Greg Kroah-Hartman wrote: > This reverts commit c343bf1ba5efcbf2266a1fe3baefec9cc82f867f. > > Commits from @umn.edu addresses have been found to be submitted in "bad > faith" to try to test the kernel community's ability to review "known > malicious" changes. The result of these submissions can be found in a > paper published at the 42nd IEEE Symposium on Security and Privacy > entitled, "Open Source Insecurity: Stealthily Introducing > Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University > of Minnesota) and Kangjie Lu (University of Minnesota). > > Because of this, all submissions from this group must be reverted from > the kernel tree and will need to be re-reviewed again to determine if > they actually are a valid fix. Until that work is complete, remove this > change to ensure that no problems are being introduced into the > codebase. > > Cc: Qiushi Wu > Cc: Rafael J. Wysocki > Signed-off-by: Greg Kroah-Hartman Acked-by: Rafael J. Wysocki > --- > drivers/cpuidle/sysfs.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/drivers/cpuidle/sysfs.c b/drivers/cpuidle/sysfs.c > index 53ec9585ccd4..23a219cedbdb 100644 > --- a/drivers/cpuidle/sysfs.c > +++ b/drivers/cpuidle/sysfs.c > @@ -487,7 +487,7 @@ static int cpuidle_add_state_sysfs(struct cpuidle_device *device) > ret = kobject_init_and_add(&kobj->kobj, &ktype_state_cpuidle, > &kdev->kobj, "state%d", i); > if (ret) { > - kobject_put(&kobj->kobj); > + kfree(kobj); > goto error_state; > } > cpuidle_add_s2idle_attr_group(kobj); > @@ -618,7 +618,7 @@ static int cpuidle_add_driver_sysfs(struct cpuidle_device *dev) > ret = kobject_init_and_add(&kdrv->kobj, &ktype_driver_cpuidle, > &kdev->kobj, "driver"); > if (ret) { > - kobject_put(&kdrv->kobj); > + kfree(kdrv); > return ret; > } > > @@ -712,7 +712,7 @@ int cpuidle_add_sysfs(struct cpuidle_device *dev) > error = kobject_init_and_add(&kdev->kobj, &ktype_cpuidle, &cpu_dev->kobj, > "cpuidle"); > if (error) { > - kobject_put(&kdev->kobj); > + kfree(kdev); > return error; > } >