From: Michal Biesek <michalbiesek@gmail.com>
To: musl@lists.openwall.com
Cc: Michal Biesek <michalbiesek@gmail.com>
Subject: [musl] [PATCH] sys/prctl.h: add PR_SET_VMA from linux v5.17
Date: Tue, 8 Aug 2023 00:07:22 +0200 [thread overview]
Message-ID: <20230807220722.107903-1-michalbiesek@gmail.com> (raw)
Allows store names for private anonymous memory
see
linux commit 9a10064f5625d5572c3626c1516e0bebc6c9fe9b
mm: add a field to store names for private anonymous memory
---
include/sys/prctl.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/include/sys/prctl.h b/include/sys/prctl.h
index 087a75c9..04ce0d4f 100644
--- a/include/sys/prctl.h
+++ b/include/sys/prctl.h
@@ -177,6 +177,9 @@ struct prctl_mm_map {
#define PR_PAC_SET_ENABLED_KEYS 60
#define PR_PAC_GET_ENABLED_KEYS 61
+#define PR_SET_VMA 0x53564d41
+#define PR_SET_VMA_ANON_NAME 0
+
int prctl (int, ...);
#ifdef __cplusplus
--
2.34.1
reply other threads:[~2023-08-07 22:07 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20230807220722.107903-1-michalbiesek@gmail.com \
--to=michalbiesek@gmail.com \
--cc=musl@lists.openwall.com \
/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.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/musl/
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 NNTP newsgroup(s).