Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752155AbZGTA7L (ORCPT ); Sun, 19 Jul 2009 20:59:11 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752017AbZGTA7I (ORCPT ); Sun, 19 Jul 2009 20:59:08 -0400 Received: from terminus.zytor.com ([198.137.202.10]:40641 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752014AbZGTA7H (ORCPT ); Sun, 19 Jul 2009 20:59:07 -0400 Message-ID: <4A63C00A.2070805@zytor.com> Date: Sun, 19 Jul 2009 17:53:30 -0700 From: "H. Peter Anvin" User-Agent: Thunderbird 2.0.0.14 (X11/20080501) MIME-Version: 1.0 To: Siarhei Liakh CC: linux-kernel@vger.kernel.org, linux-security-module@vger.kernel.org, Arjan van de Ven , Andi Kleen , Rusty Russell , Ingo Molnar , James Morris , Andrew Morton , Andi Kleen , Thomas Gleixner , linux-cris-kernel@axis.com, Roland Dreier Subject: Re: [PATCH] x86: Reducing footprint of BIOS32 service mappings References: <817ecb6f0907191742i13df19afmc4e258a857c3b465@mail.gmail.com> In-Reply-To: <817ecb6f0907191742i13df19afmc4e258a857c3b465@mail.gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1192 Lines: 29 Siarhei Liakh wrote: > According to BIOS32 specification > (http://members.datafast.net.au/dft0802/specs/bios32.pdf), at most two > pages per BIOS32 service should be set executable and no pages need to > be writeable. This patch modifies bios32_service() to set proper page > access permissions at time of service discovery, as described in the > specification. > Further, hardcoded protection of memory area between 640k to 1Mb have > been removed from static_protections(), since only pages mentioned > above need to be executable, not whole BIOS region. > > The patch have been developed for Linux 2.6.30 x86 by Siarhei Liakh > and Xuxian Jiang . > Specifications mean little in the BIOS space, unfortunately. Do we have any notion about how many machines this has been tested on? -hpa -- H. Peter Anvin, Intel Open Source Technology Center I work for Intel. I don't speak on their behalf. -- 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/