Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 23 Aug 2020 19:47:28 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r364517 - in head: sys/sys usr.bin/elfctl
Message-ID:  <202008231947.07NJlS9u092840@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Sun Aug 23 19:47:27 2020
New Revision: 364517
URL: https://svnweb.freebsd.org/changeset/base/364517

Log:
  Reserve FreeBSD ELF feature control bit LA48 to control VA layout on amd64.
  
  Tested by:	pho
  Sponsored by:	The FreeBSD Foundation
  Differential revision:	https://reviews.freebsd.org/D25273

Modified:
  head/sys/sys/elf_common.h
  head/usr.bin/elfctl/elfctl.c

Modified: head/sys/sys/elf_common.h
==============================================================================
--- head/sys/sys/elf_common.h	Sun Aug 23 19:47:10 2020	(r364516)
+++ head/sys/sys/elf_common.h	Sun Aug 23 19:47:27 2020	(r364517)
@@ -796,6 +796,7 @@ typedef struct {
 #define	NT_FREEBSD_FCTL_PROTMAX_DISABLE	0x00000002
 #define	NT_FREEBSD_FCTL_STKGAP_DISABLE	0x00000004
 #define	NT_FREEBSD_FCTL_WXNEEDED	0x00000008
+#define	NT_FREEBSD_FCTL_LA48		0x00000010
 
 /* Values for n_type.  Used in core files. */
 #define	NT_PRSTATUS	1	/* Process status. */

Modified: head/usr.bin/elfctl/elfctl.c
==============================================================================
--- head/usr.bin/elfctl/elfctl.c	Sun Aug 23 19:47:10 2020	(r364516)
+++ head/usr.bin/elfctl/elfctl.c	Sun Aug 23 19:47:27 2020	(r364517)
@@ -67,6 +67,7 @@ static struct ControlFeatures featurelist[] = {
 	    "Disable implicit PROT_MAX" },
 	{ "stackgap",	NT_FREEBSD_FCTL_STKGAP_DISABLE, "Disable stack gap" },
 	{ "wxneeded",	NT_FREEBSD_FCTL_WXNEEDED, "Requires W+X mappings" },
+	{ "la48",	NT_FREEBSD_FCTL_LA48, "amd64: Limit user VA to 48bit" },
 };
 
 static struct option long_opts[] = {



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