Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp619118pxy; Wed, 21 Apr 2021 10:38:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwsZk5eWHoEh672vjC1zJ/pKy2GDVib6cIH/ZLa7L2CO15X5o3o4v2VwE1ChjUD3ac1C/8t X-Received: by 2002:aa7:da42:: with SMTP id w2mr30819119eds.58.1619026730688; Wed, 21 Apr 2021 10:38:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619026730; cv=none; d=google.com; s=arc-20160816; b=zQAF215A59F1ynZUluHUQ84CaqmLQyGdFA/kSIMjjT41vSYOKX5b/zP5GysLQh28B6 ggtVtTsVXAULL0MJpze/ULj26xrbl/JL6BL1v6dvDkoOaw5Rc3vnjXayncVC/dktSNtY fy9NT9utYy7OwTAzYHxCz9WBrY3/gp3o3HUFYfWv8uguYG5EFehIvC1dh5HCxtv2t8x5 DA6BsxkMU9Lid6Q+f3ljCf1TB82XI9P4hIJeDlo9y+HqJmuPZgZVuhMBaEPxQ0xlvDQo 0VaMLObnFDTvQGpK6H2wMcFVYzeQ61ZfihuyNRDUj1CABNvMndOfwHX15wzw7To2+XFR Fp3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=cE2DFTKckNf+xQ+ioB0+ethX02BSBOLgWFlVPf97UbA=; b=YoicgAquSYv/w7w33Q13Ev+SIJNxtj1QQX3kGLreuoT1sZnKl9F0K0ZcGeUdcqPKSl m0gx5lf8qSkHhrAqmOK0Jpw8Fo7d/tHxrbnBIdRJRfm6Oj3shBUfXhClfw6pR+iXK6Rw YaDsPztBb8oLGSs+C6ajCkIpVIpaX4GDQuAS0I6HzfpeUq10gOj/6PW30UBNnQZ8ssyl LWOxC8qfRhYQAUZ/tWRGHRKn5e2qyPhoZ1n9rBGpYRLWZujJheCe1aEgqytoGpt3QIRU c8GtZ7UbJjbS7BIrLqZVkAAVJ+o+Z27aYOJJst5HOlAvN9QFqhhnVHsNfyeJztTsITBC yPjQ== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u14si2344609ejg.41.2021.04.21.10.38.27; Wed, 21 Apr 2021 10:38:50 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239315AbhDUN4J (ORCPT + 99 others); Wed, 21 Apr 2021 09:56:09 -0400 Received: from mx2.suse.de ([195.135.220.15]:33864 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235434AbhDUN4H (ORCPT ); Wed, 21 Apr 2021 09:56:07 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 7613DB12C; Wed, 21 Apr 2021 13:55:33 +0000 (UTC) Received: by quack2.suse.cz (Postfix, from userid 1000) id 4396B1F2B69; Wed, 21 Apr 2021 15:55:33 +0200 (CEST) Date: Wed, 21 Apr 2021 15:55:33 +0200 From: Jan Kara To: Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org, Wenwen Wang , Jan Kara Subject: Re: [PATCH 087/190] Revert "udf: fix an uninitialized read bug and remove dead code" Message-ID: <20210421135533.GV8706@quack2.suse.cz> References: <20210421130105.1226686-1-gregkh@linuxfoundation.org> <20210421130105.1226686-88-gregkh@linuxfoundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210421130105.1226686-88-gregkh@linuxfoundation.org> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed 21-04-21 14:59:22, Greg Kroah-Hartman wrote: > This reverts commit 39416c5872db69859e867fa250b9cbb3f1e0d185. > > 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: Wenwen Wang > Cc: Jan Kara > Signed-off-by: Greg Kroah-Hartman Hi Greg! I'm pretty confident this particular report & fix was valid (in fact it was me who suggested the particular change). So I don't see point in reverting it... Honza > --- > fs/udf/namei.c | 15 +++++++++++++++ > 1 file changed, 15 insertions(+) > > diff --git a/fs/udf/namei.c b/fs/udf/namei.c > index f146b3089f3d..77906b679187 100644 > --- a/fs/udf/namei.c > +++ b/fs/udf/namei.c > @@ -304,6 +304,21 @@ static struct dentry *udf_lookup(struct inode *dir, struct dentry *dentry, > if (dentry->d_name.len > UDF_NAME_LEN) > return ERR_PTR(-ENAMETOOLONG); > > +#ifdef UDF_RECOVERY > + /* temporary shorthand for specifying files by inode number */ > + if (!strncmp(dentry->d_name.name, ".B=", 3)) { > + struct kernel_lb_addr lb = { > + .logicalBlockNum = 0, > + .partitionReferenceNum = > + simple_strtoul(dentry->d_name.name + 3, > + NULL, 0), > + }; > + inode = udf_iget(dir->i_sb, lb); > + if (IS_ERR(inode)) > + return inode; > + } else > +#endif /* UDF_RECOVERY */ > + > fi = udf_find_entry(dir, &dentry->d_name, &fibh, &cfi); > if (IS_ERR(fi)) > return ERR_CAST(fi); > -- > 2.31.1 > -- Jan Kara SUSE Labs, CR