diff mbox series

[for_v29,1/8] x86/sgx: vdso: Remove an incorrect statement the enter enclave comment

Message ID 20200319011130.8556-2-sean.j.christopherson@intel.com (mailing list archive)
State New, archived
Headers show
Series x86/sgx: Make vDSO callable from C | expand

Commit Message

Sean Christopherson March 19, 2020, 1:11 a.m. UTC
Remove the statement about the userspace exit handler being required to
clean up the untrusted stack, the vDSO unconditionally restores %rsp to
its value at the time of EEXIT.

Reported-by: Nathaniel McCallum <npmccallum@redhat.com>
Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com>
---
 arch/x86/entry/vdso/vsgx_enter_enclave.S | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

Comments

Jarkko Sakkinen March 19, 2020, 8:49 p.m. UTC | #1
On Wed, Mar 18, 2020 at 06:11:23PM -0700, Sean Christopherson wrote:
> Remove the statement about the userspace exit handler being required to
> clean up the untrusted stack, the vDSO unconditionally restores %rsp to
> its value at the time of EEXIT.
> 
> Reported-by: Nathaniel McCallum <npmccallum@redhat.com>
> Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com>

Acked-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>

[no resend]

/Jarkko
diff mbox series

Patch

diff --git a/arch/x86/entry/vdso/vsgx_enter_enclave.S b/arch/x86/entry/vdso/vsgx_enter_enclave.S
index 94a8e5f99961..22a22e0774d8 100644
--- a/arch/x86/entry/vdso/vsgx_enter_enclave.S
+++ b/arch/x86/entry/vdso/vsgx_enter_enclave.S
@@ -59,10 +59,8 @@ 
  *   0:		success, return @ret to the caller
  *  <0:		error, return @ret to the caller
  *
- * The userspace exit handler is responsible for unwinding the stack, e.g. to
- * pop @e, u_rsp and @tcs, prior to returning to __vdso_sgx_enter_enclave().
- * The exit handler may also transfer control, e.g. via longjmp() or a C++
- * exception, without returning to __vdso_sgx_enter_enclave().
+ * The exit handler may transfer control, e.g. via longjmp() or C++ exception,
+ * without returning to __vdso_sgx_enter_enclave().
  *
  * Return:
  *  0 on success,