All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jarkko Sakkinen <jarkko@kernel.org>
To: Nathaniel McCallum <nathaniel@profian.com>
Cc: linux-sgx@vger.kernel.org, Reinette Chatre <reinette.chatre@intel.com>
Subject: Re: Possible Regression: 5.14.18 => 5.15.6
Date: Sat, 4 Dec 2021 22:47:15 +0200	[thread overview]
Message-ID: <YavT0+e/GoK8gsKu@iki.fi> (raw)
In-Reply-To: <CAHAy0tS9PXgb4cRFEZNEYpiwPVV3CpBRFQhbFN=+XXy=MQakRg@mail.gmail.com>

On Sat, Dec 04, 2021 at 08:54:08AM -0500, Nathaniel McCallum wrote:
> We are seeing a possible regression between 5.14.18 and 5.15.6. Our
> trace logging shows the following output:
> 
> enclave location: 00007f3c00000000-00007f3c80000000
> creating enclave: Secs { size: 2147483648, baseaddr: 139895674765312,
> ssaframesize: 1, miscselect: (empty), attributes: Attributes {
> features: MODE64BIT, xfrm: X87 | SSE }, pid: 0, svn: 0 }
> adding pages: 00007f3c00000000-00007f3c00004000 R
> adding pages: 00007f3c00004000-00007f3c0000c000 RW
> adding pages: 00007f3c0000c000-00007f3c00039000 RX
> adding pages: 00007f3c00201000-00007f3c003fc000 RW
> adding pages: 00007f3c003fc000-00007f3c003fd000 T
> adding pages: 00007f3c003fd000-00007f3c00400000 RW
> adding pages: 00007f3c00400000-00007f3c00401000 R
> adding pages: 00007f3c00401000-00007f3c00402000 RX
> adding pages: 00007f3c00402000-00007f3c00403000 R
> adding pages: 00007f3c00403000-00007f3c00404000 RW
> enclave initialized
> remapping: 00007f3c00000000-00007f3c00004000 R
> remapping: 00007f3c00004000-00007f3c0000c000 RW
> remapping: 00007f3c0000c000-00007f3c00039000 RX
> Error: Operation not permitted (os error 1)
> 
> Using strace shows this:
> ...
> mmap(0x7f6e80000000, 16384, PROT_READ, MAP_SHARED|MAP_FIXED, 3, 0) =
> 0x7f6e80000000
> mmap(0x7f6e80004000, 32768, PROT_READ|PROT_WRITE,
> MAP_SHARED|MAP_FIXED, 3, 0) = 0x7f6e80004000
> mmap(0x7f6e8000c000, 184320, PROT_READ|PROT_EXEC,
> MAP_SHARED|MAP_FIXED, 3, 0) = -1 EPERM (Operation not permitted)
> 
> We've followed the selftest structure pretty closely. The first two
> remapping calls succeed, but the third one fails. This works on
> 5.14.18, but fails on 5.15.6.

What are the mount options of /dev?

/Jarkko

  reply	other threads:[~2021-12-04 20:47 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-04 13:54 Possible Regression: 5.14.18 => 5.15.6 Nathaniel McCallum
2021-12-04 20:47 ` Jarkko Sakkinen [this message]
2021-12-05 13:09   ` Nathaniel McCallum
2021-12-11  4:58     ` 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=YavT0+e/GoK8gsKu@iki.fi \
    --to=jarkko@kernel.org \
    --cc=linux-sgx@vger.kernel.org \
    --cc=nathaniel@profian.com \
    --cc=reinette.chatre@intel.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.