From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752219Ab0CSOSk (ORCPT ); Fri, 19 Mar 2010 10:18:40 -0400 Received: from charlotte.tuxdriver.com ([70.61.120.58]:39511 "EHLO smtp.tuxdriver.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751243Ab0CSOSj (ORCPT ); Fri, 19 Mar 2010 10:18:39 -0400 Date: Fri, 19 Mar 2010 10:18:25 -0400 From: Neil Horman To: Masami Hiramatsu Cc: Oleg Nesterov , Ingo Molnar , lkml , systemtap , DLE , Roland McGrath , Jason Baron , Andrew Morton , KOSAKI Motohiro Subject: Re: [PATCH -tip v5] tracepoint: Add signal coredump tracepoint Message-ID: <20100319141825.GA3530@hmsreliant.think-freely.org> References: <20100319132346.31144.40337.stgit@localhost6.localdomain6> <20100319133352.GC19394@redhat.com> <4BA385CB.9080706@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4BA385CB.9080706@redhat.com> User-Agent: Mutt/1.5.20 (2009-08-17) X-Spam-Score: -4.2 (----) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 19, 2010 at 10:10:19AM -0400, Masami Hiramatsu wrote: > Oleg Nesterov wrote: > > (add Neil) > > > > On 03/19, Masami Hiramatsu wrote: > >> > >> void do_coredump(long signr, int exit_code, struct pt_regs *regs) > >> { > >> struct core_state core_state; > >> - char corename[CORENAME_MAX_SIZE + 1]; > >> + char corename[CORENAME_MAX_SIZE + 1] = ""; > >> struct mm_struct *mm = current->mm; > >> struct linux_binfmt * binfmt; > >> struct inode * inode; > >> @@ -1802,6 +1803,7 @@ void do_coredump(long signr, int exit_code, struct pt_regs *regs) > >> static atomic_t core_dump_count = ATOMIC_INIT(0); > >> struct coredump_params cprm = { > >> .signr = signr, > >> + .file = NULL, > >> .regs = regs, > >> .limit = rlimit(RLIMIT_CORE), > >> /* > >> @@ -1815,8 +1817,10 @@ void do_coredump(long signr, int exit_code, struct pt_regs *regs) > >> audit_core_dumps(signr); > >> > >> binfmt = mm->binfmt; > >> - if (!binfmt || !binfmt->core_dump) > >> + if (!binfmt || !binfmt->core_dump) { > >> + retval = -ENOSYS; > >> goto fail; > >> + } > > > > Oh. > > > > Masami, may I ask you to delay these changes a bit? > > > > This patch conflicts very much with other changes (hopefully in -mm soon) > > we are doing. > > > > If your patch comes first, we have to redo 12 patches. Besides, this patch > > complicates do_coredump() even more while it really needs the cleanups. > > Ah, that's a big conflict :O > Yes, sure, I can wait for your commits. I'll update this patch on yours. > > > Please see > > http://groups.google.com/group/fa.linux.kernel/browse_thread/thread/96f01d85034ca029/3b6bcb9b2d756dbc > > I can send you these patches privately if you wish. > > OK, I can pick them up from the thread:) > > Thank you! > Yes, thank you. I think you may find if you put them on top of the changes Oleg and I have made, you'll find this one will be alot cleaner as well. Thanks! Neil > -- > Masami Hiramatsu > e-mail: mhiramat@redhat.com >