lkml.org 
[lkml]   [2015]   [Dec]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH 0/2] Change PAT to support mremap use-cases
Date
This patch-set fixes issues found in the pfn tracking code of PAT
when mremap() is used on a VM_PFNMAP range.

Patch 1/2 changes untrack_pfn() to handle the case of mremap() with
MREMAP_FIXED, i.e. remapping virtual address on a VM_PFNMAP range.

Patch 2/2 changes the free_memtype() path to handle the case of
mremap() that shrinks the size of a VM_PFNMAP range.

Note, mremap() to expand the size of a VM_PFNMAP range is not a valid
case as VM_DONTEXPAND is set along with VM_PFNMAP.

---
Toshi Kani (2):
1/2 x86/mm/pat: Change untrack_pfn() to handle unmapped vma
2/2 x86/mm/pat: Change free_memtype() to free shrinking range

---
arch/x86/mm/pat.c | 19 ++++++++++++-------
arch/x86/mm/pat_rbtree.c | 46 +++++++++++++++++++++++++++++++++++++---------
2 files changed, 49 insertions(+), 16 deletions(-)


\
 
 \ /
  Last update: 2015-12-09 18:01    [W:2.234 / U:0.000 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site