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 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C27ECC3DA59 for ; Wed, 17 Jul 2024 01:22:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type:MIME-Version: Message-ID:Date:References:In-Reply-To:Subject:Cc:To:From:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=HxSuTpzy0m4oHhnzHH3Vl/gMhNpkpWEzqeVsFcwdgKA=; b=33wgyPsTbMYQZv00DYk0lF5PFQ gxzx9lKn+uMS7PA2e/LC3J9l9omuNJsK/5IuceF8qibX1vFOHTqMPwdypqSUZvdq/hBCJV+G9yEo0 1t9tZNRgq6fitxkWSqseJqe0FcNfamftMwtcvtJqvc1FtbqPaTrkqza1bxVvLD5WxK3PiQZIOa+Og WKtiRDBi6v3qieo2QNNdh2+Bjt9XaeWMDhpY+GqxNSirK+KbHTztcgYkRIoIAEXfs6QmpSRePurqY v2DEys38qHAfq18N3uiOxBjC3WwEZOz+U2Xkk47kKma7RMiJnfrKLA5U6SeDrRMpdibordYWAwigv o+YpnRKQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sTtMk-0000000CFuP-3wyO; Wed, 17 Jul 2024 01:21:58 +0000 Received: from mail-il1-x136.google.com ([2607:f8b0:4864:20::136]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sTtMP-0000000CFl1-0KtN for linux-arm-kernel@lists.infradead.org; Wed, 17 Jul 2024 01:21:39 +0000 Received: by mail-il1-x136.google.com with SMTP id e9e14a558f8ab-380bfd7cdbfso2091825ab.1 for ; Tue, 16 Jul 2024 18:21:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1721179296; x=1721784096; darn=lists.infradead.org; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:from:to:cc:subject:date:message-id:reply-to; bh=HxSuTpzy0m4oHhnzHH3Vl/gMhNpkpWEzqeVsFcwdgKA=; b=vm4mpEcFjH2iEcdd79PcfMVeXcyu9K0VMm9U3qnNNU1QHrlDFpaweX7ROmu1UBObxe szu2uSwyHx+4fiNDWkQ2ZtAwXBowCe9dBH8tEIJPZf2pPn4cI3C32EcyLzRcb99onJOC slShfYYbrv+Rkw1ZMgwURKqp0RzhoWx6dSFoR5YSeXXbkzntoFiynL7ecyxJbZMpFdGL dduW+zgunVOebcELZgYgzEalJWdKuH1T+rVze8X1858aDy0HHPhY5U4A0sNWlIzXiT3z nNIpbXr/3GcYGBf2rYkM4OTaP0sLnjgQVCf1hYROiedaneayUravuctDmLKvGz0WdDmJ bLZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721179296; x=1721784096; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=HxSuTpzy0m4oHhnzHH3Vl/gMhNpkpWEzqeVsFcwdgKA=; b=u/p6O2/qTXtJx4gUI4lH3uYL0En3Ratr7rQzmD7tQqzsmBh/5HEIElI0OHkMTT8xm7 piMlqn8fF7h/yECW13ylPff3LQv09ah6MZp7AXC0GmqaDvQzi4aXe3rvUDoviRNrROcT d1yFnT550LWaEU2UiwW2o6m/wnpnD43fzSiZO/tX1t9YayWBVm8aTnhVm6swoyrVJZsQ dN0eOjM7w8D/LrUCNq6iFgfLjFTIELIEAgNfSmbdcyyjAom7xseTUNNAczt77r55/BJI UGuNtNUtAlMqH+XmwEej+94cVVdKLmIebc5NeqsDRi310vtx2OIq5SJt5vQao3LdgWPH D4BA== X-Forwarded-Encrypted: i=1; AJvYcCVuy6lqNYTzhkKjTHmHTberl150QK3uEjgV6rI4fk1Rs7NiUlSuqrRL55mvLhVpxaUzoiFZ+j47eS3rHmo3o7j9k72Uy5ekqsN6ll0eJ39dAktPdss= X-Gm-Message-State: AOJu0YwoDodHNi2bsl+FFT76drUC+KRQWQKDoGbhtHn59SJE/RIPj3sU F4Rr3BbEMtHJd/2N2Hml0KxnOTwjPShsM/rjQAQbMVMiqWU8S6+n6H8mlD8cQVk= X-Google-Smtp-Source: AGHT+IFRPVkYVOcZWv1UNdg1RTMru4FboqdZLxvXpxoWV2PdP22CoQ+3xARnx+an75M9dDo1WCR1/Q== X-Received: by 2002:a05:6e02:13a9:b0:381:3989:214a with SMTP id e9e14a558f8ab-395557ffecfmr5071635ab.10.1721179295925; Tue, 16 Jul 2024 18:21:35 -0700 (PDT) Received: from localhost ([2804:14d:7e39:8470:4ae3:bddc:48f7:36a0]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-70b7ec7c5ddsm7023267b3a.124.2024.07.16.18.21.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Jul 2024 18:21:35 -0700 (PDT) From: Thiago Jung Bauermann To: Mark Brown Cc: Catalin Marinas , Will Deacon , Jonathan Corbet , Andrew Morton , Marc Zyngier , Oliver Upton , James Morse , Suzuki K Poulose , Arnd Bergmann , Oleg Nesterov , Eric Biederman , Shuah Khan , "Rick P. Edgecombe" , Deepak Gupta , Ard Biesheuvel , Szabolcs Nagy , Kees Cook , "H.J. Lu" , Paul Walmsley , Palmer Dabbelt , Albert Ou , Florian Weimer , Christian Brauner , Ross Burton , linux-arm-kernel@lists.infradead.org, linux-doc@vger.kernel.org, kvmarm@lists.linux.dev, linux-fsdevel@vger.kernel.org, linux-arch@vger.kernel.org, linux-mm@kvack.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org Subject: Re: [PATCH v9 05/39] arm64/gcs: Document the ABI for Guarded Control Stacks In-Reply-To: <20240625-arm64-gcs-v9-5-0f634469b8f0@kernel.org> (Mark Brown's message of "Tue, 25 Jun 2024 15:57:33 +0100") References: <20240625-arm64-gcs-v9-0-0f634469b8f0@kernel.org> <20240625-arm64-gcs-v9-5-0f634469b8f0@kernel.org> Date: Tue, 16 Jul 2024 22:21:33 -0300 Message-ID: <87msmgu82q.fsf@linaro.org> MIME-Version: 1.0 Content-Type: text/plain X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240716_182137_302842_34F3A55C X-CRM114-Status: UNSURE ( 8.30 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Mark Brown writes: > +3. Allocation of Guarded Control Stacks > +---------------------------------------- > + > +* When GCS is enabled for a thread a new Guarded Control Stack will be > + allocated for it of size RLIMIT_STACK or 4 gigabytes, whichever is s/4 gigabytes/2 gigabytes/ > + smaller. -- Thiago