Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp1669463pxy; Fri, 23 Apr 2021 13:58:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx+E4s48XYCjOL9pENGafeHhyTJlkcOm/Esz83YZm7ZJL/joJgonf8apkwixdZOCG8Ol+4o X-Received: by 2002:a17:902:8b86:b029:e5:bef6:56b0 with SMTP id ay6-20020a1709028b86b02900e5bef656b0mr5781024plb.76.1619211519259; Fri, 23 Apr 2021 13:58:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619211519; cv=none; d=google.com; s=arc-20160816; b=ce7/wRzFDeE/+L/iR/thAXDyihBvz4Gfuy6cCvaSbK8KRvWfkmZPS2EWJy9CbWdf+6 kruqIMjGmG+gZZVyjfru2Q9630/zZhh09uwPlo2zJjeIrX6Mcur1DBcDVW5LF8Eh9X5x SeYxXBgkoi2JOamOjcMw2vplL7aZ7iJBa3F9c1WkWDQzlhkL9FXExmeUoSOEyhanN+Th KvzoTCM3uc9dy5csKwwXn6RWq0klAWp3IWIwo2Ph5CRF6Z5wmc+Q6S2RBcVY8gIJt6mr hr+Mh4yFEk89tcaxF9Pjv0deeoAHymPsA+Nwq6TPpeID3NJJlb5hPUFU5+sd1+6d+lp5 AOZQ== 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=4y3okfY6wUCp7pKHj4NWsPNZVXlR/XE5MPjlzqfTZc8=; b=p93+EGw0dhM00geayCQGUFv2U9yLv9rwwcFKIS0UM7ndrZ2tfq8sgRyBVCuFfmfXMp x1DP0StdTI7UfUaNWtmikCP3a0wnFkPlzjEKQUMCFzfLhjOzNxQl+8gipAWfHwKIxF/h +TVYMl0WlHajcLdpH5CDK2spbtQqdsScHYWyzy2SRWVFSoGzCoovHQwrmQQnE/OAlSwp pQVLhTsYz9q2h8RqMlWleFlgl8D05cKS3SxZAxb1pgAmtHMsKjeOFWR4qUzW1fPOP0kj px3GrnjRWljc9EB+RKr/43PdiZQ0+AcgFozGt4BijKcKuYYVwFaxu295JFoYTJ6Z0jyA gerQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=KufaQpmX; 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=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y24si4996150pgi.380.2021.04.23.13.58.26; Fri, 23 Apr 2021 13:58: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; dkim=pass header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=KufaQpmX; 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244029AbhDWU5w (ORCPT + 99 others); Fri, 23 Apr 2021 16:57:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43428 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244007AbhDWU5p (ORCPT ); Fri, 23 Apr 2021 16:57:45 -0400 Received: from mail-ed1-x52e.google.com (mail-ed1-x52e.google.com [IPv6:2a00:1450:4864:20::52e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C019EC061574 for ; Fri, 23 Apr 2021 13:57:07 -0700 (PDT) Received: by mail-ed1-x52e.google.com with SMTP id s15so58873911edd.4 for ; Fri, 23 Apr 2021 13:57:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=4y3okfY6wUCp7pKHj4NWsPNZVXlR/XE5MPjlzqfTZc8=; b=KufaQpmXgjyF9A7JgNYbtXQ+AA8Kqj4Sxh1WeOo4dGNBl+WC56fCxV5D+JBFSoR4w6 cL60TUxEaEkKShSjBY9fPxfjCicLsQBU3DE/uu0jQlVqItF9rda+/2ipU2EXzkKydKs4 C16A3/1svk2g4mLxp0ywlBqzXvFId3qlP/Rrlb6x8G+eVewfkV6ImVKusMu5tfMFSFWZ Uob1YzBRNZ0ydfiRe/I0RZ2/AyVF4FBuyXHhUvUycbYC+uMGmNl9vrfLZGez4gJY1f+C 2vyRqbRgGjILrxEP/iJdYWHbdavnkBeW9xl/xsS493/4hHHHKbVhGAVeyeyb3Y9ttRon 9KXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=4y3okfY6wUCp7pKHj4NWsPNZVXlR/XE5MPjlzqfTZc8=; b=N07PUTSXTPlNnRe4wKkpQ5elr8c794fabgEfWC8ZVsYMwrk6BJ3tYb/RqHtV5cStKf GJFJCxTEL+/awJJ6HxjXa7DLZuW3A0bMQz4r4J46sy9OM27TwNHoFJ4iCqpTxNeqpicd Es+1yhfzEq9LiIUId8hSIQLMvRjZiwJbPTE+KC1DAmYaphDS/qqYqurrS691yat8LgMl 0gf18FvDgVYyH0xfuK37FoLD0SJA76iqvFlMjdmWP3BryJE3s5+cwB8lJOwzb3HjcPe3 2B4n5uT0pPp8w4vuG9sESKdrLzQ4HJP0XGW36o/sg3gdqmncvinJ3/zleQzRN4N8y/WI X2Cg== X-Gm-Message-State: AOAM530lUWeY08sO6tqdQI9/8DrTAVT024wNo32XgjmiUAZJOASBHVXf jqaXVYlGPo0wallYtglr3GJKzzXSDh9qHPvnHbDPNQ== X-Received: by 2002:aa7:cd7b:: with SMTP id ca27mr6808638edb.354.1619211426436; Fri, 23 Apr 2021 13:57:06 -0700 (PDT) MIME-Version: 1.0 References: <20210421130105.1226686-1-gregkh@linuxfoundation.org> <20210421130105.1226686-113-gregkh@linuxfoundation.org> In-Reply-To: <20210421130105.1226686-113-gregkh@linuxfoundation.org> From: Dan Williams Date: Fri, 23 Apr 2021 13:57:00 -0700 Message-ID: Subject: Re: [PATCH 112/190] Revert "libnvdimm/namespace: Fix a potential NULL pointer dereference" To: Greg Kroah-Hartman Cc: Linux Kernel Mailing List , Kangjie Lu 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 6:08 AM Greg Kroah-Hartman wrote: > > This reverts commit 55c1fc0af29a6c1b92f217b7eb7581a882e0c07c. > > 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: Dan Williams > Signed-off-by: Greg Kroah-Hartman Upon re-review this change still looks correct, no need for a revert. > --- > drivers/nvdimm/namespace_devs.c | 5 +---- > 1 file changed, 1 insertion(+), 4 deletions(-) > > diff --git a/drivers/nvdimm/namespace_devs.c b/drivers/nvdimm/namespace_devs.c > index 2403b71b601e..04f7cb7a23b7 100644 > --- a/drivers/nvdimm/namespace_devs.c > +++ b/drivers/nvdimm/namespace_devs.c > @@ -2297,12 +2297,9 @@ static struct device *create_namespace_blk(struct nd_region *nd_region, > if (!nsblk->uuid) > goto blk_err; > memcpy(name, nd_label->name, NSLABEL_NAME_LEN); > - if (name[0]) { > + if (name[0]) > nsblk->alt_name = kmemdup(name, NSLABEL_NAME_LEN, > GFP_KERNEL); > - if (!nsblk->alt_name) > - goto blk_err; > - } > res = nsblk_add_resource(nd_region, ndd, nsblk, > __le64_to_cpu(nd_label->dpa)); > if (!res) > -- > 2.31.1 >