Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933448AbbELSGJ (ORCPT ); Tue, 12 May 2015 14:06:09 -0400 Received: from mail-wi0-f174.google.com ([209.85.212.174]:34274 "EHLO mail-wi0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933345AbbELSGG (ORCPT ); Tue, 12 May 2015 14:06:06 -0400 MIME-Version: 1.0 In-Reply-To: <5552209C.501@gmail.com> References: <1431387505-13410-1-git-send-email-alexhenrie24@gmail.com> <20150512064032.GA25097@gmail.com> <5552209C.501@gmail.com> From: Alex Henrie Date: Tue, 12 May 2015 12:05:45 -0600 Message-ID: Subject: Re: [PATCH v2] x86: Preserve iopl on fork and execve To: Austin S Hemmelgarn Cc: Arjan van de Ven , Ingo Molnar , One Thousand Gnomes , Kees Cook , "H . Peter Anvin" , Doug Johnson , Thomas Gleixner , Ingo Molnar , Tyler Hicks , Al Viro , LKML , Andy Lutomirski , Linus Torvalds , Andrew Morton , Borislav Petkov , Peter Zijlstra , Arjan van de Ven , Denys Vlasenko , Brian Gerst Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1111 Lines: 23 2015-05-12 9:47 GMT-06:00 Austin S Hemmelgarn : > On 2015-05-12 11:25, Arjan van de Ven wrote: >> If you look at a modern linux distro, nothing should need/use iopl and >> co anymore, so maybe an interesting >> question is if we can stick these behind a CONFIG_ option (default on >> of course for compatibility)... just like >> some of the /dev/mem like things are now hidable for folks who know >> they don't need them. > > Personally, I _really_ like this idea. The only thing I know of on any > modern distro that even considers using ioperm is hwclock, and it only does > so if it can't access the RTC through other means (and if you have an RTC, > you really should have the /dev interface enabled). Removing iopl might be OK. Removing ioperm would break my use case of legacy code that needs direct access to the parallel port. -Alex -- 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/