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 6E4EFC4167B for ; Wed, 6 Dec 2023 21:28:02 +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: In-reply-to:Subject:Cc:To:From:References:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=56ryHT6qZ/g6NrTUcqFqHygj076ALB3tsXMN6ZHsbk0=; b=c8oVK5L1qa54sEY2rziFfyWrEL xSK8RODcAoKLaMtrRxpOOrEBf1nO7excICVQjKHp4lRMMb1VhTFIRtzwPK4YoBR3nHV0nlZRjsxO+ GknS1hjvkbsJ/k/u1+u4M63BySaDSUqWCZFgiy2drH2P8NHXQU3EvRIxIeMqf4jdRkXT19BbHO7DP PGa12ybt9Prk98X69Q7emJuU15oTXxjlTVDGdI5MgriYxR+O82Fy5QEvycX5V+WIJ35Mkkn6EfAf1 AxmZBAxBnBy4XBtVbTGNP8I9kkA1DkV0ROK6HDP/QnIWgACzmqr+yzvCI5whqDoz3Aa1kLXKanDM5 wFAJEqGA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rAzQa-00BJcu-28; Wed, 06 Dec 2023 21:27:32 +0000 Received: from mail-pl1-x62d.google.com ([2607:f8b0:4864:20::62d]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rAzQY-00BJb5-0P for linux-arm-kernel@lists.infradead.org; Wed, 06 Dec 2023 21:27:31 +0000 Received: by mail-pl1-x62d.google.com with SMTP id d9443c01a7336-1cfabcbda7bso10318445ad.0 for ; Wed, 06 Dec 2023 13:27:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1701898047; x=1702502847; darn=lists.infradead.org; h=mime-version:message-id:date:in-reply-to:subject:cc:to:from :user-agent:references:from:to:cc:subject:date:message-id:reply-to; bh=mbZzH+s3JDxV/sloks5umdqEjeI9fKLBWt3znOcMhGI=; b=K9JUEDTxMa4byE+WGMCM3A4MAzaKwUfDCdeWNCPz2MgitKtQ14bszh4xvinSAn+d9s tnK0JZ9kzq7mA440FDswJ/cFIDJ/Cm9iXN+aRLYxvkhmBgffylZYUsnaXncZ45fFxjah LS7tfUQxN0PV7OQ6zE4i4vW3+qMhVNIgtT0yBPf2hwk2MyQWJtgBvP+UEKB/qZmW59Ns qxTcBPL5AmhPH+knKbZa7wBNCGtGshJUrWTcv4xxYEmLOO3tvb8RW6TSXiy/XoxfAksU gWN5TGjM+iY01I2MzK67P8p0iCcH5X7NhTOlWet55UkX+j+KKAYIIvCkPcxUhsozb/D+ nAJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701898047; x=1702502847; h=mime-version:message-id:date:in-reply-to:subject:cc:to:from :user-agent:references:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=mbZzH+s3JDxV/sloks5umdqEjeI9fKLBWt3znOcMhGI=; b=F7ZeQIE6t1EymQ/bTA9O2wbwW3zFXYtKHkb3rC/UVwR/TeU04uSVwsSA90V34/SiOm 3PUR2wux2uFfVBctlxV2NF/bTQofzhwg4bZc1kjjxeiWqzGlUyDHBeWXctGS+6kdDf3z NQh0t6ElIJeAx0GbHd1CSVKDDh551EeVDIton3bRkfbN14S9PRPuv5ZKGqwar6NlAB4r MRitRHCmpGjuhnIb98rD1s6n2NySBApsoPyMIs1TGeVTeBsAQZgGUDDqYUUNi9tdvhEZ EXAtWxbIR0BZtI/G82DffOOSeQmqScmMCVK854faQcGWKDzmAIzDWcc5Os4+p9TevS/1 o9zw== X-Gm-Message-State: AOJu0YxwbynwA30O+02VJKS2nfwyTWJczqb+SRTyVdfEv4t9vPL/5L+i Yht70agFCk+5qlLsrsr1mPta6A== X-Google-Smtp-Source: AGHT+IGLa8DInnGMjJcXZtON7bZ8pQ8xN1J6vJzQP1zj6zdeB3quK1/DibmWAlo2/mpEotTdJ4e23w== X-Received: by 2002:a17:902:e80f:b0:1d0:6cfd:d3c4 with SMTP id u15-20020a170902e80f00b001d06cfdd3c4mr2193857plg.17.1701898047545; Wed, 06 Dec 2023 13:27:27 -0800 (PST) Received: from localhost ([2804:14d:7e22:803e:f0e2:3ff1:8acc:a2d5]) by smtp.gmail.com with ESMTPSA id jj12-20020a170903048c00b001cf6453b237sm259379plb.236.2023.12.06.13.27.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Dec 2023 13:27:27 -0800 (PST) References: <20231122-arm64-gcs-v7-0-201c483bd775@kernel.org> <20231122-arm64-gcs-v7-22-201c483bd775@kernel.org> User-agent: mu4e 1.10.8; emacs 29.1 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 , Kees Cook , Shuah Khan , "Rick P. Edgecombe" , Deepak Gupta , Ard Biesheuvel , Szabolcs Nagy , "H.J. Lu" , Paul Walmsley , Palmer Dabbelt , Albert Ou , Florian Weimer , Christian Brauner , 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 v7 22/39] arm64/gcs: Implement shadow stack prctl() interface In-reply-to: <20231122-arm64-gcs-v7-22-201c483bd775@kernel.org> Date: Wed, 06 Dec 2023 18:27:25 -0300 Message-ID: <87edfzhvia.fsf@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231206_132730_167206_7A89600A X-CRM114-Status: GOOD ( 11.63 ) 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: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Mark Brown writes: > Implement the architecture neutral prtctl() interface for setting the > shadow stack status, this supports setting and reading the current GCS > configuration for the current thread. > > Userspace can enable basic GCS functionality and additionally also > support for GCS pushes and arbatrary GCS stores. It is expected that s/arbatrary/arbitrary/ > this prctl() will be called very early in application startup, for > example by the dynamic linker, and not subsequently adjusted during > normal operation. Users should carefully note that after enabling GCS > for a thread GCS will become active with no call stack so it is not > normally possible to return from the function that invoked the prctl(). -- Thiago _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel