Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp245857imm; Wed, 11 Jul 2018 01:29:29 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfsf80WCUaKCxQXZ+JJEi4WGXaXsXCfwzDRyZjOR4sBS5/GEBijq8G/2YfEyZDrQ47Ni+BU X-Received: by 2002:a17:902:d692:: with SMTP id v18-v6mr28152484ply.59.1531297769189; Wed, 11 Jul 2018 01:29:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531297769; cv=none; d=google.com; s=arc-20160816; b=g9ziWZG3BtAqnBxUpESadShwLUr8JZ5rXYzMWkoZv0H8tDwNmyTp79JyzYJ+WAhj+g yZit5w33/1G5LPL7iUtE2ZTe1dPdAlO/vaSJ/010HoK+NfXtYK0FVC/J/uFLvTXWE/YG IORzETN1cI0uvKixdQWUBgXzA9Z4o26esgy83GC50trKQlRqePD5rEK46DwtKtf8Fbce rpr3rX5KCJkI7fMtnRMuxwTNTHkQxhpvHYb9ctIGBpU5uAtC3aKUSNr9IgVULtzsnk2j LMp/lGpJ7vzcOSbfz3wbYBoBS64KP2Yfi28/OnPvBboIRkRLeDwdf/zwDLLZoZqQY+4X K7Qw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=jpSLXA3OEKqDbJfgBQyj6lXuZfl45cOv0JPaPPQSPvE=; b=l1NnLn6yzu+IEIkkGgeYdB/FRQLkFp72C80XZWWR4O05XqJv2WpoGNBbF0JYkrHUZt HTbHe6Fg7kUjN8PS/ZcN/xoNHNbQ3mzYro8MCZeUwRa9hdyedTyYm21CS2i8Kwem9gmq ykVC9cfT3SpEosIOqMr9qra2a5Tcc2qK4bEQrw+b0rn9HCqMI2VM40sXJ+lEFFgIRXeM qEr8aE5Rh08l+shyeSTvoHvPi/vU4jTPuXnCn5yRvfhEgttcAOnlGHLcZAwDq5ZG6r3N O8cmpiOqHa7AZzpYk9GHkxClI6B2p+vtSFyw1ZWPh8fM0EIKfYq6lsWDvs65OeUlI+GO mYlQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q5-v6si10138480pgn.95.2018.07.11.01.29.12; Wed, 11 Jul 2018 01:29:29 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732428AbeGKIax (ORCPT + 99 others); Wed, 11 Jul 2018 04:30:53 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:51674 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726280AbeGKIaw (ORCPT ); Wed, 11 Jul 2018 04:30:52 -0400 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id E00FA804B7; Wed, 11 Jul 2018 10:27:42 +0200 (CEST) Date: Wed, 11 Jul 2018 10:27:39 +0200 From: Pavel Machek 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 , Cyrill Gorcunov , Dave Hansen , Florian Weimer , "H.J. Lu" , Jann Horn , Jonathan Corbet , Kees Cook , Mike Kravetz , Nadav Amit , Oleg Nesterov , Peter Zijlstra , "Ravi V. Shankar" , Vedvyas Shanbhogue Subject: Re: [RFC PATCH v2 05/27] Documentation/x86: Add CET description Message-ID: <20180711082739.GA18919@amd> References: <20180710222639.8241-1-yu-cheng.yu@intel.com> <20180710222639.8241-6-yu-cheng.yu@intel.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="IJpNTDwzlM2Ie8A6" Content-Disposition: inline In-Reply-To: <20180710222639.8241-6-yu-cheng.yu@intel.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --IJpNTDwzlM2Ie8A6 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue 2018-07-10 15:26:17, Yu-cheng Yu wrote: > Explain how CET works and the no_cet_shstk/no_cet_ibt kernel > parameters. >=20 > --- /dev/null > +++ b/Documentation/x86/intel_cet.txt > @@ -0,0 +1,250 @@ > +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > +Control Flow Enforcement Technology (CET) > +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D We normally use .rst for this kind of formatted text. > +[6] The implementation of the SHSTK > +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > + > +SHSTK size > +---------- > + > +A task's SHSTK is allocated from memory to a fixed size that can > +support 32 KB nested function calls; that is 256 KB for a 64-bit > +application and 128 KB for a 32-bit application. The system admin > +can change the default size. How does admin change that? We already have ulimit for stack size, should those be somehow tied together? $ ulimit -a =2E.. stack size (kbytes, -s) 8192 --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --IJpNTDwzlM2Ie8A6 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAltFv3sACgkQMOfwapXb+vJCUwCfRHq9+RCMp+u2Y1KcEeEwRWQo uw4AoKTNBubkPzJE8R3PcwGC3r8tTOI2 =YfD9 -----END PGP SIGNATURE----- --IJpNTDwzlM2Ie8A6--