Re: [PATCH v23 12/24] x86/sgx: Linux Enclave Driver

From
Jarkko Sakkinen <hidden>
Date
2019-11-08 08:20:46
Also in
lkml
Reply to
Jarkko Sakkinen, 2019-11-05
On Tue, Nov 05, 2019 at 01:11:22PM +0200, Jarkko Sakkinen wrote:
I'll add @count to address this. This output field will contain the
number of bytes actually written instead of overwriting input
parameters, which is a bad practice in anyway.

We don't need to actually cap to anything but API must be able to
support such scenario. Caller must be prepared to deal with the
situation where the return value is zero but @count < @length.
I summarized here my reasoning on @count:

https://lore.kernel.org/linux-sgx/20191108081331.GB3370@linux.intel.com/

/Jarkko
Thread (18 messages) 18 messages, 4 authors, last reply 2019-12-23
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help