Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S265168AbUAJOFm (ORCPT ); Sat, 10 Jan 2004 09:05:42 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S265169AbUAJOFm (ORCPT ); Sat, 10 Jan 2004 09:05:42 -0500 Received: from willy.net1.nerim.net ([62.212.114.60]:19472 "EHLO willy.net1.nerim.net") by vger.kernel.org with ESMTP id S265168AbUAJOFl (ORCPT ); Sat, 10 Jan 2004 09:05:41 -0500 Date: Sat, 10 Jan 2004 15:05:27 +0100 From: Willy Tarreau To: Maciej Zenczykowski Cc: Jesper Juhl , Valdis.Kletnieks@vt.edu, Andrew Morton , linux-kernel@vger.kernel.org Subject: Re: [PATCH][RFC] invalid ELF binaries can execute - better sanity checking Message-ID: <20040110140527.GE545@alpha.home.local> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 879 Lines: 20 On Fri, Jan 09, 2004 at 09:20:53PM +0100, Maciej Zenczykowski wrote: > I have a 933 byte less and a 305 byte strings command on my initrd > (taken from some floppy distribution) which report "ERROR: Corrupted > section header size" via 'file *' and there is probably many many > more out there. Then upgrade to file-4.07 which fixes this bad identification. I was very annoyed by this problem because I too sometimes generate rather tiny executables, and my build scripts automatically mark them as executables when 'file' tells me they are ELF executables. When I discovered it, it was because the victim was init... Cheers, Willy - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/