Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758775AbeAIOwI (ORCPT + 1 other); Tue, 9 Jan 2018 09:52:08 -0500 Received: from mail.skyhub.de ([5.9.137.197]:39554 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754872AbeAIOwG (ORCPT ); Tue, 9 Jan 2018 09:52:06 -0500 Date: Tue, 9 Jan 2018 15:51:57 +0100 From: Borislav Petkov To: Willy Tarreau Cc: linux-kernel@vger.kernel.org, x86@kernel.org, Andy Lutomirski , Brian Gerst , Dave Hansen , Ingo Molnar , Linus Torvalds , Peter Zijlstra , Thomas Gleixner , Josh Poimboeuf , "H. Peter Anvin" , Kees Cook Subject: Re: [RFC PATCH v2 2/6] x86/arch_prctl: add ARCH_GET_NOPTI and ARCH_SET_NOPTI to enable/disable PTI Message-ID: <20180109145157.5ltqbz4o5sqkcggb@pd.tnic> References: <1515502580-12261-1-git-send-email-w@1wt.eu> <1515502580-12261-3-git-send-email-w@1wt.eu> <20180109141713.ngqrf6weyiy2q3in@pd.tnic> <20180109143653.GA12976@1wt.eu> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20180109143653.GA12976@1wt.eu> User-Agent: NeoMutt/20170609 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: On Tue, Jan 09, 2018 at 03:36:53PM +0100, Willy Tarreau wrote: > I see and am not particularly against this, but what use case do you > have in mind precisely ? I doubt it's just saving a few tens of bytes, > so probably you're more concerned about the potential risks this opens ? > But given we only allow this for CAP_SYS_RAWIO and these ones already > have access to /dev/mem and many other things, don't you think there > are much easier ways to dump kernel memory in this case than trying to > inject some meltdown code into the victim process ? Or maybe you have > other cases in mind that I'm not seeing. I'd like this to be config-controllable so that distros can make the decision whether/if they want to support the whole per-mm thing. Also, if CAP_SYS_RAWIO is going to protect, please make the ARCH_GET_NOPTI variant check it too. Thx. -- Regards/Gruss, Boris. Good mailing practices for 400: avoid top-posting and trim the reply.