Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp1149804pxy; Fri, 23 Apr 2021 01:08:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzXi8tR0mvUlocmAcCcnDdWhwp6DkHoGkxOXU/zgHd/Zg/BiXhuuzHCiIeLkE/ay8fixIYz X-Received: by 2002:a17:90b:3b43:: with SMTP id ot3mr3030817pjb.100.1619165300570; Fri, 23 Apr 2021 01:08:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619165300; cv=none; d=google.com; s=arc-20160816; b=fhqoTvb3MLC6EGh3ZXUY5FIj5H2jtbPbEyism+JgtZiM4c1E4qP8kDKf/L8Qn8qELQ LfY8j2l5kJ8p1WHJ+AGWhOQmoNgBR1XnfDhBV6NZ/ZaCwMheW+PxYf999ALvKeElSZXi 6yFd5HS4xyNnS6mfTeQTDQSYZ829VMeJXn1lmK03XMMZwkyY1i2ltssfX37WojEnoREj zIo4JKH4VGF+XvLlnkY4SuKbCNqMvHwYJhDwA5D3dwfy9S0svXTRwhjLRxFlSz+utSOf jo+Cm+HRjLOfsI2zZ0pmS2uU5heL7fWKDRul7FDrkC6MQbdeCllThEyc5dg9/CFK8egA IJ7Q== 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 :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=oPl9gp+iU7IPF75m11xc6YEAHVf44T70nq8C4qntA4c=; b=F1In2QoYSJkFQd0nURCSRXMRq4v6Oy4b/Qeidrvm08pFp0A+TYmak6S+6IULEWHWgB e8gtMj9obHuBN1j0ueplNk3I5XuKv8tPb2m5qyrDUZrpj2MiwVxQPa7Ly9d2eW1dcPdX 6Ad47Q3hQNGPMHhJ3mY8+N8UH75tw+fIIMN11I8ozq3DtyHYRNo2H/Z8DXsfOls3EJfv KDIdA5WBVXrV0Lm6hA48mFC2V3OsmRLYcV2QY9RJARi3Pttce4EFNkDpSYdwt3Bl0Bdp y10EZBXUlzwEcy2TchFD3DE7iKYkibLKBbAXLz3zeyueElqCBDt69Y1CoNaxIcP8Rhhx RGNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=I9jltyfO; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d1si6385659pgp.116.2021.04.23.01.08.08; Fri, 23 Apr 2021 01:08: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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=I9jltyfO; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230191AbhDWIII (ORCPT + 99 others); Fri, 23 Apr 2021 04:08:08 -0400 Received: from mail.kernel.org ([198.145.29.99]:37570 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229456AbhDWIII (ORCPT ); Fri, 23 Apr 2021 04:08:08 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 8587861181; Fri, 23 Apr 2021 08:07:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1619165251; bh=QsQ6QByKptioVTBH6dl5wYjK2s7eCxSiGywW5tPyYDs=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=I9jltyfOV2tU0otWkTme/shksL4s9/m+dZh+cWNR9DF80zFVXlvvDogj3YKnv959H gPv96LEwqGqMOp1YhNl/504M5XfUttGb9rfkpPbMvypQ6jVRA59S+ISWiQU9c+dy3j P8/g+WDUfRtPhYQxpoJqkAK/S40X+MG29fp6ifuVXcHPakqQRZSy9D1SJSi48zTFtF WLbE97VAO310J9wPCTbcrJrIC541Q9MloP1igIy7Kg5rZrAJ2giK6+TpK3ZgPvvYVV 9nFSM56fetqbaWquKUyKTIKSzaZBBW1BaZNs9Xqsqq91iSA3kUTwKFGLsa/Vz468ib fhbiv9VnPxk8g== Date: Fri, 23 Apr 2021 10:07:27 +0200 From: Mauro Carvalho Chehab To: Greg Kroah-Hartman Cc: Krzysztof Kozlowski , linux-kernel@vger.kernel.org, Qiushi Wu , Hans Verkuil , Julia Lawall Subject: Re: [PATCH 009/190] Revert "media: s5p-mfc: Fix a reference count leak" Message-ID: <20210423100727.5a999c2e@coco.lan> In-Reply-To: References: <20210421130105.1226686-1-gregkh@linuxfoundation.org> <20210421130105.1226686-10-gregkh@linuxfoundation.org> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Fri, 23 Apr 2021 09:10:32 +0200 Greg Kroah-Hartman escreveu: > On Fri, Apr 23, 2021 at 09:04:27AM +0200, Krzysztof Kozlowski wrote: > > On 21/04/2021 14:58, Greg Kroah-Hartman wrote: > > > This reverts commit 78741ce98c2e36188e2343434406b0e0bc50b0e7. > > > > > > 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: Hans Verkuil > > > Cc: Mauro Carvalho Chehab > > > Signed-off-by: Greg Kroah-Hartman > > > --- > > > drivers/media/platform/s5p-mfc/s5p_mfc_pm.c | 4 +--- > > > 1 file changed, 1 insertion(+), 3 deletions(-) > > > > > > > This looks like a good commit but should be done now in a different way > > - using pm_runtime_resume_and_get(). Therefore I am fine with revert > > and I can submit later better fix. > > Great, thanks for letting me know, I can have someone work on the > "better fix" at the same time. IMO, it is better to keep the fix. I mean, there's no reason to revert a fix that it is known to be good. The "better fix" patch can be produced anytime. A simple coccinelle ruleset can replace patterns like: ret = pm_runtime_get_sync(pm->device); if (ret < 0) { pm_runtime_put_noidle(pm->device); return ret; } and the broken pattern: ret = pm_runtime_get_sync(pm->device); if (ret < 0) return ret; to: ret = pm_runtime_resume_and_get(pm->device); if (ret < 0) return ret; Regards, Mauro