Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp3877782img; Mon, 25 Mar 2019 21:17:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqw+oBSeoF+pu3oq/FENqbXqNeSviXFwWO7M49wQpxGdvxp1tONSXCLkNSYf/I9W3Ak1ybIG X-Received: by 2002:a63:ef09:: with SMTP id u9mr3598610pgh.126.1553573853505; Mon, 25 Mar 2019 21:17:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553573853; cv=none; d=google.com; s=arc-20160816; b=a3XcfHDoS5WHnhzJst9Z2RNsPhlXk5+wighu7az9VjTQfhY4tKRVV85wufHbKEunna Wk6SWFEtONk8rUGHblYN1dKlSb3DJF8EQG3g0LHHx/ExR7eH3lOY8Vogv252EYBCD6VT i9mji2wL4enVd5ntJoeRVgnS6F05PlWMZQIFtpaovTpC+WZxfRI2AbVSMbWA8QYhVgBY suxkBSB6hbZx6QLYknYJHlMBf6X0YSSR/aO7rqEx/EWXX6BmwKc0tnZFnVLG7IKGrBXB TiT+ujkbRNaNsqeavSFbV5Wpq/AYu2cGrnpr4lT1Xinz/zLaWxjkQqF7ZUt8o6y0EMBI aaKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=Gx9vlZFm8yC8s5uLac3PK82eGlp1gt3dkIDwuT93IEc=; b=dxskdQOeE/HgTl9RjPtMS7ZjPsQw+XSRsG3Sqyfrx9IR2KZ2Bc68BUrXx7tw/JzxIt 5MMBQNuJHCwh1SmVuXGDqc5vbnJnxk/v20PQyURHzkWHqvaWTjX8Il1Mpk0UtB+LUZbi V85+6fqW7LCq6D9oIbil6KYyyqGlG73kFHGvWOmq5M5zJxPLNyaac+30aAcklg7O+Q1v vJfhOwo58nzBXyW95PC/RPJx5OjH2i+inmxcg3xilKa+1q9T4bI6TIj/4Urqyro4QrUa tN+p8BN/hPyOC5efi+O5ObggCxAUaBCRAhhGpNw0A9G/DfapD+l9MoG++1DQY7VhTOEC XNaQ== 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 x6si14387757pge.211.2019.03.25.21.17.18; Mon, 25 Mar 2019 21:17:33 -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 S1726285AbfCZEPR (ORCPT + 99 others); Tue, 26 Mar 2019 00:15:17 -0400 Received: from zeniv.linux.org.uk ([195.92.253.2]:60142 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725298AbfCZEPR (ORCPT ); Tue, 26 Mar 2019 00:15:17 -0400 Received: from viro by ZenIV.linux.org.uk with local (Exim 4.92 #3 (Red Hat Linux)) id 1h8dUU-0007gH-6R; Tue, 26 Mar 2019 04:15:10 +0000 Date: Tue, 26 Mar 2019 04:15:10 +0000 From: Al Viro To: Mark Fasheh Cc: Dave Chinner , Linus Torvalds , syzbot , Alexei Starovoitov , Daniel Borkmann , linux-fsdevel , Linux List Kernel Mailing , syzkaller-bugs , Jan Kara , Jaegeuk Kim , Joel Becker Subject: Re: KASAN: use-after-free Read in path_lookupat Message-ID: <20190326041509.GZ2217@ZenIV.linux.org.uk> References: <0000000000006946d2057bbd0eef@google.com> <20190325045744.GK2217@ZenIV.linux.org.uk> <20190325194332.GO2217@ZenIV.linux.org.uk> <20190325224823.GF26298@dastard> <20190325230211.GR2217@ZenIV.linux.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 25, 2019 at 08:18:25PM -0700, Mark Fasheh wrote: > Hey Al, > > It's been a while since I've looked at that bit of code but it looks like > Ocfs2 is syncing the inode to disk and disposing of it's memory > representation (which would include the cluster locks held) so that other > nodes get a chance to delete the potentially orphaned inode. In Ocfs2 we > won't delete an inode if it exists in another nodes cache. Wait a sec - what's the reason for forcing that write_inode_now(); why doesn't the normal mechanism work? I'm afraid I still don't get it - we do wait for writeback in evict_inode(), or the local filesystems wouldn't work.