From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga11.intel.com ([192.55.52.93]:35791 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751001AbdGYWWs (ORCPT ); Tue, 25 Jul 2017 18:22:48 -0400 Date: Tue, 25 Jul 2017 16:22:47 -0600 From: Ross Zwisler To: "Kani, Toshimitsu" Cc: "linux-nvdimm@lists.01.org" , "hirofumi@mail.parknet.co.jp" , "linux-fsdevel@vger.kernel.org" Subject: Re: FIle copy to FAT FS on NVDIMM hits BUG_ON at fs/buffer.c:3305! Message-ID: <20170725222247.GA26391@linux.intel.com> References: <1501018096.2042.70.camel@hpe.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1501018096.2042.70.camel@hpe.com> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Tue, Jul 25, 2017 at 09:37:38PM +0000, Kani, Toshimitsu wrote: > Hi, > > Copying files to vfat FS on an NVDIMM device hits > BUG_ON(!PageLocked(page)) in try_to_free_buffers(). It happens on > 4.13-rc1, and happens on older kernels as well. > > A simple reproducer is shown below. It is 100% reproducible on my > setup (8GB of regular memory and 16GB of NVDIMM). It usually hits in > the 3rd or 4th file copy and does not repeat with the while-loop.� > Interestingly, it hits only when an NVDIMM device is set as raw or > memory mode. It does not hit with sector mode. Interesting, thanks for the report.. I was able to reproduce this in my KVM setup with a virtualized NVDIMM using v4.12. I also tried reproducing it with BRD, and wasn't able. I'll take a look.