Message ID | 20241001-arm64-gcs-v13-31-222b78d87eee@kernel.org (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id C4358CF318A for <linux-mm@archiver.kernel.org>; Tue, 1 Oct 2024 23:05:47 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 579C8680038; Tue, 1 Oct 2024 19:05:47 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 500CD68002B; Tue, 1 Oct 2024 19:05:47 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 37D4F680038; Tue, 1 Oct 2024 19:05:47 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id 13B9B68002B for <linux-mm@kvack.org>; Tue, 1 Oct 2024 19:05:47 -0400 (EDT) Received: from smtpin13.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id D49A5161182 for <linux-mm@kvack.org>; Tue, 1 Oct 2024 23:05:46 +0000 (UTC) X-FDA: 82626567492.13.DFE2A39 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf08.hostedemail.com (Postfix) with ESMTP id 91CE216001C for <linux-mm@kvack.org>; Tue, 1 Oct 2024 23:05:44 +0000 (UTC) Authentication-Results: imf08.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=kx1yRMnd; dmarc=pass (policy=quarantine) header.from=kernel.org; spf=pass (imf08.hostedemail.com: domain of broonie@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=broonie@kernel.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1727823804; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=fhtSc8NG4a+F4JDAzBFIpzFLOAqbkYD7lVEHdcAH91o=; b=3qPwfAiBB4Mq1Lb1asZpWOXibGgGuhT7AKjBihMJBqZKS3svHVhz6Hgifx0TOnmZWW789b 4nHgq17Xc3j+bKj6IPH1ME0qtBqj4E/z4dJ58zvD2I46z8/fG92GgyhVs85yahBZ2bRwU5 UcHLFJQukrceFar2ebTsX1h3WrPK/dk= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1727823804; a=rsa-sha256; cv=none; b=F8kEvDXThq2p5OVZUVShJWX0yDazMBwsk7NDSa0nibnJF1vhRhkJWHeiYTqXZLjXhz4QLW SMCzsBLujCkTw5pyIRkpk1/RMMoyPo5p80aTr3xpgn95nNWKiZg7CHqihU2lSkDH8R7euT t8HUBPzbiXKZTMrpip539li82YVwEN4= ARC-Authentication-Results: i=1; imf08.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=kx1yRMnd; dmarc=pass (policy=quarantine) header.from=kernel.org; spf=pass (imf08.hostedemail.com: domain of broonie@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=broonie@kernel.org Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 8C8F15C53D4; Tue, 1 Oct 2024 23:05:39 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C3CC6C4CECD; Tue, 1 Oct 2024 23:05:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1727823943; bh=ioeceP+BFqA3jud12cOD0sJcVjWnQPo6t2cQSXLuyHs=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=kx1yRMndAjUJvJPAMXQ2VC6z8G7NmOrbYUt2g6DGAQP0QBoyDPQi+1Se7fH8Pxi44 8mvl5WOTzRbf99m4gw2xagRAK2roEvxigIh1LXSaGpVE34YNdy5aUzv5WeL8D50IOT LUIhobuoHDtNwmChk2d2L9GtjRFAmIkRCV/UIyyK9WYiAVu33DZwXkDtiAKB7Um1EA EVPUikALWWsBe23EXO3le7nTxuwuXLjQ8OEss6r4D6OZptAp6Q/LVdwoGlMKt3MQVA uGFLZvzjwVHUBTCE493ZGDPjR4ai6lU73zH9qbTRrb8MSLsUN1vOls8dpEDDhNArWo uYO311Tyxczrg== From: Mark Brown <broonie@kernel.org> Date: Tue, 01 Oct 2024 23:59:10 +0100 Subject: [PATCH v13 31/40] kselftest/arm64: Add framework support for GCS to signal handling tests MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20241001-arm64-gcs-v13-31-222b78d87eee@kernel.org> References: <20241001-arm64-gcs-v13-0-222b78d87eee@kernel.org> In-Reply-To: <20241001-arm64-gcs-v13-0-222b78d87eee@kernel.org> To: Catalin Marinas <catalin.marinas@arm.com>, Will Deacon <will@kernel.org>, Jonathan Corbet <corbet@lwn.net>, Andrew Morton <akpm@linux-foundation.org>, Marc Zyngier <maz@kernel.org>, Oliver Upton <oliver.upton@linux.dev>, James Morse <james.morse@arm.com>, Suzuki K Poulose <suzuki.poulose@arm.com>, Arnd Bergmann <arnd@arndb.de>, Oleg Nesterov <oleg@redhat.com>, Eric Biederman <ebiederm@xmission.com>, Shuah Khan <shuah@kernel.org>, "Rick P. Edgecombe" <rick.p.edgecombe@intel.com>, Deepak Gupta <debug@rivosinc.com>, Ard Biesheuvel <ardb@kernel.org>, Szabolcs Nagy <Szabolcs.Nagy@arm.com>, Kees Cook <kees@kernel.org> Cc: "H.J. Lu" <hjl.tools@gmail.com>, Paul Walmsley <paul.walmsley@sifive.com>, Palmer Dabbelt <palmer@dabbelt.com>, Albert Ou <aou@eecs.berkeley.edu>, Florian Weimer <fweimer@redhat.com>, Christian Brauner <brauner@kernel.org>, Thiago Jung Bauermann <thiago.bauermann@linaro.org>, Ross Burton <ross.burton@arm.com>, David Spickett <david.spickett@arm.com>, Yury Khrustalev <yury.khrustalev@arm.com>, Wilco Dijkstra <wilco.dijkstra@arm.com>, 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, Mark Brown <broonie@kernel.org> X-Mailer: b4 0.15-dev-99b12 X-Developer-Signature: v=1; a=openpgp-sha256; l=1664; i=broonie@kernel.org; h=from:subject:message-id; bh=ioeceP+BFqA3jud12cOD0sJcVjWnQPo6t2cQSXLuyHs=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBm/H7cl2+Mx+1HhzjopTN729pEuYjBFsWKPZlO2MdU P92ymjqJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCZvx+3AAKCRAk1otyXVSH0Ig8B/ 9GZyQlFK4iDt8NbeQZL9to6g92whSIQqB6IZ/45SH8X0FcRvl3aYwQRzVYoXwCsi7Rd7Wv899pD2hg ETXnYNckPSxj+/Hg+b1GAPnHeWVVBVjFf8tQZkfBj/aqGF7dehT2mEkIn7I6Ne5FEEegty03McxT3B SQ+9/X4Gicx8vTjF13/ij+9T9m+D2zXt56RjM4bGDcoEqX8z+sSm3fys+crSlDhD0b9wgtVkjrO2LG KqizOqhNT1kF2bGNuK5x+U3FUcjJ6C7g9QR0DUYFUb+s2hLLRGPa7qNnCVj8aIjJj1o7x1xiOmBXOj hPUP7NjNQh7lMAUg9LW0vgYN3lcBvk X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB X-Rspamd-Server: rspam07 X-Rspamd-Queue-Id: 91CE216001C X-Stat-Signature: ew7nm8567frmqqbxn3ecmfrof9gptqmr X-Rspam-User: X-HE-Tag: 1727823944-974311 X-HE-Meta: U2FsdGVkX1+x0ZNHOQ6+tyut/H1f6TE259+xNgrJgba7Fn8YGsGiNs+WG07ycs40ZB4kINy4ckcc2VvuEEOFeCarsYhjUJF7YYaAbUIkKdqwjB+WZulVyPSnZaV/JlHjE8n5jKBuJ1IfW8PeKNmD120uV8LMj9py/rcA78e2D6WDxKeb01698zbJn9/CmfbfTYjR0m77WcgzLlBfw3fwXun71rJQb88jGLSt32BFELN/duhlwP2y0N1bVo+TPuopCG8es2NVhX93w/6V0r++LuEw4OPcZ3SDkcWEp512Ccj3EJzP64wfsCGCeNRxXKk/VBhUyZDFhuhjwS161D9L6yuHNK+K3IPkssR1UD1y6DDiASWpgtItquhEk4aVNoejv9w3zX01dTMjyJOP5CT3383NiwzxW4gbiKww3oatFKHTRr7yxCtW8O4zznkmQdZv3zbBH+4ZwH26HTq4geRJQSPr4YkcfUvUSOtSGYXA3uGvhiksY4bOE6AcacssDdcJm9tEgdkBhUrCKrTWzkan5Ni/nPCVGLw5I++jyp1P73u+kHrcr16y+VNUBI3rDopGqPl6U53zrfnsYuIfQ0TovVMOXrSAaV8TqruidkCXSkVCI71EYaNR2SV059royGZ36Jo+blhYpChzEKNDxiQteElxUuKHbdR19OySh+t0Cf5ZYli0s2bbjQPq7eD0BjbxaK9sWIWV125NiesEKQ+G1Mnr/B23Af0IqJLDrTYusvDIAcA3xw3wjgLQiLN63TrWrBYjCFQ9nlBe1vpLKziYWRyKFtLTKyf63T7sVwjrfM4MDtAcFBNT7cGRzRib76pfPefkYvtaJ8xRRK0QoV6JRtm5l0BqTZTxn3ZL5mBnxJu8vln092wV9F9nDtZ/2D31mFf8JBKo7utAyeds1CgsFvMQSEZTCt4VXlw+B0KOm8XsWg+rHhLL9obLU6fajlKL/rW6Xr/IMJUf+MkTmAe 7r6lRgOR fHKG2fl+NnRfjGv5t2z4NoRhU74aEJi8B/AFJSKFATUmqpPYqR8KHGfI4ICZZOe+MW15MgAyn9G/yvCvyyci7SgSSDKy8CkCNXWCQFLrUWqa7+8RmtYsGPD9ZXZfd4tsKBgEt4UyjkVHbGUolNqxO1bgPGHo8mHb9xfIU8bBD+dWqK4KC+P2H7CsDxqAdmMwNRRBnWHte6XEsoWpYeyt+icsfTle6EKxho9vPLaILlpPDdHpPwzrFhV8/6oSxoout4TBs9AZ2yJaBKFM7YlZEFYjY4PJJ12buxHHQow1/f66PQvggVSYmYgor9HTDPmzWqPI0vqk/YEi87BrsNBYZ44Suq9bfm+Cjto5e8BltiFomE/OS8odeum5ZRQ== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> List-Subscribe: <mailto:majordomo@kvack.org> List-Unsubscribe: <mailto:majordomo@kvack.org> |
Series |
arm64/gcs: Provide support for GCS in userspace
|
expand
|
diff --git a/tools/testing/selftests/arm64/signal/testcases/testcases.c b/tools/testing/selftests/arm64/signal/testcases/testcases.c index e6daa94fcd2e..0c1a6b26afac 100644 --- a/tools/testing/selftests/arm64/signal/testcases/testcases.c +++ b/tools/testing/selftests/arm64/signal/testcases/testcases.c @@ -198,6 +198,13 @@ bool validate_reserved(ucontext_t *uc, size_t resv_sz, char **err) *err = "Bad size for fpmr_context"; new_flags |= FPMR_CTX; break; + case GCS_MAGIC: + if (flags & GCS_CTX) + *err = "Multiple GCS_MAGIC"; + if (head->size != sizeof(struct gcs_context)) + *err = "Bad size for gcs_context"; + new_flags |= GCS_CTX; + break; case EXTRA_MAGIC: if (flags & EXTRA_CTX) *err = "Multiple EXTRA_MAGIC"; diff --git a/tools/testing/selftests/arm64/signal/testcases/testcases.h b/tools/testing/selftests/arm64/signal/testcases/testcases.h index 9872b8912714..98b97efdda23 100644 --- a/tools/testing/selftests/arm64/signal/testcases/testcases.h +++ b/tools/testing/selftests/arm64/signal/testcases/testcases.h @@ -20,6 +20,7 @@ #define EXTRA_CTX (1 << 3) #define ZT_CTX (1 << 4) #define FPMR_CTX (1 << 5) +#define GCS_CTX (1 << 6) #define KSFT_BAD_MAGIC 0xdeadbeef