]> git.baikalelectronics.ru Git - kernel.git/commit
ppp: mppe: Remove VLA usage
authorKees Cook <keescook@chromium.org>
Fri, 3 Aug 2018 16:37:45 +0000 (09:37 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 3 Aug 2018 19:54:54 +0000 (12:54 -0700)
commit3b07b77125f765dea5f7a1415f267d85ef72a737
tree5058bafa271239982d6b2776fb716947eb816978
parentecde1079e92a8ce2be56e2425fc0a17f732eec4f
ppp: mppe: Remove VLA usage

In the quest to remove all stack VLA usage from the kernel[1], this
removes the discouraged use of AHASH_REQUEST_ON_STACK (and associated
VLA) by switching to shash directly and keeping the associated descriptor
allocated with the regular state on the heap.

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

Signed-off-by: Kees Cook <keescook@chromium.org>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ppp/ppp_mppe.c