From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga07.intel.com ([134.134.136.100]:7731 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751578AbdGZOXt (ORCPT ); Wed, 26 Jul 2017 10:23:49 -0400 Date: Wed, 26 Jul 2017 08:23:48 -0600 From: Ross Zwisler To: OGAWA Hirofumi Cc: Johannes Thumshirn , Ross Zwisler , "Kani, Toshimitsu" , "linux-nvdimm@lists.01.org" , "linux-fsdevel@vger.kernel.org" Subject: Re: FIle copy to FAT FS on NVDIMM hits BUG_ON at fs/buffer.c:3305! Message-ID: <20170726142348.GA4130@linux.intel.com> References: <1501018096.2042.70.camel@hpe.com> <20170725222247.GA26391@linux.intel.com> <20170726082159.GE4039@linux-x5ow.site> <87d18neemb.fsf@devron> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87d18neemb.fsf@devron> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Wed, Jul 26, 2017 at 06:23:08PM +0900, OGAWA Hirofumi wrote: > "Kani, Toshimitsu" writes: > > > kernel BUG at fs/buffer.c:3305! > > invalid opcode: 0000 [#1] SMP > > : > > Workqueue: writeback wb_workfn (flush-259:0) > > task: ffff8d02595b8000 task.stack: ffffa22242400000 > > RIP: 0010:try_to_free_buffers+0xd2/0xe0 > > RSP: 0018:ffffa22242403830 EFLAGS: 00010246 > > RAX: 00afffc000001028 RBX: 0000000000000008 RCX: ffff8d012dcf19c0 > > RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffffc468e3b52b80 > > RBP: ffffa22242403858 R08: 0000000000000000 R09: 000000000002067c > > R10: ffff8d027ffe6000 R11: 0000000000000000 R12: 0000000000000000 > > R13: ffff8d022fccdbe0 R14: ffffc468e3b52b80 R15: ffffa22242403ad0 > > FS: 0000000000000000(0000) GS:ffff8d027fd40000(0000) > > The locking of this path seems to be broken. The guy familiar to > bdev_write_page() path will made real fix though, The following patch > should be explaining enough what is wrong. Is there someone in particular who is familiar with bdev_write_page() that is working on this fix, or does someone need to pick this up?