linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/2] huge_pmd_unshare migration and flushing
@ 2018-08-21 20:59 Mike Kravetz
  2018-08-21 20:59 ` [PATCH v3 1/2] mm: migration: fix migration of huge PMD shared pages Mike Kravetz
  2018-08-21 20:59 ` [PATCH v3 2/2] hugetlb: take PMD sharing into account when flushing tlb/caches Mike Kravetz
  0 siblings, 2 replies; 21+ messages in thread
From: Mike Kravetz @ 2018-08-21 20:59 UTC (permalink / raw)
  To: linux-mm, linux-kernel
  Cc: Kirill A . Shutemov, Jérôme Glisse, Vlastimil Babka,
	Naoya Horiguchi, Davidlohr Bueso, Michal Hocko, Andrew Morton,
	Mike Kravetz

v3 of a patch to correct a data corruption issue caused by improper
handling of shared huge PMDs during page migration.  This issue was
observed in a customer environment and can be recreated fairly easily
with a test program.  Patch 0001 addresses this issue only and is
copied to stable with the intention that this will go to stable
releases.  It has existed since the addition of shared huge PMD support.

While considering the issue above, Kirill Shutemov noticed that other
callers of huge_pmd_unshare have potential issues with cache and TLB
flushing.  A separate patch (0002) takes advantage of the new routine
huge_pmd_sharing_possible() to adjust flushing ranges in the cases
where huge PMD sharing is possible.  There is no copy to stable for this
patch as it has not been reported as an issue and discovered only via
code inspection.

Mike Kravetz (2):
  mm: migration: fix migration of huge PMD shared pages
  hugetlb: take PMD sharing into account when flushing tlb/caches

 include/linux/hugetlb.h | 14 +++++++
 mm/hugetlb.c            | 93 +++++++++++++++++++++++++++++++++++++----
 mm/rmap.c               | 42 +++++++++++++++++--
 3 files changed, 137 insertions(+), 12 deletions(-)

-- 
2.17.1


^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2018-08-23 19:36 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-21 20:59 [PATCH v3 0/2] huge_pmd_unshare migration and flushing Mike Kravetz
2018-08-21 20:59 ` [PATCH v3 1/2] mm: migration: fix migration of huge PMD shared pages Mike Kravetz
2018-08-21 22:03   ` kbuild test robot
2018-08-21 23:06     ` Mike Kravetz
2018-08-22  0:51   ` kbuild test robot
2018-08-22  1:10     ` Mike Kravetz
2018-08-22 12:28       ` Michal Hocko
2018-08-22 16:48         ` Mike Kravetz
2018-08-23  7:30           ` Michal Hocko
2018-08-23  8:21             ` Kirill A. Shutemov
2018-08-23 10:33               ` Michal Hocko
2018-08-23 16:45               ` Mike Kravetz
2018-08-22 21:05       ` Kirill A. Shutemov
2018-08-22 21:48         ` Mike Kravetz
2018-08-23 12:48       ` Michal Hocko
2018-08-23 17:01         ` Mike Kravetz
2018-08-23 17:56           ` Mike Kravetz
2018-08-23 19:36             ` Michal Hocko
2018-08-21 20:59 ` [PATCH v3 2/2] hugetlb: take PMD sharing into account when flushing tlb/caches Mike Kravetz
2018-08-21 23:07   ` kbuild test robot
2018-08-22  1:20   ` kbuild test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).