Received: by 2002:a05:7412:d008:b0:f9:6acb:47ec with SMTP id bd8csp336956rdb; Tue, 19 Dec 2023 20:13:57 -0800 (PST) X-Google-Smtp-Source: AGHT+IGNRrK1m9d3JY/6stpa0WkBSEh+a3e9AgfCbQkM50RAtG7m5DQpkJfpuDT7tiTFSTyMdV0F X-Received: by 2002:a17:906:530b:b0:a23:7364:a3e8 with SMTP id h11-20020a170906530b00b00a237364a3e8mr890838ejo.157.1703045637146; Tue, 19 Dec 2023 20:13:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703045637; cv=none; d=google.com; s=arc-20160816; b=ujSNfTWvIJaJ5c/fugK9GXWsY5UUXJ5OThMmurtgxF9DZuzQn+ffgR3yag4FEE/tyq BGyQ+5Wg+EWVQLgln9ES5PD/z4QTVUqPaNGXjoQq2XNSOA08bdDO5cvMmoiHsSsA+LyR IfWsDG6sZr5pvHt/LOcAbyLIQBpbSaoaR9eF0vhnbUXxO69wnz1OlW4E4YhZSTjOHPH8 KDKVaY1XCQnts/IE8VIeEtGgxNZS/hIPEVoJFl+r41WQNfsaWcVoTLUhAl6DOhDBlp7u ZGN/mwL0vEIQ+Bfa/3udfpOkWzRnClMpQHfSjNbYReAMlrpUKtp3dfdwcmgg+wv1EYa0 glvg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :message-id:date:in-reply-to:subject:cc:to:from:user-agent :references:dkim-signature; bh=mNVWdMSAqfvpbN5g4IovRqwuhzgdiEbCZgrhc7x2wjc=; fh=2nPFT/KTslTQ686WgFSojEEZau7G7tqoQ5Zr2uSyW1U=; b=PPnimQMr6f7cVg5wtAH7m3/cu71Xv1Y5JMM54C/be8Zspm1zEIaooH4C2LGPu0SlSy 4xbwcTwxcW2nby8jHcIr1bBhvb0saVqILeh8BnE6LZ4r/AVeZHsHwVZ7IhGyFZD1zsSL V4qVI/TEEO1D/YyYRt9pAT5M54SoGEpIrgUIFCvMDOWxscA1TUUcyNVN2WL86fN2ID31 VuSnepNv1+v3P/lrPJBstNnVXb9EBlhBU6+VlhyppzUx+BYfBQlTrWuuZBbqWGZAYZ8V EOsEKenk0zdre2sIzeONNl+1rRyOUpLcchOJU2vPJAyU52c/XnjEQHrcCoQ6Q75Z1YKI i5CQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=sqFpniuU; spf=pass (google.com: domain of linux-kernel+bounces-6349-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-6349-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id dt1-20020a170906b78100b00a1db94ef722si11692475ejb.199.2023.12.19.20.13.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Dec 2023 20:13:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-6349-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=sqFpniuU; spf=pass (google.com: domain of linux-kernel+bounces-6349-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-6349-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id B8B5F1F25D6D for ; Wed, 20 Dec 2023 04:13:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 44A72C153; Wed, 20 Dec 2023 04:13:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="sqFpniuU" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-pl1-f182.google.com (mail-pl1-f182.google.com [209.85.214.182]) (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 2D91F168A9 for ; Wed, 20 Dec 2023 04:13:44 +0000 (UTC) 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 Received: by mail-pl1-f182.google.com with SMTP id d9443c01a7336-1d045097b4cso22827535ad.0 for ; Tue, 19 Dec 2023 20:13:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1703045623; x=1703650423; darn=vger.kernel.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=mNVWdMSAqfvpbN5g4IovRqwuhzgdiEbCZgrhc7x2wjc=; b=sqFpniuUv1jPeUcslD9u70BMjvDT3Pn1u4MVKC25xqk7qxT3ogc04/G7AzpnjFN9qP wX0M0o6fDxBVGgdq1KImwVb4xQARFPNes9FjuZOpYBPXl78+YLFexHeH/h/L8Nd46oF7 fAtGCV4qqJLJvfql1Hx8OdbBb8T6rgdTXpDhofeX1aN/vUCjzKBiwFQhBDOFceaIVp83 2azW/SVeUaLquJ+xCC8bz30l5VXWxfNSJDHiWYyq95ua3xyhNLNWr7xoHg6PfDpmL2BE LE2WARMFquM73UPg09z5t7bXfLsAARBhlaMR76KzetrUdMYZCIaOd5uQcViu/SWCjMdG s+pg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703045623; x=1703650423; 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=mNVWdMSAqfvpbN5g4IovRqwuhzgdiEbCZgrhc7x2wjc=; b=K0GiajQ36CWprdHi6cIv70x6d+2jljY54w4m6sEEh2rpQFofDfexP1tBt4BBD+NXrE 3iG6JaSB0Z5uq/hhFr2R0JMK5OwoTTdBuGySjJL7W6xlM+9CjbVaiRMrb9dpH3ObCunM Hm+8a7oDMgwl8pwMtHzS969bRpH9jVwFaFU0j3d/GDjfrNQQ2nnv1q2Y987aLmPQFeD7 TRfixs/NXbNlDHQknxSdtUP9WDIWuN3kbYianuKwzYd1Pa08GXAJvaz2HehB9aq9000N FMnxNdpNcNATQZbxQw65l+N2shL6odKrp4Pfm3jpOBI05EFtIO0yLJqGwa38RKqVDxG0 qcVw== X-Gm-Message-State: AOJu0YwmqZiyt8U4TljVj9szPhkQhjWh6gUz6ilbNpFBYSKyaGiC7KGh gOmcYTZ/GfcDt+9Y8CHL5nOv1Q== X-Received: by 2002:a17:903:22c1:b0:1d3:c025:c99e with SMTP id y1-20020a17090322c100b001d3c025c99emr2935918plg.63.1703045623531; Tue, 19 Dec 2023 20:13:43 -0800 (PST) Received: from localhost ([2804:14d:7e39:8470:8f60:ee5a:d698:1116]) by smtp.gmail.com with ESMTPSA id q14-20020a170902dace00b001d08e08003esm21884208plx.174.2023.12.19.20.13.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Dec 2023 20:13:42 -0800 (PST) References: <20231122-arm64-gcs-v7-0-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 00/39] arm64/gcs: Provide support for GCS in userspace In-reply-to: <20231122-arm64-gcs-v7-0-201c483bd775@kernel.org> Date: Wed, 20 Dec 2023 01:13:41 -0300 Message-ID: <874jgdh5oq.fsf@linaro.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain Mark Brown writes: > arm64/mm: Restructure arch_validate_flags() for extensibility > prctl: arch-agnostic prctl for shadow stack > mman: Add map_shadow_stack() flags > arm64: Document boot requirements for Guarded Control Stacks > arm64/gcs: Document the ABI for Guarded Control Stacks > arm64/sysreg: Add new system registers for GCS > arm64/sysreg: Add definitions for architected GCS caps > arm64/gcs: Add manual encodings of GCS instructions > arm64/gcs: Provide put_user_gcs() > arm64/cpufeature: Runtime detection of Guarded Control Stack (GCS) > arm64/mm: Allocate PIE slots for EL0 guarded control stack > mm: Define VM_SHADOW_STACK for arm64 when we support GCS > arm64/mm: Map pages for guarded control stack > KVM: arm64: Manage GCS registers for guests > arm64/gcs: Allow GCS usage at EL0 and EL1 > arm64/idreg: Add overrride for GCS > arm64/hwcap: Add hwcap for GCS > arm64/traps: Handle GCS exceptions > arm64/mm: Handle GCS data aborts > arm64/gcs: Context switch GCS state for EL0 > arm64/gcs: Allocate a new GCS for threads with GCS enabled > arm64/gcs: Implement shadow stack prctl() interface > arm64/mm: Implement map_shadow_stack() > arm64/signal: Set up and restore the GCS context for signal handlers > arm64/signal: Expose GCS state in signal frames > arm64/ptrace: Expose GCS via ptrace and core files > arm64: Add Kconfig for Guarded Control Stack (GCS) > kselftest/arm64: Verify the GCS hwcap > kselftest/arm64: Add GCS as a detected feature in the signal tests > kselftest/arm64: Add framework support for GCS to signal handling tests > kselftest/arm64: Allow signals tests to specify an expected si_code > kselftest/arm64: Always run signals tests with GCS enabled > kselftest/arm64: Add very basic GCS test program > kselftest/arm64: Add a GCS test program built with the system libc > kselftest/arm64: Add test coverage for GCS mode locking > selftests/arm64: Add GCS signal tests > kselftest/arm64: Add a GCS stress test > kselftest/arm64: Enable GCS for the FP stress tests > kselftest/clone3: Enable GCS in the clone3 selftests Not sure if this is warranted, so sorry for the potential spam: I don't have any comments on the patches I haven't replied to. -- Thiago