[PATCH v3 0/3] crypto: virtio: Fix three issues

From: Longpeng(Mike)
Date: Tue Jun 02 2020 - 03:05:25 EST


Patch 1 & 2: fix two crash issues, Link: https://lkml.org/lkml/2020/1/23/205
Patch 3: fix another functional issue

Changes since v2:
- put another bugfix together

Changes since v1:
- remove some redundant checks [Jason]
- normalize the commit message [Markus]

Cc: Gonglei <arei.gonglei@xxxxxxxxxx>
Cc: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Cc: "Michael S. Tsirkin" <mst@xxxxxxxxxx>
Cc: Jason Wang <jasowang@xxxxxxxxxx>
Cc: "David S. Miller" <davem@xxxxxxxxxxxxx>
Cc: virtualization@xxxxxxxxxxxxxxxxxxxxxxxxxx
Cc: linux-kernel@xxxxxxxxxxxxxxx
Cc: stable@xxxxxxxxxxxxxxx

Longpeng(Mike) (3):
crypto: virtio: Fix src/dst scatterlist calculation in
__virtio_crypto_skcipher_do_req()
crypto: virtio: Fix use-after-free in
virtio_crypto_skcipher_finalize_req()
crypto: virtio: Fix dest length calculation in
__virtio_crypto_skcipher_do_req()

drivers/crypto/virtio/virtio_crypto_algs.c | 21 ++++++++++++++-------
1 file changed, 14 insertions(+), 7 deletions(-)

--
1.8.3.1