# Re: \[PATCH 06/11\] mm: page\_vma\_mapped\_walk(): crossing page table boundary

- From: Kirill A. Shutemov \<hidden\>
- Date: 2021-06-10 09:32:08 
- List: linux-mm
- Page: https://ratatoskr.run/linux-mm/2021/06/1409735
- Thread: https://ratatoskr.run/linux-mm/2021/06/1409492/t.md

```text
On Wed, Jun 09, 2021 at 11:44:10PM -0700, Hugh Dickins wrote:
> page_vma_mapped_walk() cleanup: adjust the test for crossing page table
> boundary - I believe pvmw->address is always page-aligned, but nothing
> else here assumed that;

Maybe we should just get it aligned instead? (PMD_SIZE - PAGE_SIZE) is not
most obvious mask calculation.

> and remember to reset pvmw->pte to NULL after
> unmapping the page table, though I never saw any bug from that.

Okay, it's fair enough.

-- 
 Kirill A. Shutemov

```
