diff options
author | Matt Mullins | 2018-05-16 10:48:40 -0700 |
---|---|---|
committer | David S. Miller | 2018-05-17 14:49:38 -0400 |
commit | 8ab6ffba14a466c7298cb3fd5066d774d2977ad1 (patch) | |
tree | 1268965992a239e0ec8e958538d9ce2f8870ed0c /include | |
parent | 7063efd33bb15abc0160347f89eb5aba6b7d000e (diff) |
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.h | 3 |
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]; |