qemu-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-commits] [qemu/qemu] d4c648: cipher: fix leak on initialization er


From: GitHub
Subject: [Qemu-commits] [qemu/qemu] d4c648: cipher: fix leak on initialization error
Date: Thu, 22 Dec 2016 11:30:06 -0800

  Branch: refs/heads/master
  Home:   https://github.com/qemu/qemu
  Commit: d4c64800bbe1332328695a551b84ae68590c90fd
      
https://github.com/qemu/qemu/commit/d4c64800bbe1332328695a551b84ae68590c90fd
  Author: Marc-André Lureau <address@hidden>
  Date:   2016-12-21 (Wed, 21 Dec 2016)

  Changed paths:
    M crypto/cipher-nettle.c

  Log Message:
  -----------
  cipher: fix leak on initialization error

On error path, ctx may be leaked. Assign ctx earlier, and call
qcrypto_cipher_free() on error.

Spotted thanks to ASAN.

Signed-off-by: Marc-André Lureau <address@hidden>
Signed-off-by: Daniel P. Berrange <address@hidden>


  Commit: ffb7bf452af8f5b50c2a9adca8ab2e54627e04ae
      
https://github.com/qemu/qemu/commit/ffb7bf452af8f5b50c2a9adca8ab2e54627e04ae
  Author: Longpeng(Mike) <address@hidden>
  Date:   2016-12-21 (Wed, 21 Dec 2016)

  Changed paths:
    M crypto/cipher-gcrypt.c
    M crypto/cipher-nettle.c
    M crypto/cipher.c
    M qapi/crypto.json
    M tests/test-crypto-cipher.c

  Log Message:
  -----------
  crypto: add 3des-ede support when using libgcrypt/nettle

Libgcrypt and nettle support 3des-ede, so this patch add 3des-ede
support when using libgcrypt or nettle.

Reviewed-by: Gonglei <address@hidden>
Signed-off-by: Longpeng(Mike) <address@hidden>
Signed-off-by: Daniel P. Berrange <address@hidden>


  Commit: 1f923c70bdb06369dcbb2097011af7cfa7c94a17
      
https://github.com/qemu/qemu/commit/1f923c70bdb06369dcbb2097011af7cfa7c94a17
  Author: Longpeng(Mike) <address@hidden>
  Date:   2016-12-22 (Thu, 22 Dec 2016)

  Changed paths:
    M configure

  Log Message:
  -----------
  configure: add CONFIG_GCRYPT_HMAC item

This item will be used for support libcrypt-backed HMAC algorithms.

Support for hmac has been added in Libgcrypt 1.6.0, but we cannot
use pkg-config to get libcrypt's version. However we can make a
in configure to know whether current libcrypt support hmac.

Signed-off-by: Longpeng(Mike) <address@hidden>
Signed-off-by: Daniel P. Berrange <address@hidden>


  Commit: 12a4f2162ad27f0d76fb9187dfc70a94e7bbd319
      
https://github.com/qemu/qemu/commit/12a4f2162ad27f0d76fb9187dfc70a94e7bbd319
  Author: Longpeng(Mike) <address@hidden>
  Date:   2016-12-22 (Thu, 22 Dec 2016)

  Changed paths:
    M crypto/Makefile.objs
    A crypto/hmac-gcrypt.c
    A crypto/hmac-glib.c
    A crypto/hmac-nettle.c
    A crypto/hmac.c
    A crypto/hmac.h

  Log Message:
  -----------
  crypto: add HMAC algorithms framework

This patch introduce HMAC algorithms framework.

Signed-off-by: Longpeng(Mike) <address@hidden>
Signed-off-by: Daniel P. Berrange <address@hidden>


  Commit: 5ce9cfe737cce8240e5c4d1c1fdbf0e05ff3540f
      
https://github.com/qemu/qemu/commit/5ce9cfe737cce8240e5c4d1c1fdbf0e05ff3540f
  Author: Longpeng(Mike) <address@hidden>
  Date:   2016-12-22 (Thu, 22 Dec 2016)

  Changed paths:
    M crypto/hmac-gcrypt.c

  Log Message:
  -----------
  crypto: support HMAC algorithms based on libgcrypt

This patch add HMAC algorithms based on libgcrypt support

Signed-off-by: Longpeng(Mike) <address@hidden>
Signed-off-by: Daniel P. Berrange <address@hidden>


  Commit: e11680524afc6fb5b38e2a9e2e55c3c313ab8f97
      
https://github.com/qemu/qemu/commit/e11680524afc6fb5b38e2a9e2e55c3c313ab8f97
  Author: Longpeng(Mike) <address@hidden>
  Date:   2016-12-22 (Thu, 22 Dec 2016)

  Changed paths:
    M crypto/hmac-glib.c

  Log Message:
  -----------
  crypto: support HMAC algorithms based on glib

This patch add glib-backed HMAC algorithms support

Signed-off-by: Longpeng(Mike) <address@hidden>
Signed-off-by: Daniel P. Berrange <address@hidden>


  Commit: f4d7674722d121fa7d4ed7cbee2c3ba9b3e71824
      
https://github.com/qemu/qemu/commit/f4d7674722d121fa7d4ed7cbee2c3ba9b3e71824
  Author: Longpeng(Mike) <address@hidden>
  Date:   2016-12-22 (Thu, 22 Dec 2016)

  Changed paths:
    M crypto/hmac-nettle.c

  Log Message:
  -----------
  crypto: support HMAC algorithms based on nettle

This patch add nettle-backed HMAC algorithms support

Signed-off-by: Longpeng(Mike) <address@hidden>
Signed-off-by: Daniel P. Berrange <address@hidden>


  Commit: 4fd460bf25b197f94b9db463b77a69433901ac92
      
https://github.com/qemu/qemu/commit/4fd460bf25b197f94b9db463b77a69433901ac92
  Author: Longpeng(Mike) <address@hidden>
  Date:   2016-12-22 (Thu, 22 Dec 2016)

  Changed paths:
    M tests/Makefile.include
    A tests/test-crypto-hmac.c

  Log Message:
  -----------
  crypto: add HMAC algorithms testcases

This patch add HMAC algorithms testcases

Signed-off-by: Longpeng(Mike) <address@hidden>
Signed-off-by: Daniel P. Berrange <address@hidden>


  Commit: c76904ef2fc920bc6f73a827412cedac0aa167ad
      
https://github.com/qemu/qemu/commit/c76904ef2fc920bc6f73a827412cedac0aa167ad
  Author: Peter Maydell <address@hidden>
  Date:   2016-12-22 (Thu, 22 Dec 2016)

  Changed paths:
    M configure
    M crypto/Makefile.objs
    M crypto/cipher-gcrypt.c
    M crypto/cipher-nettle.c
    M crypto/cipher.c
    A crypto/hmac-gcrypt.c
    A crypto/hmac-glib.c
    A crypto/hmac-nettle.c
    A crypto/hmac.c
    A crypto/hmac.h
    M qapi/crypto.json
    M tests/Makefile.include
    M tests/test-crypto-cipher.c
    A tests/test-crypto-hmac.c

  Log Message:
  -----------
  Merge remote-tracking branch 
'remotes/berrange/tags/pull-qcrypto-2016-12-21-2' into staging

Merge qcrypto 2016/12/21 v2

# gpg: Signature made Thu 22 Dec 2016 10:46:17 GMT
# gpg:                using RSA key 0xBE86EBB415104FDF
# gpg: Good signature from "Daniel P. Berrange <address@hidden>"
# gpg:                 aka "Daniel P. Berrange <address@hidden>"
# Primary key fingerprint: DAF3 A6FD B26B 6291 2D0E  8E3F BE86 EBB4 1510 4FDF

* remotes/berrange/tags/pull-qcrypto-2016-12-21-2:
  crypto: add HMAC algorithms testcases
  crypto: support HMAC algorithms based on nettle
  crypto: support HMAC algorithms based on glib
  crypto: support HMAC algorithms based on libgcrypt
  crypto: add HMAC algorithms framework
  configure: add CONFIG_GCRYPT_HMAC item
  crypto: add 3des-ede support when using libgcrypt/nettle
  cipher: fix leak on initialization error

Signed-off-by: Peter Maydell <address@hidden>


Compare: https://github.com/qemu/qemu/compare/225adf16d2a1...c76904ef2fc9

reply via email to

[Prev in Thread] Current Thread [Next in Thread]