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 EA01980027 for ; Thu, 19 Nov 2026 13:09:56 +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 6AJD8eTg001127; Thu, 19 Nov 2026 16:08:41 +0300 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.openvz.org 6AJD8eTg001127 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=openvz.org; s=default; t=1795093724; bh=vwiyHwaz+P6JEdQKP/YZiLHJHubD8B40oiM54Kz6FWE=; h=From:To:Date:Cc:Subject:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe; b=JlXloT/XqPxXZd4KCOc8JTy1DnmFUqv5VtS5pEXkRln3fJlSiF+rI9BkKsNXtv1td uSe5kJrm73lMe8oPra8yARSCp3weZFV3vt7sL/FERm98R2hyfHr9aAABChmU3t4Dh6 pQ44qad7deYbYVog22DK0honUCvad2Uu0f4+qHSAe9vxmC8JWFgNtfgVRtz2ZyzDGk Y16v+j1IYaJdxwS9VId+eKuhbeW9cfn6nglJS45fJCV8egYEK6JvbpTi0yFx49+rI5 z4FZVI+FvLENmBpzrSvmvQAm+9ZDg0q50bwBC0rgTF81sM28fQf/rBFQLWHJ13ztzf P7YfPliabuszg== Received: from mail-wr1-f69.google.com (mail-wr1-f69.google.com [209.85.221.69]) by mail.openvz.org (8.14.4/8.14.4) with ESMTP id 6AJD8dhM001120 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=FAIL) for ; Thu, 19 Nov 2026 16:08:39 +0300 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.openvz.org 6AJD8dhM001120 Authentication-Results: mail.openvz.org; dkim=pass (2048-bit key) header.d=openvz.org header.i=@openvz.org header.b="Ghp3qdl+" Received: by mail-wr1-f69.google.com with SMTP id ffacd0b85a97d-48e4d1e29f3so2060531f8f.3 for ; Thu, 19 Nov 2026 05:08:39 -0800 (PST) X-Forwarded-Encrypted: i=2; AL+hErETszfjqxoMxyQjWjxF4K1WsA3LQ0aAv+HcaanivwF2MtK8R5Jj8C1Cf/U5wrZix1/fHRQzUA==@openvz.org X-Gm-Message-State: APuU4Z9leG5sE/wHuiagaKMA8bb8iCGDtNZS30jTw4Nj7ijHL0rbrXJ5 hlAg2eghdjz+AFmpxVP+BBiTn8LA/kSt1WkBM/8mcwWMzbqD9kWuFSrRTxSCEllc+CK4oJJ7t/F W/0349harQu3YaVNGbxF0RaNU8zmlN8YkGMYh31+6dNevbjxhuypWFw== X-Gm-Gg: AYBFou2BRTQxrhNeWKf1Nf93JUk/Rv64dk086q+aNyYByV6G7Q4MnqUAFKgOMJA7vBu b01EUoasnvt/sY/R9Q4RGRuz4E3+RHyDBHWfIUNr9op8sN4NuXpjBuWQfdHhqKQQZNWWhgilWgd SAamdCToQH+cxiM0Es0wXJAmK9GPdn6VeXdehlt57dkyWiFmKJ4ag41RMEHfLijIER5bYJP0V3B 3VWtgsNRHcaLBVv4QEvXYH6RUnlkKcXyNmbRV7bA0YwGmbvIyoL3sXf6kZLs8Y8oXHt1hXZ9a4D 07rxnwjY7Q== X-Received: by 2002:a05:600c:b95:b0:4bb:605d:8e92 with SMTP id 5b1f17b1804b1-4bb7da36bfbmr112843375e9.32.1795093718688; Thu, 19 Nov 2026 05:08:38 -0800 (PST) X-Received: by 2002:a05:600c:b95:b0:4bb:605d:8e92 with SMTP id 5b1f17b1804b1-4bb7da36bfbmr112842695e9.32.1795093718155; Thu, 19 Nov 2026 05:08:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1795093718; cv=none; d=google.com; s=arc-20260327; b=bItOL5kvEzmLnTU5DcVC8bnKGIFY+HdhQitHLfL1oAl6J3v8YXmVvWPA66FKxGu1KZ qBxwIe0XN6ehRqtNKGRlnpzC9JUjbH6xP3nKZQY4+rpb9+lhdpsWZLtdAR0wy9/r7AX4 +EbPrtYE1CaH97tnd+9knMTT2nWNRqDX1gz7fSgz4742PHrFcGAUNN63NFDwqKRsUTMl pvnqBjFxJquEySV8ecCt/etDeiHcXrueEsmqpr2n16XUwNFmOZ1UWfpim1G4ydZfF40O bs7J5ZZgvKt2ilChXJKx7eYSKkwH2qaxpDunvimnU/Hd6StYpQqIA0UtPqXHIg3JgOfk 3uAA== 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=9yURiOXx8zNAw+WG2lbwLBsucrBmHKdIPF64MUqSENU=; fh=SPuSpsPhgNWksr70drjnAWod4YRZAhL4g+8Hao7NonY=; b=kTFeilK64JQkkjJ/p/1/iaC7vua0VHXL1v5Ge3ptRj1Efn9VnAd5t+cZ3h1kArggmp x7zvF4+/luXEARuWm/uid2mBmiXHk1x0YdB01c1aOJvJaRAEMhkjGFxHbWU0PUVsX4vN vEhdTZUQb6Yy89tjRtZczXqwdRTai8XbBPaAb/7MXj4WWmK8CWkrtZgCTIoff65n3CDe 3GDxKYxqonH4c6zRZoyizq0fBpzZe869hHLp4M+9isGqknNmN/fJ+gihqRG6Z2J/04Ws YYKNx6pqnZs3KbsGw4k5VLjv425VnPl8zfuJ0AvCXz7NoL9bPvoZ5u7pPcdLxJsjBZk8 FLpQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@openvz.org header.s=google header.b=Ghp3qdl+; spf=softfail (google.com: domain of transitioning den@openvz.org does not designate 2a06:5b06:b600:300:989f:a206:d03d:c3d5 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 5b1f17b1804b1-4bb7da3c088sor12146995e9.14.2026.11.19.05.08.37 for (Google Transport Security); Thu, 19 Nov 2026 05:08:37 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning den@openvz.org does not designate 2a06:5b06:b600:300:989f:a206:d03d:c3d5 as permitted sender) client-ip=2a06:5b06:b600:300:989f:a206:d03d:c3d5; Authentication-Results: mx.google.com; dkim=pass header.i=@openvz.org header.s=google header.b=Ghp3qdl+; spf=softfail (google.com: domain of transitioning den@openvz.org does not designate 2a06:5b06:b600:300:989f:a206:d03d:c3d5 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=1795093717; x=1795698517; 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=9yURiOXx8zNAw+WG2lbwLBsucrBmHKdIPF64MUqSENU=; b=Ghp3qdl++smNKb6P28P6S3iPLEpUpI06xd95/dt7zX3/QQkQhK69oxbPHQX6Tcdpzm rO8WwIzkpHSUpmihmrtHX5Kx5lu8XSSljYKRw3j5RYFT+vpRSHcyxr4PozSa/2ghlYEi uah1dEfIw4FeXHQUVHm5cgmxvUH7N0ZQzRylklUifJVqU6s0N+lbng9DMW97YooLjgds Y5wZJMb7kcD+IKDsOocRp6zed6Y9eknikNrjudQXPurWLhm2GBuc+iuQPLl8BHOU8/H6 ihyoPKSn7YU9ADyPse10z6U/Mya+BS2Vg6S1rzQmzl/B27D3d3WmXH9fCijSGE9Q1syL zbHA== X-Forwarded-Encrypted: i=1; AL+hErE4oeGYSgvT4cuV3VVS9RtNVDc1OeLh86zSe+fxzS25NMV5KIiqrJ24Nx6ZT15yMwtPlMV1Qw==@openvz.org X-Received: by 2002:a05:600c:138c:b0:4a3:5991:718 with SMTP id 5b1f17b1804b1-4bb7da15188mr118533675e9.16.1795093717342; Thu, 19 Nov 2026 05:08:37 -0800 (PST) Received: from artemis.sw.ru ([2a06:5b06:b600:300:989f:a206:d03d:c3d5]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4bb85372b67sm37547685e9.13.2026.11.19.05.08.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Nov 2026 05:08:36 -0800 (PST) From: "Denis V. Lunev" To: alexander.ivanov@virtuozzo.com, vasileios.almpanis@virtuozzo.com Date: Thu, 19 Nov 2026 14:08:35 +0100 Message-ID: <20261119130835.885832-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 v2] dm-qcow2: log the image, offset and ext_l2 word of an invalid entry 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 From: Denis V. Lunev parse_l2() reports an ext_l2 entry with allocated subclusters and no cluster by l2->index_in_page and the page id. On ext_l2 images index_in_page counts u64 words, two per entry, so the number it calls the entry is twice the entry's index within the page. The ext_l2 word that makes the entry invalid is not shown, nor is the image of a chain the entry is in. Print the image id as the get_img_name and get_img_fd messages take it, the file offset where the entry starts, which can be looked up in that image as is, and the ext_l2 word, which follows it. https://virtuozzo.atlassian.net/browse/VSTOR-156041 Feature: dm-qcow2: block device over QCOW2 files driver Signed-off-by: Denis V. Lunev --- Applies on top of the series "dm-qcow2: fix the revert of a failed L2 writeback". v2: print img_id as is, say the offset is where the entry starts, keep "invalid" in the line. v1: http://lore.virtuozzo.com/kernel/20261119114828.766329-1-den@openvz.org/ drivers/md/dm-qcow2-map.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/md/dm-qcow2-map.c b/drivers/md/dm-qcow2-map.c index 89e569d09133..40138f26bf07 100644 --- a/drivers/md/dm-qcow2-map.c +++ b/drivers/md/dm-qcow2-map.c @@ -1980,9 +1980,11 @@ static loff_t parse_l2(struct qcow2 *qcow2, struct qcow2_map *map, if (WARN_ON_ONCE(all_zeroes || (ext_l2 & (ext_l2 >> 32)))) goto out; if (!pos && (u32)ext_l2) { - pr_err_ratelimited(QCOW2_FMT("invalid ext_l2 entry %u in page %llu"), + pr_err_ratelimited(QCOW2_FMT("img %u: invalid L2 entry at %#llx, ext_l2 %#llx"), qcow2_device_name(qcow2->tgt->ti), - l2->index_in_page, l2->md->id); + qcow2->img_id, + (l2->md->id << PAGE_SHIFT) + + l2->index_in_page * sizeof(u64), ext_l2); goto out; } -- 2.55.0 _______________________________________________ Devel mailing list Devel@openvz.org https://lists.openvz.org/mailman/listinfo/devel