Hi
Thanks for your answer
If we do memremap on the physical address
Of the nvram from within the kernel to get a new virtual address mapping will it lock the
mapping?
Can this be also a workaround?
Oren
נשלח מה-iPhone שלי
ב-10 בינו׳ 2018, בשעה 18:38, Dan Williams <dan.j.williams(a)intel.com> כתב/ה:
> On Wed, Jan 10, 2018 at 7:23 AM, Oren Berman
<oren(a)lightbitslabs.com> wrote:
> Now to all of the forum
>
> Hi Dan
>
> Thanks we are going to try this.
>
> Can you explain why this can cause this issue - is the NVDIMM memory space
> also being randomized?
> Is it done during runtime?
>
Yes, kaslr randomizes the direct map. We have seen problems with it in
the past relative to setting up pmem mappings. We fixed one such bug
with this commit:
fc5f9d5f151c x86/mm: Fix boot crash caused by incorrect loop count
calculation in sync_global_pgds()
...but it appears we may have another bug in this area.