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=ham 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 AD0CBC433E0 for ; Thu, 4 Feb 2021 19:50:04 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 106BE64F38 for ; Thu, 4 Feb 2021 19:50:04 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 106BE64F38 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=chromium.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 64E226B006E; Thu, 4 Feb 2021 14:50:03 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 5FE396B0070; Thu, 4 Feb 2021 14:50:03 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 4C66C6B0071; Thu, 4 Feb 2021 14:50:03 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0118.hostedemail.com [216.40.44.118]) by kanga.kvack.org (Postfix) with ESMTP id 3655A6B006E for ; Thu, 4 Feb 2021 14:50:03 -0500 (EST) Received: from smtpin09.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with ESMTP id E660D181AC9CB for ; Thu, 4 Feb 2021 19:50:02 +0000 (UTC) X-FDA: 77781626244.09.cord67_580ef53275de Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin09.hostedemail.com (Postfix) with ESMTP id CBA90180AD81D for ; Thu, 4 Feb 2021 19:50:02 +0000 (UTC) X-HE-Tag: cord67_580ef53275de X-Filterd-Recvd-Size: 4330 Received: from mail-pf1-f177.google.com (mail-pf1-f177.google.com [209.85.210.177]) by imf02.hostedemail.com (Postfix) with ESMTP for ; Thu, 4 Feb 2021 19:50:02 +0000 (UTC) Received: by mail-pf1-f177.google.com with SMTP id b145so2777719pfb.4 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=PlsffdnYDxkX5ZK8MjAmX4DkhOPlHdJBjPZ0M5hFuh2icT48VLPtw3qMi/KsVwwsgo 3hSIpxTcUl9i3K4c+U6FiUFLQ1d6QeX7liyuUGc+sIJRJyAIfcXwEvBvRq/jzqy3hEjl b5S18WUhk1W/+HIXud4KpSr0Vp2wOu/ZKgmG32n2noLYPY39ghxVHLZ4D4L8s4zLQVor RsKXZkZLy6Cye6+UFfRnmloSLc9UbsMReUlkbp7W+Dn7bbmixQvoqK3QFQ+wllFVv3se cQTPMeoJ7JUH56sucKC0J6dc7bPd/JZ8LrZ/gAkFkv8IKkuRmQ6p8rew8LaOU2HuyG64 BEKw== X-Gm-Message-State: AOAM530VbyLtIGuSP0tkpwi0pGEPcNNuxPgS5Jx6V2agFIJ8Tvc4gCvT SK9ZmbWByZvSAYRdTKa0opczBg== 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> X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: 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