Re: [PATCH v28 21/22] x86/vdso: Implement a vDSO for Intel SGX enclave call
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- To: Nathaniel McCallum <npmccallum@xxxxxxxxxx>
- Subject: Re: [PATCH v28 21/22] x86/vdso: Implement a vDSO for Intel SGX enclave call
- From: "Xing, Cedric" <cedric.xing@xxxxxxxxx>
- Date: Tue, 17 Mar 2020 14:40:34 -0700
- Cc: Sean Christopherson <sean.j.christopherson@xxxxxxxxx>, Jarkko Sakkinen <jarkko.sakkinen@xxxxxxxxxxxxxxx>, linux-kernel@xxxxxxxxxxxxxxx, x86@xxxxxxxxxx, linux-sgx@xxxxxxxxxxxxxxx, akpm@xxxxxxxxxxxxxxxxxxxx, dave.hansen@xxxxxxxxx, Neil Horman <nhorman@xxxxxxxxxx>, "Huang, Haitao" <haitao.huang@xxxxxxxxx>, andriy.shevchenko@xxxxxxxxxxxxxxx, tglx@xxxxxxxxxxxxx, "Svahn, Kai" <kai.svahn@xxxxxxxxx>, bp@xxxxxxxxx, Josh Triplett <josh@xxxxxxxxxxxxxxxx>, luto@xxxxxxxxxx, kai.huang@xxxxxxxxx, David Rientjes <rientjes@xxxxxxxxxx>, Patrick Uiterwijk <puiterwijk@xxxxxxxxxx>, Andy Lutomirski <luto@xxxxxxxxxxxxxx>, Jethro Beekman <jethro@xxxxxxxxxxxx>, Connor Kuehl <ckuehl@xxxxxxxxxx>, Harald Hoyer <harald@xxxxxxxxxx>, Lily Sturmann <lsturman@xxxxxxxxxx>
- In-reply-to: <CAOASepN7n1XUGPQHwk2Vcu-dyyBJ7dwhM_mF_RcJa71PcNiLmA@mail.gmail.com>
- References: <20200303233609.713348-1-jarkko.sakkinen@linux.intel.com> <20200303233609.713348-22-jarkko.sakkinen@linux.intel.com> <CAOASepPi4byhQ21hngsSx8tosCC-xa=y6r4j=pWo2MZGeyhi4Q@mail.gmail.com> <20200315012523.GC208715@linux.intel.com> <CAOASepP9GeTEqs1DSfPiSm9ER0whj9qwSc46ZiNj_K4dMekOfQ@mail.gmail.com> <94ce05323c4de721c4a6347223885f2ad9f541af.camel@linux.intel.com> <CAOASepM1pp1emPwSdFcaRkZfFm6sNmwPCJH+iFMiaJpFjU0VxQ@mail.gmail.com> <5dc2ec4bc9433f9beae824759f411c32b45d4b74.camel@linux.intel.com> <20200316225322.GJ24267@linux.intel.com> <fa773504-4cc1-5cbd-c018-890f7a5d3152@intel.com> <20200316235934.GM24267@linux.intel.com> <ca2c9ac0-b717-ee96-c7df-4e39f03a9193@intel.com> <CAOASepN7n1XUGPQHwk2Vcu-dyyBJ7dwhM_mF_RcJa71PcNiLmA@mail.gmail.com>
- User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.1
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.
-Cedric
[Index of Archives]
[AMD Graphics]
[Linux USB Devel]
[Linux Audio Users]
[Yosemite News]
[Linux Kernel]
[Linux SCSI]