lkml.org 
[lkml]   [2015]   [Jun]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 1/4] mremap: don't leak new_vma if f_op->mremap() fails
On Sat, 20 Jun 2015, Oleg Nesterov wrote:

> move_vma() can't just return if f_op->mremap() fails, we should
> unmap the new vma like we do if move_page_tables() fails. To avoid
> the code duplication this patch moves the "move entries back" under
> the new "if (err)" branch.
>
> Signed-off-by: Oleg Nesterov <oleg@redhat.com>

Looks good! I think it was sniped by commit 4abad2ca4a4d ("mm: new
arch_remap() hook") so it needs to be rebased, but after that feel free to
add my

Acked-by: David Rientjes <rientjes@google.com>


\
 
 \ /
  Last update: 2015-07-01 01:01    [W:0.098 / U:2.884 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site