The patch titled Subject: mm/mmap: fix error return code in do_mas_align_munmap() has been added to the -mm mm-unstable branch. Its filename is mm-remove-the-vma-linked-list-fix.patch This patch will shortly appear at https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/mm-remove-the-vma-linked-list-fix.patch This patch will later appear in the mm-unstable branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm 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 via the mm-everything branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm and is updated there every 2-3 working days ------------------------------------------------------ From: Yang Yingliang <yangyingliang@xxxxxxxxxx> Subject: mm/mmap: fix error return code in do_mas_align_munmap() Date: Thu, 23 Jun 2022 21:42:37 +0800 Return error code when munmap_sidetree() fails in do_mas_align_munmap(). Link: https://lkml.kernel.org/r/20220623134237.2127440-1-yangyingliang@xxxxxxxxxx Fixes: 81f5504dfb36 ("mm/mmap: change do_mas_align_munmap() to avoid preallocations for sidetree") Signed-off-by: Yang Yingliang <yangyingliang@xxxxxxxxxx> Reported-by: Hulk Robot <hulkci@xxxxxxxxxx> Reviewed-by: Liam R. Howlett <Liam.Howlett@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/mmap.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) --- a/mm/mmap.c~mm-remove-the-vma-linked-list-fix +++ a/mm/mmap.c @@ -2469,7 +2469,8 @@ do_mas_align_munmap(struct ma_state *mas mas_set(mas, end); split = mas_prev(mas, 0); - if (munmap_sidetree(split, &mas_detach)) + error = munmap_sidetree(split, &mas_detach); + if (error) goto munmap_sidetree_failed; count++; @@ -2477,7 +2478,8 @@ do_mas_align_munmap(struct ma_state *mas vma = split; break; } - if (munmap_sidetree(next, &mas_detach)) + error = munmap_sidetree(next, &mas_detach); + if (error) goto munmap_sidetree_failed; count++; _ Patches currently in -mm which might be from yangyingliang@xxxxxxxxxx are mm-remove-the-vma-linked-list-fix.patch