From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755256Ab1HZOPQ (ORCPT ); Fri, 26 Aug 2011 10:15:16 -0400 Received: from mx1.redhat.com ([209.132.183.28]:59923 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755130Ab1HZOPO (ORCPT ); Fri, 26 Aug 2011 10:15:14 -0400 Date: Fri, 26 Aug 2011 16:11:39 +0200 From: Oleg Nesterov To: Neil Horman Cc: Jovi Zhang , =?iso-8859-1?Q?P=E1draig?= Brady , dhowells@redhat.com, roland@redhat.com, viro@zeniv.linux.org.uk, akpm@linux-foundation.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] coredump: fix pipe coredump when core limit is 0 Message-ID: <20110826141139.GB13620@redhat.com> References: <48dnn9u5x3e4qoh8meht42xk.1313966177259@email.android.com> <4E527684.3020206@draigBrady.com> <20110822161914.GA9399@redhat.com> <20110824110134.GA17362@hmsreliant.think-freely.org> <20110825155735.GA5380@redhat.com> <20110825184313.GA29763@hmsreliant.think-freely.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20110825184313.GA29763@hmsreliant.think-freely.org> User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 08/25, Neil Horman wrote: > > On Thu, Aug 25, 2011 at 05:57:35PM +0200, Oleg Nesterov wrote: > > On 08/24, Neil Horman wrote: > > > > > > The long and the short of it is, making RLIMIT_CORE == 0 for the ispipe case > > > skip the core dump, breaks lots of user space expectations > > > > Not sure this really makes sense, but perhaps ispipe can skip the dump > > if RLIMIT_CORE == 0 _and_ the signal was sent from the user-space. > > > If you can guarantee that the signal came from user space, yes, that would work > I imagine. No, I was wrong. > alternatively I expect we could modify the kernel thread creation > routine such that it sets PR_SET_DUMPABLE to zero for all kernel threads Just curious... why? Oleg.