Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1026350yba; Thu, 4 Apr 2019 02:43:47 -0700 (PDT) X-Google-Smtp-Source: APXvYqxoeS/c23W1UW00XcflvXvdT/rpOVQTC0wO5sLjieAGgK/fD+4YkRbfuIMaVTG/9n/lYqym X-Received: by 2002:a17:902:e002:: with SMTP id ca2mr5348853plb.131.1554371027537; Thu, 04 Apr 2019 02:43:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554371027; cv=none; d=google.com; s=arc-20160816; b=KFY/MorcfIwC1JEHAHtOAfFTfNn+vS+pUZeVgO6MkvcSSeqScZL75M9LQrfQO/T8z6 JDIFSa9zUTM7ZuHqfwVHqLCeguu6cvgksYbYXyd+Pe6kj5Pl3F9dC5JQ3r9E/98VTEwK zUNO5EV5ZDykp9PBkwh8IN9EBDbJZgFq3wsVTvYZ1OdqDgUgb+VowTV0YAE9qyPPA/6A esfu4cYeJf6cp4XdtAD60TwSaUxR332canya2BGjs4xpPgFLo66jXBGw9tF7LUmp6ilG e7VNhvwWxG6X2PtRMnJw2jEDfuqL5vnRnzEVIqYBe7bvWPnUfUh/KcKyFEEMeWf+va9m oYeQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=QLr/s+fHEPXOEL/h7FQ2IVo1xBVICDWOuKGsUHxBMww=; b=oUleft1k0w8XJOgK9RwL/VpB2nLQ3YrF4LrcScHH9Vn5lQ65DwFgaJ+4Pzjc2fpP92 96nzbKns9vBrPHjWLXnG3JhyqcHpTR6EaNsIuX9/qw5UxMMgUay83XrERi0rUl08j25U X9tUeNdRSUlq2li3Von9Zk0f69oR3lNqP8Rpu876pmCuH9U7nSUvnN+51IiMYIVhDv4v Yl4nQBHblKHAEct4CuoYwN6qcFfpd4MzR4T3RjR3s0IKpFyvgFh2Hu9Pq66dz03q2OLI ksFBit1Pve6MTFnvKtU/lu5B/Y6Q83Ts80VHqExq1xBK0ptKD/65UfMhg+ndEnULoo0p I0RA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=XNtH0Fu2; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h8si15385232pgp.446.2019.04.04.02.43.32; Thu, 04 Apr 2019 02:43:47 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=XNtH0Fu2; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731276AbfDDJnA (ORCPT + 99 others); Thu, 4 Apr 2019 05:43:00 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:53960 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727282AbfDDJm6 (ORCPT ); Thu, 4 Apr 2019 05:42:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=QLr/s+fHEPXOEL/h7FQ2IVo1xBVICDWOuKGsUHxBMww=; b=XNtH0Fu2pZwduxxnnemAl7cnI EYwrGUbgIvOzxCsp0J+UL/4qcyt4brqXrWKjzi5h9zYKpyh8gD38ZNHLyCPXnMGI+2+tPMUixtODR MuzTdF7FJjSg24G0+ykYPR8eRYuCEO7tMIVD8+rPBxObNBc2XtlMIBT3PbVzTeoWs+HyjZ49KiaH3 hPWhbyut90fCkULT8H4lr+p2pPQEwKGsPXaG09uK1ebPYe2LXkTbZnyEZUMApUbC/EoBtp5Dc4yCs o2wbEOiW+WFHM43Z1F+3IyWh5+dtEID7d3Mfpolw63Gp5LzICjvWGWAYM+QOrBGd1IukMHIdzgoVG 5B4zsDoiA==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1hBytA-0006sN-CB; Thu, 04 Apr 2019 09:42:28 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id DB2262038C23E; Thu, 4 Apr 2019 11:42:26 +0200 (CEST) Date: Thu, 4 Apr 2019 11:42:26 +0200 From: Peter Zijlstra To: Andy Lutomirski Cc: Daniel Bristot de Oliveira , LKML , Steven Rostedt , Arnaldo Carvalho de Melo , Ingo Molnar , Thomas Gleixner , Borislav Petkov , "H. Peter Anvin" , "Joel Fernandes (Google)" , Jiri Olsa , Namhyung Kim , Alexander Shishkin , Tommaso Cucinotta , Romulo Silva de Oliveira , Clark Williams , X86 ML Subject: Re: [RFC PATCH 0/7] Early task context tracking Message-ID: <20190404094226.GV4038@hirez.programming.kicks-ass.net> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 03, 2019 at 05:01:02PM -0700, Andy Lutomirski wrote: > I would much rather do the opposite: completely remove context > tracking from the asm and, instead, stick it into the C code. We'd > need to make sure that the C code is totally immune from tracing, > kprobes, etc, but it would be a nice cleanup. And then you could fix > this bug in C! Right, so you had some prelim patches toward that a few weeks ago. Esp. for the idtentry stuff that looked fairly straight forward.