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 7201A80031 for ; Wed, 25 Nov 2026 12:13:28 +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 6APCCFSc017495; Wed, 25 Nov 2026 15:12:16 +0300 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.openvz.org 6APCCFSc017495 Authentication-Results: mail.openvz.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=virtuozzo.com header.i=@virtuozzo.com header.b="rJq6oSqi" Received: from mail-ej1-f69.google.com (mail-ej1-f69.google.com [209.85.218.69]) by mail.openvz.org (8.14.4/8.14.4) with ESMTP id 6APCCBGL017475 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=FAIL) for ; Wed, 25 Nov 2026 15:12:11 +0300 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.openvz.org 6APCCBGL017475 Received: by mail-ej1-f69.google.com with SMTP id a640c23a62f3a-c514c051a65so526125466b.2 for ; Wed, 25 Nov 2026 04:12:11 -0800 (PST) X-Forwarded-Encrypted: i=2; AL+hErFqc9u81cf0jhimGTYx+D7f8uOwsE9z9WFgq5V2ys9I+bgcmyu0kzeBt1xkoX9apaUKNDx0Eg==@openvz.org X-Gm-Message-State: APuU4Z9EN7usZ9Bq9Lpm5e4vVNXgxlVYP5hNh86tePiSDr+Q3MbypCS2 YyY9BgwR+rYf4SmlL1/RC6MMfRIovRXLP08sxhBc2fdz7I2MFaSTWutTLPqWSW7fZL+9OZEvvR2 8lVTzsQgxkR5q9yFKr2nipveKJJfwNGg56q6/ZgO/kjG+dqFUIghTHA== X-Gm-Gg: AZFdTZdL8MD0MUBKZMFwQqPuL5Mzgbc4qV0O6Iecid3Z9byLHT1eDF+1OG4taLxxDkJ QaoraLrrPwRVK4m7TTf76PnUikaRtGF/wwVxodOsK758KVCbwK0L/AgabgmaQnB3T1JrJffxeLV y/qgNh8lYC/VXTENhyBc2QEQYu8C3oTjes+d6ydwTJCLr2iWjEemsGEWSX8bBZQ3CQUoc/9a8d/ O6mTVRlosg7nqrSNejvEcKb1InGrD/MilQAZ6ln62a2mffwz7ibRZ38I/GRKFns9WKQBcjjlGdp uAulo48LMol9Dtnc0vcjzA9zGxEOxSjKRDyPB8dXsa65vSpJdacoi58QiseXOW/dvfMcTT8LEof GC4j4ieM1GZI97tNUuEaSqYCnnDstrw== X-Received: by 2002:a17:906:da0e:b0:c46:a72:e0c3 with SMTP id a640c23a62f3a-c513a84dd04mr1197881866b.16.1795608730957; Wed, 25 Nov 2026 04:12:10 -0800 (PST) X-Received: by 2002:a17:906:da0e:b0:c46:a72:e0c3 with SMTP id a640c23a62f3a-c513a84dd04mr1197880566b.16.1795608730508; Wed, 25 Nov 2026 04:12:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1795608730; cv=none; d=google.com; s=arc-20260327; b=CnPXhIjYahJKpVGLSH9Lv1ayaurZNkj3YpcpbazoZwwGkgrCKphDVFGOi04TamLUUr 4BqkbTUHl+34BYlIH+Vky+2t4AHhyAEk8ip0D0uknYEUctx1xfnCZyJL6QMR9+WiGQNQ RIKlPF1HJpZLRFaEDZu3Y4zRwGaHM8rOf8yPPYSXanRSwRCYJii/3Kt/qtf0YSTNCxv9 /1/IuYYVdBTI09chQhaAS06VKjWO2HjG69eG6qfTl8vUkKPesY4PB5y1BL96kBUDRRWR lY5uz34gBRu+a/eQiFO4rUiFCqOrTKnujJmnflCcElciuzaTTrxlmm4Xe0K4WNEBdrB2 2qHg== 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=vgHoEPRN+BAOWpJ/fq7K5iNY5B0gifqwVVJk1rO7gNA=; fh=CU2Syl5kzvz16e8OWZ5AMYH4FAJgNgT+GQn9DymK8lI=; b=fhwlFW7QXJ49yjJ7PRoAQPJ+XFK7ki+DjLBG9sHjU4MPQhAZAX36WmU5Cu4pzUOYHc jK0gG97kNzSTrdhH+VG5nq27hxmXtlFS6BWVRQqZF2/PM/Oiec9d/Sn+JK0Ekh0cCeCj Wkt6H5GDzUA4GGAec/SAbHjk/Oqpo4moJViVv33zYQi1p6CKAT3jRpzwD5bDCuKlemcS yob43LW51WliypJOIYgv4tlHfCaG/RuEzKPjWkltDZm8o50ZK0Upy+Y7LbQnZpEpEFG2 mSTQPCDLGACv2qwKDC3nW9usdJ2UNlOuTw5PTmKpbqVJNJKjYuAfHM/OPvpyd7t+szQs 5RGQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=relay header.b=rJq6oSqi; 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 a640c23a62f3a-c513b06d689si1128438066b.224.2026.11.25.04.12.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Nov 2026 04:12:10 -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=rJq6oSqi; 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=vgHoEPRN+BAOWpJ/fq7K5iNY5B0gifqwVVJk1rO7gNA=; b=rJq6oSqiicakoqNn/SW 0V21zSr4M9g+AuTTxzkISE62hg7M29uiLHutyJ3tPDXwXm/CVIyVWKNgar9twgdmF4JbSp3MtC8Ht Ejk7hNIjyZ0Cj5OpFGBCtVCwOLqpJFYEQ5WRuaYn/QmN7NBbl+17TtBC2MlITuncoglG5D0o9jQSI O4SYukOntLHdbFJT5Um6seaaowR2irGtdhic0Ev6XTdOUHF1emCwHnq40Z//VQJzqEEzyi9rQ7pc1 tWOrVWPdWOKy6KwxLTh/C6W2jPdhUUL3ahCgM4YHni1hFHc3Y20L2R0yd/+IT5y6yOE3Wsk3UC94T q3o246zzo/0aLcg==; Received: from [130.117.225.5] (helo=dev010.ch-qa.vzint.dev) by relay.virtuozzo.com with esmtp (Exim 4.96) (envelope-from ) id 1xWBqw-008aLU-2Y; Wed, 25 Nov 2026 13:12:09 +0100 From: Vasileios Almpanis Date: Wed, 25 Nov 2026 12:12:04 +0000 Message-Id: <20261125-push-backup-fixes-v2-0-195a2bcd82f7@virtuozzo.com> MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAJTQBmsC/32NwQ6CMBBEf4Xs2SW0WIOe/A/DoSyLrUZKWkoUw r9b8O5xMvPmLRDYWw5wyRbwPNlgXZ+CPGRARvd3RtumDLKQJyGkwiEGg42mZxyws28OqI8tlcT dmRqGxA2e9yJhNzBkscol1L8ixObBNG6P29TYMDr/2e2T2IE/oklggVWriJSistDiOlk/RjfPL if3gnpd1y+N5n+10QAAAA== 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=1795608729; l=2230; i=vasileios.almpanis@virtuozzo.com; s=20260812; h=from:subject:message-id; bh=abqDLDF+PY38+PfIvVFNYqn42kUyxXCAFSEl1E2c1yM=; b=xRbjQxJ4XDhMIMeV/mAjFDhcoWzLM8Y837C1+WOVP2pOpmuZyDxwowt39o2IWdY0ziwJ3ca9G Eq1kW3Ay630AYrKFhh5WogzBTiUMJALUOkNnNtCYUfqmYkoQ6YcOQ4R 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 v2 0/2] dm/push_backup: fix two old bugs 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. 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, which were never freed. 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. 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, 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 Signed-off-by: Vasileios Almpanis --- Changes in v2: - Drop the patch that removed the push_backup_read and push_backup_write messages. The ploop test still sends them and an older ploop-backup has nothing that keeps it off this kernel, so it will come separately. - 2/2: say that the old bitmaps are never freed, drop the 32 GiB example and say that a failed start keeps only the bitmaps. - Link to v1: http://lore.virtuozzo.com/20261125-push-backup-fixes-v1-0-8d5cc55c30a1@virtuozzo.com --- Vasileios Almpanis (2): dm/push_backup: reject a cluster size of 0 dm/push_backup: free the bitmaps of an expired session on restart drivers/md/dm-push-backup.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 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