Received: by 10.223.185.111 with SMTP id b44csp928244wrg; Fri, 9 Mar 2018 17:05:52 -0800 (PST) X-Google-Smtp-Source: AG47ELs4VkHVv/CoZE6AmslHYa8jYJ96eN60vewrJ9mqeGuMb3ZYzr6yQhBMJcl6dMfK0XqMpQYU X-Received: by 2002:a17:902:9a08:: with SMTP id v8-v6mr421618plp.252.1520643952024; Fri, 09 Mar 2018 17:05:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520643951; cv=none; d=google.com; s=arc-20160816; b=m6Suzh2Le2Ei8FNiDjk6ZJhFHTrBIWGcU1WxY8JD2hrC0PUGfu+8Q/Bv7ik5pMpjVk WL2uIzFlHL3s3nxEG6dCJvj9fIiJXAF4qjvtDhdgKRGRPqHjv+DOTuI2TSYXpCod1CjV ou87pDlSNqASNUmNWobqGLjJfmKfIasNqpEfkqPOPiSolJnt/6zjXCm7yFw+M4ZfT6WZ JgReEnt5kaPuhYjHXs9qBUDolAlLXz7Q9dsW8K9hqmktHRZ6EmivBiY1rUB/AIWUs3JY gMe+SRQxr2yvu3pxHLS8JKQWIaNdQFd1ZzT4ymrCSS/91qaysmEVZVhliImEVImxx3JC y8rQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:references:cc:to:from:subject:arc-authentication-results; bh=gge8sJmlcIpAgj5HIVsr5eFFa7udHtV/2eqrY37LWWQ=; b=mAerEwocg3EgNL3LJndvsjMnOYSfv5Rma/1DAJjMTg3C35RKiNgkJ69/TElnH80eWr oq09/sIUkNqa+PwTUeBiWrUjjloFSN5o5ZycbSCjnKOntzNdHh4i3gWZpo+eM1IGhC2Y lphIT2At9VJ7jwJ8JCGhXPtMs8wQH1v/Ek8SO9YOif7ADX2eUBGhYlVK34roUgq4neNb kvO84wW9NXShwr2KX9rmN1Bg3fDhVQTYeYfNwd9NOL0dUDZ65d5JoPiudqkMsaorzK2+ Kzdky0WTk/hUWUhtVx5XFO7SL+QhxEAzQK2pvi/zrnyhn4vgy6gJux6M3hY//Nm+SbQo 1mjw== ARC-Authentication-Results: i=1; mx.google.com; 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 b17si1527979pgu.407.2018.03.09.17.05.37; Fri, 09 Mar 2018 17:05:51 -0800 (PST) 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; 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 S932771AbeCJBEm (ORCPT + 99 others); Fri, 9 Mar 2018 20:04:42 -0500 Received: from mga18.intel.com ([134.134.136.126]:51841 "EHLO mga18.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932666AbeCJBEk (ORCPT ); Fri, 9 Mar 2018 20:04:40 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 09 Mar 2018 17:04:40 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.47,448,1515484800"; d="scan'208";a="23980107" Received: from schen9-desk3.jf.intel.com (HELO [10.54.74.42]) ([10.54.74.42]) by orsmga008.jf.intel.com with ESMTP; 09 Mar 2018 17:04:39 -0800 Subject: Re: [PATCH 1/2] x86/mm: Give each mm a unique ID From: Tim Chen To: Greg Kroah-Hartman Cc: stable@vger.kernel.org, Andy Lutomirski , Nadav Amit , Thomas Gleixner , Andrew Morton , Arjan van de Ven , Borislav Petkov , Dave Hansen , Linus Torvalds , Mel Gorman , Peter Zijlstra , Rik van Riel , Ingo Molnar , David Woodhouse , ak@linux.intel.com, karahmed@amazon.de, pbonzini@redhat.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org References: <3351ba53a3b570ba08f2a0f5a59d01b7d80a8955.1520026221.git.tim.c.chen@linux.intel.com> <20180307173036.GJ7097@kroah.com> <9b0d1195-23bd-5bf9-0dd8-b2ca29165bbb@linux.intel.com> Message-ID: <8322b21f-5ee7-41a6-7897-d73faa0ece27@linux.intel.com> Date: Fri, 9 Mar 2018 17:04:39 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.1.0 MIME-Version: 1.0 In-Reply-To: <9b0d1195-23bd-5bf9-0dd8-b2ca29165bbb@linux.intel.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 03/08/2018 10:23 AM, Tim Chen wrote: > On 03/07/2018 09:30 AM, Greg Kroah-Hartman wrote: >> On Fri, Mar 02, 2018 at 01:32:09PM -0800, Tim Chen wrote: >>> From: Andy Lutomirski >>> commit: f39681ed0f48498b80455095376f11535feea332 >>> >>> This adds a new variable to mmu_context_t: ctx_id. >>> ctx_id uniquely identifies the mm_struct and will never be reused. >>> >>> Signed-off-by: Andy Lutomirski >>> Reviewed-by: Nadav Amit >>> Reviewed-by: Thomas Gleixner >>> Cc: Andrew Morton >>> Cc: Arjan van de Ven >>> Cc: Borislav Petkov >>> Cc: Dave Hansen >>> Cc: Linus Torvalds >>> Cc: Mel Gorman >>> Cc: Peter Zijlstra >>> Cc: Rik van Riel >>> Cc: linux-mm@kvack.org >>> Link: http://lkml.kernel.org/r/413a91c24dab3ed0caa5f4e4d017d87b0857f920.1498751203.git.luto@kernel.org >>> Signed-off-by: Ingo Molnar >>> Signed-off-by: Tim Chen >>> --- >>> arch/x86/include/asm/mmu.h | 15 +++++++++++++-- >>> arch/x86/include/asm/mmu_context.h | 5 +++++ >>> arch/x86/mm/tlb.c | 2 ++ >>> 3 files changed, 20 insertions(+), 2 deletions(-) >>> >> >> Does not apply to 4.4.y :( >> >> Can you provide a working backport for that tree? >> > > Okay. Will do. Thanks. > Greg, I actually found that there are a number of dependent IBPB related patches that haven't been backported yet to 4.4: x86/cpufeatures: Add AMD feature bits for Speculation Control (cherry picked from commit 5d10cbc91d9eb5537998b65608441b592eec65e7) x86/msr: Add definitions for new speculation control MSRs (cherry picked from commit 1e340c60d0dd3ae07b5bedc16a0469c14b9f3410) x86/speculation: Add basic IBPB (Indirect Branch Prediction Barrier) support (cherry picked from commit 20ffa1caecca4db8f79fe665acdeaa5af815a24d) x86/cpufeatures: Clean up Spectre v2 related CPUID flags (cherry picked from commit 2961298efe1ea1b6fc0d7ee8b76018fa6c0bcef2) And probably and a few more. You have plans to backport these patches? Tim