From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752086Ab3BPHnw (ORCPT ); Sat, 16 Feb 2013 02:43:52 -0500 Received: from zeniv.linux.org.uk ([195.92.253.2]:37630 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751399Ab3BPHnv (ORCPT ); Sat, 16 Feb 2013 02:43:51 -0500 Date: Sat, 16 Feb 2013 07:43:48 +0000 From: Al Viro To: Raymond Jennings Cc: Linus Torvalds , Linux Kernel Mailing List Subject: Re: [RFC] SIGKILL vs. SIGSEGV on late execve() failures Message-ID: <20130216074348.GC4503@ZenIV.linux.org.uk> References: <20130214053656.GS4503@ZenIV.linux.org.uk> <20130215215946.GX4503@ZenIV.linux.org.uk> <20130216000435.GY4503@ZenIV.linux.org.uk> <20130216015024.GA4503@ZenIV.linux.org.uk> <20130216022006.GB4503@ZenIV.linux.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 Fri, Feb 15, 2013 at 11:20:18PM -0800, Raymond Jennings wrote: > An even bigger question might be why an execve is allowed to get into > an unrecoverable state to begin with. Assuming that one builds the > new mm_struct and whatnot BEFORE discarding old state, why would > execve be in a position for a fatal error in the first place? When would you kill the rest of thread group? Take a look at de_thread() - we are not just replacing ->mm during execve(). Signal delivery logics, etc.