]> git.baikalelectronics.ru Git - kernel.git/commit
net/tls: Remove VLA usage
authorKees Cook <keescook@chromium.org>
Wed, 11 Apr 2018 00:52:34 +0000 (17:52 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 13 Apr 2018 01:46:10 +0000 (21:46 -0400)
commit498943f70150aa7c2e7c43449466a47f430d08d9
treeb3ef990644cc23ce82112531b9737a7618e7d97e
parentfcd924b4873bccef681cf3d77892004f80334a41
net/tls: Remove VLA usage

In the quest to remove VLAs from the kernel[1], this replaces the VLA
size with the only possible size used in the code, and adds a mechanism
to double-check future IV sizes.

[1] https://lkml.kernel.org/r/CA+55aFzCG-zNmZwX4A2FQpadafLfEzK6CC=qPXydAacU1RqZWA@mail.gmail.com

Signed-off-by: Kees Cook <keescook@chromium.org>
Acked-by: Dave Watson <davejwatson@fb.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tls/tls_sw.c