From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755290Ab2CYJZl (ORCPT ); Sun, 25 Mar 2012 05:25:41 -0400 Received: from mail.skyhub.de ([78.46.96.112]:46070 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754894Ab2CYJZi (ORCPT ); Sun, 25 Mar 2012 05:25:38 -0400 Date: Sun, 25 Mar 2012 11:25:33 +0200 From: Borislav Petkov To: "H. Peter Anvin" Cc: Konrad Rzeszutek Wilk , Thomas Renninger , eric.piel@tremplin-utc.net, vojcek@tlen.pl, dsdt@gaugusch.at, linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, x86@kernel.org, Lin Ming , lenb@kernel.org, robert.moore@intel.com, Al Viro , Harald Hoyer Subject: Re: [PATCH] ACPI: Implement overriding of arbitrary ACPI tables via initrd Message-ID: <20120325092533.GA13307@liondog.tnic> Mail-Followup-To: Borislav Petkov , "H. Peter Anvin" , Konrad Rzeszutek Wilk , Thomas Renninger , eric.piel@tremplin-utc.net, vojcek@tlen.pl, dsdt@gaugusch.at, linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, x86@kernel.org, Lin Ming , lenb@kernel.org, robert.moore@intel.com, Al Viro , Harald Hoyer References: <1332512984-79664-1-git-send-email-trenn@suse.de> <4F6CD79A.8020805@zytor.com> <201203240242.07724.trenn@suse.de> <4F6D2AF8.3070707@zytor.com> <20120324184238.GB13978@phenom.dumpdata.com> <4F6E1D6F.4000308@zytor.com> <20120324191718.GA3927@phenom.dumpdata.com> <4F6E48CD.9050002@zytor.com> <4F6E4E3A.7060307@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <4F6E4E3A.7060307@kernel.org> 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 Sat, Mar 24, 2012 at 03:44:10PM -0700, H. Peter Anvin wrote: > On 03/24/2012 03:21 PM, H. Peter Anvin wrote: > > The attached cpio-parsing code compiles to 458 bytes on x86-64 and 476 > > bytes on i386, and that is without any library dependencies at all. > > Again, it will completely stop at the first compressed data item, so any > > such kernel objects absolutely will have to be first. In good Linux > > tradition, it is also completely untested. > > > > However, given that very reasonable size I would think that this is a > > reasonable approach. Anyone who has a better suggestion for the > > namespace than "kernel/"? > > > > Slightly improved version with actually working memcmp()... [..] > /* > * findcpio.c > * > * Find a specific cpio member; must precede any compressed content. Looks simple enough. Btw, there's some cpio handling already done in - probably reuse some of the code there...? -- Regards/Gruss, Boris.