All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jarkko Sakkinen <jarkko@kernel.org>
To: Dave Hansen <dave.hansen@intel.com>
Cc: mtk.manpages@gmail.com, linux-man@vger.kernel.org,
	linux-sgx@vger.kernel.org, dave.hansen@linux.intel.com
Subject: Re: [PATCH v5] sgx.7: New page with overview of Software Guard eXtensions (SGX)
Date: Mon, 10 May 2021 20:33:09 +0300	[thread overview]
Message-ID: <YJluVfQ2TeO1N/KZ@kernel.org> (raw)
In-Reply-To: <3072f586-4200-a0a1-8c85-fca0102e7913@intel.com>

On Mon, May 10, 2021 at 07:58:27AM -0700, Dave Hansen wrote:
> On 5/10/21 7:52 AM, Jarkko Sakkinen wrote:
> > +This can lead to reserving a large region than required by the payload,
> > +but the address space can be obviously trimmed after the enclave has been
> > +constructed on,
> > +with a sequence of
> > +.BR mmap(MAP_FIXED)
> > +calls.
> 
> Sorry if I missed this previously.
> 
> But, do we really intend to suggest the use of mmap(MAP_FIXED) for this?
>  What's the harm in leaving a non-populated piece of address space of
> mmap()'d /dev/sgx_enclave?

Probably most of the time: not much. Especially since we support 64-bit
only.

Maybe it should be relaxed a bit?

/Jarkko

  reply	other threads:[~2021-05-10 17:33 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-10 14:52 [PATCH v5] sgx.7: New page with overview of Software Guard eXtensions (SGX) Jarkko Sakkinen
2021-05-10 14:58 ` Dave Hansen
2021-05-10 17:33   ` Jarkko Sakkinen [this message]
2021-05-11 20:22 ` Reinette Chatre
2021-05-12  1:16   ` Jarkko Sakkinen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=YJluVfQ2TeO1N/KZ@kernel.org \
    --to=jarkko@kernel.org \
    --cc=dave.hansen@intel.com \
    --cc=dave.hansen@linux.intel.com \
    --cc=linux-man@vger.kernel.org \
    --cc=linux-sgx@vger.kernel.org \
    --cc=mtk.manpages@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.