From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753535AbcJDODw (ORCPT ); Tue, 4 Oct 2016 10:03:52 -0400 Received: from imap.thunk.org ([74.207.234.97]:58206 "EHLO imap.thunk.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752558AbcJDODu (ORCPT ); Tue, 4 Oct 2016 10:03:50 -0400 Date: Tue, 4 Oct 2016 10:02:31 -0400 From: "Theodore Ts'o" To: Jan Kara Cc: Tony Lindgren , Eric Biggers , Andreas Dilger , Jaegeuk Kim , linux-ext4@vger.kernel.org, linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org, Al Viro Subject: Re: Regression in next with ext4 oops Message-ID: <20161004140231.fyfrc6rs2lb6z63v@thunk.org> Mail-Followup-To: Theodore Ts'o , Jan Kara , Tony Lindgren , Eric Biggers , Andreas Dilger , Jaegeuk Kim , linux-ext4@vger.kernel.org, linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org, Al Viro References: <20161003233054.eltv3coiweht3ui4@atomide.com> <20161004090041.GE17515@quack2.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20161004090041.GE17515@quack2.suse.cz> User-Agent: NeoMutt/20160910 (1.7.0) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: tytso@thunk.org X-SA-Exim-Scanned: No (on imap.thunk.org); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 04, 2016 at 11:00:41AM +0200, Jan Kara wrote: > Never seen this but I suspect it is a fallout from Al's directory locking > changes. In particular ext4_htree_fill_tree() builds rb-tree of found > directory entries in file->private_data (and generally modifies the > structure stored there) but after Al's changes we don't have exclusive > access to struct file if I'm right so if two processes end up calling > getdents() for the same 'struct file' we are doomed. I haven't seen it either, and I've been doing a lot of testing on the ext4 test branch. So I'm guessing Tony has the only reliable repro for the problem at the moment. That being said, it shouldn't be that hard to create a test case for this and add it to xfstests. I'm pretty sure Jan is right about this, though, but it would be great to a get a quick confirmation from Tony if at all possible. - Ted