This issue of mapcount in hugetlb pages referenced by shared PMDs was discussed in [1]. The following two patches address user visible behavior caused by this issue. Patches apply to mm-stable as they can also target stable backports. Ongoing folio conversions cause context conflicts in the second patch when applied to mm-unstable/linux-next. I can create separate patch(es) if people agree with these. [1] https://lore.kernel.org/linux-mm/Y9BF+OCdWnCSilEu@monkey/ Mike Kravetz (2): mm: hugetlb: proc: check for hugetlb shared PMD in /proc/PID/smaps migrate: hugetlb: Check for hugetlb shared PMD in node migration fs/proc/task_mmu.c | 10 ++++++++-- include/linux/hugetlb.h | 12 ++++++++++++ mm/mempolicy.c | 3 ++- 3 files changed, 22 insertions(+), 3 deletions(-) -- 2.39.1