Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933202AbbELPYl (ORCPT ); Tue, 12 May 2015 11:24:41 -0400 Received: from mail-wi0-f170.google.com ([209.85.212.170]:36677 "EHLO mail-wi0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932883AbbELPYj (ORCPT ); Tue, 12 May 2015 11:24:39 -0400 MIME-Version: 1.0 In-Reply-To: <20150512064032.GA25097@gmail.com> References: <1431387505-13410-1-git-send-email-alexhenrie24@gmail.com> <20150512064032.GA25097@gmail.com> Date: Tue, 12 May 2015 08:24:38 -0700 Message-ID: Subject: Re: [PATCH v2] x86: Preserve iopl on fork and execve From: Arjan van de Ven To: Ingo Molnar Cc: Alex Henrie , 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: 1348 Lines: 28 On Mon, May 11, 2015 at 11:40 PM, Ingo Molnar wrote: > - Nothing actually broke that people cared about in the last 2.5 > years, thus this might be one of the (very very rare) cases where > preserving a breakage is the right thing to do. > - These syscalls are rarely used, and we could as well insist that > every new context should have the permissions to (re-)acquire them > and should actively seek them - instead of inheriting it to shells > via system(), etc. The best strategy with dangerous APIs is to make > it really, really explicit when they are used. since nothing really broke and its a "nasty either way" regression wise, picking the more secure path looks the most sane. the most likely impact path is in the X world, where X normally gets iopl type permissions (even thought it doesn't need them anymore nowadays).. reverting this behavior would give all the processes X spawns off those perms as well... also the interesting question is: can a process give up these perms? otherwise it becomes a "once given, never gotten rid of" hell hole. -- 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/