Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp166956ybb; Tue, 24 Mar 2020 19:16:18 -0700 (PDT) X-Google-Smtp-Source: ADFU+vuBlCTblEzMLM+cB/njZJhcGYwNfKbapz8ZJJZ7CQAj01N/HPvLxtua18a+/eC8md8wKCGX X-Received: by 2002:a4a:84c2:: with SMTP id o2mr135489oog.47.1585102577779; Tue, 24 Mar 2020 19:16:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585102577; cv=none; d=google.com; s=arc-20160816; b=EQZ9IHrSLwyIxuH+ockqdHxmn4aLbI2b/j1yQDG0NyLGv7cQhHi7Pw/pM0r5qmg2wy 0WuwbgUsV2n/tMTL/NrWZXpaG/f3fVz8JTtUzutjM1S6lenYcRWREOLhHMhq4lfQF/jU ScNfBSpDP1BMdwFuCJ4ooiaI4Ir6qDePpoxXyNe8Vpl+OIl754dFPsSHkDEtqa4o3ObN ifXzNLIceoJM5gGbZ8Cnk2w4oIb+Er37+xKznsWG85M5i+zXuNECi4UMEJinm1wiRznc qqhVHwl8Kc/p+jdORVtwg568JHtSJ3UZmcTupGBLLfydlnvB4NoXCemeuJaPQRGQgLIV 26wg== 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=kiPKkDi7OuWnbr1QHmiHw0+lKlv82xXv2xIrhCC995E=; b=EJ1B0u64CTJPjzpAbodBSkYxsoMpzLbilN+a4K7wRyBtyGHzyozqBC1EIsMUld/HGd Ahh8+IUv0RNEvrO3hji+y8qsJKtXTowyjoErr/2VdJXJrIGU/e0E5UE6DdHSk2xVs/DJ PG1Hv3cFu/nM+ygjIiE7WayPRHMag3yt8FIjEarxPQY8FlEyS9pB2cDwbehuXSZ2xLin RnZCRHGEUSpVsdj97sMRkHMyAYfYFeULJ+I6l+il1jPc7JVNh5dSPotqcUvRsXFPvAsG 9EXvgfHCftIJP7kdjCMcJV8DPp6p9KD4R+C6a4eMQTBXnqy41OONgcUQ/0GqZ/xzS3P2 ZpUA== 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 h192si9753679oib.166.2020.03.24.19.16.05; Tue, 24 Mar 2020 19:16:17 -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 S1727280AbgCYCPo (ORCPT + 99 others); Tue, 24 Mar 2020 22:15:44 -0400 Received: from zeniv.linux.org.uk ([195.92.253.2]:40688 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727253AbgCYCPn (ORCPT ); Tue, 24 Mar 2020 22:15:43 -0400 Received: from viro by ZenIV.linux.org.uk with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1jGvXr-0027FJ-Tn; Wed, 25 Mar 2020 02:13:28 +0000 Date: Wed, 25 Mar 2020 02:13:27 +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: <20200325021327.GJ23230@ZenIV.linux.org.uk> References: <4CBDE0F3-FB73-43F3-8535-6C75BA004233@lca.pw> <20200324214637.GI23230@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 Tue, Mar 24, 2020 at 09:49:48PM -0400, Qian Cai wrote: > It does not catch anything at all with the patch, You mean, oops happens, but neither WARN_ON() is triggered? Lovely... Just to make sure: could you slap the same couple of lines just before if (unlikely(!d_can_lookup(nd->path.dentry))) { in link_path_walk(), just to check if I have misread the trace you've got? Does that (+ other two inserts) end up with 1) some of these WARN_ON() triggered when oops happens or 2) oops is happening, but neither WARN_ON() triggers or 3) oops not happening / becoming harder to hit?