Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp490366pxy; Wed, 21 Apr 2021 07:49:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwkJ5Zw544P2GDhadkhQEEWi7Uuj4P5obo0eA9wZTxuuSEDT+8QKtEWvZYEhAjLco3Y5EJK X-Received: by 2002:a17:906:fcc4:: with SMTP id qx4mr32435151ejb.42.1619016573484; Wed, 21 Apr 2021 07:49:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619016573; cv=none; d=google.com; s=arc-20160816; b=tOgiYfzfQjqwj178u7DnOj25jZSngU3NilsPdCesvhw6ZIS907aHq4V2ZNDIK5b90Y BThm+zK0m0pewscDzQUuW2UzqFw5iiPC2TdPtpK9eRntGcyh7FRAsQnt0FZOf2NMR2XK RKCB+WujeDreJ/qclVHvEPr5wCVoazY6GRR/vSbzCBb9Btp3xaWMxckC9WmLgi3LL1va X+sFMztKCKuPOYB8JagCALyzMCgEgSQgt4Nol5Jc5ytnZ4yuncc7nhgFQnBfpcnUEr57 dWMibQt0yvUFhyLLcTGZY/tt2n/+vz0QBNmS2RRE5IB246AQlEeDvvXbjbMaSa4sMG8x y1zA== 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:date:subject:cc:to:from :dkim-signature; bh=4KJ8P5V3MHMobL49TWl9z1eua7nOVfohNtDVZw2ATU8=; b=QKnnk6ASfZUuoJ40T6z7AQRNuP0tDQaPefwNAnmxFnIWhqrMizFAt5jhjyioLZIhf3 3MraolXYcvownvvzMLNK/XP+fm58EdxUy441aMWxTIfnbkbTNquhT8atCWRRd81tXqRo UfrjAtJXwif7vp1xMC36reSukMMUJEA/6Q9VJIMu3zpYgr2BG+s7oVN+QoI5/8KaikRF tShwpn+sR7Wqkh2A7dTXpvs2teKhAjs9Fg+q5/NysiZW9AHgxT5rmIM13VkxInOJ288J SDFxO8C+gEPyUIiXGDB21mmcn1CUejy9nZ9/VnbzAJGrM6u40Haw8Te7Zygz4aoHCuZN FtUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=zvGzYzLE; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a4si1942106ejs.331.2021.04.21.07.49.07; Wed, 21 Apr 2021 07:49:33 -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=@linuxfoundation.org header.s=korg header.b=zvGzYzLE; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240230AbhDUNCt (ORCPT + 99 others); Wed, 21 Apr 2021 09:02:49 -0400 Received: from mail.kernel.org ([198.145.29.99]:42048 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240223AbhDUNCm (ORCPT ); Wed, 21 Apr 2021 09:02:42 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id C804161454; Wed, 21 Apr 2021 13:02:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1619010129; bh=rGCAxYqn74DQeaaL7lVQJ6ywr1XrHm1+ENyR03tjiGE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=zvGzYzLEfdJdz/JGxxXUgPZ3UkKDnHSAQ6Dr02tlLS1uFgFu/80ply9PcLWs6hyAs ekqI5Gq8abqQzimmaz2QS6Zr4FCrFEtBnemuD/e+JSCwxwE6uW1Dc+Ehd9l+TJrM4r LVUHP1JR5no0ppFfK1YeMHd/IlQ/EUUd0u+4gutg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , Evan Quan , Aditya Pakki , Alex Deucher Subject: [PATCH 022/190] Revert "drm/radeon: Fix reference count leaks caused by pm_runtime_get_sync" Date: Wed, 21 Apr 2021 14:58:17 +0200 Message-Id: <20210421130105.1226686-23-gregkh@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210421130105.1226686-1-gregkh@linuxfoundation.org> References: <20210421130105.1226686-1-gregkh@linuxfoundation.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This reverts commit 9fb10671011143d15b6b40d6d5fa9c52c57e9d63. 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: Evan Quan Cc: Aditya Pakki Cc: Alex Deucher Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/radeon/radeon_display.c | 4 +--- drivers/gpu/drm/radeon/radeon_drv.c | 4 +--- drivers/gpu/drm/radeon/radeon_kms.c | 4 +--- 3 files changed, 3 insertions(+), 9 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon_display.c b/drivers/gpu/drm/radeon/radeon_display.c index 652af7a134bd..9f29ba6c2bed 100644 --- a/drivers/gpu/drm/radeon/radeon_display.c +++ b/drivers/gpu/drm/radeon/radeon_display.c @@ -627,10 +627,8 @@ radeon_crtc_set_config(struct drm_mode_set *set, dev = set->crtc->dev; ret = pm_runtime_get_sync(dev->dev); - if (ret < 0) { - pm_runtime_put_autosuspend(dev->dev); + if (ret < 0) return ret; - } ret = drm_crtc_helper_set_config(set, ctx); diff --git a/drivers/gpu/drm/radeon/radeon_drv.c b/drivers/gpu/drm/radeon/radeon_drv.c index efeb115ae70e..468b364c2dab 100644 --- a/drivers/gpu/drm/radeon/radeon_drv.c +++ b/drivers/gpu/drm/radeon/radeon_drv.c @@ -513,10 +513,8 @@ long radeon_drm_ioctl(struct file *filp, long ret; dev = file_priv->minor->dev; ret = pm_runtime_get_sync(dev->dev); - if (ret < 0) { - pm_runtime_put_autosuspend(dev->dev); + if (ret < 0) return ret; - } ret = drm_ioctl(filp, cmd, arg); diff --git a/drivers/gpu/drm/radeon/radeon_kms.c b/drivers/gpu/drm/radeon/radeon_kms.c index 2479d6ab7a36..df644bb68c0f 100644 --- a/drivers/gpu/drm/radeon/radeon_kms.c +++ b/drivers/gpu/drm/radeon/radeon_kms.c @@ -644,10 +644,8 @@ int radeon_driver_open_kms(struct drm_device *dev, struct drm_file *file_priv) file_priv->driver_priv = NULL; r = pm_runtime_get_sync(dev->dev); - if (r < 0) { - pm_runtime_put_autosuspend(dev->dev); + if (r < 0) return r; - } /* new gpu have virtual address space support */ if (rdev->family >= CHIP_CAYMAN) { -- 2.31.1