Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1021987ybb; Wed, 25 Mar 2020 14:07:59 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtSDLxwY0FmumG6jj0N0vDWcINSvzek2/v0C9EPqM26Q7JdkvuUYisyty+JgvTOm+yalyrC X-Received: by 2002:a05:6808:648:: with SMTP id z8mr4038539oih.72.1585170478908; Wed, 25 Mar 2020 14:07:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585170478; cv=none; d=google.com; s=arc-20160816; b=WpuTUqxSs168om5pTZUwYbqfGcvkW3XV3Hfvv9Ec0pSJVCegYh72zTqtcSkHa/jSk5 eNAYukJNxvuSilONPTcoRYqOIHspHwwD3gKLSp8OwV8zGR+pw4kWTkt83XXDRBERzBs+ 6JL5NoYFB9dKMt3HTLqe+RCHhG6F4ssKq7wQOHhTYcb0kYfUYONhmPC182o8gjaV3CPJ zEg8lxUKLBLcLFljFBsj9dajUvYAbh+e2aQggYKhcjoud6P1wGTcmpAoh5MbzBYss3rT UWpNqpJ50Aq8JTsu9E0jjQ8vFri7+to9H+kFHloF+cR3IJWPWyuiY/jOJ4/Ynvzn+G5g 8klg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=gqbbZispLr7Q8YfMTdUe274Z2b3m3Sv8NBZR1DLspQM=; b=BT8APbH5IKwbPPLifGpbS6FpJdGcLoItBrno8kt54u6DwF+XiW+97TTOvF5wkzJV2k vmGeQ32UCls51BlbirMigHGZ+p/eC3pGp69Ia/oF9xImjK+McWxRFEo4itmJzlumXovD l+0bMuopaMAd1f4rKSxHHTDdec0kFt5YxFUIGtK68nX4Zp2OaWOeAAYbR0YACTjK1v7F 0HSiaEym8fjhe6RbI6DuoGxTvij2/Hkh6Esh7SEoZDGM+tZkJqxpHwqht/6L1BoIpsDU RAxM92U0rNLXcVaT5bvxUgBvbZtpYtRMMGlidUD8tO+peLHRiMKIstlp0/sSoFLz7ctK +UYQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e24si107425otk.203.2020.03.25.14.07.45; Wed, 25 Mar 2020 14:07:58 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727389AbgCYVH3 (ORCPT + 99 others); Wed, 25 Mar 2020 17:07:29 -0400 Received: from zeniv.linux.org.uk ([195.92.253.2]:55570 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727253AbgCYVH2 (ORCPT ); Wed, 25 Mar 2020 17:07:28 -0400 Received: from viro by ZenIV.linux.org.uk with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1jHDF7-002oCO-H9; Wed, 25 Mar 2020 21:07:17 +0000 Date: Wed, 25 Mar 2020 21:07:17 +0000 From: Al Viro To: Qian Cai Cc: Linus Torvalds , linux-fsdevel@vger.kernel.org, LKML Subject: Re: Null-ptr-deref due to "sanitized pathwalk machinery (v4)" Message-ID: <20200325210717.GO23230@ZenIV.linux.org.uk> References: <4CBDE0F3-FB73-43F3-8535-6C75BA004233@lca.pw> <20200324214637.GI23230@ZenIV.linux.org.uk> <20200325021327.GJ23230@ZenIV.linux.org.uk> <5281297D-B66E-4A4C-9B41-D2242F6B7AE7@lca.pw> <20200325040359.GK23230@ZenIV.linux.org.uk> <20200325055830.GL23230@ZenIV.linux.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 25, 2020 at 03:43:06PM -0400, Qian Cai wrote: > Since that one has a compilation warning, I have tested this patch and seen no crash so far. > > diff --git a/fs/namei.c b/fs/namei.c > index 311e33dbac63..73851acdbf3a 100644 > --- a/fs/namei.c > +++ b/fs/namei.c > @@ -1806,6 +1806,9 @@ static const char *handle_dots(struct nameidata *nd, int type) > parent, inode, seq); > } > > + if (unlikely(error)) > + return error; > + OK, an equivalent of that had been folded into #work.dotdot/#for-next I'll definitely throw a mentioning of your reporting that thing; do you want tested-by: added there as well?