From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1946833Ab2LFSyw (ORCPT ); Thu, 6 Dec 2012 13:54:52 -0500 Received: from cavan.codon.org.uk ([93.93.128.6]:38594 "EHLO cavan.codon.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1946816Ab2LFSyu (ORCPT ); Thu, 6 Dec 2012 13:54:50 -0500 Date: Thu, 6 Dec 2012 18:54:39 +0000 From: Matthew Garrett To: "H. Peter Anvin" Cc: Bjorn Helgaas , Yinghai Lu , linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, linux-efi@vger.kernel.org, dwmw2@infradead.org, "Eric W. Biederman" Subject: Re: Use PCI ROMs from EFI boot services Message-ID: <20121206185439.GA17381@srcf.ucam.org> References: <1345739803-21017-1-git-send-email-mjg@redhat.com> <20121203200241.GG5906@thinkpad-t410> <50BFE88D.1000800@zytor.com> <50C0E339.4030607@zytor.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <50C0E339.4030607@zytor.com> User-Agent: Mutt/1.5.20 (2009-06-14) 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 On Thu, Dec 06, 2012 at 10:26:01AM -0800, H. Peter Anvin wrote: > NAK on this bit: > > + if (boot_params.hdr.version < 0x0209) > + return 0; > > This field is kernel->bootloader documentation. If a nonmaching > value somehow leaks into the kernel, the kernel could either > panic("Bootloader written by moron") or it should clear some fields, > but littering the kernel with these kinds of tests is just plain > braindead. Dropping that should be fine. Bjorn, would you prefer a patch from me to do that? -- Matthew Garrett | mjg59@srcf.ucam.org