Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755940Ab2FPJGx (ORCPT ); Sat, 16 Jun 2012 05:06:53 -0400 Received: from mail-lb0-f174.google.com ([209.85.217.174]:57515 "EHLO mail-lb0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753016Ab2FPJGw (ORCPT ); Sat, 16 Jun 2012 05:06:52 -0400 Date: Sat, 16 Jun 2012 13:06:46 +0400 From: Cyrill Gorcunov To: Konstantin Khlebnikov Cc: Andrew Morton , Kees Cook , Pavel Emelyanov , linux-kernel@vger.kernel.org, Oleg Nesterov , linux-mm@kvack.org, Matt Helsley , KOSAKI Motohiro , Tejun Heo Subject: Re: [PATCH 3.5] c/r: prctl: less paranoid prctl_set_mm_exe_file() Message-ID: <20120616090646.GD32029@moon> References: <20120616085104.14682.16723.stgit@zurg> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20120616085104.14682.16723.stgit@zurg> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1165 Lines: 28 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 > Reported-by: Cyrill Gorcunov > Cc: Oleg Nesterov > Cc: Matt Helsley > Cc: Kees Cook > Cc: KOSAKI Motohiro > Cc: Tejun Heo > Cc: Pavel Emelyanov > --- Ack! Thanks again, Konstantin! Cyrill -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/