Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp4692965pxy; Tue, 27 Apr 2021 10:26:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzKiPuBGeHfKzKN6EQ4qqJl7gYDzOYYWSxXES2n3zKsjKOxOgxGFfsq1bkpYxuufjrCNGgA X-Received: by 2002:a50:bb27:: with SMTP id y36mr5829093ede.365.1619544377934; Tue, 27 Apr 2021 10:26:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619544377; cv=none; d=google.com; s=arc-20160816; b=d9W7ZulR7iYGHX3Av4KrGSzSyjbnMpSktQqw+u7jLImpCmhe26grmZhDGD8J5lHTw9 8QOQfiyNV+k0jcnaxEmrrFcG/qHqLnJFWsXuPpZhqFaKYbX9VLynGqB6/gValKJM0fjl WvaxyKHN6pxTtyXUFg1UCuRgjdy7T0Y9JgOJ1jtcZROuFuYNjoa27Wc6iO+wDITO0aXF 4WmkIBDAhmE0dth6rLsJ8Wk5I8EMVWjB/xOI7ngsj2MsxtYJPXLWfRmELDKHbGdZy/Po eVaD/vvWhG9kkLEXb/Jp6EdoR9OTDxAS2R/TbVSG5B1id2wa5CBzERIBA4M2bUBkaRzF jyZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=9oM81PTiaZjvId1qb2jMDZt6UgmtqJTbm9oFOBqLeCA=; b=t/CL3O20pl+nZ/Px2YGwGR60k0IfwO+ZCdip0VGSV8YhCX7oDGyy1Zzvi3dgFSqCxj 1RpyndDJHPHTHixTr0DBSXPdjqoMoHD9IkOVQhgkRctBXJYbzc5RVqaLD6r4mNnogd9O NUd24mKKcg1qWHRW+cIO9eDzRVh7OeMZngY4jVABdfmqqTXTK42HIil2uqV6p069v8C4 cm9vJlU9+Hi02Svf6dAv35kaNrrH4t+ccuFQHt5JLNU+jq7dr0Zqb14Qapx+PEHcv68s Ke7rmodWCGiLNXcgynaQmxY9KfMT7eniG5r1b5Br1m417ILL1xOwBSykN9chjVzEyUQk 0NVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=qkWfdAB7; 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 v26si484277eje.15.2021.04.27.10.25.53; Tue, 27 Apr 2021 10:26:17 -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=qkWfdAB7; 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 S236733AbhD0RZY (ORCPT + 99 others); Tue, 27 Apr 2021 13:25:24 -0400 Received: from mail.kernel.org ([198.145.29.99]:37624 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236728AbhD0RZX (ORCPT ); Tue, 27 Apr 2021 13:25:23 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id C5A1A60FF3; Tue, 27 Apr 2021 17:24:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1619544280; bh=XZvAca+3tOcQ7MJTU5Rtnwu/YpdSrqu3YqRowaVSs4w=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=qkWfdAB77wH/VUSY8MNPu1T2HhPt4edDkCgBXqX0NXSVNlT32HlvEg1XaDcagOwbn VNJ8PivWsTVmBj+92dKFN8TsEASKB17r3PrBHDi8sBUScMhFd0I4mr+xHZMYNaIgsh xhUr4xnIF3A+6Acp4UHRFK8QOZ/AYiOQMMoOByiE= Date: Tue, 27 Apr 2021 19:24:38 +0200 From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Qiushi Wu , Chris Wilson Subject: Re: [PATCH 049/190] Revert "agp/intel: Fix a memory leak on module initialisation failure" Message-ID: References: <20210421130105.1226686-1-gregkh@linuxfoundation.org> <20210421130105.1226686-50-gregkh@linuxfoundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210421130105.1226686-50-gregkh@linuxfoundation.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 21, 2021 at 02:58:44PM +0200, Greg Kroah-Hartman wrote: > This reverts commit b975abbd382fe442713a4c233549abb90e57c22b. > > 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: Chris Wilson > Cc: Chris Wilson > Cc: https > Signed-off-by: Greg Kroah-Hartman > --- > drivers/char/agp/intel-gtt.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > > diff --git a/drivers/char/agp/intel-gtt.c b/drivers/char/agp/intel-gtt.c > index 5bfdf222d5f9..4b34a5195c65 100644 > --- a/drivers/char/agp/intel-gtt.c > +++ b/drivers/char/agp/intel-gtt.c > @@ -304,10 +304,8 @@ static int intel_gtt_setup_scratch_page(void) > if (intel_private.needs_dmar) { > dma_addr = pci_map_page(intel_private.pcidev, page, 0, > PAGE_SIZE, PCI_DMA_BIDIRECTIONAL); > - if (pci_dma_mapping_error(intel_private.pcidev, dma_addr)) { > - __free_page(page); > + if (pci_dma_mapping_error(intel_private.pcidev, dma_addr)) > return -EINVAL; > - } > > intel_private.scratch_page_dma = dma_addr; > } else > -- > 2.31.1 > Original looks correct, I'll drop this revert. greg k-h