Thread (12 messages) 12 messages, 3 authors, 2018-09-13

[PATCH v2 2/4] crypto: skcipher - Enforce non-ASYNC for on-stack requests

From: herbert@gondor.apana.org.au (Herbert Xu)
Date: 2018-09-11 05:53:51
Also in: linux-crypto, lkml

On Fri, Sep 07, 2018 at 09:02:45AM -0700, Kees Cook wrote:
I'll continue to investigate alternatives, but I wanted to point out
that the struct change actually fills an existing padding byte (so no
change in memory usage) and marking this as an unlikely() test means
it wouldn't even be measurable due to the branch predictor (so no
change in speed). encrypt/decrypt entry is a tiny tiny fraction of the
actual work done during encryption/decryption, etc.
The point is the ON_STACK request stuff is purely for backwards
compatibility and we don't want it to proliferate and pollute the
core API.

Cheers,
-- 
Email: Herbert Xu [off-list ref]
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help