summaryrefslogtreecommitdiff
path: root/include/net/tls.h
diff options
context:
space:
mode:
authorMatt Mullins <mmullins@fb.com>2018-05-16 20:48:40 +0300
committerDavid S. Miller <davem@davemloft.net>2018-05-17 21:49:38 +0300
commit8ab6ffba14a466c7298cb3fd5066d774d2977ad1 (patch)
tree1268965992a239e0ec8e958538d9ce2f8870ed0c /include/net/tls.h
parent7063efd33bb15abc0160347f89eb5aba6b7d000e (diff)
downloadlinux-8ab6ffba14a466c7298cb3fd5066d774d2977ad1.tar.xz
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/net/tls.h')
-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];