From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-il1-f181.google.com (mail-il1-f181.google.com [209.85.166.181]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C3DCAEDB for ; Wed, 17 Jul 2024 01:21:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.181 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721179298; cv=none; b=Qhl7MTzGYnYemSj8ix6B2bS5cXwgS4byjXvu2SW9ZS86YU0T0F6OdTqNI83C76drFEWjkpYyVe2YF52VtI9oc07Dn0xW51NXc2vNLUrwYhuUvUXtAUq8ji8rI3RW1MPDQqcntZP+TrM+I1bVFeWSKAFcQI3NJiH2aZ8eBkJhEwA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721179298; c=relaxed/simple; bh=lhXGzSMA/JZRKD/aeyepBh11njIMXYWpRmumnS6D6Rk=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=VL1C/d8nLJWz6EO1kk1E1p9/cKB+0+ldrc5pdjrk+ulmG7AVVZua5NDaJk5RgYbAKBBw0AGAp6p1NqDtgeRL0VHvxc2dbAt8j9RZIU0WqTq1Hk10UG8PkMEjYcNGhTw5MYSKuWT/rGQT7KEWY9uWF1gD9IAGPEwTgXB+Xcj+3t4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=zd/ljHA0; arc=none smtp.client-ip=209.85.166.181 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="zd/ljHA0" Received: by mail-il1-f181.google.com with SMTP id e9e14a558f8ab-376266a65c8so1798015ab.3 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.linux.dev; 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=zd/ljHA0oRqEyAwN6DXZtdmxNxPRda25TZWpCE9aObmv1eTZRaAcbqYv3MUHsbWwDh +Y2ve3zS28lAdK2lI8l0gWr+MqGKLll+tH3IP1cZE+qGBSgIUA1wrU92lKtNwmTXF1P3 54WqCwZTsgw7oHfhR2AgQTT0nRsEYs9vDFzfi5kkSOETU0tBcuSxW/wKx5ZIkdqD9Y43 NS3k23l5qrkMeoHWH1VMRKSl8POFkeZPwgYki0WrBAeSEj75nmUua6Ago3e+8PHGVraR YKauygjqSgAJtXBX+QIw9Kw5Me+gTHxs5GJX6AOhY4XDre3phi30mjFA4h6yZDiiCTXv 94AQ== 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=IGwqATeW4Qp0OacLdBmXuTzUoKS9A+aRwWRsMAe4J5JTwnQzJ+C2FrTBysWL/b/ObY LpTvydk5ZmFbhPQJPcD3P/yU3DPsfX+w61EvuOomJC8y5eCe5/aBoZk8quNIvtSrEa5j X1w3MqOJuZudWFWuyVa+EIGXH+6j4gChXAZABgWgQiJ/GZV7oVcKsaPFcefODGKrlWGn 0ahdhx+J/eroFzJ2iTDJVu/5yiZzQPssScssZrj20JS4Onpt9do9Vj7NuH/fTepsP6SX LvpQUHU9bIPzx5NegVm3LZfKXyZyfOjPKCt5nWUUiWthyoj6pDBm2fwY9fg8oracdsxN sJCg== X-Forwarded-Encrypted: i=1; AJvYcCVReSY2zqIK/ADbye9oFgucT7yTbG1+vbLNIOBPRXKKiIR1Mt+xolR3ZJzZKsCVn6xAYEWeF82boRxWNcDtTzBouU9n+gql X-Gm-Message-State: AOJu0YyqfjwmsDnAx6k41qiv9X8s3VfqbNoP2AxRd5ZlxSrhbntlCFwy GJeZ0k3aRds42wqb2FHA7iXd93+Rdtz2MEj0Jqf5VBwPoKIZwd097ft85HUu8ME= 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> Precedence: bulk X-Mailing-List: kvmarm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain 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 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 CA5C3C3DA49 for ; Wed, 17 Jul 2024 01:21:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:References :In-Reply-To:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=duN5LXNpF5x/YMoV2JfPLdlzCIH6I+VOm8RLYzRMkkU=; b=iPWMtWE44rdxm8 o0XYexGnFh/dhOD+C9rJTDQFL63AGvHSkjPFfJgUcp9qGMddz7MmzW6B2hIt/5BvKfyy6hobRVBQY pKtHy0lZnYUG53JIREnB8a7ci5wv4Mcyw88WXysfy+BskIqsPq8anFDH4FPwPwbKFcW/yShygMKg9 kcvd0+4tbMXGHBnwliMl9r1Sa+sEd9Elvwzufs6irhP5X2ztEynn/qfgvqaSDaO/gmFZob8HNqG6W GBeme/3WTtQ/SSdZsfw3wlIl7nCxhbC9Ufznnft3XxLAXoZbRRH0P6TK9/XMal30BV19hAvx8/H8n oJ5R44ZnJYb77pZj2H3Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sTtMS-0000000CFlv-23zI; Wed, 17 Jul 2024 01:21:40 +0000 Received: from mail-il1-x12a.google.com ([2607:f8b0:4864:20::12a]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sTtMP-0000000CFl2-0KOg for linux-riscv@lists.infradead.org; Wed, 17 Jul 2024 01:21:38 +0000 Received: by mail-il1-x12a.google.com with SMTP id e9e14a558f8ab-380eb36f5ceso1858605ab.0 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=Kj12E0RVKXjNulNMqGtrtX5YBlmKk8ncASKLya2J953CixkX3pxwJLfJCu9hmsvmYS +qbZIDzUCT6cabrQVRrB0A+EKuw9ImJZtES17Ewc82X/90GTManZW0ZyGOkj0iF/gYtc XiVLQ+PZASIRJ4gg2yCa/92DyT+mK+mFBFPo+dFUEtcvNe2Dd6GGvR1wlgTFCvWarYXj 7kERYm92/tuXegFOnSszoSZZax8Mzl6f9O967en3/VRjP5jcNS8jPkglzO72/UbDF6p6 ic+odw50KdVjeIQj27EXpVFm1MN93TbQeyhufltFUP8t9QL8g8aITZl1kOvK8Bw20tyD 51Pw== X-Forwarded-Encrypted: i=1; AJvYcCXeBedWj/tgQI6UJDF72/CO1lAkp01hUDraeV91XDmK2EyX8nOiGl08DNebJiyiTWROSUBjxXTsyuyhftC0Fs5l71QiBZV9eh8BnKFuD04d X-Gm-Message-State: AOJu0YxAFIAR80yoLz52rkV1T8irpSTDZXqC1QhBb0h77uGN+Dpa/pLW jLJeXWobPnxSozE2TKIT72R+H5+rm+3YEGAfJee+HpoHiS8Fd+buTdPx1BlY44w= 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240716_182137_302679_25C333DC X-CRM114-Status: UNSURE ( 6.99 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=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 _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv