Re: + mm-start-tracking-vmas-with-maple-tree-fix.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



* Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> [220427 18:57]:
> 
> The patch titled
>      Subject: mm/mmap: fix __vma_adjust() memory leak
> has been added to the -mm tree.  Its filename is
>      mm-start-tracking-vmas-with-maple-tree-fix.patch
> 
> This patch should soon appear at
>     https://ozlabs.org/~akpm/mmots/broken-out/mm-start-tracking-vmas-with-maple-tree-fix.patch
> and later at
>     https://ozlabs.org/~akpm/mmotm/broken-out/mm-start-tracking-vmas-with-maple-tree-fix.patch

Both of these links are 404 and the patch does not seem to be in
linux-next 20220428.  Is there any chance this was missed?

Thanks,
Liam

> 
> 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: "Liam R. Howlett" <Liam.Howlett@xxxxxxxxxx>
> Subject: mm/mmap: fix __vma_adjust() memory leak
> 
> When shifting the arg pages, the maple state may be left with allocated
> memory.  Free the memory by calling mas_destroy() unconditionally at the
> end of the function.
> 
> Link: https://lkml.kernel.org/r/20220427224134.yurrplclbhmnrloj@revolver
> Fixes: bd6a1fd58daf (mm: start tracking VMAs with maple tree)
> Signed-off-by: Liam R. Howlett <Liam.Howlett@xxxxxxxxxx>
> Reported-by: Qian Cai <quic_qiancai@xxxxxxxxxxx>
> Cc: Stephen Rothwell <sfr@xxxxxxxxxxxxxxxx>
> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
> ---
> 
>  mm/mmap.c |    1 +
>  1 file changed, 1 insertion(+)
> 
> --- a/mm/mmap.c~mm-start-tracking-vmas-with-maple-tree-fix
> +++ a/mm/mmap.c
> @@ -864,6 +864,7 @@ int __vma_adjust(struct vm_area_struct *
>  	MA_STATE(mas, &mm->mm_mt, 0, 0);
>  	struct vm_area_struct *exporter = NULL, *importer = NULL;
>  
> +	mas_destroy(&mas);
>  	validate_mm(mm);
>  	validate_mm_mt(mm);
>  
> _
> 
> Patches currently in -mm which might be from Liam.Howlett@xxxxxxxxxx are
> 
> mm-start-tracking-vmas-with-maple-tree-fix.patch
> 



[Index of Archives]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux