mm: pagewalk: Take the pagetable lock in walk_pte_range()
authorThomas Hellstrom <thellstrom@vmware.com>
Fri, 4 Oct 2019 09:04:43 +0000 (11:04 +0200)
committerThomas Hellstrom <thellstrom@vmware.com>
Wed, 6 Nov 2019 12:02:25 +0000 (13:02 +0100)
commitace88f1018b88167a78bafd545d30816d6e207bf
tree52d80c8bd41e9dd0efea092bd4eeb96915f7536d
parentea81bae46032022656d45d4a395f1bf3b96697f0
mm: pagewalk: Take the pagetable lock in walk_pte_range()

Without the lock, anybody modifying a pte from within this function might
have it concurrently modified by someone else.

Cc: Matthew Wilcox <willy@infradead.org>
Cc: Will Deacon <will.deacon@arm.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Rik van Riel <riel@surriel.com>
Cc: Minchan Kim <minchan@kernel.org>
Cc: Michal Hocko <mhocko@suse.com>
Cc: Huang Ying <ying.huang@intel.com>
Cc: Jérôme Glisse <jglisse@redhat.com>
Cc: Kirill A. Shutemov <kirill@shutemov.name>
Suggested-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Acked-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
mm/pagewalk.c