Skip to contentSkip to conversation

move_pages12: add comment for a new regression

PATCH New Li Wang 1 participant 1 message Aug 26, 2019

lore
Share & tools
lore

Li Wang

author
#0 lore raw

PATCH 1/1 move_pages12: add comment for a new regression

---
 .../kernel/syscalls/move_pages/move_pages12.c      | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
testcases/kernel/syscalls/move_pages/move_pages12.c +14 -0
index 5d7afad8e..c2927fb86 100644
@@ -25,6 +25,7 @@
  *   mm/hugetlb: take page table lock in follow_huge_pmd()
  *
  *  Test #2:
+ *   #2.1:
  *   This is a regression test for the race condition, where move_pages()
  *   and soft offline are called on a single hugetlb page concurrently.
  *
@@ -36,6 +37,19 @@
  *
  *   mm, hugetlb: use pte_present() instead of pmd_present() in
  *   follow_huge_pmd()
+ *
+ *   #2.2:
+ *   This is also a regression test for an race condition causing SIGBUS
+ *   in hugepage migration/fault.
+ *
+ *   This bug was fixed by:
+ *
+ *   commit 4643d67e8cb0b3536ef0ab5cddd1cedc73fa14ad
+ *   Author: Mike Kravetz <[email protected]>
+ *   Date:   Tue Aug 13 15:38:00 2019 -0700
+ *
+ *   hugetlbfs: fix hugetlb page migration/fault race causing SIGBUS
+ *
  */
 
 #include <errno.h>
Signature · 1 line
2.20.1