Message ID | 20241209094719.2431126-1-yury.khrustalev@arm.com (mailing list archive) |
---|---|
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 6452FE77173 for <linux-mm@archiver.kernel.org>; Mon, 9 Dec 2024 09:47:35 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 651EC6B03F0; Mon, 9 Dec 2024 04:47:34 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 600236B03F1; Mon, 9 Dec 2024 04:47:34 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 4EEBD6B03F2; Mon, 9 Dec 2024 04:47:34 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id 320AD6B03F0 for <linux-mm@kvack.org>; Mon, 9 Dec 2024 04:47:34 -0500 (EST) Received: from smtpin24.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id E7262A02CC for <linux-mm@kvack.org>; Mon, 9 Dec 2024 09:47:33 +0000 (UTC) X-FDA: 82874942598.24.9FFF08A Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by imf13.hostedemail.com (Postfix) with ESMTP id 74AC520008 for <linux-mm@kvack.org>; Mon, 9 Dec 2024 09:47:11 +0000 (UTC) Authentication-Results: imf13.hostedemail.com; dkim=none; dmarc=pass (policy=none) header.from=arm.com; spf=pass (imf13.hostedemail.com: domain of yury.khrustalev@arm.com designates 217.140.110.172 as permitted sender) smtp.mailfrom=yury.khrustalev@arm.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1733737631; 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-transfer-encoding:content-transfer-encoding: in-reply-to:references; bh=He/giAmEHqNfp9S7J2TVvzS3qQ0ix2iFGgVJ7ep2j4w=; b=uyDjQSfuXGdOpa+bFAh3Ft8mOmAlNSxB4M+pzMoZKQhiaxWOA5brK5FDdhV9Ql8/jQp8uM NkQI/1RZP+VqvkTTu1rsIc/KhYKgrhwEB7gzsstD9H/Ve7pGh0/Jttr9L9g3+v75Le8U5L ADFXwf/h6X1IN1WPkEWdeuuYoni5OFk= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1733737631; a=rsa-sha256; cv=none; b=kbfrT+nKUTnbAAs4t8SRfFOUxfbN9uBCAChDcc3GA6dv1G7aO8BcEDeK5im84j5Va/M6jk JlMaThApQVBoQbgMOMe5IgigrbyOEpYCZui1svBHfpcR52KiZXTmX3IhCLqNMe85sqz4ay K/B7xFJWZJCrXmBHDqCDRd/szIlBgHQ= ARC-Authentication-Results: i=1; imf13.hostedemail.com; dkim=none; dmarc=pass (policy=none) header.from=arm.com; spf=pass (imf13.hostedemail.com: domain of yury.khrustalev@arm.com designates 217.140.110.172 as permitted sender) smtp.mailfrom=yury.khrustalev@arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 15355113E; Mon, 9 Dec 2024 01:47:59 -0800 (PST) Received: from udebian.localdomain (unknown [10.1.35.36]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 91E573F720; Mon, 9 Dec 2024 01:47:28 -0800 (PST) From: Yury Khrustalev <yury.khrustalev@arm.com> To: linux-arch@vger.kernel.org Cc: Arnd Bergmann <arnd@arndb.de>, Kevin Brodsky <kevin.brodsky@arm.com>, Joey Gouly <joey.gouly@arm.com>, Dave Hansen <dave.hansen@linux.intel.com>, Sandipan Das <sandipan@linux.ibm.com>, Michael Ellerman <mpe@ellerman.id.au>, Catalin Marinas <catalin.marinas@arm.com>, linuxppc-dev@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org, x86@kernel.org, linux-mm@kvack.org, linux-kselftest@vger.kernel.org, nd@arm.com, Yury Khrustalev <yury.khrustalev@arm.com> Subject: [RESEND v4 0/3] mm/pkey: Add PKEY_UNRESTRICTED macro Date: Mon, 9 Dec 2024 09:47:16 +0000 Message-Id: <20241209094719.2431126-1-yury.khrustalev@arm.com> X-Mailer: git-send-email 2.39.5 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 74AC520008 X-Rspam-User: X-Rspamd-Server: rspam07 X-Stat-Signature: or66bd1z6xbuszrf4af9xckzf4g4nktg X-HE-Tag: 1733737631-820316 X-HE-Meta: U2FsdGVkX1+tKN+O0TF+ULq9qko2qQn42Nc9YPN/KOPSXpcQDlOIhlOMSyH9l2M4bBucrRmKpE3pCiauMvbG9uVpcPWR7wRwy5rJsyTyBOySpN4u+UfVc9qbFgjcH+SF+MQynksJwfC4tCRY3KuD9ndodOqM5oywlNKfQwa2reHv53pgVvyBQsG74CxkpTgoSYCZxKFu5I99+JJXSVnMGPt5O0q6mSbf8+ZU6tqN5PZ+jDFtQS5m70NBFi6TRBOMHDO7FBTtkV8GRKHSKjfEPCWfY/Wz7jRF2Jd7NVkfarZ6VBHXWxRgWzs38ZbyQNY5D/9KnyU7iBk4a7ir8GF7mDSLpnbddMjL10yT6gUgGEm+ciDkJ78WAGPMtKpi16IigL9pAa8j2zPqBbdlYq4bdrRqWKCsxWtbQ5pk1rk3lSP55V9cpT9LpyIqMiKmpNkX6FClbyonTFeAjTTaozmmSdO+zaJVRDPuMA2hW5jABFoPvsQl/cvCgVb7ohEEe87ya7cGaM0vAYFePW3IicdfF7ZcdPgJxSyew0qOLQlIwwHoeve3P6odxSFnBW7K91itb7I6i9b5DEwnYHRzcgBmFBXN6LRPNvXIQidBnHwdHq892hb9JwQPOfifka91CCnEnoYmiahEmdaXzXHO/fxd1LWvesOlJA3ZiHIwCv+bm08lA6GfO0i+1NUYPq96muzBKLOCetbKxlEXWiwahVIGfFToZL0O7qyfrqRfpwFrhYymfU8eQgasFuw6y65U+njZXjCHTbV/V5vqJ7joSJdzQYlvw7lGWpv+Y5Q5d1tkGaLTvi2VOCC36EUcfegWvo+JeEsa2eW2+Vs39BJn9uyshnv14EAfmM892SuNF0o7fTUFdyfPJC4BBB2KAtbjhkzHFndwiPuXCBbE9sR13f6RGfBnvB9JklRaClwd7xA+NbG8l2YOyw8qFibmlWXlGknudpBkvS92JN5efaYCKhC ullZPBWP teOysVeg8rklQNDEXHi4IKBbmKFr3/7dIpGFrDIyk++vm1bJQ3illwYAe/hJSClArO5gVBFuv2jjbNbBXZNgwTvdTS2giAAirYh/R4cKBGwFuvSvDkwmF0LLIB+7FBZcwG8qyhRaCF9EaK7tO9UZzhridfaxqLnQnDo6sgGjAz8JoGGQzO4tWjNLiqRDnK5IWB6lNIWChnyIh6Q9utljWvPOoM5m2cDpVxR0LGqqPxCrU6lqg91mj3GAhMRMR/NW5Ktq+4lxwcBD7MczQzI1ho+j8tVfMVZea5WSYYYNrNcL0AHPLRB+fXv2PZZbkQHZxTP/pGwB1QvT7CwLomN5g1aPcwBHBrx1WxH+b 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 |
mm/pkey: Add PKEY_UNRESTRICTED macro
|
expand
|
Add PKEY_UNRESTRICTED macro to mman.h and use it in selftests. For context, this change will also allow for more consistent update of the Glibc manual which in turn will help with introducing memory protection keys on AArch64 targets. Applies to fac04efc5c79 (tag: v6.13-rc2). Note that I couldn't build ppc tests so I would appreciate if someone could check the 3rd patch. Thank you! Signed-off-by: Yury Khrustalev <yury.khrustalev@arm.com> --- Changes in v4: - Removed change to tools/include/uapi/asm-generic/mman-common.h as it is not necessary. Link to v3: https://lore.kernel.org/all/20241028090715.509527-1-yury.khrustalev@arm.com/ Changes in v3: - Replaced previously missed 0-s tools/testing/selftests/mm/mseal_test.c - Replaced previously missed 0-s in tools/testing/selftests/mm/mseal_test.c Link to v2: https://lore.kernel.org/linux-arch/20241027170006.464252-2-yury.khrustalev@arm.com/ Changes in v2: - Update tools/include/uapi/asm-generic/mman-common.h as well - Add usages of the new macro to selftests. Link to v1: https://lore.kernel.org/linux-arch/20241022120128.359652-1-yury.khrustalev@arm.com/ --- Yury Khrustalev (3): mm/pkey: Add PKEY_UNRESTRICTED macro selftests/mm: Use PKEY_UNRESTRICTED macro selftests/powerpc: Use PKEY_UNRESTRICTED macro include/uapi/asm-generic/mman-common.h | 1 + tools/testing/selftests/mm/mseal_test.c | 6 +++--- tools/testing/selftests/mm/pkey-helpers.h | 3 ++- tools/testing/selftests/mm/pkey_sighandler_tests.c | 4 ++-- tools/testing/selftests/mm/protection_keys.c | 2 +- tools/testing/selftests/powerpc/include/pkeys.h | 2 +- tools/testing/selftests/powerpc/mm/pkey_exec_prot.c | 2 +- tools/testing/selftests/powerpc/mm/pkey_siginfo.c | 2 +- tools/testing/selftests/powerpc/ptrace/core-pkey.c | 6 +++--- tools/testing/selftests/powerpc/ptrace/ptrace-pkey.c | 6 +++--- 10 files changed, 18 insertions(+), 16 deletions(-)