From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ipmail06.adl6.internode.on.net ([150.101.137.145]:53734 "EHLO ipmail06.adl6.internode.on.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753799AbcITUO5 (ORCPT ); Tue, 20 Sep 2016 16:14:57 -0400 Date: Wed, 21 Sep 2016 06:14:53 +1000 From: Dave Chinner To: Ross Zwisler , xfs@oss.sgi.com, linux-fsdevel@vger.kernel.org Subject: Re: kernel BUG at fs/xfs/xfs_message.c:113! Message-ID: <20160920201453.GH340@dastard> References: <20160920163304.GA8999@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160920163304.GA8999@linux.intel.com> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Tue, Sep 20, 2016 at 10:33:04AM -0600, Ross Zwisler wrote: > I'm consistently able to generate this kernel BUG with both v4.7 and v4.8-rc7. > This bug reproduces both with and without DAX. > Here is the BUG with v4.8-rc7, passed through kasan_symbolize.py: > > run fstests generic/026 at 2016-09-20 10:22:58 > XFS (pmem0p2): Unmounting Filesystem > XFS: Assertion failed: tp->t_blk_res_used <= tp->t_blk_res, file: fs/xfs/xfs_trans.c, line: 309 It overran the block allocation reservation for the transaction. > I started hitting this issue when I started setting extsize via xfs_io on both > my TEST and SCRATCH xfstest directories. Here's a quick snapshot of my > xfstests setup: > > # parted -s -a optimal /dev/pmem0 mkpart Primary 2MiB 12GiB > # parted -s -a optimal /dev/pmem0 mkpart Primary 12GiB 16382MiB > # mkfs.xfs -f /dev/pmem0p1 > # mkfs.xfs -f /dev/pmem0p2 > # mount /dev/pmem0p1 /mnt/xfstests_test > # mount /dev/pmem0p2 /mnt/xfstests_scratch > # xfs_io -c 'extsize 2m' /mnt/xfstests_test > # xfs_io -c 'extsize 2m' /mnt/xfstests_scratch The test dir is the one that matters here - I can reproduce it locally so I'll have a look. Cheers, Dave. -- Dave Chinner david@fromorbit.com