From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E470FC433E0 for ; Thu, 4 Feb 2021 19:53:50 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id AD57364E02 for ; Thu, 4 Feb 2021 19:53:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239268AbhBDTvD (ORCPT ); Thu, 4 Feb 2021 14:51:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38702 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239142AbhBDTul (ORCPT ); Thu, 4 Feb 2021 14:50:41 -0500 Received: from mail-pf1-x433.google.com (mail-pf1-x433.google.com [IPv6:2607:f8b0:4864:20::433]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 971C7C06178A for ; Thu, 4 Feb 2021 11:50:01 -0800 (PST) Received: by mail-pf1-x433.google.com with SMTP id i63so2767007pfg.7 for ; Thu, 04 Feb 2021 11:50:01 -0800 (PST) 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=YGpFXYKJAyY687eckGJmRvP0PWeimiXLgNP+xU7/nqo=; b=jNNn3+1W3q2GnDkbDg5t75Hoqqb6seGdjr7W6ch2OjxIYQ+lEj9RXyDW8vL2LnL17O 7p4KUfwWEJhn1xLRJXFWJ4/XLv358OAS0rDOQxTuyiD+CqW3xrLuas3TWxdLSS2H7Xb5 ku1U3RHyZzcqD1+7uVRUTDF5v4lSLOACpHUeo= 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=YGpFXYKJAyY687eckGJmRvP0PWeimiXLgNP+xU7/nqo=; b=hRgYtwhGkwRR/SVqwvoyybtMdMPPU/bLntq55ztKXGzdxDjnHYbHUIDihwSDfuS+wU nHHQNa0Bd9pHa53eilzvDQ2Rr6h7AGNgPy9eS43Mu8vRXfZERHgz6XCc7vXS/Z4AIlO2 ojm0mf3Fab2YFvEBdS0rrwJx+uLYoy35/Z02IOQrfPVuDKVpOjIt2fPuExOh7zDG2y1s sHkocuy9aH2+woXjDoRzS2xi3BJHkHIIG5roJpYKCLSvnJU1hx5kWx4wnKj4FRQlL95V OOvMpDp9JaOWs6CeRh3fAx9uB2JZaDC4+tbMFU+7dnvY7am0Kaike0uemgUsnllmWepI 3EgQ== X-Gm-Message-State: AOAM533/naoh6PcQE0/CYireZAx1O3r5VF0w8pOml4+ZwoKSNmBHZVyQ 6BaVuhPG3jNtlYhnRebkIm3IzA== X-Google-Smtp-Source: ABdhPJy5N6yshiiKOkoPYx0cJNX+OaE9hEUPv9SEHAC+Nz8m2HAkwuR8P/TY+xrcUega9fpe8DszDQ== X-Received: by 2002:a65:6886:: with SMTP id e6mr588022pgt.73.1612468201098; Thu, 04 Feb 2021 11:50:01 -0800 (PST) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id j5sm6035843pjf.47.2021.02.04.11.49.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Feb 2021 11:49:59 -0800 (PST) Date: Thu, 4 Feb 2021 11:49:58 -0800 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 Subject: Re: [PATCH v19 1/7] x86/cet/ibt: Update Kconfig for user-mode Indirect Branch Tracking Message-ID: <202102041149.8B30B1E@keescook> References: <20210203225902.479-1-yu-cheng.yu@intel.com> <20210203225902.479-2-yu-cheng.yu@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210203225902.479-2-yu-cheng.yu@intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-api@vger.kernel.org On Wed, Feb 03, 2021 at 02:58:56PM -0800, Yu-cheng Yu wrote: > Indirect branch tracking is a hardware security feature that verifies near > indirect call/jump instructions arrive at intended targets, which are > labeled by the compiler with ENDBR opcodes. If such instructions reach > unlabeled locations, the processor raises control-protection faults. > > Check the compiler is up-to-date at config time. > > Signed-off-by: Yu-cheng Yu Reviewed-by: Kees Cook -- Kees Cook