[lkml]   [2020]   [Mar]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH v28 21/22] x86/vdso: Implement a vDSO for Intel SGX enclave call
Hi Nathaniel,

I reread your email today and thought I might have misunderstood your
email earlier. What changes are you asking for exactly? Is that just
passing @leaf in %ecx rather than in %eax? If so, I wouldn't have any
problem. I agree with you that the resulted API would then be callable
from C, even though it wouldn't be able to return back to C due to
tampered %rbx. But I think the vDSO API can preserve %rbx too, given it
is used by both EENTER and EEXIT (so is unavailable for parameter
passing anyway). Alternatively, the C caller can setjmp() to be
longjmp()'d back from within the exit handler.


 \ /
  Last update: 2020-03-17 22:41    [W:0.099 / U:0.056 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site