Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754086AbZF3Mct (ORCPT ); Tue, 30 Jun 2009 08:32:49 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752330AbZF3Mcm (ORCPT ); Tue, 30 Jun 2009 08:32:42 -0400 Received: from earthlight.etchedpixels.co.uk ([81.2.110.250]:37943 "EHLO www.etchedpixels.co.uk" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752179AbZF3Mcm (ORCPT ); Tue, 30 Jun 2009 08:32:42 -0400 Date: Tue, 30 Jun 2009 13:33:54 +0100 From: Alan Cox To: Denys Vlasenko Cc: Linux Kernel Mailing List , Al Viro , Andrew Morton , Mike Frysinger Subject: Re: [PATCH] make execve(NULL) re-execute current binary Message-ID: <20090630133354.518be0ec@lxorguk.ukuu.org.uk> In-Reply-To: <1158166a0906300510w5b03adb9k7368a049a2bec263@mail.gmail.com> References: <200906300003.39440.vda.linux@googlemail.com> <20090629232733.7ae52b7f@lxorguk.ukuu.org.uk> <1158166a0906300510w5b03adb9k7368a049a2bec263@mail.gmail.com> X-Mailer: Claws Mail 3.7.0 (GTK+ 2.14.7; 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: 508 Lines: 13 > The behavior of execve(NULL) is not undefined. It returns EFAULT. > The idea was that application will do: That depends what you have mapped at address zero and if your platform supports EFAULT reporting for address zero. It isn't a reliable assumption. Alan -- 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/