[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-block] [PATCH 2/4] qcow2: Prevent allocating L2 tables at offs
From: |
Alberto Garcia |
Subject: |
Re: [Qemu-block] [PATCH 2/4] qcow2: Prevent allocating L2 tables at offset 0 |
Date: |
Fri, 03 Nov 2017 10:56:13 +0100 |
User-agent: |
Notmuch/0.18.2 (http://notmuchmail.org) Emacs/24.4.1 (i586-pc-linux-gnu) |
On Thu 02 Nov 2017 06:31:18 PM CET, Max Reitz wrote:
>> + /* If we're allocating the table at offset 0 then something is wrong */
>> + if (l2_offset == 0) {
>> + qcow2_signal_corruption(bs, true, -1, -1, "Preventing invalid "
>> + "allocation of L2 table at offset 0");
>> + return -EIO;
>
> The other error paths in this function use a goto fail. It doesn't
> make a functional difference, but not doing it here looks a bit weird.
Oh, you're right. I'll fix it.
Berto
- [Qemu-block] [PATCH 0/4] Misc qcow2 corruption checks, Alberto Garcia, 2017/11/01
- [Qemu-block] [PATCH 3/4] qcow2: Don't open images with header.refcount_table_clusters == 0, Alberto Garcia, 2017/11/01
- [Qemu-block] [PATCH 2/4] qcow2: Prevent allocating L2 tables at offset 0, Alberto Garcia, 2017/11/01
- [Qemu-block] [PATCH 4/4] qcow2: Add iotest for an empty refcount table, Alberto Garcia, 2017/11/01
- [Qemu-block] [PATCH 1/4] qcow2: Prevent allocating refcount blocks at offset 0, Alberto Garcia, 2017/11/01
- Re: [Qemu-block] [PATCH 0/4] Misc qcow2 corruption checks, Max Reitz, 2017/11/02