Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1489824pxk; Fri, 18 Sep 2020 14:04:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyLV+G1BJFlXGEqfgsgrVfWHmF/Jyp8liag+vAyIoTJKxY4iDpy1AJx3+dHIMko9Q8iejMN X-Received: by 2002:a50:aa94:: with SMTP id q20mr39836725edc.119.1600463046179; Fri, 18 Sep 2020 14:04:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600463046; cv=none; d=google.com; s=arc-20160816; b=buF0zk4jDN+4U+ZJvtZMKI+NQBP5Z1kfzi61PWsWMkK8AKAaZCIFSoaPzK0AB4vKI3 yYCb0E8V2r1hYwtJeGR1BsHJNG0R3xy/t1OKucVhFSG4StLPDlAOX7NJb5u9+5PlN6rp U+qR8p/fP+GzJUBlnnZC9p7LXRGse/ppNesvfirVcpz6Ms+HRtJtn/Ch/uEIvX1KcSGL I6im8qVhZQiGxoHIk16dCFt1nxbuC88+GtFvHR5ZLOr5X9YtsuqeqiInNaOO/Vz8yEym I+q7cyuNBR3bFZRVtlUdSPNsncTB/NawbVA59TPSTS/T9lC45pBnqas+cPs0bpSgbEIE n+Kg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=0/+hAhtoncjq7qBHMujLqRfnC8iTOtMFwbL6TviaI8Y=; b=vl0vhtUL5neXU8TWAddzM3WCobILiAcHconvc3ge6rPz9ryxougiHnFfK37LxweejK 2+fulxkA23FkbheKxYUJUa9pDgHk3CbxiU6ali/qTejIVJkCwiS8M0xM06NR3r7unb0m qmrgNWt7LtVC2ksZN543H5t+nlux7EOwoRFruud67K+bSui3BnuJ2VBdvUrCYHSYtRvc SG4QPrho5j1o+kBMkgJc/YWBYv/qxhkEthY7S9HU/xBRSvA6inHDmd07xXizeWEgrND8 TTnqCC6BOmqNKJ1p0PhYgOLkh5ehEW+3UwivDeJPHHfkiucMYk/hvth6uS0qUw0TBZal DlTA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g8si3534790ejm.633.2020.09.18.14.03.42; Fri, 18 Sep 2020 14:04:06 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726267AbgIRVAa (ORCPT + 99 others); Fri, 18 Sep 2020 17:00:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60038 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726139AbgIRVA3 (ORCPT ); Fri, 18 Sep 2020 17:00:29 -0400 Received: from jabberwock.ucw.cz (jabberwock.ucw.cz [IPv6:2a00:da80:fff0:2::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9DA60C0613CE for ; Fri, 18 Sep 2020 14:00:29 -0700 (PDT) Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id E8B041C0B8D; Fri, 18 Sep 2020 23:00:26 +0200 (CEST) Date: Fri, 18 Sep 2020 23:00:26 +0200 From: Pavel Machek To: Dave Hansen 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 , Peter Zijlstra , Randy Dunlap , "Ravi V. Shankar" , Vedvyas Shanbhogue , Dave Martin , Weijiang Yang Subject: Re: [PATCH v12 8/8] x86: Disallow vsyscall emulation when CET is enabled Message-ID: <20200918210026.GC4304@duo.ucw.cz> References: <20200918192312.25978-1-yu-cheng.yu@intel.com> <20200918192312.25978-9-yu-cheng.yu@intel.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="OBd5C1Lgu00Gd/Tn" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --OBd5C1Lgu00Gd/Tn Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri 2020-09-18 12:32:57, Dave Hansen wrote: > On 9/18/20 12:23 PM, Yu-cheng Yu wrote: > > Emulation of the legacy vsyscall page is required by some programs > > built before 2013. Newer programs after 2013 don't use it. > > Disable vsyscall emulation when Control-flow Enforcement (CET) is > > enabled to enhance security. >=20 > How does this "enhance security"? >=20 > What is the connection between vsyscall emulation and CET? Boom. We don't break compatibility by default, and you should not tell people to enable CET by default if you plan to do this. Best regards, Pavel --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --OBd5C1Lgu00Gd/Tn Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQRPfPO7r0eAhk010v0w5/Bqldv68gUCX2Uf6gAKCRAw5/Bqldv6 8qBcAJ0YJtWeTjQjXFucIva3HllV8Nh3fQCgmunsWFmIupuoMiilfqXcz7sKnsA= =pXmh -----END PGP SIGNATURE----- --OBd5C1Lgu00Gd/Tn--