Thread (4 messages) 4 messages, 3 authors, 2018-03-26

Re: [PATCH v2] crypto/ecc: Remove stack VLA usage

From: Kees Cook <hidden>
Date: 2018-03-26 22:38:59
Also in: lkml

On Fri, Mar 16, 2018 at 8:56 AM, Herbert Xu [off-list ref] wrote:
On Thu, Mar 08, 2018 at 01:57:02PM -0800, Kees Cook wrote:
quoted
On the quest to remove all VLAs from the kernel[1], this switches to
a pair of kmalloc regions instead of using the stack. This also moves
the get_random_bytes() after all allocations (and drops the needless
"nbytes" variable).

[1] https://lkml.org/lkml/2018/3/7/621

Signed-off-by: Kees Cook <redacted>
Patch applied.  Thanks.
Hi, sorry for the noise on this one: I messed up looking at the ecc
code (I confused myself into thinking there was only a single instance
of the problem). The applied patch is both incomplete and inefficient.
I have a much simpler solution, and I'll send that with a revert...

-Kees

-- 
Kees Cook
Pixel Security
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help