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 2D10180027 for ; Wed, 25 Nov 2026 11:31:32 +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 6APBUG1p013714; Wed, 25 Nov 2026 14:30:17 +0300 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.openvz.org 6APBUG1p013714 Authentication-Results: mail.openvz.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=virtuozzo.com header.i=@virtuozzo.com header.b="AD5LLlWl" Received: from mail-ed1-f71.google.com (mail-ed1-f71.google.com [209.85.208.71]) by mail.openvz.org (8.14.4/8.14.4) with ESMTP id 6APBTwaM013645 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=FAIL) for ; Wed, 25 Nov 2026 14:29:59 +0300 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.openvz.org 6APBTwaM013645 Received: by mail-ed1-f71.google.com with SMTP id 4fb4d7f45d1cf-6a5d57a8d51so293176a12.1 for ; Wed, 25 Nov 2026 03:29:58 -0800 (PST) X-Forwarded-Encrypted: i=2; AL+hErGJVhJaiCiCxZKCMnzYA3Cmodh2CvjK109RkR8JsnjUYwUcRB4aOOb0zV6j7FQXNdtLbE9pDw==@openvz.org X-Gm-Message-State: APuU4Z+p3/8ezxWrr7rdvSyrVg+SMGHZLwsUlTbzjcIAsnYTtxXT3D4X HD8IopVowK65aduJgldmoR8hGoyQixzcYpQnJygIXwAeGlaVSu/5HW9/0R/U9YT4pckD3eKOCbV g4ziPSceBBJYvD1hHaxch0l+5wndpUfIyTs3c6XGhaUc0YJh0mmWtRA== X-Gm-Gg: AZFdTZeNSPkU1ie63NoMyH0BIGwZwBuGvjRPBuRaHY9j2cW/PRz0j+jMhRjQgYkI0zO IIia0FOPFd7Ax3EFL7IHsX3ArvomzVTW2EcPY+pWYceXlZfA0s+DbBZWNT/AbgytXDu9w2bhLj9 xyggnGxRlc3bRZmRZ6Esq4Vu83JFZqMZOUZvZ67AIyrZwW59qfNJIQClUsF/zBC9EDpF6BsolEp qHTUN/7DzwZaMbYgEfFqZt6bLWFHPXDQYnGJug5xGMSf1JFTD/bkqvk4zhr5D/iul9R1j679Ebm AF5k9YcsFS1fqSJDEB06MJSs7Ntv5uJwrF//MrPPJgMsaH9xG33m7wSZjYUUpJWbjT3VkfB3ZGw Flxx37xYAZZOjvf8UugQCwbJ0n5lUw6U= X-Received: by 2002:a05:6402:1d4f:b0:6b8:80e3:d58a with SMTP id 4fb4d7f45d1cf-6ba37d47763mr13013460a12.23.1795606198541; Wed, 25 Nov 2026 03:29:58 -0800 (PST) X-Received: by 2002:a05:6402:1d4f:b0:6b8:80e3:d58a with SMTP id 4fb4d7f45d1cf-6ba37d47763mr13013432a12.23.1795606197990; Wed, 25 Nov 2026 03:29:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1795606197; cv=none; d=google.com; s=arc-20260327; b=Q4YJjA2lsC70EZh4WBoLJeExiMeAxJ13SeU2dBFQEP9VMxBjzkE1wairEHNHvPu9Hs LS2pNHYdtDmOpa169QrfAbMpTukW5vEmCOY4jnHw0/Io+Y2znQRM4TXlEB2TIgNuKPx/ eEW0VK8InglAgl6wHy1vtGTfpOxJADCbZCCq2OPHtB4ZCiI1EVeh5RadZVLttEtUhDUG nnXWpQ+m5fII7zHE262xAwGQtfXYTD/jD1jgqIEG+QTW6YPMKpqX+AYnSuOuxsHe25Qi kYEYOs6KzytOsR5ij7zq3hvfop1M/MR9CLvHGRxV8UMjl9sEiYptcycugkr4p4Sc7ycV TwKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:dkim-signature; bh=3mc9vLO+1R0f/816StYWWvz4XzEH51h7ZZRmsCjtRb8=; fh=CU2Syl5kzvz16e8OWZ5AMYH4FAJgNgT+GQn9DymK8lI=; b=a75hXUGhHrkmZLLvYQSaAuPtvMZXguUF+v9yE8ct+r2C+us8DN5dX6OmS7vlxJpmLP ZMMJh342EFVezBNfEsGTG895Hy1KthHUnZ5pIRFma6Ygwdr4b6Y4y7ivcSfc/9wq+J94 3rkwwA6cgudpC1fG1QaaSxJkYR36m6DO8M62n7kVD2PURIO6bCYVjXHrc9oTOMHVy8VT RoBV+0fAeSerTaCMaUMieUrS5q2trdU784/WDnzUYXtk6orc2hCoea0jB1YoaQxCDBUC pKTTRdT36jGcO+QDkGKSpMbUN+ZRLf44Ae52iDOm7J1kg6MQ5zpPc7k4v342iVKOUee2 WLVQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=relay header.b=AD5LLlWl; spf=pass (google.com: domain of vasileios.almpanis@virtuozzo.com designates 130.117.225.111 as permitted sender) smtp.mailfrom=vasileios.almpanis@virtuozzo.com; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=virtuozzo.com Received: from relay.virtuozzo.com (relay.virtuozzo.com. [130.117.225.111]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-6ba37157ee0si16486898a12.78.2026.11.25.03.29.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Nov 2026 03:29:57 -0800 (PST) Received-SPF: pass (google.com: domain of vasileios.almpanis@virtuozzo.com designates 130.117.225.111 as permitted sender) client-ip=130.117.225.111; Authentication-Results: mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=relay header.b=AD5LLlWl; spf=pass (google.com: domain of vasileios.almpanis@virtuozzo.com designates 130.117.225.111 as permitted sender) smtp.mailfrom=vasileios.almpanis@virtuozzo.com; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=virtuozzo.com DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=virtuozzo.com; s=relay; h=Content-Type:MIME-Version:Message-Id:Date:Subject :From; bh=3mc9vLO+1R0f/816StYWWvz4XzEH51h7ZZRmsCjtRb8=; b=AD5LLlWlPim6ZSXLMOo 6/wEWO7AQvA1xlCfMJzs+yR+4YkZzhDbvTjJcZrgt4nh4w0XMJNYj0kP+O3NrFbzW0jiXIiI9pPRP cfyLPFNCwIF5uxOwDXC3TTRhSohyd53EdMDcms89iDOQlggv1fM1e7bw4eHMXAS7Jm20Q1/Alakiz IBkKEM3pHMqKtDB1+Yq0QU31QXEW1zIR6DzEVDoGClwvoKLtjihiHm1peZCIn5sYwiOfMgAwgeLUY Et70gRQ2QM8OOCtQNQPPtwRnUHl/N2OSNHH0MfkkZNkkE8hhD2SYguhO4FPxGj151aXoG6tPOPV0z jAJkZLU/hW1udCQ==; Received: from [130.117.225.5] (helo=dev010.ch-qa.vzint.dev) by relay.virtuozzo.com with esmtp (Exim 4.96) (envelope-from ) id 1xWBC6-008Mwz-0z; Wed, 25 Nov 2026 12:29:56 +0100 From: Vasileios Almpanis Date: Wed, 25 Nov 2026 11:29:50 +0000 Message-Id: <20261125-push-backup-fixes-v1-0-8d5cc55c30a1@virtuozzo.com> MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAK7GBmsC/yWMzQrCMBAGX6Xs2RUTf1BfpXhItl/NKtSQNSKUv rtRj8MwM5OhKIzO3UwFLzV9TA3cqiNJYbqCdWhMfuMPzvk952qJY5B7zTzqG8ZhN8hWMJ4kglq XC36iZT0lUT6uPV3+wmq8QZ7fIy3LBzenKnN+AAAA X-Change-ID: 20261125-push-backup-fixes-a4dc3cef9cbe To: Konstantin Khorenko X-Mailer: b4 0.16.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1795606197; l=2458; i=vasileios.almpanis@virtuozzo.com; s=20260812; h=from:subject:message-id; bh=mIEJ33yx/6tEshFWz1+u/ZcQAjIEcvacXtkAu9fzUAY=; b=1HiivRhhVfLAJt23XOlLQmznAcv5qMZ/71R4oOQBooikMUdD4i2j1NGFXrRjthzLNuSbQymN3 sFqqJGMC3yyC8oHtYDlToMp4zT6YnxfZLCNbZP+vAHVA5DvBlriUeSk X-Developer-Key: i=vasileios.almpanis@virtuozzo.com; a=ed25519; pk=HhuHDXAcPva9A8zccWEMRsb36reu+y4IVbBjXKxNUjw= X-OZ-Fwd: true Cc: Den Lunev , devel@openvz.org Subject: [Devel] [PATCH hci-8.2 0/3] dm/push_backup: fix two old bugs and remove the unused messages 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 This series fixes the two older bugs that sashiko found in the push_backup driver during the review of VSTOR-153891, and removes the push_backup_read and push_backup_write messages that the current ploop-backup no longer sends. The first patch rejects a cluster size of 0 in the constructor. Before it, such a table line divided by zero and oopsed the kernel. Only root can load a table, but a malformed table line must not crash the node. The second patch fixes a leak of the backup bitmaps. When a session expires, the target keeps its bitmaps so that the status can report it as expired. A new push_backup_start then allocated new bitmaps and overwrote the pointers to the old ones. With fail_on_process_exit this is easy to hit, because the session expires as soon as the backup process exits. setup_pb() now swaps the new bitmaps in and frees the old ones. The third patch removes the push_backup_read and push_backup_write messages. The current ploop-backup uses the event fd since commit d723a1617e61 ("dm/push_backup: add event file descriptor interface"), and push_backup_read is the message that sleeps with md->io_barrier SRCU read locked. push_backup_write() itself stays, because the fd write path uses it. I tested the series on 8.2 with a debug kernel with KASAN, lockdep and kmemleak enabled. The tests covered a table with a cluster size of 0, the removed messages, a backup through the event fd, the fail_on_process_exit tests from VSTOR-153891 and repeated restarts of an expired session. KASAN, lockdep and kmemleak reported nothing, and the bitmaps no longer leak. https://virtuozzo.atlassian.net/browse/VSTOR-155791 https://virtuozzo.atlassian.net/browse/VSTOR-155790 https://virtuozzo.atlassian.net/browse/VSTOR-155816 Signed-off-by: Vasileios Almpanis --- Vasileios Almpanis (3): dm/push_backup: reject a cluster size of 0 dm/push_backup: free the bitmaps of an expired session on restart dm/push_backup: remove the push_backup_read and push_backup_write messages drivers/md/dm-push-backup.c | 37 +++++++++---------------------------- include/uapi/linux/dm-push-backup.h | 5 ++--- 2 files changed, 11 insertions(+), 31 deletions(-) --- base-commit: aef96420256e57bf1291859a844800a462f2790e change-id: 20261125-push-backup-fixes-a4dc3cef9cbe -- Best regards, Vasileios Almpanis Software Developer, Virtuozzo. _______________________________________________ Devel mailing list Devel@openvz.org https://lists.openvz.org/mailman/listinfo/devel