From nobody Tue Jul 23 21:44:02 2024 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4WT9dZ6fgqz5QyyY; Tue, 23 Jul 2024 21:44:02 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WT9dZ5txVz4V0R; Tue, 23 Jul 2024 21:44:02 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1721771042; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=6AeVwLUFXC75lg2csA+hTQGTkR9ZiRDRgstJ9kFDzJA=; b=yWP6q3cfNM5Tfxr2Qsmvm2dHdyM9pRa49vITsf50wEfbMwO612PwKLAGBfu55HKJcVGs1i 3zGuYwh4XGnwTed/ydPXGdIVXQnK8JS4l70asa73+z1rwcdsyiR4dipdfTsH0xrPAaYkhA PMvC4f07x30WXY6bHowtP8PyFvpZ2IwxnJOJ/UgdVEwS8mSTIaiSLc6utMp/3ku211IZnB 8f4PqtaLz+Y5dGtkS+zPgK62ddHBDhnBZV9fYmzVtgVSEyDvcFmYOu91KJeZcUrX6iNL2H BpZVfFobt2CHNvKDZwJeN0wF8y4aGTWkkwfG+d1w/u/7FpoDqGxwI9+4sJwdKw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1721771042; a=rsa-sha256; cv=none; b=CM3FTvtrYGtjDfc62YbJq8rU+pLW16vBwWfoWUSDhxjAiQtnafugZ2EWbPjvHIQ1SBC89Z dNQG61oEzDtfN7vwLjU+jlt9eN4mdEaJL3pqnrglqXFoGmcqjurygHleoQg6NX6TNCGcSY VQQMkPt2BwYoIRmgoO25ibfhFpDocoYsX4xQjL1SHxb/8wdHpkS6llgznxHTZdyRmVSMmp ehxTAFQDCC6N0iHrSyee2thdBMDndZYP4GHLL+NbUNONvcxU8fvoPsh6/GMxVLXZjX6F2I xbkbSND4ip3/CeBcY8VssyMldXC1p3gWmh9Z4SKliLs5nTfZxl+nIoJmcd51Jw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1721771042; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=6AeVwLUFXC75lg2csA+hTQGTkR9ZiRDRgstJ9kFDzJA=; b=DKDCujFbS4/ovyWKnya47XKMd9jNV/DUzCoguMqbzyRtoPxLt8LRYVmRNa9XYkz9qfuJJZ gmdcCrZvgCHyJMUlWvDMhxvgTysoU+F9bJSql5UcUERk/46ADVFSy7hm5HUyvYtazMthRf Mkb0ElW8jqJwvvSxkLxa3rcf2FYkqo/mQ88Gqqd1gAA/vPqonladr6Fsoyu0RcQXtyBBRU rBEIeVdZmOskQ3mkwFkRafCX2pexukjQYsmk4uHwG6pJgrMEl/L2q8LzvMPpbamlbJlbJA 68lkZ5igrO8lkhX2VSIGPzpJhWAtUZk9Kxf2if9VAgo3e4xsH0IF+y4mkkLCxg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4WT9dZ5VBSzlT3; Tue, 23 Jul 2024 21:44:02 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 46NLi2C5072123; Tue, 23 Jul 2024 21:44:02 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 46NLi2c5072120; Tue, 23 Jul 2024 21:44:02 GMT (envelope-from git) Date: Tue, 23 Jul 2024 21:44:02 GMT Message-Id: <202407232144.46NLi2c5072120@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Brooks Davis Subject: git: cade8f6c118f - main - ELF auxargs: reserve a slot for CheriABI use List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: brooks X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: cade8f6c118f304eb7c91a1d423b4a97ee466284 Auto-Submitted: auto-generated The branch main has been updated by brooks: URL: https://cgit.FreeBSD.org/src/commit/?id=cade8f6c118f304eb7c91a1d423b4a97ee466284 commit cade8f6c118f304eb7c91a1d423b4a97ee466284 Author: Brooks Davis AuthorDate: 2024-07-23 21:31:44 +0000 Commit: Brooks Davis 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.