Message ID | 202012171559.0BHFx5Ax4030524@finist-co8.sw.ru |
---|---|
State | New |
Series | "dm-ploop: Actually zero tail of tail page" |
Headers | show
Delivered-To: criupatchwork@gmail.com Received: from imap.gmail.com [108.177.119.109] by patchwork.criu.org with IMAP (fetchmail-6.4.8) for <root@localhost> (single-drop); Thu, 17 Dec 2020 16:59:58 +0100 (CET) Received: by 2002:aa6:c11a:0:b029:a4:55c9:6120 with SMTP id c26csp1326564lkp; Thu, 17 Dec 2020 07:59:55 -0800 (PST) X-Google-Smtp-Source: ABdhPJz5q6xY/FxjPPxzNbA0AxAcfXpd2nvstxfkzNp+xTxsvEPF1ykHEI1vB0VPuHkLBbPEDD/m X-Received: by 2002:a2e:b4f1:: with SMTP id s17mr2931ljm.228.1608220795149; Thu, 17 Dec 2020 07:59:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608220795; cv=none; d=google.com; s=arc-20160816; b=lWX9ZJQ2u6DdKE1IpP8cFDn0oLgFhWngNmMTeuB/zMXnMiZW3o9DuqnXhE20rRWSYM fl//39CPefRaT0UI32CML/mV4V9AiZU1ciZbd/LKhhwlWrbFFDD73KmNLFe6degksNAT N1y5XM9BHCPdVwmGe1urxCy8ZXVfYbeT7ABYsJMlCtk8DSymgEKWoke3Nsbwmz9SM1NP h4xBFrmXYsS06GANT1iuT/4TF56T2YHWO6+RbHFSgMsyt38hJeunTxBsuwsJa6IBLS5G Ss8xrz36jS0/hcS3wb17/mKHhTrfy4JNKxQjBlZdjCftddc3tMOjKA3kVo92YJJzxeGH Ewng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :cc:mime-version:in-reply-to:to:from:message-id:date; bh=GqaxYV7tYUxjirPsqEHDF5JEeb8qitfnPZCb8BppT9M=; b=Pvs5ShJeFh4hxj8jvQ+niQVxPbFFndq5ow34U3NiRV6bNep39CcsDR8Whla2EpG6mb TuzAx4jsC5/nkOgRBvUIi+fRWmY3or/KshdDP7+G/qW6vEOd8CTMyYtFzvp0LiYY/ITz T8ENBXLQ7hiaKnAyiqjV8XWtTukKiRSmKZEjwh5LF8FsNzKiXpYLT4DBulKZxMpPISJd LvXQta19HbKKlarIW9Uo0n7OzNPhuz7SMtnMOBfiMysDO/IM0UVlyO+mOWRJ1kLGomdo 6rdKgyb+3oRSmMNpmuInMwcciYr+SHZXNZ7B97sSXywiwZS/OD8A7aioXez2XcVZeiYn tb6A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of devel-bounces@openvz.org designates 185.231.241.50 as permitted sender) smtp.mailfrom=devel-bounces@openvz.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=virtuozzo.com Return-Path: <devel-bounces@openvz.org> Received: from mail.openvz.org (mail.openvz.org. [185.231.241.50]) by mx.google.com with ESMTPS id r27si12353277ljm.298.2020.12.17.07.59.54 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 17 Dec 2020 07:59:55 -0800 (PST) Received-SPF: pass (google.com: domain of devel-bounces@openvz.org designates 185.231.241.50 as permitted sender) client-ip=185.231.241.50; Authentication-Results: mx.google.com; spf=pass (google.com: domain of devel-bounces@openvz.org designates 185.231.241.50 as permitted sender) smtp.mailfrom=devel-bounces@openvz.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=virtuozzo.com Received: from localhost.localdomain (localhost [127.0.0.1]) by mail.openvz.org (8.14.4/8.14.4) with ESMTP id 0BHFxTOV010270; Thu, 17 Dec 2020 18:59:31 +0300 Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-db3eur04lp2052.outbound.protection.outlook.com [104.47.12.52]) by mail.openvz.org (8.14.4/8.14.4) with ESMTP id 0BHFxR7n010267 for <devel@openvz.org>; Thu, 17 Dec 2020 18:59:27 +0300 Received: from AM6P194CA0100.EURP194.PROD.OUTLOOK.COM (2603:10a6:209:8f::41) by DB6PR0801MB2038.eurprd08.prod.outlook.com (2603:10a6:4:76::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3654.20; Thu, 17 Dec 2020 15:59:30 +0000 Received: from VE1EUR01FT009.eop-EUR01.prod.protection.outlook.com (2603:10a6:209:8f:cafe::7) by AM6P194CA0100.outlook.office365.com (2603:10a6:209:8f::41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3654.12 via Frontend Transport; Thu, 17 Dec 2020 15:59:30 +0000 Authentication-Results: spf=pass (sender IP is 185.231.240.75) smtp.mailfrom=virtuozzo.com; openvz.org; dkim=none (message not signed) header.d=none; openvz.org; dmarc=pass action=none header.from=virtuozzo.com; Received-SPF: Pass (protection.outlook.com: domain of virtuozzo.com designates 185.231.240.75 as permitted sender) receiver=protection.outlook.com; client-ip=185.231.240.75; helo=relay3.sw.ru; Received: from relay3.sw.ru (185.231.240.75) by VE1EUR01FT009.mail.protection.outlook.com (10.152.2.141) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3676.25 via Frontend Transport; Thu, 17 Dec 2020 15:59:30 +0000 Received: from [10.94.5.150] (helo=finist-co8.sw.ru) by relay3.sw.ru with esmtp (Exim 4.94) (envelope-from <khorenko@virtuozzo.com>) id 1kpvgG-00DOg2-G2; Thu, 17 Dec 2020 18:59:04 +0300 Received: from finist-co8.sw.ru (localhost [127.0.0.1]) by finist-co8.sw.ru (8.15.2/8.15.2) with ESMTPS id 0BHFx5554030525 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Thu, 17 Dec 2020 18:59:05 +0300 Received: (from khorenko@localhost) by finist-co8.sw.ru (8.15.2/8.15.2/Submit) id 0BHFx5Ax4030524; Thu, 17 Dec 2020 18:59:05 +0300 Date: Thu, 17 Dec 2020 18:59:05 +0300 Message-Id: <202012171559.0BHFx5Ax4030524@finist-co8.sw.ru> X-Authentication-Warning: finist-co8.sw.ru: khorenko set sender to khorenko@virtuozzo.com using -f From: Konstantin Khorenko <khorenko@virtuozzo.com> To: Kirill Tkhai <ktkhai@virtuozzo.com> In-Reply-to: <160813513981.386976.7002484786670875464.stgit@localhost.localdomain> X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: 371c0a87-069b-406c-0a04-08d8a2a4bce4 X-MS-TrafficTypeDiagnostic: DB6PR0801MB2038: X-Forefront-Antispam-Report: CIP:185.231.240.75; CTRY:RU; LANG:en; SCL:-1; SRV:; IPV:CAL; SFV:SKN; H:relay3.sw.ru; PTR:relay.sw.ru; CAT:NONE; SFS:; DIR:INB; X-MS-Oob-TLC-OOBClassifiers: OLM:152; X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?RVHRpKQJjNoOSPL39uy01eBauGL7ehSENfDMZAanmMSuqShYZ6IgKcabn3pY?= =?us-ascii?Q?4ZYhvCD4oSbQXxp8NGj7y0fG7NRhzgkxH/7b0tPvrOS+16ldaLOIWohx/hE9?= =?us-ascii?Q?pOHnRRmUkDpMRAgx6EUwbzrh2GbmQ0MpPZdJccS7fW8gJtXEpJNA96leMSfy?= =?us-ascii?Q?FzhquJTRX+Fr+vfqhmGXy1ezfCUzWqjU8PyomwrFd5q8xUt8nl7ODYDKE0te?= =?us-ascii?Q?liX21D/4XN7jWUIdqxDXaWrVUramGbjttABKEkT3v9kcKKtR503IIcjI3sSr?= =?us-ascii?Q?WwD13NWrwyJt+CACgfarDjP4ecO9dD6+XAvStErpLDSdjBOh4OW3qKaqOJeH?= =?us-ascii?Q?crgKj+XH/h6Q/Crob2naM8Q4XNJNy1VIjqhbb87Qg6pflqqcQNf0RznlUhBb?= =?us-ascii?Q?C6hlZ4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OWQmn?= =?us-ascii?Q?/h9XliC5/wbr5TYL4OI0PE8AaRFPOX1bCghj/WkzBh2ofkt1I2XZ7nu+bpr/?= =?us-ascii?Q?iExNXldu/ykOgnXuvIW4sGO4B1OqK2t2tcxP59JhhhZCeKsP9qFiz1Vbuq2s?= =?us-ascii?Q?ZHuy7y6+KX5+iaksR5dS+7t2Jn5Lwa4x+nuI8zpvQMfkTuNdN81E5Cyf4iGz?= =?us-ascii?Q?IRN+6gJGznhFR6Jgq3ugbbkw1N/zPSTZu4gvM1yJEtZioA7eeV1dxRjG9Q?= =?us-ascii?Q?=3D=3D?= X-OriginatorOrg: virtuozzo.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Dec 2020 15:59:30.0242 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 371c0a87-069b-406c-0a04-08d8a2a4bce4 X-MS-Exchange-CrossTenant-Id: 0bc7f26d-0264-416e-a6fc-8352af79c58f X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=0bc7f26d-0264-416e-a6fc-8352af79c58f; Ip=[185.231.240.75]; Helo=[relay3.sw.ru] X-MS-Exchange-CrossTenant-AuthSource: VE1EUR01FT009.eop-EUR01.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0801MB2038 X-MS-Exchange-CrossPremises-OriginalClientIPAddress: 185.231.240.75 X-MS-Exchange-CrossPremises-TransportTrafficType: Email X-MS-Exchange-CrossPremises-AuthSource: VE1EUR01FT009.eop-EUR01.prod.protection.outlook.com X-MS-Exchange-CrossPremises-AuthAs: Anonymous X-MS-Exchange-CrossPremises-SCL: -1 X-MS-Exchange-CrossPremises-Processed-By-Journaling: Journal Agent X-OrganizationHeadersPreserved: DB6PR0801MB2038.eurprd08.prod.outlook.com Cc: OpenVZ devel <devel@openvz.org> Subject: [Devel] [PATCH RHEL8 COMMIT] dm-ploop: Actually zero tail of tail page X-BeenThere: devel@openvz.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: OpenVZ development <devel.openvz.org> List-Unsubscribe: <https://lists.openvz.org/mailman/options/devel>, <mailto:devel-request@openvz.org?subject=unsubscribe> List-Archive: <http://lists.openvz.org/pipermail/devel/> List-Post: <mailto:devel@openvz.org> List-Help: <mailto:devel-request@openvz.org?subject=help> List-Subscribe: <https://lists.openvz.org/mailman/listinfo/devel>, <mailto:devel-request@openvz.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: devel-bounces@openvz.org Errors-To: devel-bounces@openvz.org |
diff --git a/drivers/md/dm-ploop-bat.c b/drivers/md/dm-ploop-bat.c index da18dd2e4638..3fcdf248c490 100644 --- a/drivers/md/dm-ploop-bat.c +++ b/drivers/md/dm-ploop-bat.c @@ -169,7 +169,7 @@ static int ploop_read_bat(struct ploop *ploop, struct bio *bio) memcpy(to, from, nr_copy * sizeof(map_index_t)); kunmap(bio->bi_io_vec[page].bv_page); if (unlikely(nr_copy < BAT_ENTRIES_PER_PAGE)) { - memset(from + nr_copy, 0, sizeof(map_index_t) * + memset(to + nr_copy, 0, sizeof(map_index_t) * (BAT_ENTRIES_PER_PAGE - nr_copy)); }
The commit is pushed to "branch-rh8-4.18.0-240.1.1.vz8.5.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git after rh8-4.18.0-240.1.1.vz8.5.2 ------> commit f9ebd8db47ba16a3d5f023172ab10fb87463bcab Author: Kirill Tkhai <ktkhai@virtuozzo.com> Date: Thu Dec 17 18:59:04 2020 +0300 dm-ploop: Actually zero tail of tail page @from is temporary buffer. We have to zero tail of @to instead. https://jira.sw.ru/browse/PSBM-123784 Fixes: 0497d745e201 "ploop: Zero tail of tail page" Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com> --- drivers/md/dm-ploop-bat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)