Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934332AbbEMDGy (ORCPT ); Tue, 12 May 2015 23:06:54 -0400 Received: from cavan.codon.org.uk ([93.93.128.6]:52474 "EHLO cavan.codon.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934006AbbEMDGu (ORCPT ); Tue, 12 May 2015 23:06:50 -0400 Date: Wed, 13 May 2015 04:06:40 +0100 From: Matthew Garrett To: "H. Peter Anvin" Cc: Yinghai Lu , Matthew Garrett , Ingo Molnar , the arch/x86 maintainers , Ingo Molnar , Thomas Gleixner , Linux Kernel Mailing List , Matthew Garrett Subject: Re: [PATCH V2] x86: Allow built-in command line to work in early kernel init Message-ID: <20150513030640.GA4675@srcf.ucam.org> References: <1428518512-13460-1-git-send-email-mjg59@coreos.com> <1428611100-23337-1-git-send-email-mjg59@srcf.ucam.org> <20150512092821.GA10900@gmail.com> <20150512235333.GB1437@srcf.ucam.org> <5552BAF3.7040605@zytor.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5552BAF3.7040605@zytor.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: mjg59@cavan.codon.org.uk X-SA-Exim-Scanned: No (on cavan.codon.org.uk); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 823 Lines: 23 On Tue, May 12, 2015 at 07:46:11PM -0700, H. Peter Anvin wrote: > On 05/12/2015 04:53 PM, Matthew Garrett wrote: > > On Tue, May 12, 2015 at 04:41:22PM -0700, Yinghai Lu wrote: > > > >> You can not assume that you can use buffer after cmd_line from bootloader > >> blindly. > > > > Are there any bootloaders that don't allocate a buffer of the maximum > > command line size? > > > > YES! In fact, it is quite common for the command line to be dynamically > allocated. Hmm. Well, this is a little awkward. Let me think about it. -- Matthew Garrett | mjg59@srcf.ucam.org -- 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/