Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp1156030pxy; Fri, 23 Apr 2021 01:18:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz9sF064Lm44oUG9/B2vUzyqDlINOASQYOutOpBU/Rhde5sIiopnpq6k3IMOBxT3fZUTRD6 X-Received: by 2002:a17:902:d305:b029:ea:db56:e7d with SMTP id b5-20020a170902d305b02900eadb560e7dmr2934628plc.66.1619165919959; Fri, 23 Apr 2021 01:18:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619165919; cv=none; d=google.com; s=arc-20160816; b=ZO3/Uww5vMSPhKq8/mmtkvFAfrVKOtPYUq1Ka7RNE1q2qK/lCxBS2GmNETOu3knmGL 1ZAWjPOXAcBZBvoNCAdzQvKpAbEx1w60WpZ7WsHNNCxLLy2U7p/sNKBrB3kf5BrL2L1h zLMzAIJFK8La+x4zdESpE8soIKw9h+LdqSq/iKaXfQhOo9eytdgGdAjR958+dZoAEksa HLCZWYSKe8azC/ECfhbjRVRMqA0OmOHPxMAoTsIeDtZSKu/K7MqqxoOIxbJmjhrXyfeb cXgE2Gz4Lb5mUEsnnakDTDKqgwep0YNb/nJoqS0imtutl8qZuKSDu8JcuZ+PlaQ2WnQ/ S81g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=Dfitj2t8+UF1lzcZUDbgPADbt6NqjwZhyEWRJUlw7GU=; b=CqbhDD6T2ZOXnYsLOaOatRGRI8J8QM6FJEz+9QR+v+MWpgFJClKDxaHTyaTCy9xw+a s8g4sB/db3AuMBwjvXPjeawmc+kmR2A5LzrDFnv3kgW//iP9AonnZbgVH69Z4u173ejZ DK5N7giInJ2t/M8nOJNAuFpnKg8oWwSs1UOgieOUSiYwgCb+QMEDkk8TvspNgf9tSJxZ 8agZbG0BfM+uUoNBLGdgVjh/wITIRlGE6d2/+e5T8L7um7wp++Pmio4fImrqC4XJ+e/e +jLQIybv5B8ifGlBbrUe10ahU5jRM9PEDOkGd2HcWvj5s6YWhhgUa1bgSJZDM2w2Aclh wBgA== 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=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h1si5955260plb.375.2021.04.23.01.18.26; Fri, 23 Apr 2021 01:18:39 -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=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241336AbhDWISb (ORCPT + 99 others); Fri, 23 Apr 2021 04:18:31 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:38480 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229456AbhDWISb (ORCPT ); Fri, 23 Apr 2021 04:18:31 -0400 Received: from mail-wr1-f72.google.com ([209.85.221.72]) by youngberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1lZr0c-0008WM-AS for linux-kernel@vger.kernel.org; Fri, 23 Apr 2021 08:17:54 +0000 Received: by mail-wr1-f72.google.com with SMTP id t18-20020adfdc120000b02900ffe4432d8bso14831991wri.6 for ; Fri, 23 Apr 2021 01:17:54 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=Dfitj2t8+UF1lzcZUDbgPADbt6NqjwZhyEWRJUlw7GU=; b=YGeXqfDc0B3pPHGCflnenemgJrUtMSo3eFhxnM/3ZGd3r288W73HTC6wUayeCLO0kN yZ+WQ0CHyWCNOcFC1C/XlmYhAELUIUKRduacamLGy4/xCCHyGRtIs090Vzt8xQOGeKhR dxuv4QyknExqBcxAowvDQ/CUuaXw91CLlAxGURBIN7LaUM/PoBPKrVCjHQ+ZPs1hTXUQ cKiQ4Okc3YFOyVMMTRG5Qaksvfqp2xu5AZGJ5kjxQ/4pMUaaUkvXVxiRM+2/D0q5k/NR GkPBbf9oJaMN0m6PsPWxMoGoBkmDALnJXA4ITX9a8z4GgBoZSGoIefQLE+DB0y2et71Q UnWg== X-Gm-Message-State: AOAM531djNvC25HJExG0gIqSAMnAAB3889QVimiafBbrcu9khgN/aaiu Rj/Mb1U5Gx1H2KD4YH7fawfyR45ivjEC/GLg43tVNr15DUxdaepZYfrv3WlavzId2qGyPDhWE95 dUNn90sS9cyrODRmaI/G1rWp+8uU+NVmnzyUDaEcZVQ== X-Received: by 2002:a5d:47c1:: with SMTP id o1mr3108774wrc.216.1619165872754; Fri, 23 Apr 2021 01:17:52 -0700 (PDT) X-Received: by 2002:a5d:47c1:: with SMTP id o1mr3108760wrc.216.1619165872623; Fri, 23 Apr 2021 01:17:52 -0700 (PDT) Received: from [192.168.1.115] (xdsl-188-155-180-75.adslplus.ch. [188.155.180.75]) by smtp.gmail.com with ESMTPSA id a142sm10217492wmd.7.2021.04.23.01.17.51 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 23 Apr 2021 01:17:51 -0700 (PDT) Subject: Re: [PATCH 009/190] Revert "media: s5p-mfc: Fix a reference count leak" To: Hans Verkuil , Mauro Carvalho Chehab , Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org, Qiushi Wu , Julia Lawall References: <20210421130105.1226686-1-gregkh@linuxfoundation.org> <20210421130105.1226686-10-gregkh@linuxfoundation.org> <20210423100727.5a999c2e@coco.lan> <02966f20-342d-cf21-8216-d364b67753b7@xs4all.nl> From: Krzysztof Kozlowski Message-ID: Date: Fri, 23 Apr 2021 10:17:51 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 MIME-Version: 1.0 In-Reply-To: <02966f20-342d-cf21-8216-d364b67753b7@xs4all.nl> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 23/04/2021 10:10, Hans Verkuil wrote: > On 23/04/2021 10:07, Mauro Carvalho Chehab wrote: >> 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; > > That's my preference as well. It won't be that easy because sometimes the error handling is via goto (like in other patches here) but anyway I don't mind keeping the original commits. Best regards, Krzysztof