From patchwork Mon Dec 16 06:52:18 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Yuezhang.Mo@sony.com" X-Patchwork-Id: 13909283 Received: from mx07-001d1705.pphosted.com (mx07-001d1705.pphosted.com [185.132.183.11]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 284E41CDA0B for ; Mon, 16 Dec 2024 06:52:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=185.132.183.11 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734331959; cv=fail; b=QxmWm1fHTB3H4WUo7/Rqxw59I4lwN1nxDyxILpvbo5UZ11bi0t5tFzphJho34OcLCRvUSd2SpWHui/ORepgyXjOxlyi/II8YNvyyqXKtuubfofY2H3osNCcjmOf7GgLh9Nd2r5C7E2roVNUlT5z5dvcPcX9WP5L4aPFxbQiBUB8= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734331959; c=relaxed/simple; bh=L6TwbY2EXAjvN6hqYyUxikG19d4VrtyXvM0McWnTsjY=; h=From:To:CC:Subject:Date:Message-ID:Content-Type:MIME-Version; b=hMiyzCQ9mu3gV6XsPoQ0Jv6CN3TFPjbiWArwj3xMiK5slI1SYg/w3USUjRDIEZayFjkaJhC18XXJmsLa6h6sLpYMdTG4xL3e5d8XzqbZr/bvrWPVYNMhmzvukZiMd6YQy8nDGWjHHKkTeyLxtGNvbge4rlWnImrs6mDUiRvZdxQ= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sony.com; spf=pass smtp.mailfrom=sony.com; dkim=pass (2048-bit key) header.d=sony.com header.i=@sony.com header.b=UoJkB8xE; arc=fail smtp.client-ip=185.132.183.11 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sony.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sony.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sony.com header.i=@sony.com header.b="UoJkB8xE" Received: from pps.filterd (m0209324.ppops.net [127.0.0.1]) by mx08-001d1705.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 4BG5OdX4002111; Mon, 16 Dec 2024 06:52:26 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sony.com; h=cc :content-type:date:from:message-id:mime-version:subject:to; s= S1; bh=QWiKfUxwno8IRdOXt5Rhg/QaKQXu00gGWy3Wyte/CbU=; b=UoJkB8xEq HJhlyo8hK7rxHL4hyZ8QjssHcYVQcJcpoQkUswRopPae7xNEwTiMkqD3390+aIrp GbxPzM/3R7OCDe+WDivJCd68O448oxwxJcTlIEUC2QFrNqHZa0n9k6LHeVm/5yIH t/PCGtd2SL8+H3mB5lJbRL0TmZIsjsdgwbunfcr7JdicS3bu3GBcLSMvSs4i4QUB QmHjOymJP/+eL6xGZhQ8tWcHyKEBbNCB5AOa+QiNNY4zrwBUHQf7ahFjSo/61gSF Sek+NhFIiMRwYymPB1jVoXYs47bSSM2A6TflvKAYRv9JOKxPdhy84fH/Q+V6NqYX CBwn2I5QjIwAg== Received: from seypr02cu001.outbound.protection.outlook.com (mail-koreacentralazlp17013079.outbound.protection.outlook.com [40.93.138.79]) by mx08-001d1705.pphosted.com (PPS) with ESMTPS id 43gy631gkr-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 16 Dec 2024 06:52:25 +0000 (GMT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=O9z+fcBOG/tb4P9tmbIOJlACr9ilwcuumLapM4tepS1Gm+BfQL/tTd/3TJVT3FP3Vll9v8qPlOEQzMkSwWdbYowZBKQZmdFG7SDT2R6yLe7f+80meL4WvawFZVlLKGSArcb5Aj9iGUNRDWhIqK9coKJ/k510Ge6wFBFVM4r6yqwNoQ1zRa0N9IvZZEJSVfrOCtejz1ocmmF28/EoNCrbZnAHOFkje623P5qAicZ1mZul36aAMt1U1/Sa761OjML9vmkLxasQPnLr1x+pL6+9P3nWXNy7liIQ/6NOOD8v0rgfgrdX3Fspfc0TJjux0PDPxeES+Az796Vvvd+KJ69Ajw== 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=QWiKfUxwno8IRdOXt5Rhg/QaKQXu00gGWy3Wyte/CbU=; b=ShsNm4r/7Q1s0oy/2fBmPG7YXshJepwWjRShuwsllPFY04nbtIhlYPdnttTsNm2083Fqq1Beje1KyNeIHPjPq4b0gj+lbU+iQvG0UxV1BQdHgtJidGmQtcJUFknKsrMT3nVK4UCa55Ndcbyh1wiue2B1oNmt9oM0M2icKSM/IQC3Wmd1KkwK4TEuZ4whxFzGqGOppWb/yGF0Ce3ySE9XJBxJdP+yeTqZJ9nkCSPq3BtoTbWZmYkzrJ1LvAB0bALGDlrqLu7MQM4hr77ev/R2hBf5sC0GJsoPIMTtwWIiuKaaVfIelMTxq9DNzD79Ff0Q5mMCitdhOHQk2ucJVlZR0A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=sony.com; dmarc=pass action=none header.from=sony.com; dkim=pass header.d=sony.com; arc=none Received: from PUZPR04MB6316.apcprd04.prod.outlook.com (2603:1096:301:fc::7) by KL1PR04MB7014.apcprd04.prod.outlook.com (2603:1096:820:f2::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8251.21; Mon, 16 Dec 2024 06:52:18 +0000 Received: from PUZPR04MB6316.apcprd04.prod.outlook.com ([fe80::409e:64d3:cee0:7b06]) by PUZPR04MB6316.apcprd04.prod.outlook.com ([fe80::409e:64d3:cee0:7b06%4]) with mapi id 15.20.8251.015; Mon, 16 Dec 2024 06:52:18 +0000 From: "Yuezhang.Mo@sony.com" To: "linkinjeon@kernel.org" , "sj1557.seo@samsung.com" CC: "linux-fsdevel@vger.kernel.org" Subject: [PATCH v1] exfat: fix the new buffer was not zeroed before writing Thread-Topic: [PATCH v1] exfat: fix the new buffer was not zeroed before writing Thread-Index: AQHbT4bVRxvn3M6qdkW2vGpg4VXG9g== Date: Mon, 16 Dec 2024 06:52:18 +0000 Message-ID: Accept-Language: en-US, zh-CN Content-Language: en-US X-MS-Has-Attach: yes X-MS-TNEF-Correlator: msip_labels: x-ms-publictraffictype: Email x-ms-traffictypediagnostic: PUZPR04MB6316:EE_|KL1PR04MB7014:EE_ x-ms-office365-filtering-correlation-id: 87cd4fc5-145e-41f1-6217-08dd1d9e2ebf x-proofpoint-id: d8690225-876f-412f-87c6-a7cb45557a4c x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0;ARA:13230040|376014|1800799024|10070799003|366016|38070700018; x-microsoft-antispam-message-info: =?iso-8859-1?q?DMhAX+gN7hqWApNqo5nHCLEe7p?= =?iso-8859-1?q?hM/LL3kHRdHgYXA+O6E0qedxg2m+FA5tJOhCky8CoAaA9VTzjl7jlFZrPHZm?= =?iso-8859-1?q?lK+/pk8I4lDTLexX2K2pnpERG6uHoUcN3WWyfFi7dWg0dJYyj1QhIo5QI9jc?= =?iso-8859-1?q?i9ndMpe+vKIdh8DzhbCgAC2X/fMCA5G0eCrBSJK63DT++PXEnwPidSI0jP7G?= =?iso-8859-1?q?Z5odZNkqL7eHC4MTKG7r5oye/5qAzrUNH7H40pEQh2Ou8zzzrEsqCDdy38VQ?= =?iso-8859-1?q?NNrbaeqVsilu8nRAa7t9cJICwLXgKUfLSyZhk49jpiULyAHcVnURebOVTQC6?= =?iso-8859-1?q?vaEiOm4hppMwQFmXnnX98Gs7/ujYSZXjq3xhXltyKGTctur/Epu+M12edm5j?= =?iso-8859-1?q?NvEYmDlMI2zyAW5k0D/1EMLKC3TC60202/+h32c5I7I0HO//ToewP8wzMDfk?= =?iso-8859-1?q?+0m16NqxypEjOTI4jsJVSwt9tWjplouHA/HjoG7eIgE460Zw8GUAS9pRVTtN?= =?iso-8859-1?q?ol/6Ks6YIjQ/VGPKGJ+QCUsKyswSTB8oXIF0z+BceiOL3j698R2d1NNC8B/j?= =?iso-8859-1?q?y8Z7CqszIVm+3RyjoiqA9gjiKRZVUdQUKvcMG5Kuf+VNdvkUVYhezP4wRb6S?= =?iso-8859-1?q?Si4VzOApQekK7JhlnTpYfkY2k0QFZ9+dQrazyPXfpnSG7aYig3ZhcSE+hnFo?= =?iso-8859-1?q?362tHWdyguA4884AeBm3fkqPkIoUsq6kULcV8OKG2byf2KnPbN0V8g5bRnGF?= =?iso-8859-1?q?wxE24p6NFU4rbINSwcqoJ2/vLtHZTyB+Y9Zdf+cifWDac1JyOxry5p8azVwp?= =?iso-8859-1?q?gA0gdnIY+Psy7pBDG2Qusn+I8mMmd5KHC5x9YsZWfZ4kTAwKwYApyw2Nr7Ib?= =?iso-8859-1?q?QkvuGaAG08/EMcvUnLuDCkqP2uW6pqcdgAiapqhqPk2xV7IiAriVDA4ePd7P?= =?iso-8859-1?q?gFG1UDB6tZxngG/Gpc3qzmB8G4Ff4M/jI19wCuDCS463+VaQv3+SYoKPi7LN?= =?iso-8859-1?q?pYJ8cv6Qf4OQt+YsuULSdvTZhsTZ8DGS817nmsvLGP3MonToTjlnevpnlWqy?= =?iso-8859-1?q?W9VkSjlA6AnQ4mBtUaxQlxBifQShYtKMLMRYZvQ5cVvC+rnqbJkVrlwzar8I?= =?iso-8859-1?q?DUkwPGmu2sAdoXSt62LJXqdt38NQyDRwe70B8Evpb9s1w+/drSx1COk5rlum?= =?iso-8859-1?q?75J94bn8PzPJzDs4myI7WgifOdcTzGRP+2Y2g40YQnJ8dejyet755YSgbysa?= =?iso-8859-1?q?+gBhZNzPGAsKDcwJw/h3g/o6tS8lOQc0fa2ep08ieNEI5VA6QSljvjHCfmMl?= =?iso-8859-1?q?WyGD1nXExUjLvONPdA6XaTVZQNjTRk/q/VggeOuvwAfDKJS481HkgewFeD3M?= =?iso-8859-1?q?S6cDyxBEanAW6mtonaDMYCV9wklwuaRmQkQOwG1DV0Ew0Nbmgvy4o8BQUogW?= =?iso-8859-1?q?2k?= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PUZPR04MB6316.apcprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(376014)(1800799024)(10070799003)(366016)(38070700018);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?q?dB7HlA+LXAanjEsgONg7XPk?= =?iso-8859-1?q?e5VGVT5KPajEOxmYLeC4wHRSfxR+YyoWhVrJLCIsmfLLwPs9y5aoq+03HaWY?= =?iso-8859-1?q?XDhtCT+mKG37WkOQRIihlzY3D+UkV4+RiNh8K1P9IPMLBs4kwee0xIPzleIQ?= =?iso-8859-1?q?lfl4TOyjXNlVCFNAiEE5+YA2UBy5DwuUGa/Osh1dsOoHSYF6+66zZrDCDX+w?= =?iso-8859-1?q?O9mPU/olQXIb8zokb5xJ8t5vEMDAwZQJgnTji7OdMJ7y2Ofn7B7fQIWqaK/d?= =?iso-8859-1?q?qhsR/IZaO84Ck5xb5TVWpvXpTIohHuH/Uc6/gW1iHCprpU/uB+248rXpBLhG?= =?iso-8859-1?q?Ap5QE8CLO6sHhRX8S9yVZUBww7pZViJsZ0W2hQAEMIyjBgbV6E70sqIf3RPu?= =?iso-8859-1?q?wLks8g0ExPIyGyIeGHb2S70RWYwRQtNeX+6jmVIkaCl1rdZoPPGTllgM//wu?= =?iso-8859-1?q?vA0qNousoztNrq/Kq6tqQFurYJFAhp69l5w9SOdyGohDXjE+4m9GYlfxL0pc?= =?iso-8859-1?q?T//YwNSlwzqSb9gQ9pxG5/TGVpWVizscg9qeTdun8FcelewsKmFKWN25E1lI?= =?iso-8859-1?q?XXlCMYrDgzneZ1/moX3NbkAbO0wLxFwryizpaBl5tTQyW3L0MmwvAtXFgsWV?= =?iso-8859-1?q?k5aMTDfnAsnvwNhVJIA+OziHlpwUn4MhTA3X3/ZdOoxxIRQqlecPAGp+Jkrm?= =?iso-8859-1?q?/qVy0nkyKobd0jLem/VS59xOO4vW1HAPUIPKKshSskVslPqfnrZGT0HHn2/q?= =?iso-8859-1?q?XnIU4INEXxuny6TkJV+NuAJU1OUA/Sp24CAP65mdV7ZkxmiZwoSk6l7bFeWl?= =?iso-8859-1?q?tEBkMFlggqhSlI23U/vRPWepEjDsQodDSfCX4V9xb/E9oPdvehx6AUKyycvE?= =?iso-8859-1?q?By0JVMJ0H1AyS7RxqRt1miuPJWfS2XWpSHho5gq/50LyGFlkyaoRbUKbKC1j?= =?iso-8859-1?q?CCjLN26HWS5bfeIastGrDC1Q3QDsRcA58dT8xVlAzWMV0fChZskOVfTsjRQ5?= =?iso-8859-1?q?YTVkL15BmjkoLpYRzAzbq4Sbr/OA36VRVbAI6vJtvtKGY1QQEMOu2oOWnv+Y?= =?iso-8859-1?q?QAIrb9P0pBgLsX3USI+U1efvG6XQ09DDQE6Z3YFgdf43mWAWMdvPMpZ/tXk5?= =?iso-8859-1?q?rMel4kXW3D2IAssicNdS5MtzDVFFK6I/TR8TbUyQTVLx3NKs7JuRU+V/qz9I?= =?iso-8859-1?q?tT7pB89zFcqCpli+P8Zr1rZo+RTrEcT2r5V+rCysjY/18zSYd5YpH7GPnxU7?= =?iso-8859-1?q?cQXI6wUsvShlJ9Ly1DfVjPzst+WtWfLmJ75vlOa0oPvEyYA5GjIPDdAXeLDe?= =?iso-8859-1?q?2zCNyRh8+ZNUDWN77gkK5Fcsi868HmRi7eQVofRlnKwN/3Zuz90gxPZtWjAg?= =?iso-8859-1?q?92KsygDkKelmmBONQmpEH61dVjjg9k8KPyce+vATcMzq9NNXhlPJoPXPQ+wt?= =?iso-8859-1?q?GWVDoiD6PLVD1xa4KKLvyYabFJsMz/cMczBEuotNq4t5tXDrh/IbFcFRRkJs?= =?iso-8859-1?q?eOhr04aE4o4da3mFg5dl090zYEQRELsd/lFm+X13xz+qhY7Tw010mVCYb75Q?= =?iso-8859-1?q?PJFTHgud7mnLbSHty1+hicwoD7dLH5X+xFldwqzolgnc5cLwjMp6yXNSPASY?= =?iso-8859-1?q?fE49yBTMHNgWi6oQBUwEMn9Qy//+PPnxUZq7ExOIOAq1SN+cr8Av2td5grmo?= =?iso-8859-1?q?=3D?= Precedence: bulk X-Mailing-List: linux-fsdevel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: QNNdd3r0X1ZMQ2xXy6lWCTMgm06Lfj1xOtHq6bmkNeDKBq5afNF7Im1YQRGYYTABcgzhMwXDFN3rm4SGuzEwPV89kcp9ynjsGJYlHgbx77OsyE6R0sBkFWfTN6KwuZPE4TxwD3DZE//4nxiPqbUWjYs9PjAemMmxnTc8YEaZPLz4y4WVcs5jFDb4xK+fWY9ua5oHdCuPtJapzoS+mJ0KVuTPamiWDr8Yi9gw4DOjwcQMFfKLYEqp7aYOcR8aRlwBcJfXi55tHcY5zofEaxkwVZDeRI0TskOUNGmLB0UbnuUE+IZwqa2P2G68+i44ZpiZIZMyAc4OpGqF7LHu4VGv/Jl9qOjEuEnFrQjAWeQiUYyKgNqU1a2IB0ku8qZgQjYmr0qiYAMKWWalZvedMBkRNHTdsoOwMAHlFVU8upbMO+xD+gWNh/DwvbINF50q1JxfYRnoHnuDzTP1SUCEYAHdh2BXS3A8r0kuelRahM4/im7t+H6qiv2KBy8z6IP6RVLOhgKvgtx+hj0nffOop5k9+rFqFIVSRI3YZSh61XQykjYJ1bYLnA333IH09pHQbP6WsWH5xqBaudReCbnfSCBXzegNrimX2HksdHNurUM6hm1aCsabC+z0cTWIrTzJShYJ X-OriginatorOrg: sony.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: PUZPR04MB6316.apcprd04.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 87cd4fc5-145e-41f1-6217-08dd1d9e2ebf X-MS-Exchange-CrossTenant-originalarrivaltime: 16 Dec 2024 06:52:18.2451 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 66c65d8a-9158-4521-a2d8-664963db48e4 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: QrCMDba90SDfT6vlV+ynJQS4BJAucU5sCXe9wWoucKVyUHMWEPbpiUaNIENW1xwLO4sr+pcPsR1SPPy7rP/Ieg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: KL1PR04MB7014 X-Proofpoint-GUID: MIF7afhMTjcpVvKyjVxit7mirqeY_su0 X-Proofpoint-ORIG-GUID: MIF7afhMTjcpVvKyjVxit7mirqeY_su0 X-Sony-Outbound-GUID: MIF7afhMTjcpVvKyjVxit7mirqeY_su0 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1057,Hydra:6.0.680,FMLib:17.12.68.34 definitions=2024-12-16_02,2024-12-13_01,2024-11-22_01 In exfat, not only the newly allocated space will be mapped as the new buffer, but also the space between ->valid_size and the file size will be mapped as the new buffer. If the buffer is mapped as new in ->write_begin(), it will be zeroed. But if the buffer has been mapped as new before ->write_begin(), ->write_begin() will not zero them, resulting in access to uninitialized data. So this commit uses folio_zero_new_buffers() to zero the new buffers after ->write_begin(). Fixes: 6630ea49103c ("exfat: move extend valid_size into ->page_mkwrite()") Reported-by: syzbot+91ae49e1c1a2634d20c0@syzkaller.appspotmail.com Closes: https://syzkaller.appspot.com/bug?extid=91ae49e1c1a2634d20c0 Tested-by: syzbot+91ae49e1c1a2634d20c0@syzkaller.appspotmail.com Signed-off-by: Yuezhang Mo --- fs/exfat/file.c | 6 ++++++ 1 file changed, 6 insertions(+) From 40a308647d032e442e3eb75ac1ef2264dda185d8 Mon Sep 17 00:00:00 2001 From: Yuezhang Mo Date: Thu, 12 Dec 2024 16:29:23 +0800 Subject: [PATCH v1] exfat: fix the new buffer was not zeroed before writing In exfat, not only the newly allocated space will be mapped as the new buffer, but also the space between ->valid_size and the file size will be mapped as the new buffer. If the buffer is mapped as new in ->write_begin(), it will be zeroed. But if the buffer has been mapped as new before ->write_begin(), ->write_begin() will not zero them, resulting in access to uninitialized data. So this commit uses folio_zero_new_buffers() to zero the new buffers after ->write_begin(). Fixes: 6630ea49103c ("exfat: move extend valid_size into ->page_mkwrite()") Reported-by: syzbot+91ae49e1c1a2634d20c0@syzkaller.appspotmail.com Closes: https://syzkaller.appspot.com/bug?extid=91ae49e1c1a2634d20c0 Tested-by: syzbot+91ae49e1c1a2634d20c0@syzkaller.appspotmail.com Signed-off-by: Yuezhang Mo --- fs/exfat/file.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/fs/exfat/file.c b/fs/exfat/file.c index fb38769c3e39..05b51e721783 100644 --- a/fs/exfat/file.c +++ b/fs/exfat/file.c @@ -545,6 +545,7 @@ static int exfat_extend_valid_size(struct file *file, loff_t new_valid_size) while (pos < new_valid_size) { u32 len; struct folio *folio; + unsigned long off; len = PAGE_SIZE - (pos & (PAGE_SIZE - 1)); if (pos + len > new_valid_size) @@ -554,6 +555,9 @@ static int exfat_extend_valid_size(struct file *file, loff_t new_valid_size) if (err) goto out; + off = offset_in_folio(folio, pos); + folio_zero_new_buffers(folio, off, off + len); + err = ops->write_end(file, mapping, pos, len, len, folio, NULL); if (err < 0) goto out; @@ -563,6 +567,8 @@ static int exfat_extend_valid_size(struct file *file, loff_t new_valid_size) cond_resched(); } + return 0; + out: return err; } -- 2.43.0