Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp770987pxy; Wed, 28 Apr 2021 13:57:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxKoxrCaghIe0RgErEltzbEXi3pqypYBsi6aWK8ZqJ5SGWK7vzKq4zCEUjYYaUbFXIRP4nL X-Received: by 2002:a17:907:948d:: with SMTP id dm13mr16040710ejc.180.1619643441232; Wed, 28 Apr 2021 13:57:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619643441; cv=none; d=google.com; s=arc-20160816; b=Ntllz/lT7XtZyJ3GGIrmTR+wTbDNDGHvjjDcTg9h/WO6/Q1exgpkE6GPh3tL2IB0CU zVJPZdZcd849ssq1Nevc37tAybjwqI3mBX5j6I8h1ejJNKHBofiJAFyA9AqsEuGDBQ3s MEYfIyGAgPwaWPnv5HpphSSzGRpK39oiL8cAfDVhz5I1iDCY+h2BqNNwdDDBv1ZChXzY yOZBIUPBrbi0SYe9Ct2LWQ0U/1C5nB2Nh+0OhIAVxY87SOMpVA97i3+1oBO0EqCaeB4C XnQX+QGgut8pLiuqetzsNRbPHB6avOcpeB3yEGPLNDmUAAkQTU3S5bjTmK1e/Ncxw/Bt 6yKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=P+vKZ+ijBuTYKlW4ksMgx+Vfg6fzuznEGR/mj5GiueA=; b=UjhzZH3WzZS0kzmiH9/xgJjfA1Uh/oOzvnw//AIKdYRyquZ8vFSlcOIcqr7p/87HB3 4/bfkLEsHBv6DLoY1xeCVg0sXmBl/WvoqwP9hd4FjkfhYwyRxJum+ImObAP+EZDQbfKf yXSUJr56fxFYHM4+QS6bRoQENAQ11UuKSB+Zpl+R5wZXOMFzFGqujcuclZklB8NnovAn IGtPssH+MBaaPxGsADfrvOILcarMH+dl4e+aD+3c7KIN7ruHx+KNPAMZRW4sYIlPk0rH DGNzLi54azILwunftl2JaPDghMG/UEVgjWsB8sZb21EPFBNKujVNcQC3DwE8g7BkfvRi RVlQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=cjFidoHr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q20si931276edd.31.2021.04.28.13.56.57; Wed, 28 Apr 2021 13:57:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=cjFidoHr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241951AbhD1Ua7 (ORCPT + 99 others); Wed, 28 Apr 2021 16:30:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57684 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241926AbhD1Ua6 (ORCPT ); Wed, 28 Apr 2021 16:30:58 -0400 Received: from mail-pj1-x102e.google.com (mail-pj1-x102e.google.com [IPv6:2607:f8b0:4864:20::102e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A4222C06138D for ; Wed, 28 Apr 2021 13:30:12 -0700 (PDT) Received: by mail-pj1-x102e.google.com with SMTP id y22-20020a17090a8b16b0290150ae1a6d2bso9771600pjn.0 for ; Wed, 28 Apr 2021 13:30:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=P+vKZ+ijBuTYKlW4ksMgx+Vfg6fzuznEGR/mj5GiueA=; b=cjFidoHrwQOs6nvggZcyJHPrqy+fC3lyB+khjXw8XuHUFFpmXhDbTFYt4Z0pcBKzIu +pYRKW5ncOZPFtP4kJPVLZD6RWZVY/45yIeJMmu7wv3lRl6oGjQUu/+MiO4G0VaeNB52 7LZlajzspTx8tLP+6aHqhBrlwyTRwrLFleo7s= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=P+vKZ+ijBuTYKlW4ksMgx+Vfg6fzuznEGR/mj5GiueA=; b=RjfLh8kl75v4FCXiOD5oVRl76uACpIlBM/8UUDtEUIolMJta0dn/sz+BLYgAMGZbnS Sp2rIJkSFKDZfNtZdeoIk1XF3OOmjVJlasro/FAO116dFzqI06tmHIMIh4PaajTnIFyY mFw3y3bnDRYbOj3TdzVbfxsFpB0l8l1IrEZg9V5usBP7Zi+7qBbucmd32tfKTohxO8+1 GkVkE/2aoz7HivR6NrraIxmHoG31uDQR/5iVuT6iQxMi+ECoX9uUeTMiIgjB1NVBsnjm g/zzaZ01113pZlcXyRJXP6rQUFrNtZvb2Afcr+Es1Mxi643gzfal+w+3fziX7TxrcrYR e/zQ== X-Gm-Message-State: AOAM531SBUTvmxbHWMXwpUZpb5c705yFuDqujFP6M2WFOXxv5Ok7CmU4 7l+ziAEtstHND319hrZZEGWTHQ== X-Received: by 2002:a17:902:8601:b029:e6:7b87:8add with SMTP id f1-20020a1709028601b02900e67b878addmr32266307plo.3.1619641812285; Wed, 28 Apr 2021 13:30:12 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id i20sm318571pjz.48.2021.04.28.13.30.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Apr 2021 13:30:11 -0700 (PDT) Date: Wed, 28 Apr 2021 13:30:10 -0700 From: Kees Cook To: Yu-cheng Yu Cc: x86@kernel.org, "H. Peter Anvin" , Thomas Gleixner , Ingo Molnar , linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, linux-mm@kvack.org, linux-arch@vger.kernel.org, linux-api@vger.kernel.org, Arnd Bergmann , Andy Lutomirski , Balbir Singh , Borislav Petkov , Cyrill Gorcunov , Dave Hansen , Eugene Syromiatnikov , Florian Weimer , "H.J. Lu" , Jann Horn , Jonathan Corbet , Mike Kravetz , Nadav Amit , Oleg Nesterov , Pavel Machek , Peter Zijlstra , Randy Dunlap , "Ravi V. Shankar" , Vedvyas Shanbhogue , Dave Martin , Weijiang Yang , Pengfei Xu , Haitao Huang Subject: Re: [PATCH v26 2/9] x86/cet/ibt: Add user-mode Indirect Branch Tracking support Message-ID: <202104281330.4269E2B@keescook> References: <20210427204720.25007-1-yu-cheng.yu@intel.com> <20210427204720.25007-3-yu-cheng.yu@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210427204720.25007-3-yu-cheng.yu@intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 27, 2021 at 01:47:13PM -0700, Yu-cheng Yu wrote: > Introduce user-mode Indirect Branch Tracking (IBT) support. Add routines > for the setup/disable of IBT. > > Signed-off-by: Yu-cheng Yu Reviewed-by: Kees Cook -- Kees Cook