summaryrefslogtreecommitdiffstats
path: root/LICENSES
diff options
context:
space:
mode:
authorKees Cook <keescook@chromium.org>2018-08-03 10:15:25 +0100
committerDavid S. Miller <davem@davemloft.net>2018-08-03 09:48:12 -0700
commit54424d3891967b83d707c9300a3509c2ae8f42ee (patch)
treed6853305a88d1c9159a44eb44db11fed1e076eff /LICENSES
parent5ca8a25c144dbb04511147601943691baab0aaca (diff)
downloadlinux-54424d3891967b83d707c9300a3509c2ae8f42ee.tar.bz2
rxrpc: Reuse SKCIPHER_REQUEST_ON_STACK buffer
The use of SKCIPHER_REQUEST_ON_STACK() will trigger FRAME_WARN warnings (when less than 2048) once the VLA is no longer hidden from the check: net/rxrpc/rxkad.c:398:1: warning: the frame size of 1152 bytes is larger than 1024 bytes [-Wframe-larger-than=] net/rxrpc/rxkad.c:242:1: warning: the frame size of 1152 bytes is larger than 1024 bytes [-Wframe-larger-than=] This passes the initial SKCIPHER_REQUEST_ON_STACK allocation to the leaf functions for reuse. Two requests allocated on the stack is not needed when only one is used at a time. Signed-off-by: Kees Cook <keescook@chromium.org> Acked-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: David Howells <dhowells@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'LICENSES')
0 files changed, 0 insertions, 0 deletions