From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.openvz.org (mail.openvz.org [69.168.225.77]) by lore.virtuozzo.com (Postfix) with ESMTPS id A26CB80031 for ; Thu, 19 Nov 2026 01:11:46 +0000 (UTC) Received: from mail.openvz.org (localhost [127.0.0.1]) by mail.openvz.org (8.14.4/8.14.4) with ESMTP id 6AJ1905H031284; Thu, 19 Nov 2026 04:09:01 +0300 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.openvz.org 6AJ1905H031284 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=openvz.org; s=default; t=1795050543; bh=H3JoNeU330l/f9JSziwQgkE/PnzwoqCLcdBV8xpcZs0=; h=From:To:Date:Cc:Subject:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe; b=qh+RSFo4HuE6o4b3/W4uVJUfWJP0/lYyANrko4vke8RDLRW0qOrIVj/HqNzgtlTDA 5WCHjffxXz0JHzHv33MNY3jZPNrQdB36PIE0rTZ6WPKLFxx2LzAwMSIzheXH47eg1A FLR0XKHTCH3TJ92OGqDdl8HFJ3xUR90EVD9LWRUEqK+VhP8wkd7dZWWoHh1Nfx9Q6z csfE3W3Er3VR1sicrD1sTKC7nKN/6NRULAvS9+arRUB6iKiyWKyPnkHRxOQSiuG81g i261RhPUvYH0RmC5lZgmY9qUufz/idwNiGlgzBlierOTe2qeoGEcidkEXagGK5FtOi YGBCJDEq7L+zw== Received: from mail-wr1-f70.google.com (mail-wr1-f70.google.com [209.85.221.70]) by mail.openvz.org (8.14.4/8.14.4) with ESMTP id 6AJ18wMS031277 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=FAIL) for ; Thu, 19 Nov 2026 04:08:58 +0300 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.openvz.org 6AJ18wMS031277 Authentication-Results: mail.openvz.org; dkim=pass (2048-bit key) header.d=openvz.org header.i=@openvz.org header.b="RtbYUhQg" Received: by mail-wr1-f70.google.com with SMTP id ffacd0b85a97d-4a799d93bc3so591140f8f.1 for ; Wed, 18 Nov 2026 17:08:58 -0800 (PST) X-Forwarded-Encrypted: i=2; AL+hErH6R32yqCnTX3shysi2piLX/AqnLYoHhhYE4P7NZXLb9cMEmilHO1KQ2xSkiDH37iwfhgwaUw==@openvz.org X-Gm-Message-State: APuU4Z+mSe9Djo66fTAUpEHH3ypM3/B4nJqJ8nZJKNC9b8AlA/Sz6PPy vpx/VX/HILGeLxk5HhDU2SaaA8/VYVWfVY2exMknfKW6ZL7a7eaxdAHKzjq6vDF8cGjEWfbb0Lj 2K/F7Ggc39ao3Bjaz3bPGxRf8R9if1EO33L5nCAnSauHIk1qV6icyvw== X-Gm-Gg: AZFdTZdV1zFS+ff4r8m39qmH3cgNxLBHLvz44XtEVJPfYZX022gEbRn+yvu8OvljdHw aaTB8sUzOMMbXzfCxizqPGnxTnV4hi7Y654jqu2WCC/Ph+K0ALPPuVzi9IGasa+U1khFW0w0Z8o iSL/J7vZlaxqh7jEIptNAYU+YFytn9H9FyVDZBJy6ilMlZ28smRY+zlabphvPQVedDOj95SjRbs lUy2zG0yApgXWOGgJibC9T9oD0bfjxsjhzXbtgalDIaYJ21jr7ZIgvK9fjzcHQMcb8x6dGYGq32 XMlOHvzxOw== X-Received: by 2002:a05:6000:2910:b0:48d:f0e4:27a4 with SMTP id ffacd0b85a97d-4a63984c562mr9818759f8f.24.1795050538258; Wed, 18 Nov 2026 17:08:58 -0800 (PST) X-Received: by 2002:a05:6000:2910:b0:48d:f0e4:27a4 with SMTP id ffacd0b85a97d-4a63984c562mr9818735f8f.24.1795050537911; Wed, 18 Nov 2026 17:08:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1795050537; cv=none; d=google.com; s=arc-20260327; b=JYBNqSdboLVHTA145oY1rHk3xv/xXIUbyFj6KbZYnP+lg9mbYih1YJkOro7Gdipq5k 5lu0227PEKmKL3YymDd+vLjHa6luYikAFHlFPJ+5X1838B9mfX0CPgTLDSL2fmXea/5m ALeqKYgpW3J7bsOR7Jg/iXjX+Kmr7kSme2xUgw9kVNXSOUqyXqekoh4eKV/KEl6kIuMh k4LZoMOAMg1ph9IaGaHEktx/EO/2s6hGzrHEC7kcF/OlriRJr38G61fZcLAznIpcDrm5 tkF/Yo/DRLKW+lzjnTcXi6aO8Z5Pjyaab7LiQDZrNvwrrJeO/QJbJ3C0g+Y1MT42TRQr KeSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=McnN2xJJR6SQBJozjYpMPv2k3UJWQwQc0vhAfrs0n+0=; fh=cKGOZBQJwc0AFDmThN16eRi3pxcWX+pit3vU9DbS65w=; b=cBVbE4BXTMP0+VyeSWNLqSnPWvKyKP6cj5NXulk8QB2SqRl+7d30iDcGVz3TGN42Nl APUDPHTJHuwu80QIjwoevLwFeEIKTFNDLmdufbHZgLLuUILAzatwlGsLGuEczPhAy0FN v8dSWkpr0MeAGYihIHfHG2LXvORC4BxataQdHZyGX1aNtfIi5lUuJAgne/KBN5im9TPD yAg3PSzBU35d+Yc6Y2ApnhNAc9cRRPmmb388SAELbJIzcyxNn30Dyf+oulppymSX0sTs Mky/qSSDswnicUmOYI47ClSVI51Y8fQMKc+IYLxdV0LxHSimI7AWNC6hk39qHxDbGeIo ZbQQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@openvz.org header.s=google header.b=RtbYUhQg; spf=softfail (google.com: domain of transitioning den@openvz.org does not designate 2a06:5b06:b600:300:8c09:3cc3:6efa:ac1f as permitted sender) smtp.mailfrom=den@openvz.org; dara=neutral header.i=@openvz.org Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id ffacd0b85a97d-4a8afc15845sor217197f8f.4.2026.11.18.17.08.57 for (Google Transport Security); Wed, 18 Nov 2026 17:08:57 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning den@openvz.org does not designate 2a06:5b06:b600:300:8c09:3cc3:6efa:ac1f as permitted sender) client-ip=2a06:5b06:b600:300:8c09:3cc3:6efa:ac1f; Authentication-Results: mx.google.com; dkim=pass header.i=@openvz.org header.s=google header.b=RtbYUhQg; spf=softfail (google.com: domain of transitioning den@openvz.org does not designate 2a06:5b06:b600:300:8c09:3cc3:6efa:ac1f as permitted sender) smtp.mailfrom=den@openvz.org; dara=neutral header.i=@openvz.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=openvz.org; s=google; t=1795050537; x=1795655337; darn=openvz.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to:content-type; bh=McnN2xJJR6SQBJozjYpMPv2k3UJWQwQc0vhAfrs0n+0=; b=RtbYUhQgJI9OcOajM4r7+iC2S53pvlCeo/DSyvbk5D1XNnmJCxkx6GcibVbgQM89xs G6qtLJ3KKIF4fV37kur1svkvdugQga0EusNZi3I5iqvHptZoqgrZVqWkx94CPTVqjWXG gfJveQWtbkWhxRW9TYkJ1fm46Kz/cAj432pZDiPqVrgnty1yf+gD478NG7e9wHva8tIa BXoE5acI1V2VtpUAoO1d/JQ2wa2rsps48V8R+b0IVKO2tQl1z2F8v3vp8NHKZW8B5vh/ azBirYLKqyo7oYruOMdYtVReqNEgFjK1hiMuJjSzuQ26wMIoC/3JSpln+Gh97H/5t0XT GLCA== X-Forwarded-Encrypted: i=1; AL+hErFq97z/okFwvy60z6k/qEFI4hXD61QPdT/QRNBkojX6hjqJopQakuzAxEK2+Ws5hlOACEraxg==@openvz.org X-Received: by 2002:a05:6000:26c3:b0:4a6:e1ed:771 with SMTP id ffacd0b85a97d-4a6e1ed08ccmr8388838f8f.34.1795050537502; Wed, 18 Nov 2026 17:08:57 -0800 (PST) Received: from artemis.sw.ru ([2a06:5b06:b600:300:8c09:3cc3:6efa:ac1f]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4a65560b2a1sm7266442f8f.32.2026.11.18.17.08.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Nov 2026 17:08:57 -0800 (PST) From: "Denis V. Lunev" To: alexander.ivanov@virtuozzo.com, vasileios.almpanis@virtuozzo.com Date: Thu, 19 Nov 2026 02:08:50 +0100 Message-ID: <20261119010854.4107497-1-den@openvz.org> X-Mailer: git-send-email 2.55.0 MIME-Version: 1.0 X-OZ-Fwd: true Cc: devel@openvz.org Subject: [Devel] [PATCH hci-8.2 0/4] dm-qcow2: fix the revert of a failed L2 writeback X-BeenThere: devel@openvz.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: OpenVZ development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: devel-bounces@openvz.org Errors-To: devel-bounces@openvz.org A failed L2 writeback reverts the page in memory, and the revert can leave entries that send I/O to the wrong place. An all-zeroes entry loses its flag and shows backing data again. On ext_l2 images, subclusters stay marked allocated with offset 0, so their I/O goes to cluster 0, where the image header lives. The last patch makes dm-qcow2 refuse such entries already on disk. https://virtuozzo.atlassian.net/browse/VSTOR-154311 https://virtuozzo.atlassian.net/browse/VSTOR-154310 Tested in an HCI 8.2 VM with the L2 writeback failure injected: each case reproduces on stock and not with the series, and the ploop test suite passes in qcow2 and ploop formats. Denis V. Lunev (4): dm-qcow2: keep the zero flag of an L2 entry when its writeback fails dm-qcow2: fix ext_l2 subclusters mapped to cluster 0 after a write error dm-qcow2: delay a backing-file COW while its L2 entry awaits writeback dm-qcow2: refuse an ext_l2 entry with allocated subclusters and no cluster drivers/md/dm-qcow2-map.c | 35 ++++++++++++++++++++++++++++++----- 1 file changed, 30 insertions(+), 5 deletions(-) -- 2.55.0 _______________________________________________ Devel mailing list Devel@openvz.org https://lists.openvz.org/mailman/listinfo/devel