Message ID | 20250113170619.484698-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 6B65FC02180 for <linux-mm@archiver.kernel.org>; Mon, 13 Jan 2025 17:06:31 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id E1ADA6B007B; Mon, 13 Jan 2025 12:06:30 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id DC98D6B0082; Mon, 13 Jan 2025 12:06:30 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id CB7AB6B0083; Mon, 13 Jan 2025 12:06:30 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id AE6976B007B for <linux-mm@kvack.org>; Mon, 13 Jan 2025 12:06:30 -0500 (EST) Received: from smtpin16.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id 6591F1C5581 for <linux-mm@kvack.org>; Mon, 13 Jan 2025 17:06:30 +0000 (UTC) X-FDA: 83003057340.16.08F0F29 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by imf08.hostedemail.com (Postfix) with ESMTP id 9D36B160023 for <linux-mm@kvack.org>; Mon, 13 Jan 2025 17:06:28 +0000 (UTC) Authentication-Results: imf08.hostedemail.com; dkim=none; dmarc=pass (policy=none) header.from=arm.com; spf=pass (imf08.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=1736787989; 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=87zAL3DZcqPYFzoHGYuBI9BAT1ktFT16wiQFT/4+t9A=; b=OB9vJrI0zHGsNGJWBgc59wxQ7zlz0RTX/4qeZH9eorB61XKJoZGaHR6CuONcNf8Qz5ZZkf Ik5K/BkEnN+yC/ZyzTh/ezSsJhQR/1s2KY0HvEEXcDw4ifeECqxOf8Nu3FePFVHm/62YJ+ PTehb+aCPV/BzeR/eWOrJeGVQSblP+8= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1736787989; a=rsa-sha256; cv=none; b=wsk1PAa5yON1e7jGgj8RF86oEHWXMo+QpzF7FfMLmySVAAkuFkh5B6rgb7vdbeFhkuDI7y KKsSAeTdYWXkNfmru94hR9m+V4wsZ725lzTRd9FDmMaoS6TLS9BSqNKxMYpaaGZuotbuD9 xuX3Cr2OWfygZzBeRgeU1V8Oh3Jqdbo= ARC-Authentication-Results: i=1; imf08.hostedemail.com; dkim=none; dmarc=pass (policy=none) header.from=arm.com; spf=pass (imf08.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 C242312FC; Mon, 13 Jan 2025 09:06:55 -0800 (PST) Received: from udebian.localdomain (unknown [10.1.25.34]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 2BE843F673; Mon, 13 Jan 2025 09:06:25 -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, Andrew Morton <akpm@linux-foundation.org>, nd@arm.com, Yury Khrustalev <yury.khrustalev@arm.com> Subject: [RESEND v4 0/3] mm/pkey: Add PKEY_UNRESTRICTED macro Date: Mon, 13 Jan 2025 17:06:16 +0000 Message-Id: <20250113170619.484698-1-yury.khrustalev@arm.com> X-Mailer: git-send-email 2.39.5 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Stat-Signature: zsegr3hb3m4sibu9d56juuf5ms4urgn6 X-Rspamd-Queue-Id: 9D36B160023 X-Rspam-User: X-Rspamd-Server: rspam01 X-HE-Tag: 1736787988-524648 X-HE-Meta: U2FsdGVkX19Vw0MYnmJ+xkKbOg/FxjzHM7DlTGUuct3melXV3SUEUMRVXESNAxKhWLVmut2LGgC4a0ENsgOH09xpHnE8rL96f6SoMie/XY6HHzSo2xrE4Upnu9KBhgv0GsXli1EJiFpkNPNdjWR9qAsOSIraPcm4zfVRhOzVAipuKLZNxQ6Ar3pXfLacMDdhmT3vcGZCZytBW2UGj+vg4mOLw72brND0eYYLembBfOXFWCPg+bPVMAMOwIou8Dh202+FFsKaV7MWSnBt9OSuplf/RihkfpzeE4LTDlnv2/LFGBfklzSaqVYa30a6dVCFJh4ctw3EucXfAWATOXJ5DmOxzmEfh9fMQ2NVVdgGHxWxLCLbEtR/rKpBRDn0scyO9NLOwV+OL0iWvhbQeBAaeZeWFIPNQOx/Nw9diICZev8C4QvTJM9QSJ8rLFv6esxdCo+xzak3vW8FC/xjvbA2ec9OzdnVw93TSVJeB3h5FfS4kzdj3wVJA4oEeL8DmFvcIrrGjSOjzeQnh7LqbydNo5NfjJVo0jdeOC9y9C2oFcf70Qx8d7vdgk+6HB0/Jt1m+dZ+RKtvFE6kd7sB9plW/k5OcVOyMha5PWmnJsdm2ro4diEKNdzXjldq7tjgj3pPu7dUxdGqJoMZvSXhvh84j37asoVBbjBMJBfhQdLNgvEsewb1f3pDHGJBx+yaMayn9WgcKqEe4NyI3/RzRHJhfyLGQV3zwb60ELGE6OUHtIwMhP0x+5iq0HWRttJ0HCIKZup1qTm8M+6/W8ihp0PZRQN0F7ttAZm56xD3xuhFYOCClTzIXsiUu2Ja45fExw/79+OV+0vgVCY6N55sKCI9lXiCqvgxW/Uc2GE9PYiA3VITG6WOceSIZT44w0BEJ59RqdgWNsAmVu2rtt2nTBfJSJkbsRct/FoPjl2Ux4lvPlpIYsLRgt3TSYekqDG5Bvo9F54TP5cguVSi4ETQ76L Za/sBWL7 xCvUjXYihbuSGqpd/9c4SPYOE8PfbysvUtlb0je+tIIsbUgcqgUOBpeaDaNSV1Y0XrQz71hHGfP7t1JZeJFkADK6Ewas+sj6+FiIKM722wQD1eVd338kI4ASZ8aDR+iwIb8RdxUUzLEut0xHb+MK9mY6SwywpNbgYBq12IEa3HaDEgF9uml4vpB+BpsY0vH6FSsgg9e7MOXis0gTsDBPIi4ym2D6/4tletZx8 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 5bc55a333a2f (tag: v6.13-rc7). 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(-)