Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge tag 'v6.8-p4' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6

Pull crypto fix from Herbert Xu:
"Fix a stack overflow in virtio"

* tag 'v6.8-p4' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6:
crypto: virtio/akcipher - Fix stack overflow on memcpy

+3 -2
+3 -2
drivers/crypto/virtio/virtio_crypto_akcipher_algs.c
··· 104 104 } 105 105 106 106 static int virtio_crypto_alg_akcipher_init_session(struct virtio_crypto_akcipher_ctx *ctx, 107 - struct virtio_crypto_ctrl_header *header, void *para, 107 + struct virtio_crypto_ctrl_header *header, 108 + struct virtio_crypto_akcipher_session_para *para, 108 109 const uint8_t *key, unsigned int keylen) 109 110 { 110 111 struct scatterlist outhdr_sg, key_sg, inhdr_sg, *sgs[3]; ··· 129 128 130 129 ctrl = &vc_ctrl_req->ctrl; 131 130 memcpy(&ctrl->header, header, sizeof(ctrl->header)); 132 - memcpy(&ctrl->u, para, sizeof(ctrl->u)); 131 + memcpy(&ctrl->u.akcipher_create_session.para, para, sizeof(*para)); 133 132 input = &vc_ctrl_req->input; 134 133 input->status = cpu_to_le32(VIRTIO_CRYPTO_ERR); 135 134