commit | 196c31b4b54474b31dee3c30352c45c2a93e9226 | [log] [tgz] |
---|---|---|
author | Ilya Lesokhin <ilyal@mellanox.com> | Mon Nov 13 10:22:48 2017 +0200 |
committer | David S. Miller <davem@davemloft.net> | Tue Nov 14 16:26:34 2017 +0900 |
tree | 41b97d82a0c7f81a832da89c798dc0d470cd237c | |
parent | 213ef6e7c9c063c482d77f12cc438872628d48ec [diff] |
tls: Avoid copying crypto_info again after cipher_type check. Avoid copying crypto_info again after cipher_type check to avoid a TOCTOU exploits. The temporary array on the stack is removed as we don't really need it Fixes: 3c4d7559159b ('tls: kernel TLS support') Signed-off-by: Ilya Lesokhin <ilyal@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>