From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from g9t5009.houston.hp.com ([15.240.92.67]:55894 "EHLO g9t5009.houston.hp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750735AbbKRWI6 (ORCPT ); Wed, 18 Nov 2015 17:08:58 -0500 Message-ID: <1447884281.21443.154.camel@hpe.com> Subject: Re: dax pmd fault handler never returns to userspace From: Toshi Kani To: Dan Williams Cc: Ross Zwisler , linux-nvdimm , Ross Zwisler , linux-fsdevel , linux-ext4 Date: Wed, 18 Nov 2015 15:04:41 -0700 In-Reply-To: References: <20151118170014.GB10656@linux.intel.com> <20151118182320.GA7901@linux.intel.com> <1447882389.21443.151.camel@hpe.com> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Wed, 2015-11-18 at 13:57 -0800, Dan Williams wrote: > On Wed, Nov 18, 2015 at 1:33 PM, Toshi Kani wrote: > > I am seeing a similar/same problem in my test. I think the problem is that > > in > > case of a WP fault, wp_huge_pmd() -> __dax_pmd_fault() -> > > vmf_insert_pfn_pmd(), > > which is a no-op since the PMD is mapped already. We need WP handling for > > this > > PMD map. > > > > If it helps, I have attached change for follow_trans_huge_pmd(). I have not > > tested much, though. > > Interesting, I didn't get this far because my tests were crashing the > kernel. I'll add this case the pmd fault test in ndctl. I hit this one with mmap(MAP_POPULATE). With this change, I then hit the WP fault loop when writing to the range. Thanks, -Toshi