Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Jul 2024 21:44:02 GMT
From:      Brooks Davis <brooks@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: cade8f6c118f - main - ELF auxargs: reserve a slot for CheriABI use
Message-ID:  <202407232144.46NLi2c5072120@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by brooks:

URL: https://cgit.FreeBSD.org/src/commit/?id=cade8f6c118f304eb7c91a1d423b4a97ee466284

commit cade8f6c118f304eb7c91a1d423b4a97ee466284
Author:     Brooks Davis <brooks@FreeBSD.org>
AuthorDate: 2024-07-23 21:31:44 +0000
Commit:     Brooks Davis <brooks@FreeBSD.org>
CommitDate: 2024-07-23 21:31:44 +0000

    ELF auxargs: reserve a slot for CheriABI use
    
    Reserve slot 37 to avoid flag days downstream.
    
    We currently use this slot in CheriBSD to maintain counters in userspace
    while providing access to them vis sysctl.  CHERI support isn't landing
    in FreeBSD quite yet (probably for 16 unless hardware access accelerates
    radically), but it seems highly likely at this point so reserving slots
    will limit future diffs in both directions.
    
    Reviewed by:    jhb
    Sponsored by:   DARPA, AFRL
    Differential Revision:  https://reviews.freebsd.org/D46060
---
 sys/sys/elf_common.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/sys/sys/elf_common.h b/sys/sys/elf_common.h
index b9e82cb8fa35..6cb92d1011fe 100644
--- a/sys/sys/elf_common.h
+++ b/sys/sys/elf_common.h
@@ -990,8 +990,9 @@ typedef struct {
 #define	AT_KPRELOAD	34	/* Base of vdso, preloaded by rtld */
 #define	AT_USRSTACKBASE	35	/* Top of user stack */
 #define	AT_USRSTACKLIM	36	/* Grow limit of user stack */
+#define	AT_CHERI_STATS	37	/* Reserved */
 
-#define	AT_COUNT	37	/* Count of defined aux entry types. */
+#define	AT_COUNT	38	/* Count of defined aux entry types. */
 
 /*
  * Relocation types.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202407232144.46NLi2c5072120>