*** This bug is a duplicate of bug 1674838 ***
    https://bugs.launchpad.net/bugs/1674838

Please note that we did confirm this was caused by a couple of the
Power9 enablement patches from bug #1671613:

 6e2a092a48d3 mm: introduce page_vma_mapped_walk()
 3000e033152a mm, ksm: convert write_protect_page() to use 
page_vma_mapped_walk()

These seem to only be providing context for the third patch:

 c228a1037cd6 mm/ksm: handle protnone saved writes when making page
write protect

Based on the commit messages I don't believe they were intended to
provide any functional change. The first claims to only be introducing a
new interface, and the second says that write_protect_page() should use
the new interface "for consistency."

For that reason I've proposed we revert the patches and replace it with
a backport of c228a1037cd6 instead.

https://lists.ubuntu.com/archives/kernel-team/2017-May/083976.html

However 6e2a092a48d3 does contain some changes that seem unrelated to
the new interface, could you please advise whether or not these need to
be reapplied?

diff --git a/mm/huge_memory.c b/mm/huge_memory.c
index 85742ac5b32e..a7bac4f2b78a 100644
--- a/mm/huge_memory.c
+++ b/mm/huge_memory.c
@@ -2129,9 +2129,12 @@ static void freeze_page(struct page *page)
 static void unfreeze_page(struct page *page)
 {
        int i;
-
-       for (i = 0; i < HPAGE_PMD_NR; i++)
-               remove_migration_ptes(page + i, page + i, true);
+       if (PageTransHuge(page)) {
+               remove_migration_ptes(page, page, true);
+       } else {
+               for (i = 0; i < HPAGE_PMD_NR; i++)
+                       remove_migration_ptes(page + i, page + i, true);
+       }
 }
 
 static void __split_huge_page_tail(struct page *head, int tail,

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1680390

Title:
  Ubuntu17.04: Kernel Oops: Exception in kernel mode, sig: 5 [#1] during
  Avocado KVM Test runs [Regression]

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1680390/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to