Re: [PATCH v8 14/21] mm/mmap: Avoid zeroing vma tree in mmap_region()

Lorenzo Stoakes
2024-10-03T09:27:30Z

On Thu, Oct 03, 2024 at 10:59:12AM +0200, Bert Karwatzki wrote:
> Here's the latest log.
>
> Top three commits:
> db8adf7c0a23 (HEAD -> maple_tree_debug) hack: mm: see if we can get some more information 2
> 7e3bb072761a mm: correct error handling in mmap_region()
> 77df9e4bb222 (tag: next-20241001, origin/master, origin/HEAD, master) Add linux-next specific files for 20241001
>
> Bert Karwatzki

[snip]

Sorry to reply out of order, lore breaking breaks a lot for me.

I suspect the previous 'fix' won't do anything actually, but could you try this
separately?

Thanks!

----8<----
From fa92124d754f52b210d4aafff779b512b78cbeba Mon Sep 17 00:00:00 2001
From: Lorenzo Stoakes <lorenzo.stoakes@oracle.com>
Date: Thu, 3 Oct 2024 10:24:47 +0100
Subject: [PATCH] maybe fix 2

---
mm/mmap.c | 2 ++
1 file changed, 2 insertions(+)

diff --git a/mm/mmap.c b/mm/mmap.c
index 621109f869d8..e49add0bbf37 100644
--- a/mm/mmap.c
+++ b/mm/mmap.c
@@ -1407,6 +1407,8 @@ unsigned long mmap_region(struct file *file, unsigned long addr,
if (error)
goto gather_failed;

+ vma_iter_config(&vmi, addr, end);
+
vmg.next = vms.next;
vmg.prev = vms.prev;

--
2.46.2