diff options
author | zhenwei pi <[email protected]> | 2024-01-30 19:27:40 +0800 |
---|---|---|
committer | Herbert Xu <[email protected]> | 2024-02-09 12:55:53 +0800 |
commit | c0ec2a712daf133d9996a8a1b7ee2d4996080363 (patch) | |
tree | a9afef018533055d9bd27675a57528f39a5f8df4 /scripts/generate_rust_analyzer.py | |
parent | 24c890dd712f6345e382256cae8c97abb0406b70 (diff) |
crypto: virtio/akcipher - Fix stack overflow on memcpy
sizeof(struct virtio_crypto_akcipher_session_para) is less than
sizeof(struct virtio_crypto_op_ctrl_req::u), copying more bytes from
stack variable leads stack overflow. Clang reports this issue by
commands:
make -j CC=clang-14 mrproper >/dev/null 2>&1
make -j O=/tmp/crypto-build CC=clang-14 allmodconfig >/dev/null 2>&1
make -j O=/tmp/crypto-build W=1 CC=clang-14 drivers/crypto/virtio/
virtio_crypto_akcipher_algs.o
Fixes: 59ca6c93387d ("virtio-crypto: implement RSA algorithm")
Link: https://lore.kernel.org/all/[email protected]/
Cc: <[email protected]>
Signed-off-by: zhenwei pi <[email protected]>
Tested-by: Nathan Chancellor <[email protected]> # build
Acked-by: Michael S. Tsirkin <[email protected]>
Acked-by: Jason Wang <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions