summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMatt Mullins <mmullins@fb.com>2018-05-16 19:48:40 +0200
committerDavid S. Miller <davem@davemloft.net>2018-05-17 20:49:38 +0200
commit8ab6ffba14a466c7298cb3fd5066d774d2977ad1 (patch)
tree1268965992a239e0ec8e958538d9ce2f8870ed0c /include
parenttuntap: fix use after free during release (diff)
downloadlinux-8ab6ffba14a466c7298cb3fd5066d774d2977ad1.tar.xz
linux-8ab6ffba14a466c7298cb3fd5066d774d2977ad1.zip
tls: don't use stack memory in a scatterlist
scatterlist code expects virt_to_page() to work, which fails with CONFIG_VMAP_STACK=y. Fixes: c46234ebb4d1e ("tls: RX path for ktls") Signed-off-by: Matt Mullins <mmullins@fb.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r--include/net/tls.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/net/tls.h b/include/net/tls.h
index b400d0bb7448..f5fb16da3860 100644
--- a/include/net/tls.h
+++ b/include/net/tls.h
@@ -97,6 +97,9 @@ struct tls_sw_context {
u8 control;
bool decrypted;
+ char rx_aad_ciphertext[TLS_AAD_SPACE_SIZE];
+ char rx_aad_plaintext[TLS_AAD_SPACE_SIZE];
+
/* Sending context */
char aad_space[TLS_AAD_SPACE_SIZE];