+ pagewalk-update-page-table-walker-core-fix-end-address-calculation-in-walk_page_range.patch added to -mm tree
Subsystems (2)
[email protected]
maintainerSubject: + pagewalk-update-page-table-walker-core-fix-end-address-calculation-in-walk_page_range.patch added to -mm tree
To: [email protected],[email protected]
From: [email protected]
Date: Thu, 27 Feb 2014 13:24:23 -0800
The patch titled
Subject: mm/pagewalk.c: fix end address calculation in walk_page_range()
has been added to the -mm tree. Its filename is
pagewalk-update-page-table-walker-core-fix-end-address-calculation-in-walk_page_range.patch
This patch should soon appear at
http://ozlabs.org/~akpm/mmots/broken-out/pagewalk-update-page-table-walker-core-fix-end-address-calculation-in-walk_page_range.patch
and later at
http://ozlabs.org/~akpm/mmotm/broken-out/pagewalk-update-page-table-walker-core-fix-end-address-calculation-in-walk_page_range.patch
Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's
*** Remember to use Documentation/SubmitChecklist when testing your code ***
The -mm tree is included into linux-next and is updated there every 3-4 working days
------------------------------------------------------
From: Naoya Horiguchi <[email protected]>
Subject: mm/pagewalk.c: fix end address calculation in walk_page_range()
When we try to walk over inside a vma, walk_page_range() tries to walk until vma->vm_end even if a given end is before that point. So this patch takes the smaller one as an end address.
---
mm/pagewalk.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
mm/pagewalk.c renamed from mm/pagewalk.c~pagewalk-update-page-table-walker-core-fix-end-address-calculation-in-walk_page_range +3 -2
@@ -321,8 +321,9 @@ int walk_page_range(unsigned long start, next = vma->vm_start; }else {/* inside the found vma */ walk->vma = vma; - next = vma->vm_end; - err =walk_page_test (start, end, walk); + next = min_t(unsigned long, end, vma->vm_end); + + err =walk_page_test (start, next, walk);if (skip_lower_level_walking (walk))continue ;if (err)
_
Patches currently in -mm which might be from [email protected] are
origin.patch
mm-hugetlb-unify-region-structure-handling.patch mm-hugetlb-improve-cleanup-resv_map-parameters.patch mm-hugetlb-fix-race-in-region-tracking.patch mm-hugetlb-remove-resv_map_put.patch
mm-hugetlb-use-vma_resv_map-map-types.patch mm-hugetlb-improve-page-fault-scalability.patch mm-hugetlb-improve-page-fault-scalability-fix.patch mm-hugetlbfs-fix-rmapping-for-anonymous-hugepages-with-page_pgoff.patch pagewalk-update-page-table-walker-core.patch pagewalk-update-page-table-walker-core-fix-end-address-calculation-in-walk_page_range.patch pagewalk-update-page-table-walker-core-fix-end-address-calculation-in-walk_page_range-fix.patch pagewalk-add-walk_page_vma.patch smaps-redefine-callback-functions-for-page-table-walker.patch clear_refs-redefine-callback-functions-for-page-table-walker.patch pagemap-redefine-callback-functions-for-page-table-walker.patch numa_maps-redefine-callback-functions-for-page-table-walker.patch memcg-redefine-callback-functions-for-page-table-walker.patch madvise-redefine-callback-functions-for-page-table-walker.patch arch-powerpc-mm-subpage-protc-use-walk_page_vma-instead-of-walk_page_range.patch pagewalk-remove-argument-hmask-from-hugetlb_entry.patch pagewalk-remove-argument-hmask-from-hugetlb_entry-fix.patch pagewalk-remove-argument-hmask-from-hugetlb_entry-fix-fix.patch mempolicy-apply-page-table-walker-on-queue_pages_range.patch mm-call-vma_adjust_trans_huge-only-for-thp-enabled-vma.patch mm-rename-__do_fault-do_fault.patch mm-do_fault-extract-to-call-vm_ops-do_fault-to-separate-function.patch mm-introduce-do_read_fault.patch
mm-introduce-do_cow_fault.patch mm-introduce-do_shared_fault-and-drop-do_fault.patch mm-consolidate-code-to-call-vm_ops-page_mkwrite.patch mm-consolidate-code-to-call-vm_ops-page_mkwrite-fix.patch mm-consolidate-code-to-setup-pte.patch