From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753549AbcERQYO (ORCPT ); Wed, 18 May 2016 12:24:14 -0400 Received: from bombadil.infradead.org ([198.137.202.9]:34136 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751736AbcERQYN (ORCPT ); Wed, 18 May 2016 12:24:13 -0400 Date: Wed, 18 May 2016 18:23:59 +0200 From: Peter Zijlstra To: Chris Metcalf Cc: Gilad Ben Yossef , Steven Rostedt , Ingo Molnar , Andrew Morton , Rik van Riel , Tejun Heo , Frederic Weisbecker , Thomas Gleixner , "Paul E. McKenney" , Christoph Lameter , Viresh Kumar , Catalin Marinas , Will Deacon , Andy Lutomirski , "H. Peter Anvin" , x86@kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v12 10/13] arch/x86: enable task isolation functionality Message-ID: <20160518162359.GK3193@twins.programming.kicks-ass.net> References: <1459877922-15512-1-git-send-email-cmetcalf@mellanox.com> <1459877922-15512-11-git-send-email-cmetcalf@mellanox.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1459877922-15512-11-git-send-email-cmetcalf@mellanox.com> User-Agent: Mutt/1.5.21 (2012-12-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 05, 2016 at 01:38:39PM -0400, Chris Metcalf wrote: > diff --git a/arch/x86/kernel/traps.c b/arch/x86/kernel/traps.c > index 06cbe25861f1..b02205085571 100644 > --- a/arch/x86/kernel/traps.c > +++ b/arch/x86/kernel/traps.c > @@ -36,6 +36,7 @@ > #include > #include > #include > +#include > > #ifdef CONFIG_EISA > #include > @@ -382,6 +383,7 @@ dotraplinkage void do_bounds(struct pt_regs *regs, long error_code) > case 2: /* Bound directory has invalid entry. */ > if (mpx_handle_bd_fault()) > goto exit_trap; > + task_isolation_exception("bounds check"); > break; /* Success, it was handled */ > case 1: /* Bound violation. */ > info = mpx_generate_siginfo(regs); > diff --git a/arch/x86/mm/fault.c b/arch/x86/mm/fault.c > index 5ce1ed02f7e8..025e9d2850c1 100644 > --- a/arch/x86/mm/fault.c > +++ b/arch/x86/mm/fault.c > @@ -14,6 +14,7 @@ > #include /* prefetchw */ > #include /* exception_enter(), ... */ > #include /* faulthandler_disabled() */ > +#include /* task_isolation_exception */ > > #include /* boot_cpu_has, ... */ > #include /* dotraplinkage, ... */ > @@ -1259,6 +1260,7 @@ __do_page_fault(struct pt_regs *regs, unsigned long error_code, > local_irq_enable(); > error_code |= PF_USER; > flags |= FAULT_FLAG_USER; > + task_isolation_exception("page fault at %#lx", address); > } else { > if (regs->flags & X86_EFLAGS_IF) > local_irq_enable(); That seems to miss a whole bunch of exceptions... what up?