[PATCH] parallels: fix ext_off assertion failure due to overflow

2024-12-12 Thread gerben
Hi, If necessary, I can provide an image file to reproduce the error. Regards, Denis Rastyogin

[PATCH] parallels: fix ext_off assertion failure due to overflow

2024-12-12 Thread gerben
From: Denis Rastyogin This error was discovered by fuzzing qemu-img. When ph.ext_off has a sufficiently large value, the operation le64_to_cpu(ph.ext_off) << BDRV_SECTOR_BITS in parallels_read_format_extension() can cause an overflow in int64_t. This overflow triggers the assert(ext_off > 0) che

Re: [PATCH] parallels: fix ext_off assertion failure due to overflow

2024-12-12 Thread Denis V. Lunev
On 12/12/24 11:41, ger...@altlinux.org wrote: From: Denis Rastyogin This error was discovered by fuzzing qemu-img. When ph.ext_off has a sufficiently large value, the operation le64_to_cpu(ph.ext_off) << BDRV_SECTOR_BITS in parallels_read_format_extension() can cause an overflow in int64_t. Th