From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.1 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 9308 invoked from network); 8 Aug 2023 09:32:40 -0000 Received: from second.openwall.net (193.110.157.125) by inbox.vuxu.org with ESMTPUTF8; 8 Aug 2023 09:32:40 -0000 Received: (qmail 3585 invoked by uid 550); 8 Aug 2023 09:32:36 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Reply-To: musl@lists.openwall.com Received: (qmail 3537 invoked from network); 8 Aug 2023 09:32:35 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1691487143; x=1692091943; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=Y70LavjsMid91MVqurQr5gIANW69O8U3Go4wLpgx9J0=; b=jynXw7CpnD/+TeSja2oKYaKeHq5eGHz5ftRiCiNySJpQEnImE42SwqulnkqGwfuU0L k2+8m1N86Pg2feYUbygCa4zYBEJILzm+nJCzG7gm/pAc4CfvoU76ygk2uGGHbY2jxem3 rz5nd0K7Hq8GUgBD7yjHqoUj1sbdzSgthbGSXL80WT9k8F221bA0rcOzBrLZacKj7iil bE7+X/nlP7GxSWPNrvJ78AHdkhG0p15X8FcVq8qRF40uEThxT6G/vFTCNDvF2jsZScYp iQEszaPZZp3KqUJMSEYXaJUdiNzd98tVv6ICRLhePIeOs7XTg0VBSPl9KBzoYemR6XLF Rt9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691487143; x=1692091943; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Y70LavjsMid91MVqurQr5gIANW69O8U3Go4wLpgx9J0=; b=eoLkjyKnXtUrf4IYGs9sPjMlo9GE/x964wC4kAmzfsuzMQmjLKxIs8CwmDgQuMqEh7 RENp4QvZ4Qmo4ajlLrrDKEKGZQi60GE8GlfA+t3hnnLvavJHtjCe+1c7Kj7GkfFIHkX/ YB09OyPRxlONDSkqAxI+qI+QEB3i06rNsVvd+5OMFznI53E5OsNo2TYBxs/v7IYHUuKN cmAmhUBhXkl9gOCAzfNn8cY5NlVRo8hoDQ3bOiC6N7K5nA9o5q9FfScfj7s/raGhQlQ0 pIsjNz3G0HvgZehS1dY+cnYd8ycwnm2UOHTISNZ3QTG1ADTlXG+hYwIMYqmriT2DGkff mx+A== X-Gm-Message-State: AOJu0Yy+9WHsqCOjWEGv2le8ok8QcI+QWw+3M8980lIswnWRbkFf17YR AVGCN9jz78MzHIDwK4TFIz1T35tRRkegEw== X-Google-Smtp-Source: AGHT+IHiepZ6F5Y0Ccm2iJd9W2zHttXI7+1fm/v6OItDFOjJsFqmPq0Y3VC0H75JAmix43Uw0TMlhA== X-Received: by 2002:adf:eac3:0:b0:311:1aee:4e1d with SMTP id o3-20020adfeac3000000b003111aee4e1dmr7014997wrn.33.1691487143253; Tue, 08 Aug 2023 02:32:23 -0700 (PDT) From: Michal Biesek To: musl@lists.openwall.com Cc: Michal Biesek Date: Tue, 8 Aug 2023 11:32:15 +0200 Message-Id: <20230808093215.24901-1-michalbiesek@gmail.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [musl] [PATCH] bits/syscall.h: add memfd_secret syscall from linux v5.14 Create an anonymous RAM-based file see linux commit 7bb7f2ac24a028b20fca466b9633847b289b156a arch, mm: wire up memfd_secret system call where relevant --- arch/aarch64/bits/syscall.h.in | 1 + arch/i386/bits/syscall.h.in | 1 + arch/riscv64/bits/syscall.h.in | 1 + arch/x32/bits/syscall.h.in | 1 + arch/x86_64/bits/syscall.h.in | 1 + 5 files changed, 5 insertions(+) diff --git a/arch/aarch64/bits/syscall.h.in b/arch/aarch64/bits/syscall.h.in index 5f420e61..782069a2 100644 --- a/arch/aarch64/bits/syscall.h.in +++ b/arch/aarch64/bits/syscall.h.in @@ -299,4 +299,5 @@ #define __NR_landlock_create_ruleset 444 #define __NR_landlock_add_rule 445 #define __NR_landlock_restrict_self 446 +#define __NR_memfd_secret 447 diff --git a/arch/i386/bits/syscall.h.in b/arch/i386/bits/syscall.h.in index 46ffe1d9..8baf6de7 100644 --- a/arch/i386/bits/syscall.h.in +++ b/arch/i386/bits/syscall.h.in @@ -436,4 +436,5 @@ #define __NR_landlock_create_ruleset 444 #define __NR_landlock_add_rule 445 #define __NR_landlock_restrict_self 446 +#define __NR_memfd_secret 447 diff --git a/arch/riscv64/bits/syscall.h.in b/arch/riscv64/bits/syscall.h.in index b534afe8..63796396 100644 --- a/arch/riscv64/bits/syscall.h.in +++ b/arch/riscv64/bits/syscall.h.in @@ -299,6 +299,7 @@ #define __NR_landlock_create_ruleset 444 #define __NR_landlock_add_rule 445 #define __NR_landlock_restrict_self 446 +#define __NR_memfd_secret 447 #define __NR_sysriscv __NR_arch_specific_syscall #define __NR_riscv_flush_icache (__NR_sysriscv + 15) diff --git a/arch/x32/bits/syscall.h.in b/arch/x32/bits/syscall.h.in index 5d22fa17..b3b07eef 100644 --- a/arch/x32/bits/syscall.h.in +++ b/arch/x32/bits/syscall.h.in @@ -308,6 +308,7 @@ #define __NR_landlock_create_ruleset (0x40000000 + 444) #define __NR_landlock_add_rule (0x40000000 + 445) #define __NR_landlock_restrict_self (0x40000000 + 446) +#define __NR_memfd_secret (0x40000000 + 447) #define __NR_rt_sigaction (0x40000000 + 512) diff --git a/arch/x86_64/bits/syscall.h.in b/arch/x86_64/bits/syscall.h.in index c3882de7..a81aa94a 100644 --- a/arch/x86_64/bits/syscall.h.in +++ b/arch/x86_64/bits/syscall.h.in @@ -355,4 +355,5 @@ #define __NR_landlock_create_ruleset 444 #define __NR_landlock_add_rule 445 #define __NR_landlock_restrict_self 446 +#define __NR_memfd_secret 447 -- 2.34.1