Urgent fixes for 2.4
The following changes since commit acf7b7fdf31fa76b53803790917c8acf23a2badb:
Merge remote-tracking branch 'remotes/bonzini/tags/for-upstream' into staging (2015-07-08 20:46:35 +0100)
are available in the git repository at:
git://github.com/bonzini/qemu.git tags/for-upstream
for you to fetch changes up to 4f4f6976d80614e2d81cea4385885876f24bb257:
crypto: fix builtin qcrypto_cipher_free (2015-07-09 16:53:45 +0200)
----------------------------------------------------------------
Fixes for two bad bugs. For 2.4-rc0.
----------------------------------------------------------------
Paolo Bonzini (2):
migration: fix RCU deadlock
crypto: fix builtin qcrypto_cipher_free
crypto/cipher-builtin.c | 4 +++- migration/ram.c | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-)
Signature · 1 line
2.4.3
[Qemu-devel] [PULL 1/2] migration: fix RCU deadlock
migration_end calls synchronize_rcu() within a critical section. That causes a deadlock; move the call after rcu_read_unlock().
--- migration/ram.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
migration/ram.c +2 -1
@@ -1266,9 +1266,10 @@ static int ram_save_complete(QEMUFile *f, void *opaque)flush_compressed_data (f);ram_control_after_iterate (f,RAM_CONTROL_FINISH ); -migration_end ();rcu_read_unlock (); + +migration_end ();qemu_put_be64 (f,RAM_SAVE_FLAG_EOS );return 0 ;
Signature · 1 line
2.4.3
[Qemu-devel] [PULL 2/2] crypto: fix builtin qcrypto_cipher_free
In reply to Paolo BonziniThis was dereferencing a pointer before checking if it was NULL.
--- crypto/cipher-builtin.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
crypto/cipher-builtin.c +3 -1
@@ -354,11 +354,13 @@ QCryptoCipher *qcrypto_cipher_new(QCryptoCipherAlgorithm alg,void qcrypto_cipher_free (QCryptoCipher *cipher) { -QCryptoCipherBuiltin *ctxt = cipher->opaque; +QCryptoCipherBuiltin *ctxt; +if (!cipher) {return ; } + ctxt = cipher->opaque; ctxt->free (cipher);g_free (cipher); }
Signature · 1 line
2.4.3
Re: [Qemu-devel] [PULL 2/2] crypto: fix builtin qcrypto_cipher_free
Quoted 18 lines · Paolo Bonzini
This was dereferencing a pointer before checking if it was NULL.
Reported-by Christian Borntraeger <[email protected]>Reported-by Aurelien Jarno <[email protected]>Signed-off-by Paolo Bonzini <[email protected]>--- crypto/cipher-builtin.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)crypto/cipher-builtin.c +0
-1@@ -354,11 +354,13 @@ QCryptoCipher *qcrypto_cipher_new(QCryptoCipherAlgorithm alg,void qcrypto_cipher_free (QCryptoCipher *cipher) { -QCryptoCipherBuiltin *ctxt = cipher->opaque;
crypto/cipher-builtin.c QCryptoCipher *qcrypto_cipher_new(QCryptoCipherAlgorithm alg, · line 366
Quoted 10 lines
crypto/cipher-builtin.c +3
-0+QCryptoCipherBuiltin *ctxt; +if (!cipher) {return ; } + ctxt = cipher->opaque; ctxt->free (cipher);g_free (cipher); }
Thanks for the quick fix.
Signature · 2 lines
Aurelien Jarno GPG: 4096R/1DDD8C9B [email protected] http://www.aurel32.net
Am 09.07.2015 um 16:57 schrieb Paolo Bonzini:
Quoted 15 lines
The following changes since commit
acf7b7fdf31fa76b53803790917c8acf23a2badb:Merge remote-tracking branch 'remotes/bonzini/tags/for-upstream' into staging (2015-07-08 20:46:35 +0100)
are available in the git repository at:
git://github.com/bonzini/qemu.gittags/for-upstreamfor you to fetch changes up to
4f4f6976d80614e2d81cea4385885876f24bb257:crypto: fix builtin
qcrypto_cipher_free(2015-07-09 16:53:45 +0200)----------------------------------------------------------------
Fixes for two bad bugs. For 2.4-rc0.
Quoted 9 lines
----------------------------------------------------------------
Paolo Bonzini (2):
migration: fix RCU deadlock
crypto: fix builtinqcrypto_cipher_freecrypto/cipher-builtin.c | 4 +++- migration/ram.c | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-)
CC Peter missing?
Quoted 21 lines · Christian Borntraeger
Am 09.07.2015 um 16:57 schrieb Paolo Bonzini:
Quoted 20 lines
The following changes since commit
acf7b7fdf31fa76b53803790917c8acf23a2badb:Merge remote-tracking branch 'remotes/bonzini/tags/for-upstream' into staging (2015-07-08 20:46:35 +0100)
are available in the git repository at:
git://github.com/bonzini/qemu.gittags/for-upstreamfor you to fetch changes up to
4f4f6976d80614e2d81cea4385885876f24bb257:crypto: fix builtin
qcrypto_cipher_free(2015-07-09 16:53:45 +0200)----------------------------------------------------------------
Fixes for two bad bugs. For 2.4-rc0.----------------------------------------------------------------
Paolo Bonzini (2):
migration: fix RCU deadlock
crypto: fix builtinqcrypto_cipher_free
Quoted 6 lines
Quoted 4 lines
crypto/cipher-builtin.c | 4 +++- migration/ram.c | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-)CC Peter missing?
I filter these via the magic words in the standard pull request format, so I don't need to be cc'd...
-- PMM
Peter Maydell
AppliedQuoted 6 lines · Paolo Bonzini
The following changes since commit
acf7b7fdf31fa76b53803790917c8acf23a2badb:Merge remote-tracking branch 'remotes/bonzini/tags/for-upstream' into staging (2015-07-08 20:46:35 +0100)
are available in the git repository at:
Quoted 9 lines
git://github.com/bonzini/qemu.gittags/for-upstreamfor you to fetch changes up to
4f4f6976d80614e2d81cea4385885876f24bb257:crypto: fix builtin
qcrypto_cipher_free(2015-07-09 16:53:45 +0200)----------------------------------------------------------------
Fixes for two bad bugs. For 2.4-rc0.
Applied, thanks.
-- PMM