 4567474e95
			
		
	
	
		4567474e95
		
	
	
	
	
		
			
			Notable changes:
* bdrv_co_p{discard,readv,writev,write_zeroes} function signatures
  changed, to using int64_t for offsets/bytes and some still had int
  rather than BrdvRequestFlags for the flags.
* job_cancel_sync now has a force parameter. Commit messages in
  73895f3838cd7fdaf185cf1dbc47be58844a966f
  4cfb3f05627ad82af473e7f7ae113c3884cd04e3
  sound like using force=true makes more sense.
* Added 3 patches coming in via qemu-stable tag, most important one is
  to work around a librbd issue.
* Added another 3 patches from qemu-devel to fix issue leading to
  crash when live migrating with iothread.
* cluster_size calculation helper changed (see patch pve/0026).
* QAPI's if conditionals now use 'CONFIG_FOO' rather than
  'defined(CONFIG_FOO)'
Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
		
	
			
		
			
				
	
	
		
			35 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			Diff
		
	
	
	
	
	
			
		
		
	
	
			35 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			Diff
		
	
	
	
	
	
| From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
 | |
| From: Hanna Reitz <hreitz@redhat.com>
 | |
| Date: Wed, 9 Feb 2022 15:02:54 +0100
 | |
| Subject: [PATCH] block/nbd: Assert there are no timers when closed
 | |
| 
 | |
| Our two timers must not remain armed beyond nbd_clear_bdrvstate(), or
 | |
| they will access freed data when they fire.
 | |
| 
 | |
| This patch is separate from the patches that actually fix the issue
 | |
| (HEAD^^ and HEAD^) so that you can run the associated regression iotest
 | |
| (281) on a configuration that reproducibly exposes the bug.
 | |
| 
 | |
| Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
 | |
| Signed-off-by: Hanna Reitz <hreitz@redhat.com>
 | |
| [FE: backport (open_timer doesn't exist yet in 6.2.0)]
 | |
| Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
 | |
| ---
 | |
|  block/nbd.c | 3 +++
 | |
|  1 file changed, 3 insertions(+)
 | |
| 
 | |
| diff --git a/block/nbd.c b/block/nbd.c
 | |
| index b8e5a9b4cc..aab20125d8 100644
 | |
| --- a/block/nbd.c
 | |
| +++ b/block/nbd.c
 | |
| @@ -108,6 +108,9 @@ static void nbd_clear_bdrvstate(BlockDriverState *bs)
 | |
|  
 | |
|      yank_unregister_instance(BLOCKDEV_YANK_INSTANCE(bs->node_name));
 | |
|  
 | |
| +    /* Must not leave timers behind that would access freed data */
 | |
| +    assert(!s->reconnect_delay_timer);
 | |
| +
 | |
|      object_unref(OBJECT(s->tlscreds));
 | |
|      qapi_free_SocketAddress(s->saddr);
 | |
|      s->saddr = NULL;
 |