Files
linux/drivers/crypto
zhenwei pi c0ec2a712d 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: 59ca6c9338 ("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]>
2024-02-09 12:55:53 +08:00
..
2023-12-08 11:59:46 +08:00
2024-01-26 16:35:55 +08:00
2023-12-08 11:59:46 +08:00
2023-12-08 11:59:46 +08:00
2023-12-08 11:59:45 +08:00
…
2023-12-08 11:59:46 +08:00
…