From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/10290 Path: news.gmane.org!not-for-mail From: Igmar Palsenberg Newsgroups: gmane.linux.lib.musl.general Subject: Re: abort() fails to terminate PID 1 process Date: Mon, 4 Jul 2016 15:38:48 +0200 (CEST) Message-ID: References: <20160620100443.GV22574@port70.net> <20160620194110.GM10893@brightrain.aerifal.cx> <20160703135846.GF15995@brightrain.aerifal.cx> <82c4150b-3433-4e3f-2304-9aceef82a54b@skarnet.org> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Trace: ger.gmane.org 1467640169 10962 80.91.229.3 (4 Jul 2016 13:49:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 4 Jul 2016 13:49:29 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-10304-gllmg-musl=m.gmane.org@lists.openwall.com Mon Jul 04 15:49:28 2016 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1bK44y-000137-UP for gllmg-musl@m.gmane.org; Mon, 04 Jul 2016 15:38:29 +0200 Original-Received: (qmail 26375 invoked by uid 550); 4 Jul 2016 13:38:21 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 26353 invoked from network); 4 Jul 2016 13:38:20 -0000 DKIM-Filter: OpenDKIM Filter v2.10.3 s1.palsenberg.com u64DcmSW013014 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=palsenberg.com; s=s1; t=1467639528; bh=ZGXBOvb/3HJKiukG5xiNhx4KhFHTK2rnXssL95zvLfA=; h=Date:From:To:Subject:In-Reply-To:References:From; b=Guo/LOLec2Lr0ALV8MZbVbKE41ywODWM+rDZyilYhDg7+NMM6T+1hEtwN1CmLkvTt v82v8PEaoejCvZb5aiXKAmA7XNOLcPy1+d1srs0EULF5LwYFEr7/lOgl2Cg+A5TMOq a3wrlduYXYd4zirdWH8z4DBVKoOjPgfHwOBBBxNE= In-Reply-To: <82c4150b-3433-4e3f-2304-9aceef82a54b@skarnet.org> User-Agent: Alpine 2.20 (LRH 67 2015-01-07) X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.5.16 (s1.palsenberg.com [127.0.0.1]); Mon, 04 Jul 2016 15:38:48 +0200 (CEST) X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham autolearn_force=no version=3.4.0 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on s1.palsenberg.com Xref: news.gmane.org gmane.linux.lib.musl.general:10290 Archived-At: > On 03/07/2016 15:58, Rich Felker wrote: > > Whether you realize it or not, what you're saying is equivalent to > > saying that it's UB for a process that runs as pid 1 to call abort(). > > There is no basis for such a claim. > > There's no basis in the specification, but in practice, on Linux at least, > a process that runs as pid 1 outside of a container and that exits - whether > normally or via abort() or anything else - will cause a kernel panic. So > treating that case as UB is defensible, at least until musl is ported to an > OS where pid 1 death is less dramatic. The old HP system we had at the university also paniced if I can remember correctly. To he honest, I have no sane idea what it should do otherwise. Igmar