Re: [PATCH] block: Zero block driver state before reopening

2025-03-19 Thread Eric Blake
On Mon, Mar 10, 2025 at 11:48:58AM +0100, Kevin Wolf wrote: > Block drivers assume in their .bdrv_open() implementation that their > state in bs->opaque has been zeroed; it is initially allocated with > g_malloc0() in bdrv_open_driver(). > > bdrv_snapshot_goto() needs to make sure that it is zeroe

Re: [PATCH] block: Zero block driver state before reopening

2025-03-15 Thread Kevin Wolf
Am 10.03.2025 um 11:48 hat Kevin Wolf geschrieben: > Block drivers assume in their .bdrv_open() implementation that their > state in bs->opaque has been zeroed; it is initially allocated with > g_malloc0() in bdrv_open_driver(). > > bdrv_snapshot_goto() needs to make sure that it is zeroed again b

[PATCH] block: Zero block driver state before reopening

2025-03-10 Thread Kevin Wolf
Block drivers assume in their .bdrv_open() implementation that their state in bs->opaque has been zeroed; it is initially allocated with g_malloc0() in bdrv_open_driver(). bdrv_snapshot_goto() needs to make sure that it is zeroed again before calling drv->bdrv_open() to avoid that block drivers us