Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp81198pxy; Wed, 21 Apr 2021 19:14:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJycSTPx9s7ClSqGDEPm0W67PnjP3ghZ+7/QjVFAYZyL56lOu1lTqkcMxK522jqRt/OjoXKw X-Received: by 2002:a17:90a:20b:: with SMTP id c11mr1306667pjc.183.1619057670548; Wed, 21 Apr 2021 19:14:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619057670; cv=none; d=google.com; s=arc-20160816; b=LCrC6esdsqVA+IgtoF7obhNiP7ct8OtD4oII9r+jn0hztsjVE7iHNOH4VBkkha4BZ8 1ViDfCO34fVREvc0g4SB3DYDXpk9kJxvgf3BpQc2tDwVCNHKlhhXWiw7onspJ/LdRjYk Ay7/kwDUMVaz/20P5MGPgG86oVNz5EMH4qOdEyUac9X/Ywq5x5qwqSGrV7koHksvzxp8 8QBVNemMLkLoRHYFnmtiyW4ckQjKO3KXukbRLndyQWZtQQrigAHqLevMhL2Ivpudq3wA 5KlxN6dvPr2SRwQ17Q8qwZShsQZrgDRBUmkR8EGDjFVRLkMKRgatiuwPqj7vW2/cfPx7 LWNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=BmUNqmeunH7z8Q3MTpTfuMPNIrPVTDPkeHFwdnJtOVU=; b=stCtn35/FshkVYgvIRqXidLdHkKbPSAtlgL/4sZPK8DEqvi1OHbHwHj55zgIWEvYk6 TqKS+aXYvKhgQN/35qkZVXnDnO/z64mlTnOCXHmxacSGjq3jagOLkWyTIp5Z6WdpHDMG KG1qDpnhV/MIevIQoMpaBofZtkcymDhvze4yvlyPFizCPqN/DP30QyFmXn0dmwvre3pt W2TBk4jKdpGYKawDV7k4VTP3DUey2prA36/ZG6l3FSIgAG1vCFUisS2f4BRgfkmdB6FH bg7n4soQCvl3dOnfr8rzh3uSZT0m4NlKuf8toV/BommkPkr/gF+VsOAX8fo2eAsbC6vy hS6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=MdqXnfph; 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 t12si1465743plg.195.2021.04.21.19.14.18; Wed, 21 Apr 2021 19:14:30 -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=MdqXnfph; 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 S234209AbhDVCOS (ORCPT + 99 others); Wed, 21 Apr 2021 22:14:18 -0400 Received: from mail.kernel.org ([198.145.29.99]:45468 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231958AbhDVCOQ (ORCPT ); Wed, 21 Apr 2021 22:14:16 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 82406613A9 for ; Thu, 22 Apr 2021 02:13:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1619057622; bh=Yw7K9IjVKeA1ve5XeFqKI9e8FmeRsydmEaXBh4ITgOE=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=MdqXnfphixpyQ3qeRIwYn7HO4Mf4dPu26iLeck6sChFNz9Bw/LrvnJMUfbkt0+y1f TC9AiGYqq3zhyMT+os6NEe+NH8ZKwXHaSimWqJQZKc4YwKWO8z7BU7zX1JoogJzupl s9qSpOOmxMGuBIU1S3mwadUjVjvyEbouvowgrD3r1NrHTOvPJvCOtuz3qEOjeJkFCw KIuLpH9aRd4zq34p3dB2OWy5siVK8q2mHHvSWCMnG8nAGQ5ygezEwP02a8bA6/FVEv 55+8aZYSIPb2DMqTmELscSMO+S5a1TZIt2jzgHwNQ2L78TlL94J1gBjZx+Xb8v9zK6 CRg2xNnrQAn9Q== Received: by mail-ed1-f46.google.com with SMTP id bx20so50441967edb.12 for ; Wed, 21 Apr 2021 19:13:42 -0700 (PDT) X-Gm-Message-State: AOAM532mzKKuFpA5llTJbsg7ukGcWr4H1FQWHECfD3aqpKazut5K9TGg akxnw5/OUYy9Cdes1uFsRwL0TQR9R3Kl+HzDow== X-Received: by 2002:a05:6402:34c8:: with SMTP id w8mr1030755edc.194.1619057620994; Wed, 21 Apr 2021 19:13:40 -0700 (PDT) MIME-Version: 1.0 References: <20210421130105.1226686-1-gregkh@linuxfoundation.org> <20210421130105.1226686-98-gregkh@linuxfoundation.org> In-Reply-To: <20210421130105.1226686-98-gregkh@linuxfoundation.org> From: Rob Herring Date: Wed, 21 Apr 2021 21:13:29 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 097/190] Revert "video: imsttfb: fix potential NULL pointer dereferences" To: Greg Kroah-Hartman Cc: "linux-kernel@vger.kernel.org" , Kangjie Lu , Aditya Pakki , Finn Thain , Bartlomiej Zolnierkiewicz Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 21, 2021 at 8:05 AM Greg Kroah-Hartman wrote: > > This reverts commit 1d84353d205a953e2381044953b7fa31c8c9702d. > > 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: Kangjie Lu > Cc: Aditya Pakki > Cc: Finn Thain > Cc: Rob Herring Sigh, get_maintainers.pl likes to punish people for treewide clean-ups... > Cc: Greg Kroah-Hartman > Cc: Bartlomiej Zolnierkiewicz > Signed-off-by: Greg Kroah-Hartman > --- > drivers/video/fbdev/imsttfb.c | 5 ----- > 1 file changed, 5 deletions(-) > > diff --git a/drivers/video/fbdev/imsttfb.c b/drivers/video/fbdev/imsttfb.c > index 3ac053b88495..e04411701ec8 100644 > --- a/drivers/video/fbdev/imsttfb.c > +++ b/drivers/video/fbdev/imsttfb.c > @@ -1512,11 +1512,6 @@ static int imsttfb_probe(struct pci_dev *pdev, const struct pci_device_id *ent) > info->fix.smem_start = addr; > info->screen_base = (__u8 *)ioremap(addr, par->ramdac == IBM ? > 0x400000 : 0x800000); > - if (!info->screen_base) { > - release_mem_region(addr, size); > - framebuffer_release(info); > - return -ENOMEM; > - } The original change appears to be valid, but incomplete... > info->fix.mmio_start = addr + 0x800000; > par->dc_regs = ioremap(addr + 0x800000, 0x1000); ...because what about cleanup when this ioremap fails. > par->cmap_regs_phys = addr + 0x840000; Then again, if anyone really cared about this driver and h/w (a PowerMac era PCI display card), it would not still be using fbdev and would use devm_* apis. Rob