Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp670939pxy; Wed, 28 Apr 2021 11:41:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzBTMa6VqUNuOVOdCttzQUmG8ao2n/zvhG6x/isc/38OSL/QJUir9bqpIptyUmCAV5lBogK X-Received: by 2002:a65:4048:: with SMTP id h8mr1623501pgp.123.1619635307342; Wed, 28 Apr 2021 11:41:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619635307; cv=none; d=google.com; s=arc-20160816; b=gMuuMLWUPzVxoS4nsL8qjDYIfNO9Ci/41AF7SEcqJY3SjbiQ1P0xO/P3jMlCCAJtw8 /WTLxJ88ToivXVjZXlwLdqEhMZIINIkZkIgckoEi5usxv+Ql25EVkdb/OmO0olnCT8ek JuU2Rz7Ams22qHihrzYy9Vy8/U71HVQubPFcflrGeAUqUZwT+TLqgj0trsX35bkrZd6H 3X80oQ4jHIVrmeroJUdqoT6rRPNA+2bdUBI6d4soMLBFenV6nX8Zl7yP1JUB6VMi6W7K XGw3uczIgVikhOUBoHHep0O0deWPBu/UiIbluRwZdLXUfWTidbGysV+Ggar5mXWZTe2S mleg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=Jio/Bv0y2FOpsFJH8jg5HnOQ0jkjCa/Kj/P0H2RjKlc=; b=DW7APq6o1yucZxxVgdjmdOC7g7+ZAnSJDQruZI/NaKwTjLbz4gDSrx3nK51V/ExYQP dViIV/9RP5O9WmAL38WT7sF63Txh/iN2Q7TojzBvVWXR9equ+EABFWZg7uQsv6F70ePW HzKeEOpmMgK49WiSpDH6d5O1LR6V0m3cAVMEayGL75dqTydZmKJ4/yCcxxKjufeDM1UM 5hZtPARIDPUZOEZDbRzyiCr0nte+ttVKYOnZ21BrAN/qcgkIBlP1F3IUgrK285nWmrz7 eyU3E4A8Q4vC/gv5QaV0gN2lmCyDtn3F1VTQvYFYL2XCZQbBshd1K/bdDtTG9NDreE9S PB3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="KRG/4bXm"; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t17si471361pfc.128.2021.04.28.11.41.31; Wed, 28 Apr 2021 11:41:47 -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=@kernel.org header.s=k20201202 header.b="KRG/4bXm"; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231506AbhD1OxS (ORCPT + 99 others); Wed, 28 Apr 2021 10:53:18 -0400 Received: from mail.kernel.org ([198.145.29.99]:34952 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240259AbhD1OxS (ORCPT ); Wed, 28 Apr 2021 10:53:18 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 3322161440 for ; Wed, 28 Apr 2021 14:52:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1619621553; bh=v9MXjcMFDkwGRxGtKjG0QxDDhk6y4//cm0KjKwV14/0=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=KRG/4bXmqOpbEk2St/DRgo26OHKoEpvaJMcORuhBhJnAKSJO0hf22cyOzkqsqg7XJ NMBdrJ7AZp2Ifo59fj4Vk9u7RorERhLrwUapTwJLqqzV3IGaWJL5G06xIuGiogYHET b532Nv7EFUmxnIklw4vgXoHXRvRp5YuXx5u/MrA917KjaLWZ05kn65qG+o8QD3hwhg x0luXKQvpp1LpHfDmnvy1qm4DrsITXKKm6eRWgnsFuWGt4lA/Uv4+4Igr+o7FGb+Tg fN6BEMDxbs2tA9WFGcVPAO/4Qop+TNJjVaW3vlEdo0PmXfueeKeiWGCaWw9b1sbzHz kmbBpzDOXP1LQ== Received: by mail-ed1-f47.google.com with SMTP id g14so14898577edy.6 for ; Wed, 28 Apr 2021 07:52:33 -0700 (PDT) X-Gm-Message-State: AOAM532mM5v3J1cXkTmpI+rrUwajL1E4liSa438EGicM1/pMIhhp1+Eu TlX5Ufv109aEr7B40nzq9GZQDAF36GyHxvqlCwaGBA== X-Received: by 2002:a05:6402:cbb:: with SMTP id cn27mr12113500edb.222.1619621551563; Wed, 28 Apr 2021 07:52:31 -0700 (PDT) MIME-Version: 1.0 References: <20210427204720.25007-1-yu-cheng.yu@intel.com> <0e03c50ea05440209d620971b9db4f29@AcuMS.aculab.com> In-Reply-To: <0e03c50ea05440209d620971b9db4f29@AcuMS.aculab.com> From: Andy Lutomirski Date: Wed, 28 Apr 2021 07:52:19 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v26 0/9] Control-flow Enforcement: Indirect Branch Tracking To: David Laight Cc: Yu-cheng Yu , "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 , Kees Cook , 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 Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 28, 2021 at 7:48 AM David Laight wrote: > > From: Yu-cheng Yu > > Sent: 27 April 2021 21:47 > > > > Control-flow Enforcement (CET) is a new Intel processor feature that blocks > > return/jump-oriented programming attacks. Details are in "Intel 64 and > > IA-32 Architectures Software Developer's Manual" [1]. > ... > > Does this feature require that 'binary blobs' for out of tree drivers > be compiled by a version of gcc that adds the ENDBRA instructions? > > If enabled for userspace, what happens if an old .so is dynamically > loaded? > Or do all userspace programs and libraries have to have been compiled > with the ENDBRA instructions? If you believe that the userspace tooling for the legacy IBT table actually works, then it should just work. Yu-cheng, etc: how well tested is it? --Andy