OpenVZ / Virtuozzo kernel development (devel@openvz.org)
 help / color / mirror / Atom feed
From: Alexander Ivanov <alexander.ivanov@virtuozzo.com>
To: Konstantin Khorenko <khorenko@virtuozzo.com>,
	andrey.zhadchenko@virtuozzo.com
Cc: devel@openvz.org
Subject: Re: [Devel] [PATCH hci-8.1 0/3] dm-qcow2: keep images of a read-only table unmodified
Date: Thu, 29 Oct 2026 15:48:44 +0100	[thread overview]
Message-ID: <acd53560-41da-4649-ab7e-ff20b21acffb@virtuozzo.com> (raw)
In-Reply-To: <5ef02a5b-bab9-40bb-8813-b3fdee7e4723@virtuozzo.com>


On 10/29/26 12:42, Konstantin Khorenko wrote:
> Three things found while reviewing the series, none of them for it.
> Please fix them separately.
>
> - A v3 image with header_length < 104 is not rejected. The only check
>    is header_length < sizeof(struct QCowHeader), and only when the
>    compression bit is set. qemu fails such an image with "qcow2 header
>    too short". For us the extension parser then starts inside the
>    header.
>
> - For a v2 image hdr->header_length is never set, so it stays 0 from
>    kzalloc() and the extensions are parsed from offset 0 of the header
>    instead of 72. qemu sets header_length = 72 for v2.
>
> - The table mode is still tested against FMODE_WRITE in
>    qcow2_check_convert_hdr(), qcow2_attach_file(),
>    qcow2_truncate_preallocations(), qcow2_postsuspend() and
>    qcow2_preresume(), while the series switched to BLK_OPEN_WRITE. Same
>    value today, but dm_table_get_mode() returns blk_mode_t. The is_ro
>    in qcow2_check_convert_hdr() has only a commented-out user and can go.
>
>
> Please file appropriate tasks and fix them separately.

Created tasks:
https://virtuozzo.atlassian.net/browse/VSTOR-152393

https://virtuozzo.atlassian.net/browse/VSTOR-152394

https://virtuozzo.atlassian.net/browse/VSTOR-152395

> --
> Best regards,
>
> Konstantin Khorenko,
> Virtuozzo Linux Kernel Team
_______________________________________________
Devel mailing list
Devel@openvz.org
https://lists.openvz.org/mailman/listinfo/devel

      reply	other threads:[~2026-10-29 14:50 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-23 13:20 Alexander Ivanov
2026-10-23 13:20 ` [Devel] [PATCH hci-8.1 1/3] drivers/md/dm-qcow2: treat images of a read-only table as read-only Alexander Ivanov
2026-10-23 13:24   ` no-reply
2026-10-29 11:36   ` Konstantin Khorenko
2026-10-23 13:20 ` [Devel] [PATCH hci-8.1 2/3] drivers/md/dm-qcow2: fail writes to a read-only table Alexander Ivanov
2026-10-23 13:23   ` no-reply
2026-10-28 10:35   ` Andrey Zhadchenko
2026-10-23 13:20 ` [Devel] [PATCH hci-8.1 3/3] drivers/md/dm-qcow2: do not revalidate inconsistent persistent bitmaps Alexander Ivanov
2026-10-23 13:25   ` no-reply
2026-10-23 13:58     ` Alexander Ivanov
2026-10-29 11:39   ` Konstantin Khorenko
2026-10-28 10:47 ` [Devel] [PATCH hci-8.1 0/3] dm-qcow2: keep images of a read-only table unmodified Andrey Zhadchenko
2026-10-29 11:42 ` Konstantin Khorenko
2026-10-29 14:48   ` Alexander Ivanov [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=acd53560-41da-4649-ab7e-ff20b21acffb@virtuozzo.com \
    --to=alexander.ivanov@virtuozzo.com \
    --cc=andrey.zhadchenko@virtuozzo.com \
    --cc=devel@openvz.org \
    --cc=khorenko@virtuozzo.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox