From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1944) id 3336C3988898; Wed, 14 Apr 2021 08:22:56 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3336C3988898 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Szabolcs Nagy To: glibc-cvs@sourceware.org Subject: [glibc/release/2.33/master] Remove PR_TAGGED_ADDR_ENABLE from sys/prctl.h X-Act-Checkin: glibc X-Git-Author: Szabolcs Nagy X-Git-Refname: refs/heads/release/2.33/master X-Git-Oldrev: 1bf38e7260c2cd3e40e118c1f1ea28de182dc751 X-Git-Newrev: 12ff80b312c11b0284df7a1c5cb9be6418f85228 Message-Id: <20210414082256.3336C3988898@sourceware.org> Date: Wed, 14 Apr 2021 08:22:56 +0000 (GMT) X-BeenThere: glibc-cvs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Glibc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Apr 2021 08:22:56 -0000 https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=12ff80b312c11b0284df7a1c5cb9be6418f85228 commit 12ff80b312c11b0284df7a1c5cb9be6418f85228 Author: Szabolcs Nagy Date: Tue Feb 2 15:02:09 2021 +0000 Remove PR_TAGGED_ADDR_ENABLE from sys/prctl.h The value of PR_TAGGED_ADDR_ENABLE was incorrect in the installed headers and the prctl command macros were missing that are needed for it to be useful (PR_SET_TAGGED_ADDR_CTRL). Linux headers have the definitions since 5.4 so it's widely available, we don't need to repeat these definitions. The remaining definitions are from Linux 5.10. To build glibc with --enable-memory-tagging, Linux 5.4 headers and binutils 2.33.1 or newer is needed. Reviewed-by: DJ Delorie (cherry picked from commit f4596d9540021265a99697fceef8a434c47e8bcf) Diff: --- sysdeps/unix/sysv/linux/sys/prctl.h | 4 ---- 1 file changed, 4 deletions(-) diff --git a/sysdeps/unix/sysv/linux/sys/prctl.h b/sysdeps/unix/sysv/linux/sys/prctl.h index 00817ff0f1..c9048c7cdb 100644 --- a/sysdeps/unix/sysv/linux/sys/prctl.h +++ b/sysdeps/unix/sysv/linux/sys/prctl.h @@ -25,10 +25,6 @@ we're picking up... */ /* Memory tagging control operations (for AArch64). */ -#ifndef PR_TAGGED_ADDR_ENABLE -# define PR_TAGGED_ADDR_ENABLE (1UL << 8) -#endif - #ifndef PR_MTE_TCF_SHIFT # define PR_MTE_TCF_SHIFT 1 # define PR_MTE_TCF_NONE (0UL << PR_MTE_TCF_SHIFT)