Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752048AbaBQIwq (ORCPT ); Mon, 17 Feb 2014 03:52:46 -0500 Received: from mail-lb0-f169.google.com ([209.85.217.169]:52965 "EHLO mail-lb0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751016AbaBQIwo (ORCPT ); Mon, 17 Feb 2014 03:52:44 -0500 Date: Mon, 17 Feb 2014 12:52:41 +0400 From: Cyrill Gorcunov To: Pavel Emelyanov Cc: "Eric W. Biederman" , Andrew Vagin , Aditya Kali , Stephen Rothwell , Oleg Nesterov , linux-kernel@vger.kernel.org, criu@openvz.org, Al Viro , Andrew Morton , Kees Cook Subject: Re: [CRIU] [PATCH 1/3] prctl: reduce permissions to change boundaries of data, brk and stack Message-ID: <20140217085241.GR13358@moon> References: <1392387209-330-1-git-send-email-avagin@openvz.org> <1392387209-330-2-git-send-email-avagin@openvz.org> <874n41znl5.fsf@xmission.com> <20140214174314.GA5518@gmail.com> <20140214180129.GK13358@moon> <8761ohqzc6.fsf@xmission.com> <52FE72C1.9090100@parallels.com> <87txc1pibc.fsf@xmission.com> <5301C984.40904@parallels.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5301C984.40904@parallels.com> 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 On Mon, Feb 17, 2014 at 12:34:12PM +0400, Pavel Emelyanov wrote: ... > Maybe we can make prlctl() do lite-execve()? It will open the executable, read the > required amount of headers and just put data red from there onto mm-struct? This > should be MUCH better, that full execve() with loading all binary data plus strace > and flushing old mm-s. Well, this would be good, except I don't know how would we deal with executables which are running but deleted, where would we fetch these headers from? (Note the program can map new executable region, jump there and unmap own text section). -- 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/