Re: [PATCH v3 1/8] parallels: Out of image offset in BAT leads to image inflation

2022-08-18 Thread Vladimir Sementsov-Ogievskiy
On 8/18/22 11:49, Alexander Ivanov wrote: On 17.08.2022 21:43, Vladimir Sementsov-Ogievskiy wrote: On 8/17/22 22:27, Denis V. Lunev wrote: On 17.08.2022 21:13, Vladimir Sementsov-Ogievskiy wrote: On 8/15/22 12:02, Alexander Ivanov wrote: data_end field in BDRVParallelsState is set to the big

Re: [PATCH v3 1/8] parallels: Out of image offset in BAT leads to image inflation

2022-08-18 Thread Alexander Ivanov
On 17.08.2022 21:43, Vladimir Sementsov-Ogievskiy wrote: On 8/17/22 22:27, Denis V. Lunev wrote: On 17.08.2022 21:13, Vladimir Sementsov-Ogievskiy wrote: On 8/15/22 12:02, Alexander Ivanov wrote: data_end field in BDRVParallelsState is set to the biggest offset present in BAT. If this offset

Re: [PATCH v3 1/8] parallels: Out of image offset in BAT leads to image inflation

2022-08-17 Thread Denis V. Lunev
On 17.08.2022 21:43, Vladimir Sementsov-Ogievskiy wrote: On 8/17/22 22:27, Denis V. Lunev wrote: On 17.08.2022 21:13, Vladimir Sementsov-Ogievskiy wrote: On 8/15/22 12:02, Alexander Ivanov wrote: data_end field in BDRVParallelsState is set to the biggest offset present in BAT. If this offset i

Re: [PATCH v3 1/8] parallels: Out of image offset in BAT leads to image inflation

2022-08-17 Thread Vladimir Sementsov-Ogievskiy
On 8/17/22 22:27, Denis V. Lunev wrote: On 17.08.2022 21:13, Vladimir Sementsov-Ogievskiy wrote: On 8/15/22 12:02, Alexander Ivanov wrote: data_end field in BDRVParallelsState is set to the biggest offset present in BAT. If this offset is outside of the image, any further write will create the

Re: [PATCH v3 1/8] parallels: Out of image offset in BAT leads to image inflation

2022-08-17 Thread Denis V. Lunev
On 17.08.2022 21:13, Vladimir Sementsov-Ogievskiy wrote: On 8/15/22 12:02, Alexander Ivanov wrote: data_end field in BDRVParallelsState is set to the biggest offset present in BAT. If this offset is outside of the image, any further write will create the cluster at this offset and/or the image

Re: [PATCH v3 1/8] parallels: Out of image offset in BAT leads to image inflation

2022-08-17 Thread Vladimir Sementsov-Ogievskiy
On 8/15/22 12:02, Alexander Ivanov wrote: data_end field in BDRVParallelsState is set to the biggest offset present in BAT. If this offset is outside of the image, any further write will create the cluster at this offset and/or the image will be truncated to this offset on close. This is definite

[PATCH v3 1/8] parallels: Out of image offset in BAT leads to image inflation

2022-08-15 Thread Alexander Ivanov
data_end field in BDRVParallelsState is set to the biggest offset present in BAT. If this offset is outside of the image, any further write will create the cluster at this offset and/or the image will be truncated to this offset on close. This is definitely not correct and should be fixed. Signed-