Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751785AbeAEM1e (ORCPT + 1 other); Fri, 5 Jan 2018 07:27:34 -0500 Received: from mx1.redhat.com ([209.132.183.28]:45362 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751487AbeAEM1d (ORCPT ); Fri, 5 Jan 2018 07:27:33 -0500 Date: Fri, 5 Jan 2018 12:27:28 +0000 From: "Dr. David Alan Gilbert" To: Dave Hansen Cc: Peter Zijlstra , Tim Chen , Thomas Gleixner , Linus Torvalds , Greg KH , Andrea Arcangeli , Andi Kleen , Arjan Van De Ven , LKML , Andy Lutomirski Subject: Re: [PATCH 3/7] x86/enter: Use IBRS on syscall and interrupts Message-ID: <20180105122727.GD2491@work-vm> Reply-To: 84a6f2f2-d5fe-6b42-0590-33723c1b4960@intel.com MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.9.1 (2017-09-22) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.38]); Fri, 05 Jan 2018 12:27:33 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: > Dave Hansen wrote: >> On 01/04/2018 08:51 PM, Andy Lutomirski wrote: >> > Do we need an arch_prctl() to enable IBRS for user mode? >> >> Eventually, once the dust settles. I think there's a spectrum of >> paranoia here, that is roughly (with increasing paranoia): >> >> 1. do nothing >> 2. do retpoline >> 3. do IBRS in kernel >> 4. do IBRS always >> >> I think you're asking for ~3.5. >> >> Patches for 1-3 are out there and 4 is pretty straightforward. Doing a >> arch_prctl() is still straightforward, but will be a much more niche >> thing than any of the other choices. Plus, with a user interface, we >> have to argue over the ABI for at least a month or two. ;) I was chatting to Andrea about this, and we came to the conclusion one use might be for qemu; I was worried about (theoretically) whether userspace in a guest could read privileged data from the guest kernel by attacking the qemu process rather than by attacking the kernels. Dave -- Dr. David Alan Gilbert / dgilbert@redhat.com / Manchester, UK