Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mm: fix possible off-by-one in walk_pte_range()
After the loop in walk_pte_range() pte might point to the first address after the pmd it walks. The pte_unmap() is then applied to something bad. Spotted by Roel Kluin and Andreas Schwab. Signed-off-by: Johannes Weiner <[email protected]> Cc: Roel Kluin <[email protected]> Cc: Andreas Schwab <[email protected]> Acked-by: Matt Mackall <[email protected]> Acked-by: Mikael Pettersson <[email protected]> Cc: <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
- Loading branch information