From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751994Ab2KXRd0 (ORCPT ); Sat, 24 Nov 2012 12:33:26 -0500 Received: from terminus.zytor.com ([198.137.202.10]:39999 "EHLO mail.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751871Ab2KXRdZ (ORCPT ); Sat, 24 Nov 2012 12:33:25 -0500 Message-ID: <50B104BC.90208@zytor.com> Date: Sat, 24 Nov 2012 09:32:44 -0800 From: "H. Peter Anvin" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:16.0) Gecko/20121029 Thunderbird/16.0.2 MIME-Version: 1.0 To: "Eric W. Biederman" CC: Yinghai Lu , Thomas Gleixner , Ingo Molnar , linux-kernel@vger.kernel.org, Rob Landley , Matt Fleming Subject: Re: [PATCH v3 11/12] x86, boot: add fields to support load bzImage and ramdisk high References: <1353482170-10160-1-git-send-email-yinghai@kernel.org> <1353482170-10160-12-git-send-email-yinghai@kernel.org> <50AD0CA1.8000904@zytor.com> <50AD291A.10600@zytor.com> <50AE70E7.6060204@zytor.com> <87haofi3d3.fsf@xmission.com> In-Reply-To: <87haofi3d3.fsf@xmission.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/24/2012 04:37 AM, Eric W. Biederman wrote: > > Certainly /sbin/kexec isn't bothering to calculate the end of the setup > header and just being far more conservative and using all of the 16bit > real mode code as it's initializer. > That's not conservative... that's just plain wrong. It means you're initializing the fields in struct boot_params with garbage instead of a predictable value (zero). We could work around it with a sentinel hack... except you *also* probably modify *some* fields and now we have a horrid mix of initialized and uninitialized fields to sort out... and there really isn't any sane way for the kernel to sort that out. We have a huge problem on our hands now because of it. -hpa -- H. Peter Anvin, Intel Open Source Technology Center I work for Intel. I don't speak on their behalf.