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 DCC4B8002A for ; Fri, 20 Nov 2026 02:24:12 +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 6AK2MrAr021189; Fri, 20 Nov 2026 05:22:54 +0300 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.openvz.org 6AK2MrAr021189 Authentication-Results: mail.openvz.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=virtuozzo.com header.i=@virtuozzo.com header.b="Kd3o9TX/" Received: from mail-pf1-f200.google.com (mail-pf1-f200.google.com [209.85.210.200]) by mail.openvz.org (8.14.4/8.14.4) with ESMTP id 6AK2MoLW021179 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=FAIL) for ; Fri, 20 Nov 2026 05:22:51 +0300 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.openvz.org 6AK2MoLW021179 Received: by mail-pf1-f200.google.com with SMTP id d2e1a72fcca58-8b647bbf8a9so491576b3a.0 for ; Thu, 19 Nov 2026 18:22:51 -0800 (PST) X-Gm-Message-State: APuU4Z97hs3fz/EMd78G5aeGfvG+fMSpIACArjGTBCu1GE7Xn042olmm S7hmNvA/xCXYiaCWgKogrmhNpXHNyO+TAfdzxOE9cRDAI0roqEf6uJ92NhCG5HNbgotONzx5DbG jGDaVckQEnnL/j+hnWpKUYWJfzWBXxhRjTHcZ+tGM2DmxjiilRjGndg== X-Gm-Gg: AYBFou26lihVVUe0T7BrTUa5mvyMEszl+VGf8iqjCFFYnnAWMnFPRWLZXevaJSNSNMc 6ChlgdoXAF1cwgN8psKdmXZEJs7tOvwGtSlWMiCcm/B1ECsJssP8wkWiejogpvVyyUYorha43fu zvNTrtukhh7vZylXPznfsU9HaTPsG0qT6d42B1fwCJ7xmjW4QRPrRwDMJjGi9gM7YrPkYtQZe+l VE/Y7Cp0qfjPkZAhiht4XmnKSuxW0/R25Y4n+31ATDa88jDs+9o2JeByGFOfHFcVuRN1esjiUxH I1R50qfXq33Bk3d2Ov5eARiRabkVTXlEOs60q74aQXsspjHgCAVN4KMVZd3O0rzumO01x3jqSTz uzflYDvSW9PeRMA+dwJXBmR11X08J6LFBoeyuqufx5TWscHdjnSmowUf0EFBOSKrJWBt6t50X2B 3KM2qsaAUbLNd+JK+wDtIYtdGHHbOqpsXS X-Received: by 2002:a05:6a00:1d9d:b0:89f:7ac5:9d4f with SMTP id d2e1a72fcca58-8c8796a8176mr1412240b3a.2.1795141370226; Thu, 19 Nov 2026 18:22:50 -0800 (PST) X-Received: by 2002:a05:6a00:1d9d:b0:89f:7ac5:9d4f with SMTP id d2e1a72fcca58-8c8796a8176mr1412212b3a.2.1795141369542; Thu, 19 Nov 2026 18:22:49 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1795141369; cv=pass; d=google.com; s=arc-20260327; b=lnHFBjWfZa015h1uhS7+QFoPBxjOeNw7JLJ9OKYuwFJ7P7e/xJbJi81hCXC5xbMndC NVAHiqjs86RCtRLh4HV0yraoszTCQWdPlPmn1TIFs2RC0lIGsrKxpqi7nvaEE3jx7qXq H/EbENkGGA4rVeWbbbUKwQNJJ5NJc9wp01QYsnR3hqufH//jNR4N6bxNV3Fu4DJgPNwK 1g33lEGwiIlUDA3oUv1n4PZ7JhqeO/r29hO541+SONVuBu0Iv4XnsJ5D6iLZG0VZ2gTZ O2LEaHNqvM8ucmW9d6+YHo3Gc2C2vZvBKVijBKEAYkmlIJmaFOhC6lAqjOr8Lj6wpx+b XTQA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327; h=mime-version:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:date :message-id:dkim-signature; bh=X/UVsAEzqT0ku5h5CwPHolF5E8MZRXTtSHMmhsE6LdQ=; fh=iA9KvSY56YtnZDvjhi9X0DOiTdfSp/73bx9Hz/dMPQY=; b=Jm9Jje53G0SrQWB5K03i7aYEsoiWpUWuITy51OuO24rwtdSHmHCosbgfrla/DF8BbW IZms8Zqk2QKYwPWxfXjVN9DG5jAOATwjLiN1a8ZGPJqACGRw2ltU5O+OGZo1HimuXTpO verjHkDMtmHGCsgnF4Wf81KBMnRTW4bvnaDbU1i2z7w7FlDi1VnYBTl+mmONilHpZsli dpfjQswfzWPJDus+SfcpTcUSCGQlwfXm5/1wl0WrIIcNfXFOeKLQbzYpWpHGjExXKtZE RLMekpn8ZqEPRM72G279efbzyCWWYVSH9eVJ1hF/uzyumd8vPMG7Q7Vj0rvPuu/KE7AO GBgw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=selector2 header.b="Kd3o9TX/"; arc=pass (i=1 spf=pass spfdomain=virtuozzo.com dkim=pass dkdomain=virtuozzo.com dmarc=pass fromdomain=virtuozzo.com); spf=pass (google.com: domain of andrey.zhadchenko@virtuozzo.com designates 2a01:111:f403:c201::3 as permitted sender) smtp.mailfrom=andrey.zhadchenko@virtuozzo.com; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=virtuozzo.com Received: from AS8PR04CU009.outbound.protection.outlook.com (mail-westeuropeazlp170110003.outbound.protection.outlook.com. [2a01:111:f403:c201::3]) by mx.google.com with ESMTPS id d2e1a72fcca58-8c870584adbsi3360932b3a.21.2026.11.19.18.22.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Nov 2026 18:22:49 -0800 (PST) Received-SPF: pass (google.com: domain of andrey.zhadchenko@virtuozzo.com designates 2a01:111:f403:c201::3 as permitted sender) client-ip=2a01:111:f403:c201::3; Authentication-Results: mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=selector2 header.b="Kd3o9TX/"; arc=pass (i=1 spf=pass spfdomain=virtuozzo.com dkim=pass dkdomain=virtuozzo.com dmarc=pass fromdomain=virtuozzo.com); spf=pass (google.com: domain of andrey.zhadchenko@virtuozzo.com designates 2a01:111:f403:c201::3 as permitted sender) smtp.mailfrom=andrey.zhadchenko@virtuozzo.com; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=virtuozzo.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=sX4Pm197YmS0EY/EmxzBHE278PpF381bnlVMN8qlI2Kol/JUGsQJ9HZ0JxaaVX5DJrGbZgfxSjoV8i2mAYAMHy7i+W4ZWzQbe6QR+n+mXoupc4JdNmwnc/oeCq6QlPKQHexym8f1wbHwJdD8PGsBj+hzw89ZNY4ofCx3RVM1VXnYiluZZuzTPBB3oPtfbe2vfgzQFBmnWuarLrVIqPU4ckzxAWDxjuBmnkMnzGqfHEwxEpqqFVS9zVcO96WGYm2gopZFnnxuLR14uTJRud2T3hNKsPuLAJLo2NiOksD0JovLolylLYZEbuSI1xN83OSqDjvaTQ2fqr/BlXMgg2KqXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=X/UVsAEzqT0ku5h5CwPHolF5E8MZRXTtSHMmhsE6LdQ=; b=NjMocvV6zSV3SYIsH6V365a1p9V3DIg0gVFEuCqtwrtH9JQSsBv2BEtBDZ8LIHIhUnVrjoUuQip9iMLFn+HhVQYf3QVWOU2/PUctf813idBlARaZ1H3Wet7Q2U3TNvb+2a8L6V7PjsxnoTHQC6JdNAH2JV6NWsKzp0UO4sLxtpQBG38Iq1J8M4pLxAUniQx1WvQx+i91a8Irzw2GQfanFaAOaFRpkXseh8K0xqfLwxV8f+034Olm48SN3PmAiyq8jA1JUtGugCw2CrrQ4SB7ytxeUq5/u+zJCROELfTDsOBWXJYVFUj9QleJqr2DoX3gdQYpLLNdEfrfhAGf+HJAoQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=virtuozzo.com; dmarc=pass action=none header.from=virtuozzo.com; dkim=pass header.d=virtuozzo.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=virtuozzo.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=X/UVsAEzqT0ku5h5CwPHolF5E8MZRXTtSHMmhsE6LdQ=; b=Kd3o9TX/ehnpLISqRYZ1CsP3USFznA1ThA0WRs73kCSTedVu9+0Ob5MzFzz5XdnPlzOyINNRk5AAysBYCxV9BvHOJcDQFEsxfljbwUHShLPo+fc9R6P2+3I1qsT3ZWuK5loc4xvMmvMX13X2IGPZDXLIOmkJsAK2hKjDygFDWIcYlbGEAfQmO2nnQH2zweIN3I4D7CTFm3VtNPLT/8u/oLNw590JkLpsviHIf/ttunm1NdIBTiFegQB3NOloxz3wvYUMyCvIvHysRagn4u6iyrmAycT6vZYEJfU8l3y4hex1Ft29TI49V2Q+u6q37qzC/nzdLylLemplMrmKQU//eg== Authentication-Results: mx.microsoft.com 1; dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=virtuozzo.com; Received: from PA4PR08MB6061.eurprd08.prod.outlook.com (2603:10a6:102:e9::13) by AS2PR08MB8478.eurprd08.prod.outlook.com (2603:10a6:20b:55c::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.639.10; Fri, 20 Nov 2026 02:22:45 +0000 Received: from PA4PR08MB6061.eurprd08.prod.outlook.com ([fe80::c3bf:e107:b1d2:6a00]) by PA4PR08MB6061.eurprd08.prod.outlook.com ([fe80::c3bf:e107:b1d2:6a00%4]) with mapi id 15.21.0639.011; Fri, 20 Nov 2026 02:22:45 +0000 Message-ID: Date: Fri, 20 Nov 2026 03:22:44 +0100 User-Agent: Mozilla Thunderbird To: "Denis V. Lunev" , "Denis V. Lunev" , alexander.ivanov@virtuozzo.com, vasileios.almpanis@virtuozzo.com References: <20261119114914.767536-1-den@openvz.org> Content-Language: en-US From: Andrey Zhadchenko In-Reply-To: X-ClientProxiedBy: FR3P281CA0042.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:4a::13) To PA4PR08MB6061.eurprd08.prod.outlook.com (2603:10a6:102:e9::13) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PA4PR08MB6061:EE_|AS2PR08MB8478:EE_ X-MS-Office365-Filtering-Correlation-Id: 51517f25-3e26-4ef5-ae1a-08df46ad299d X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|23010399003|376014|366016|1800799024|18002099003|22082099003|56012099006|4143699003|5023799004|261026121527099003|261026140227099003|261022115727099003|261022105027099003|261022075727099003|261028144727099003|261102123227099003|261021121427099003|261021123027099003|261009221227099003|261009223027099003|10067099003; X-Microsoft-Antispam-Message-Info: Yn5vaChkfGtbkuBfUxVM9NjdlL6iRj/3+qxr+hAZhY4ogqmybCDJJGDQdwCAJ/OUFG8+TGDVQVvNxiF6lfIuLlPTPEl1oVWFP8CX7wl1bDpHFcKpQS4hQovDSpYwh1kGtWZJxAi7A/4XE7STFmxv3i4BaxW/V0fc8tJMKuEL/3EiAmqi3VDzDz3pFXpHudiKR+Js+XwVdjbWpfgeO3dbGjTnEZHT2lCpUcD9zlWLvrvVJ53mvgA4oxt4SoOZdWsn2T1/oL72cCtHMmujzIufPMlQxgoL+KuXbkBHDv873CEWu+djP2fwGDUHJ9PSDKhPrmZxD1y9KypWqH996Ydy31y2891NcqWKOxNsu4z9r4rWrcchKIhCdYH6kP9zArtd0Htnkesnqnm9j0rrS8aV+qdjVchO5D4DrkqN8e3op6x8hGJ6qKEmw5fUQq40pBf6S4mzB1zvzvbKSirZy/yvMkNxzIkR7mLNl0Rz9iJO3evJp/bIhTpLMM0i0bRTkHO99OLf5x8FO6RWJ5r5tMNA7LYLDgf23d/mlnJ/+nW7rDEaOwolWiDBoYc26+1dDkMXdk+cNgaYcxompXuncA5OPLJEnet1Rg/qvduhPzdSVovGWLh3oAZxjlVbkqpxZyf9 X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PA4PR08MB6061.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(23010399003)(376014)(366016)(1800799024)(18002099003)(22082099003)(56012099006)(4143699003)(5023799004)(261026121527099003)(261026140227099003)(261022115727099003)(261022105027099003)(261022075727099003)(261028144727099003)(261102123227099003)(261021121427099003)(261021123027099003)(261009221227099003)(261009223027099003)(10067099003); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?bGFLcDN4UWtHM1YrYjNBeVRMaW1aVzgwdDZLbWZTYWltUlBoWTN1dDlUOXVy?= =?utf-8?B?RlRMT0VybGRIeURhQUZDT05rbWF1TFJSYXhJTWE1d2FvNlJLZS9ZdWdJb1V2?= =?utf-8?B?VmttakFlNjZrY1d0d2FmL1A0Q2pFOWx4RHRsOVF0a1BjU0dRZGp2Q0NNaTVj?= =?utf-8?B?Nzk4UkdYeVZ6TERkVmpjMmJycFBiMmRCb3Blb1RSS3hZcmtxSEF6aXRFcUVU?= =?utf-8?B?V0g4bUdzQVRJT25jdy9ydkcwSE83T2ViRE43OXlRRUpoQkxDa2JlYWxtN2dS?= =?utf-8?B?a0RPSjNBUlQ5b1pxbjExOGhDMURLZXpRaW5Uai9XblNqditIeW04RGZZZ09N?= =?utf-8?B?UlR6R0NLUzdGVzdscnRvTmxIQXR3R3NjdFNHbWowRkVpYTV1VFlTektjTkFs?= =?utf-8?B?bEZrakhBVGE0NGVYTlJ2S3hqcTFZT0s5QWpCb2t6eTVoaGhxcnF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JaU5ldlBPOHU4U0tSeElJRnEwdWdISXcvL2h5WXB2a2Q0aW04?= =?utf-8?B?c2tyeW9NUEVBK2lsWW1GQlNkVlgzQ2QvV2pDMWRDK1ZhK2N3czcrUDJaK0du?= =?utf-8?Q?N1IknSJZbN00qWnE=3D?= X-OriginatorOrg: virtuozzo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 51517f25-3e26-4ef5-ae1a-08df46ad299d X-MS-Exchange-CrossTenant-AuthSource: PA4PR08MB6061.eurprd08.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Nov 2026 02:22:45.2594 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 0bc7f26d-0264-416e-a6fc-8352af79c58f X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: zSEpyi6h9pavsNq2vB73PLtrb36hi1BxuY0Lkyygs2KjtQVpjenF5XlNIuF2K8FzW9UtxhGZEohNgWW5UUtLYrqMtG4f0KyZuGl7UHguCeg= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS2PR08MB8478 X-OZ-Fwd: true Cc: devel@openvz.org Subject: Re: [Devel] [PATCH hci-8.2 0/2] dm-qcow2: fix image I/O completions using a freed target 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-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: devel-bounces@openvz.org Errors-To: devel-bounces@openvz.org On 11/19/26 15:50, Denis V. Lunev wrote: > On 11/19/26 14:12, Andrey Zhadchenko wrote: >> Nack, at least with the current commit messages. >> I have not read the patches itself in detail, but the series fails to >> address a simple question 'why add a new counter if inflight_ref >> exists'. The correct way is to count such qios in inflight ref and the >> patches does not explain why is it not possible. >> >> Best regards, >> Andrey >> >> On 11/19/26 12:49, Denis V. Lunev wrote: >>> Suspend waits only for the inflight references, so a completion in the >>> backing file system's context can still free a helper qio into the >>> target's pool, or queue work on its workqueue, after a remove has >>> destroyed them. Make the destructor wait for image I/O completions, >>> as the dm-ploop fix for VSTOR-155932 does, and queue the worker before >>> the published qio can be ended. >>> >>> https://virtuozzo.atlassian.net/browse/VSTOR-156036 >>> >>> Applies on top of the series "dm-qcow2: fix the ENOSPC timer left armed >>> on a removed target". >>> >>> Tested in an HCI 8.2 VM with a completion held after its request ended: >>> remove oopses in mempool_free() on stock and waits the hold out with >>> the series, and the ploop test suite passes in qcow2 and ploop formats. >>> >>> Denis V. Lunev (2): >>> dm-qcow2: fix image I/O completions running on a freed target >>> dm-qcow2: queue the worker before dropping deferred_lock in >>> completions >>> >>> drivers/md/dm-qcow2-map.c | 7 +++---- >>> drivers/md/dm-qcow2-target.c | 25 +++++++++++++++++++++++++ >>> drivers/md/dm-qcow2.h | 2 ++ >>> 3 files changed, 30 insertions(+), 4 deletions(-) >>> > > It is possible, and the messages should have said why I did not do it. > Let us agree on the design before I respin. > > Today only the request qios (qcow2_submit_embedded_qio()) and the md > page qios hold an inflight reference. The qios the bug is about hold > none: split children, the COW and sliced reads and writes, the > compressed read, the backward merge aux qio and the merge service > qios. Counting them in inflight_ref means a reference taken at each of > those allocation sites from the owner's index, one for the service > qios, and freeing the qio before the put in do_qio_endio(). That > works, and suspend would then also wait for the completion tails. > > I put the reference at the one place every image I/O goes through > instead: taken in qcow2_call_rw_iter() and dropped in > qcow2_aio_do_completion() after ->complete() returns. It covers every > qio type, including ones added later, without touching the allocation > sites. The bug exists because helper qios were left out of the > counting, and an inflight_ref per site invites the next one to be left > out too. The completion tails it waits for only free memory into the > target's pools, so it is enough for the destructor to wait for them; > suspend does not need to. The dm-ploop fix for the same class > (VSTOR-155932, in review) uses the same choke point. > > Which way do you prefer? The second patch, queueing the worker before > dropping deferred_lock, is needed either way. I don't like the new counter because it is a bandaid fix that will not age well. It tries to solve a problem 'there is no rugpull after endio_cb' but the problem is much bigger in general: we need to ensure there are no places where we access potentially freed data. As dm-qcow2 does most of it's work from a single work item, we stumble upon this problem from other various places: submission from user context, timers, io completions. We are also planning to add more work types to dm-qcow2 so this problem will surely be bigger than just 'count everything that has a completion'. endio_cb is actually the easiest: looks like we can completely drop qio argument from endio_cb (the only user is qrq and it can get around) and just call mempool_free() before calling endio_cb. This way we also don't need to count everything in inflight_ref. The next part of the problem is queueing something onto potentially non-existing queue which your patch #2 fixes. Looks like the same gap exists in qcow2_submit_embedded_qio() so please fix it too. Besides looks like we have another problems from the same class: slow_wb_timer callback uses queue_work without any guarantees (and also we never disarm it). service_qio_endio() calls wake_up(&tgt->service_wq) after the atomic_dec() the waiter checks, so tgt can be freed under it. Also in your suggested patches you do destroy_wokrqueue() before percpu_ref_kill() which doesn't sounds right: you counted IO will happily reuse destroyed workqueue. Looks like we won't proceed with new counter, but please double-check destruction sequence anyway so we don't lose anything else, e.g. carefully stop timers, merge, event_work, etc, then final flush + percpu_ref_kill and only then freeing (maybe the same problems after successfull merge?) Best regards, Andrey > > Den > _______________________________________________ Devel mailing list Devel@openvz.org https://lists.openvz.org/mailman/listinfo/devel