From: Florian Weimer <fweimer@redhat.com>
To: libc-alpha@sourceware.org
Subject: [PATCH v4 02/14] aarch64: Enable internal use of memory protection keys
Date: Sun, 02 Feb 2025 22:12:55 +0100 [thread overview]
Message-ID: <54aac713a1f1c3d25c15424e0a1245e5477aea95.1738530302.git.fweimer@redhat.com> (raw)
In-Reply-To: <cover.1738530302.git.fweimer@redhat.com>
This adds hidden prototypes to align with commit 7e21a65c58cc91b3ba
("misc: Enable internal use of memory protection keys").
---
sysdeps/unix/sysv/linux/aarch64/pkey_get.c | 4 +++-
sysdeps/unix/sysv/linux/aarch64/pkey_set.c | 4 +++-
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/sysdeps/unix/sysv/linux/aarch64/pkey_get.c b/sysdeps/unix/sysv/linux/aarch64/pkey_get.c
index 2dd9d8165e..73921e21e3 100644
--- a/sysdeps/unix/sysv/linux/aarch64/pkey_get.c
+++ b/sysdeps/unix/sysv/linux/aarch64/pkey_get.c
@@ -21,7 +21,7 @@
#include <sys/mman.h>
int
-pkey_get (int key)
+__pkey_get (int key)
{
if (key < 0 || key > 15)
{
@@ -71,3 +71,5 @@ pkey_get (int key)
return PKEY_DISABLE_ACCESS;
}
+libc_hidden_def (__pkey_get)
+weak_alias (__pkey_get, pkey_get)
diff --git a/sysdeps/unix/sysv/linux/aarch64/pkey_set.c b/sysdeps/unix/sysv/linux/aarch64/pkey_set.c
index a521cc00da..45a4992997 100644
--- a/sysdeps/unix/sysv/linux/aarch64/pkey_set.c
+++ b/sysdeps/unix/sysv/linux/aarch64/pkey_set.c
@@ -24,7 +24,7 @@
PKEY_DISABLE_WRITE | PKEY_DISABLE_EXECUTE | PKEY_DISABLE_READ)
int
-pkey_set (int key, unsigned int restrictions)
+__pkey_set (int key, unsigned int restrictions)
{
if (key < 0 || key > 15 || restrictions > MAX_PKEY_RIGHTS)
{
@@ -111,3 +111,5 @@ pkey_set (int key, unsigned int restrictions)
pkey_write (por_el0);
return 0;
}
+libc_hidden_def (__pkey_set)
+weak_alias (__pkey_set, pkey_set)
--
2.48.1
next prev parent reply other threads:[~2025-02-02 21:13 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-02 21:12 [PATCH v4 00/14] RELRO link maps Florian Weimer
2025-02-02 21:12 ` [PATCH v4 01/14] elf: Default to ENOENT error in _dl_map_new_object Florian Weimer
2025-02-02 21:12 ` Florian Weimer [this message]
2025-02-02 21:13 ` [PATCH v4 03/14] Do not export <alloc_buffer.h> functions from libc Florian Weimer
2025-02-02 21:13 ` [PATCH v4 04/14] support: Add <support/memprobe.h> for protection flags probing Florian Weimer
2025-02-02 21:13 ` [PATCH v4 05/14] elf: Eliminate second loop in find_version in dl-version.c Florian Weimer
2025-02-02 21:13 ` [PATCH v4 06/14] elf: Disambiguate some failures in _dl_load_cache_lookup Florian Weimer
2025-02-02 21:13 ` [PATCH v4 07/14] elf: Merge the three implementations of _dl_dst_substitute Florian Weimer
2025-02-02 21:13 ` [PATCH v4 08/14] elf: Remove run-time-writable fields from struct link_map Florian Weimer
2025-02-02 21:13 ` [PATCH v4 09/14] elf: Introduce GLPM accessor for the protected memory area Florian Weimer
2025-02-02 21:13 ` [PATCH v4 10/14] elf: Bootstrap allocation for future protected memory allocator Florian Weimer
2025-02-02 21:13 ` [PATCH v4 11/14] elf: Implement a region-based " Florian Weimer
2025-02-02 21:13 ` [PATCH v4 12/14] elf: Move most of the _dl_find_object data to the protected heap Florian Weimer
2025-02-03 14:29 ` Carlos O'Donell
2025-02-03 15:58 ` Florian Weimer
2025-02-02 21:14 ` [PATCH v4 13/14] elf: Add hash tables to speed up DT_NEEDED, dlopen lookups Florian Weimer
2025-02-02 21:14 ` [PATCH v4 14/14] elf: Use memory protection keys for the protected memory allocator Florian Weimer
2025-02-04 14:31 ` [PATCH v4 00/14] RELRO link maps Yury Khrustalev
2025-02-04 14:55 ` Florian Weimer
2025-02-05 10:24 ` Kevin Brodsky
2025-02-05 11:18 ` Florian Weimer
2025-02-06 13:28 ` Kevin Brodsky
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=54aac713a1f1c3d25c15424e0a1245e5477aea95.1738530302.git.fweimer@redhat.com \
--to=fweimer@redhat.com \
--cc=libc-alpha@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).