Re: [PATCH v9 11/12] libnvdimm/pfn: Fix fsdax-mode namespace info-block zero-fields

2019-06-12 Thread Aneesh Kumar K.V
Dan Williams writes: > At namespace creation time there is the potential for the "expected to > be zero" fields of a 'pfn' info-block to be filled with indeterminate > data. While the kernel buffer is zeroed on allocation it is immediately > overwritten by nd_pfn_validate() filling it with the cu

Re: [PATCH v9 11/12] libnvdimm/pfn: Fix fsdax-mode namespace info-block zero-fields

2019-06-07 Thread Dan Williams
On Fri, Jun 7, 2019 at 12:54 PM Andrew Morton wrote: > > On Thu, 6 Jun 2019 15:06:26 -0700 Dan Williams > wrote: > > > On Thu, Jun 6, 2019 at 2:46 PM Andrew Morton > > wrote: > > > > > > On Wed, 05 Jun 2019 14:58:58 -0700 Dan Williams > > > wrote: > > > > > > > At namespace creation time the

Re: [PATCH v9 11/12] libnvdimm/pfn: Fix fsdax-mode namespace info-block zero-fields

2019-06-07 Thread Andrew Morton
On Thu, 6 Jun 2019 15:06:26 -0700 Dan Williams wrote: > On Thu, Jun 6, 2019 at 2:46 PM Andrew Morton > wrote: > > > > On Wed, 05 Jun 2019 14:58:58 -0700 Dan Williams > > wrote: > > > > > At namespace creation time there is the potential for the "expected to > > > be zero" fields of a 'pfn' in

Re: [PATCH v9 11/12] libnvdimm/pfn: Fix fsdax-mode namespace info-block zero-fields

2019-06-06 Thread Dan Williams
On Thu, Jun 6, 2019 at 2:46 PM Andrew Morton wrote: > > On Wed, 05 Jun 2019 14:58:58 -0700 Dan Williams > wrote: > > > At namespace creation time there is the potential for the "expected to > > be zero" fields of a 'pfn' info-block to be filled with indeterminate > > data. While the kernel buffe

Re: [PATCH v9 11/12] libnvdimm/pfn: Fix fsdax-mode namespace info-block zero-fields

2019-06-06 Thread Andrew Morton
On Wed, 05 Jun 2019 14:58:58 -0700 Dan Williams wrote: > At namespace creation time there is the potential for the "expected to > be zero" fields of a 'pfn' info-block to be filled with indeterminate > data. While the kernel buffer is zeroed on allocation it is immediately > overwritten by nd_pf

[PATCH v9 11/12] libnvdimm/pfn: Fix fsdax-mode namespace info-block zero-fields

2019-06-05 Thread Dan Williams
At namespace creation time there is the potential for the "expected to be zero" fields of a 'pfn' info-block to be filled with indeterminate data. While the kernel buffer is zeroed on allocation it is immediately overwritten by nd_pfn_validate() filling it with the current contents of the on-media