Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934235AbbEMCqm (ORCPT ); Tue, 12 May 2015 22:46:42 -0400 Received: from terminus.zytor.com ([198.137.202.10]:56383 "EHLO mail.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932719AbbEMCql (ORCPT ); Tue, 12 May 2015 22:46:41 -0400 Message-ID: <5552BAF3.7040605@zytor.com> Date: Tue, 12 May 2015 19:46:11 -0700 From: "H. Peter Anvin" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: Matthew Garrett , Yinghai Lu CC: 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 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> In-Reply-To: <20150512235333.GB1437@srcf.ucam.org> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 639 Lines: 20 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. -hpa -- 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/