From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751953AbcGWBQs (ORCPT ); Fri, 22 Jul 2016 21:16:48 -0400 Received: from mail-oi0-f51.google.com ([209.85.218.51]:36547 "EHLO mail-oi0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750786AbcGWBQr (ORCPT ); Fri, 22 Jul 2016 21:16:47 -0400 MIME-Version: 1.0 In-Reply-To: <20160722130007.GI26504@codeblueprint.co.uk> References: <7c190e9b3376002014fb99234ed5e5c64df86322.1469064662.git.luto@kernel.org> <20160721081438.GA26531@gmail.com> <20160721161807.GB30106@gmail.com> <20160722130007.GI26504@codeblueprint.co.uk> From: Linus Torvalds Date: Sat, 23 Jul 2016 10:16:45 +0900 X-Google-Sender-Auth: lJAmvzde-ssadUugZWQdIIfIWNg Message-ID: Subject: Re: [PATCH] x86/boot: Reorganize and clean up the BIOS area reservation code To: Matt Fleming Cc: Andy Lutomirski , "H. Peter Anvin" , Ingo Molnar , Thomas Gleixner , Mario Limonciello , Kees Cook , "linux-kernel@vger.kernel.org" , Andrew Morton , Matthew Garrett , Peter Zijlstra , X86 ML , Josh Triplett , Peter Jones Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 22, 2016 at 10:00 PM, Matt Fleming wrote: > > I suppose we could rewrite the page table mapping for those precious > <1MB regions to coerce the firmware into accessing different pages > instead of the 1:1 addresses and copy the regions elsewhere. Maybe. > That assumes we don't hit other firmware bugs though. .. it also assumes that firmware honors our page tables. Which at a minimum won't be true for things like SMM, which happens with paging entirely disabled. And that's exactly the kind of code that touches some of the memory in the low 1M region - things like the legacy keyboard state bits in the low 4kB etc, for crazy old DOS days, iirc. Linus