Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751458AbdIENYs (ORCPT ); Tue, 5 Sep 2017 09:24:48 -0400 Received: from www.llwyncelyn.cymru ([82.70.14.225]:34046 "EHLO fuzix.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750955AbdIENYq (ORCPT ); Tue, 5 Sep 2017 09:24:46 -0400 Date: Tue, 5 Sep 2017 14:24:36 +0100 From: Alan Cox To: Geert Uytterhoeven Cc: Rob Landley , Linux Embedded , Oleg Nesterov , "linux-kernel@vger.kernel.org" Subject: Re: execve(NULL, argv, envp) for nommu? Message-ID: <20170905142436.262ed118@alans-desktop> In-Reply-To: References: <324c00d9-06a6-1fc5-83fe-5bd36d874501@landley.net> Organization: Intel Corporation X-Mailer: Claws Mail 3.14.1 (GTK+ 2.24.31; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 552 Lines: 15 > > anymore. But I'm already _running_ this program. If I could fork() I > > could already get a second copy of the sucker and call main() again > > myself if necessary, but I can't, so... You can - ptrace 8) > > honoring the suid bit if people feel that way. I just wanna unblock > > vfork() while still running this code. Would it make more sense to have a way to promote your vfork into a fork when you hit these cases (I appreciate that fork on NOMMU has a much higher performance cost as you start having to softmmu copy or swap pages). Alan