Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755963Ab2FPJBO (ORCPT ); Sat, 16 Jun 2012 05:01:14 -0400 Received: from mail-lb0-f174.google.com ([209.85.217.174]:63874 "EHLO mail-lb0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753073Ab2FPJBN (ORCPT ); Sat, 16 Jun 2012 05:01:13 -0400 Date: Sat, 16 Jun 2012 13:01:08 +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: <20120616090108.GC32029@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: 919 Lines: 21 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 Thanks, Konstantin, letme test it out... 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/