[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20120616090646.GD32029@moon>
Date: Sat, 16 Jun 2012 13:06:46 +0400
From: Cyrill Gorcunov <gorcunov@...nvz.org>
To: Konstantin Khlebnikov <khlebnikov@...nvz.org>
Cc: Andrew Morton <akpm@...ux-foundation.org>,
Kees Cook <keescook@...omium.org>,
Pavel Emelyanov <xemul@...allels.com>,
linux-kernel@...r.kernel.org, Oleg Nesterov <oleg@...hat.com>,
linux-mm@...ck.org, Matt Helsley <matthltc@...ibm.com>,
KOSAKI Motohiro <kosaki.motohiro@...fujitsu.com>,
Tejun Heo <tj@...nel.org>
Subject: Re: [PATCH 3.5] c/r: prctl: less paranoid prctl_set_mm_exe_file()
On Sat, Jun 16, 2012 at 12:51:04PM +0400, Konstantin Khlebnikov wrote:
> "no other files mapped" requirement from my previous patch
> (c/r: prctl: update prctl_set_mm_exe_file() after mm->num_exe_file_vmas removal)
> is too paranoid, it forbids operation even if there mapped one shared-anon vma.
>
> Let's check that current mm->exe_file already unmapped, in this case exe_file
> symlink already outdated and its changing is reasonable.
>
> Plus, this patch fixes exit code in case operation success.
>
> Signed-off-by: Konstantin Khlebnikov <khlebnikov@...nvz.org>
> Reported-by: Cyrill Gorcunov <gorcunov@...nvz.org>
> Cc: Oleg Nesterov <oleg@...hat.com>
> Cc: Matt Helsley <matthltc@...ibm.com>
> Cc: Kees Cook <keescook@...omium.org>
> Cc: KOSAKI Motohiro <kosaki.motohiro@...fujitsu.com>
> Cc: Tejun Heo <tj@...nel.org>
> Cc: Pavel Emelyanov <xemul@...allels.com>
> ---
Ack! Thanks again, Konstantin!
Cyrill
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists