The patch titled Subject: mm/memory.c: initialise mmu_notifier_range correctly has been added to the -mm tree. Its filename is initialise-mmu_notifier_range-correctly.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/initialise-mmu_notifier_range-correctly.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/initialise-mmu_notifier_range-correctly.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/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Matthew Wilcox <willy@xxxxxxxxxxxxx> Subject: mm/memory.c: initialise mmu_notifier_range correctly One of the paths in follow_pte_pmd() initialised the mmu_notifier_range incorrectly. Link: http://lkml.kernel.org/r/20190103002126.GM6310@xxxxxxxxxxxxxxxxxxxxxx Fixes: ac46d4f3c432 ("mm/mmu_notifier: use structure for invalidate_range_start/end calls v2") Signed-off-by: Matthew Wilcox <willy@xxxxxxxxxxxxx> Tested-by: Dave Chinner <dchinner@xxxxxxxxxx> Reviewed-by: Jérôme Glisse <jglisse@xxxxxxxxxx> Cc: John Hubbard <jhubbard@xxxxxxxxxx> Cc: Jan Kara <jack@xxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/memory.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/mm/memory.c~initialise-mmu_notifier_range-correctly +++ a/mm/memory.c @@ -4100,8 +4100,8 @@ static int __follow_pte_pmd(struct mm_st goto out; if (range) { - range->start = address & PAGE_MASK; - range->end = range->start + PAGE_SIZE; + mmu_notifier_range_init(range, mm, address & PAGE_MASK, + (address & PAGE_MASK) + PAGE_SIZE); mmu_notifier_invalidate_range_start(range); } ptep = pte_offset_map_lock(mm, pmd, address, ptlp); _ Patches currently in -mm which might be from willy@xxxxxxxxxxxxx are initialise-mmu_notifier_range-correctly.patch fls-change-parameter-to-unsigned-int.patch