From mboxrd@z Thu Jan 1 00:00:00 1970 From: Amerigo Wang Subject: Re: [Patch 3/3] elf: use a macro instead of a raw number Date: Thu, 02 Jul 2009 17:38:41 +0800 Message-ID: <4A4C8021.8070509@redhat.com> References: <20090701050840.6188.84560.sendpatchset@localhost.localdomain> <20090701050900.6188.41697.sendpatchset@localhost.localdomain> <20090701073810.A80FC21D57@magilla.sf.frob.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: linux-kernel@vger.kernel.org, Alexander Viro , Serge Hallyn , David Howells , James Morris , linux-fsdevel@vger.kernel.org, Andrew Morton To: Roland McGrath Return-path: Received: from mx2.redhat.com ([66.187.237.31]:60890 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755935AbZGBJgi (ORCPT ); Thu, 2 Jul 2009 05:36:38 -0400 In-Reply-To: <20090701073810.A80FC21D57@magilla.sf.frob.com> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: Roland McGrath wrote: >> Use TASK_COMM_LEN instead of the raw number 16. >> > > This is probably a bad idea. elf_prpsinfo layout is a userland ABI. > AFAIK there is no reason TASK_COMM_LEN could not be enlarged in the kernel. > Thanks for your reply. But in the kernel code, pr_fname is copied from ->comm, they should be equal, shouldn't they? Hmm, yes, I agree that 16 is too small for ELF core dump, the longer names get truncated and gdb will complain about this... I can cook a patch to increase this length if you agree. Thanks.