mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Ajay Kaher <akaher@vmware.com>
To: <fan_yang@sjtu.edu.cn>
Cc: <dan.j.williams@intel.com>, <kirill.shutemov@linux.intel.com>,
	<linux-kernel@vger.kernel.org>, <torvalds@linux-foundation.org>,
	<gregkh@linuxfoundation.org>, <srivatsab@vmware.com>,
	<srivatsa@csail.mit.edu>, <akaher@vmware.com>
Subject: [PATCH v3] mm: Fix mremap not considering huge pmd devmap
Date: Thu, 4 Jun 2020 23:53:45 +0530	[thread overview]
Message-ID: <1591295025-1080-1-git-send-email-akaher@vmware.com> (raw)
In-Reply-To: <FB4049FE-AC4A-4B13-B39D-B96393EFCCB8@sjtu.edu.cn>

Hi Fan,

Able to reproduce this issue on v4.19.y using your test program.

And as per commit message it fixes commit 5c7fb56e5e3f 
("mm, dax: dax-pmd vs thp-pmd vs hugetlbfs-pm”) at kernel version v4.5.
So, v4.9.y should be vulnerable, however not able to reproduce on v4.9.y.
Does any specific scenerio need to test for v4.9.y?

For v4.9, modified test program as MAP_SHARED_VALIDATE is not available:
- return mmap(NULL, REGION_PM_SIZE, PROT, MAP_SHARED_VALIDATE|MAP_SYNC,
+ return mmap(NULL, REGION_PM_SIZE, PROT, MAP_SHARED|MAP_SYNC,

Let me know if I need to test some other way for v4.9.y.

-Ajay 


  reply	other threads:[~2020-06-04 18:24 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-04 10:22 Fan Yang
2020-06-04 18:23 ` Ajay Kaher [this message]
2020-06-05  5:09   ` Fan Yang
2020-06-05 19:14     ` Ajay Kaher

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1591295025-1080-1-git-send-email-akaher@vmware.com \
    --to=akaher@vmware.com \
    --cc=dan.j.williams@intel.com \
    --cc=fan_yang@sjtu.edu.cn \
    --cc=gregkh@linuxfoundation.org \
    --cc=kirill.shutemov@linux.intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=srivatsa@csail.mit.edu \
    --cc=srivatsab@vmware.com \
    --cc=torvalds@linux-foundation.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome