From patchwork Thu Jan 23 16:55:30 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bernd Schubert X-Patchwork-Id: 13948458 Received: from outbound-ip168b.ess.barracuda.com (outbound-ip168b.ess.barracuda.com [209.222.82.102]) (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 C79381448E4 for ; Thu, 23 Jan 2025 16:55:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=209.222.82.102 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737651349; cv=fail; b=RgfpgG51jLwbRq7TpIsAJv1T8sM7zcRHRiMeejCNAEPrY9RrDOenEuylyIk/yB6acwrXn7wgL/pV00XLeuYGaEJugQhYjG1edmtSa34pw3AZzc27ZrJPePoOH5qldU1MItTTV/mPKdZCvCJKCsui6jTWCq2d401xhQ1toNYTSyQ= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737651349; c=relaxed/simple; bh=CyEfeuGwJsZlz2eqZ0z2f6wzEwTnWbakOOU5jQCa234=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=nPliiaveghWznNJioolDUh/CvOX+tLgfigSwfR4f68K1jTdqRQ3qvvkSQaWb2J5sCyCMSYYTtOwIIHQY0QzCbfks+r65VA6VMo3je8VG7l+ybziSYIiLJ8vnDeeTeRnU826xAM2C9u+SfNR3IvkeG/EfNyE32VZKPk6WnszWAwo= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=ddn.com; spf=pass smtp.mailfrom=ddn.com; dkim=pass (1024-bit key) header.d=ddn.com header.i=@ddn.com header.b=KUuihVGt; arc=fail smtp.client-ip=209.222.82.102 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=ddn.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ddn.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ddn.com header.i=@ddn.com header.b="KUuihVGt" Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11lp2170.outbound.protection.outlook.com [104.47.57.170]) by mx-outbound20-148.us-east-2b.ess.aws.cudaops.com (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Thu, 23 Jan 2025 16:55:37 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=HdEWA9jOkyGmec9XX/+bB/IaPeypXi9yxtjGX0PitKyJg4GcPzjK/AFkJ8JbBwVUdoiwbkr+F+ygqZJSvhl924ApAB37DxTzi9Rl0CT0fRPKdvj4kYodbx+H13zkSshepkcthmUtmAXnDY8zICksWOckCR1FGjld/noIiog7SCiKrft2YkKZe23ri81v/Ou1h3pirqkh5UFvbP9puB4rM1KcLEcBT3ctzOLHIBb4VxoN0AIRgDD378jIuyknIPDCvUo0HqvY8l9bAeCGkqchlO5sIlCGOAkkob/nbNurF/HMPdgEtvJPLIC8xM1tyZbUIVNsyoZAs3NBG0Jke5urOw== 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=aJV9VjYyODZaL3TkWBaQSin3lqiNlrk43wF8TuEO6Rk=; b=f7oi+eLslynJS9GtfpqTu3SV+4OyM+iyKRAX6p46mXXCuPOftowVFN7l6v5theK9BmqoHDPoqgIiSqJCvIu8PbcLwQPp9L0C8kSljjk/UAOgVFbcws2ULuz+MmgCrbrEOSGL1Lavsewj1aCQU1dg/g1QEoCkloEt28oo2oq66D2jjmhmqorREEz3iZfGyOhJN4PK/g4S5t3oQycUUt41G3nH1w1hYcnmgIvN3O65vIDkYX2gunItp9O+Ft246D71EG8a+WfXJ1nhOYr3LTt/LpYsv5NBMtrZEBDUIcmwHVaU2tm0k5efC6UUKDcOqdWNmeYH1bOEfhMs81g7AqmrBA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 50.222.100.11) smtp.rcpttodomain=ddn.com smtp.mailfrom=ddn.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=ddn.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ddn.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=aJV9VjYyODZaL3TkWBaQSin3lqiNlrk43wF8TuEO6Rk=; b=KUuihVGtUo5FFwQUYVNgDVBddP4JU/EIpiTD9S+fQNg1egPgN+Z+kBJ76xyDKD/DRRuliAirUP5WB2u0jWSRIbwBNK/ZkDh5df6k7Upqp182M8d5MvcgOLEGCfJY9QeMNtJLYWFmq29CBx5nGmVSBMdrHL4RTNxlH7txneYhKsk= Received: from BYAPR08CA0043.namprd08.prod.outlook.com (2603:10b6:a03:117::20) by BL1PR19MB5841.namprd19.prod.outlook.com (2603:10b6:208:395::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8356.21; Thu, 23 Jan 2025 16:55:34 +0000 Received: from SJ1PEPF000026C6.namprd04.prod.outlook.com (2603:10b6:a03:117:cafe::69) by BYAPR08CA0043.outlook.office365.com (2603:10b6:a03:117::20) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.8377.14 via Frontend Transport; Thu, 23 Jan 2025 16:55:34 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 50.222.100.11) smtp.mailfrom=ddn.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=ddn.com; Received-SPF: Pass (protection.outlook.com: domain of ddn.com designates 50.222.100.11 as permitted sender) receiver=protection.outlook.com; client-ip=50.222.100.11; helo=uww-mrp-01.datadirectnet.com; pr=C Received: from uww-mrp-01.datadirectnet.com (50.222.100.11) by SJ1PEPF000026C6.mail.protection.outlook.com (10.167.244.103) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.8377.8 via Frontend Transport; Thu, 23 Jan 2025 16:55:33 +0000 Received: from localhost (unknown [10.68.0.8]) by uww-mrp-01.datadirectnet.com (Postfix) with ESMTP id 7220834; Thu, 23 Jan 2025 16:55:32 +0000 (UTC) From: Bernd Schubert Date: Thu, 23 Jan 2025 17:55:30 +0100 Subject: [PATCH 1/5] fuse: Fix copy_from_user error return code in fuse_uring_commit Precedence: bulk X-Mailing-List: linux-fsdevel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20250123-fuse-uring-for-6-14-incremental-to-v10-v1-1-8aee9f27c066@ddn.com> References: <20250123-fuse-uring-for-6-14-incremental-to-v10-v1-0-8aee9f27c066@ddn.com> In-Reply-To: <20250123-fuse-uring-for-6-14-incremental-to-v10-v1-0-8aee9f27c066@ddn.com> To: Miklos Szeredi Cc: Dan Carpenter , Luis Henriques , Joanne Koong , linux-fsdevel@vger.kernel.org, Bernd Schubert X-Mailer: b4 0.15-dev-2a633 X-Developer-Signature: v=1; a=ed25519-sha256; t=1737651330; l=884; i=bschubert@ddn.com; s=20240529; h=from:subject:message-id; bh=CyEfeuGwJsZlz2eqZ0z2f6wzEwTnWbakOOU5jQCa234=; b=llN8WIq5kyQROuwgdFeVLPqXGJKky+mqkcgsHE40NqEowMVFKFH7mPf2GVuEGVAaHNIM75fBr BhbtiDYNT6mANSup80J6VFSbwDhR9RGaYtU6MeuzMXmskNEMKVzCvjU X-Developer-Key: i=bschubert@ddn.com; a=ed25519; pk=EZVU4bq64+flgoWFCVQoj0URAs3Urjno+1fIq9ZJx8Y= X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ1PEPF000026C6:EE_|BL1PR19MB5841:EE_ X-MS-Office365-Filtering-Correlation-Id: e3b24491-023a-4b24-04de-08dd3bcec05d X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|82310400026|36860700013|1800799024|376014; X-Microsoft-Antispam-Message-Info: =?utf-8?q?A094l4G3dM32W7YmdVlLkiRK29h8SNF?= =?utf-8?q?FplmlttFQAXRIhYbtGFTEGye867PKyNBO6Nd2Gx7VHskEfsH7Vu6/eleGfP0lgUy6?= =?utf-8?q?j0tuId17gUc5w04U8GeTfVD2749PAVH+VNS5Lh9jwbD0zhiiQBUfXosMZ/Ak2qIcw?= =?utf-8?q?nK6JalW7PLU8Doh6r/wZF/FRmmklIv2rMt1F4BqHi0Hwc8s1w27PGj71BwhRP4scz?= =?utf-8?q?yw59kSBvC+gGIu9d1QuYECEawjI1ZIi3LT3aM+HvKUOI0QJc2r3F6eL6BzotHoTXU?= =?utf-8?q?uoB7lSuQ+IPZVEYEU5uMCAuTkIzkcQprkZj5Kk1JODynVLKSD0riH6BUfQzYUuaXY?= =?utf-8?q?rax5k3WEqkqMALLJ0O6DdFZlHnF9mv1rz04HZQXCs2WlD+EHtu650MiCjB53Njy01?= =?utf-8?q?QsrrgDjlwwKxXHzz9gJxY1gWTH1qgV2TyABaIDbPSgD84ZQX+kJN7v5FQXJlPs56h?= =?utf-8?q?po5qNnETX+LNUwM47JJ1b4v6Me07UtP8zSbPbwbvZyKzuOU1vSWQqmXMn8FGbvOzP?= =?utf-8?q?E4YUi5CJRmnkYBdDTrH0SgepvVKRaukpJKoj+o0/mU3OZN5UfE+lLuL8j/YDZvkCT?= =?utf-8?q?eZ7pv25uwPN9x8X+TnPnPp23fKB8PPx7lnBvxc+eGSXGCUhQy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LI;SFV:NSPM;H:uww-mrp-01.datadirectnet.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230040)(82310400026)(36860700013)(1800799024)(376014);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: 25sobOJNFndh3jl87KmtLKWj8jirGOLQZmJTiyrukdOxwgXzo8ljbphCcujGrZMUzkGLThWARaUEGdCawOU9ZBTa25/2OzEo+qD79mxlLkigRJNqS2yaRPgGj4vC/mOfXXwaajRGHkPJvPR+2dMl/39y6I0zxb+dWXuo1mbQjHSzPCStNNslRNgoLM6JE2QevVQ2XzQOY+0MKblFQnXb56rT1exR/Ec66cKnwKKmb74Rd5ucQokX9kjSWEQTOD/BgrMIW/+/qPbbdUIUGrliCxUSX7i7dGAr12aoiBgufNJn2lD8ixShHSnhR47DBH2Ju1kWFxfEY3rBXjMolsyXdME3x7JvglNNfDqoZMpUOZOb7eDui6mAsAouLTnwkmSfcE0RTX9Tl4CvnOSMYe7DqdA53CLzFkGw/LctKPluGX1LQPWxsHlFjBgPZL2LiWLzTV7KpGWtQo9O8yrTERYSiR8yv04vzkpuRmB0TSyguxoF3ePYXSQFOtvCyQX/C9sTg9U9v6aOT+dI0IJN6FjJXtblM1RH1kU0BpMJxtHQB6a5y0xFFZhiRPK0rI2D8gyf//63LADVaRZw8gCfM00JBQGJZDYNh4CpfMS5VTmrCBB/znR9cQ49sAOcMFFDqJoLgJiyjpNsixgM/TiTuuKXpg== X-OriginatorOrg: ddn.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Jan 2025 16:55:33.1069 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: e3b24491-023a-4b24-04de-08dd3bcec05d X-MS-Exchange-CrossTenant-Id: 753b6e26-6fd3-43e6-8248-3f1735d59bb4 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=753b6e26-6fd3-43e6-8248-3f1735d59bb4;Ip=[50.222.100.11];Helo=[uww-mrp-01.datadirectnet.com] X-MS-Exchange-CrossTenant-AuthSource: SJ1PEPF000026C6.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL1PR19MB5841 X-BESS-ID: 1737651337-105268-13552-298-1 X-BESS-VER: 2019.1_20250122.1822 X-BESS-Apparent-Source-IP: 104.47.57.170 X-BESS-Parts: H4sIAAAAAAACA4uuVkqtKFGyUioBkjpK+cVKVhamFkBGBlAsxdjM0tDEwNzSMj HR1DLV0sLSONnYPDkl0cjA3Cg5zVipNhYAF1WyJ0AAAAA= X-BESS-Outbound-Spam-Score: 0.00 X-BESS-Outbound-Spam-Report: Code version 3.2, rules version 3.2.2.262004 [from cloudscan17-44.us-east-2b.ess.aws.cudaops.com] Rule breakdown below pts rule name description ---- ---------------------- -------------------------------- 0.00 BSF_BESS_OUTBOUND META: BESS Outbound X-BESS-Outbound-Spam-Status: SCORE=0.00 using account:ESS124931 scores of KILL_LEVEL=7.0 tests=BSF_BESS_OUTBOUND X-BESS-BRTS-Status: 1 Return code was accidentally set to the result, which can be a positive value with the number of bytes that could not be copied. Set to -EFAULT. Fixes: fuse: Add io-uring sqe commit and fetch support Spotted in review by: Luis Henriques Signed-off-by: Bernd Schubert --- fs/fuse/dev_uring.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/fuse/dev_uring.c b/fs/fuse/dev_uring.c index 5f10f3880d5a4869d8a040567025c60e75d962c6..8e15acb3d350d223c64423233f3613b6eee075da 100644 --- a/fs/fuse/dev_uring.c +++ b/fs/fuse/dev_uring.c @@ -779,7 +779,7 @@ static void fuse_uring_commit(struct fuse_ring_ent *ent, err = copy_from_user(&req->out.h, &ent->headers->in_out, sizeof(req->out.h)); if (err) { - req->out.h.error = err; + req->out.h.error = -EFAULT; goto out; } From patchwork Thu Jan 23 16:55:31 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bernd Schubert X-Patchwork-Id: 13948460 Received: from outbound-ip191b.ess.barracuda.com (outbound-ip191b.ess.barracuda.com [209.222.82.124]) (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 6FB81145B00 for ; Thu, 23 Jan 2025 16:55:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=209.222.82.124 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737651349; cv=fail; b=fB/PpJHPiCG/pMGZ04e3zla3mn7C8+rifZOJPbW7WUhSYBh6cOTmBwYoxJ1Vb/YhOZyE1gvG0jkyUCdcTD2HOSJ3HjxqMkABSbcn8geM5y9w0ry7SoHkGSGRFBE9K79va35oGamoKUWiS/tF+AhrjAT0rv50CeNUo3Vk+YIR7qY= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737651349; c=relaxed/simple; bh=g1xK0U2GeyWaNV19wfhUECA5XXU1GKPpozZo+5/ZdkI=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Y3lOVUD9NWriTrZ/ESD5t4gX6UgmPJ4XCu+meAGwJUxzTws+TnRT67dXbg0TvRgdmWvmQhTgfoBcvZYmXNiCvOSp4EP5JEOZAvh2KleIFCoOZE/DXnnTSmb5a67dD1lwx1sJ8V71PWhOM0lB0Zf1J0KMZWDfQwmaOUxxLE7FU+Y= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=ddn.com; spf=pass smtp.mailfrom=ddn.com; dkim=pass (1024-bit key) header.d=ddn.com header.i=@ddn.com header.b=kojTb9Dd; arc=fail smtp.client-ip=209.222.82.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=ddn.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ddn.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ddn.com header.i=@ddn.com header.b="kojTb9Dd" Received: from NAM04-DM6-obe.outbound.protection.outlook.com (mail-dm6nam04lp2044.outbound.protection.outlook.com [104.47.73.44]) by mx-outbound20-119.us-east-2b.ess.aws.cudaops.com (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Thu, 23 Jan 2025 16:55:35 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=g9P/Miweim5Us0mfe6NP74DlMP8jQ+pm7k+r7Y4BW+RdiL5327HMS7UeeQ+QXwxUOvqyBwqzbaTPxvNaD0wFECqgygkqUUE11HpcG+x3blNY1e0cE+utJBDz2fLmr3FOqFgEKTSdrKnIlg8vg85m/dECuuIC2ryJ1ZTgScoYw2ltO2i+C+PXGLHHZcWjBHXlgzSOnZdjVB8MwbLoOZHDk4WI4/aCT/Nwrqb56EaBFeYpn/ybmGGWwOI+jMc7mfd5I6eUApjDoWC7r1j/F0Roglugru//NmrayaBtVF88in2ZHYvGxAT7rDPNqk/HNMk1uk9g/BdbJoxugMRo75wM4A== 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=gc3MMGdaFLtOKOHRWjNgFPBcDJ1NV5a7cI/e1yGElEg=; b=p0t1R1Q+Zw+Op6PLGh2b7t10Ha2h19DU2oDQXXPRvD5hJUqxW+5flUcwmXdMkafB/hvklmF+OBYqk6rX3JfW0858m7f4Mn7dxmUQjZX3CCdJeHq7EUoYBIoH8JlLNy0jR1vbK7pJTGOYu60IReYJWtx2+P6xYg6c8SKGns3bjpZ1FeG5R3pzj4uQycWMHgqSdAkIChNYPO83Gco2SdhMwQzssmBS7JCKD0l4m1bDW8Z9ZY2oerDJHWD0XrT+ATqneT4Z3cMpRI2F5ZonYrOAp0hA6c3V0a5lwlmQiKrcD6nDEgB8la+wEJY30t5fqPqnkRe4XHwYLn4Hu51pee38GQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 50.222.100.11) smtp.rcpttodomain=ddn.com smtp.mailfrom=ddn.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=ddn.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ddn.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=gc3MMGdaFLtOKOHRWjNgFPBcDJ1NV5a7cI/e1yGElEg=; b=kojTb9DdmtlNeE/9tpA7Uuh5BkmOjVPPgX7xmdVJu3pR/uVmg9MJbt4hBjx1HfMyzPw0lW9QJGB/5Voz/t5pD5TNyPMHu4WsjyE4dBWWCp9kaf1pZZcnKVD+boDtqjSMV4AIJYUS5ZH+kT7HLihvh/MPypd/ikenlxMdRCaj2xM= Received: from DM5PR07CA0108.namprd07.prod.outlook.com (2603:10b6:4:ae::37) by CO1PR19MB5190.namprd19.prod.outlook.com (2603:10b6:303:f1::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8377.18; Thu, 23 Jan 2025 16:55:34 +0000 Received: from CY4PEPF0000EE36.namprd05.prod.outlook.com (2603:10b6:4:ae:cafe::d0) by DM5PR07CA0108.outlook.office365.com (2603:10b6:4:ae::37) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.8356.21 via Frontend Transport; Thu, 23 Jan 2025 16:55:34 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 50.222.100.11) smtp.mailfrom=ddn.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=ddn.com; Received-SPF: Pass (protection.outlook.com: domain of ddn.com designates 50.222.100.11 as permitted sender) receiver=protection.outlook.com; client-ip=50.222.100.11; helo=uww-mrp-01.datadirectnet.com; pr=C Received: from uww-mrp-01.datadirectnet.com (50.222.100.11) by CY4PEPF0000EE36.mail.protection.outlook.com (10.167.242.42) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.8377.8 via Frontend Transport; Thu, 23 Jan 2025 16:55:33 +0000 Received: from localhost (unknown [10.68.0.8]) by uww-mrp-01.datadirectnet.com (Postfix) with ESMTP id 6A9ED58; Thu, 23 Jan 2025 16:55:33 +0000 (UTC) From: Bernd Schubert Date: Thu, 23 Jan 2025 17:55:31 +0100 Subject: [PATCH 2/5] fuse: Remove an err= assignment and move a comment Precedence: bulk X-Mailing-List: linux-fsdevel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20250123-fuse-uring-for-6-14-incremental-to-v10-v1-2-8aee9f27c066@ddn.com> References: <20250123-fuse-uring-for-6-14-incremental-to-v10-v1-0-8aee9f27c066@ddn.com> In-Reply-To: <20250123-fuse-uring-for-6-14-incremental-to-v10-v1-0-8aee9f27c066@ddn.com> To: Miklos Szeredi Cc: Dan Carpenter , Luis Henriques , Joanne Koong , linux-fsdevel@vger.kernel.org, Bernd Schubert X-Mailer: b4 0.15-dev-2a633 X-Developer-Signature: v=1; a=ed25519-sha256; t=1737651330; l=1564; i=bschubert@ddn.com; s=20240529; h=from:subject:message-id; bh=g1xK0U2GeyWaNV19wfhUECA5XXU1GKPpozZo+5/ZdkI=; b=DHx45tjlpaO5uO0MT4kNGs4F63rK1kTA4TsxwNgEC8OauSbsErrjtU0+3aXVV2atmh/+eVoOT C+/woznsemSBwDMOrOLcGxZvdj4DlQMp9ENMV6St1bN3yQGVsHuF/fv X-Developer-Key: i=bschubert@ddn.com; a=ed25519; pk=EZVU4bq64+flgoWFCVQoj0URAs3Urjno+1fIq9ZJx8Y= X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CY4PEPF0000EE36:EE_|CO1PR19MB5190:EE_ X-MS-Office365-Filtering-Correlation-Id: ccb2be6c-506b-4b92-f6b6-08dd3bcec0b1 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|36860700013|1800799024|82310400026; X-Microsoft-Antispam-Message-Info: =?utf-8?q?ELctrwkl0sG8aQEas3lPWmNAxDDy43x?= =?utf-8?q?bYcazgGtv+MCT21Ti390uF+b02BwfIfdECP5jC+l+uH48QQgC4TQ0vWwXg98LMNng?= =?utf-8?q?TSUYBEFQ+cAKr+F+w4rFaBlGu23p3IL6LIOQefaneY0zUjCxKgDL7B0xLDouciXD+?= =?utf-8?q?f/Yyuciw36wj2TampVcZ9y88c0cJV6+pMfVrDTjE+lHDV2euJXiPY9VEq+YTdhoWb?= =?utf-8?q?x8rkBF1SFiYNafrPC2ZysCCrOy48Sq7pCRBjX7Y1x990uX4ngJYuqEhPuSnxXDjRY?= =?utf-8?q?pf18L+/FDs5wQWyE+u/vWOFcXIUBD/mDgtM/LNbc9+I0Vh2w8GK4Q1/kQQpSqK5OR?= =?utf-8?q?Vp+gh/hmik43mG2/Cjtngl2EphedMQjgvUn69zBxnnVsxVIEuwd4Q2jKGTD2atfJl?= =?utf-8?q?3kwT7klAJxSiEBZhbqJd2dYUFRDTgMQ6wCvYvcWJP6E0FYnRAGTtTlC22UZaTLlQF?= =?utf-8?q?2W+bX+abEh7lhYP4JNK7H0TBTC9vCuLMt6RshYv70XqlS3UN/ccR/IYyEr0k62H+z?= =?utf-8?q?RgShLabiaZtSEU6QfX1dQLe297f/+IgcL45/eToV78/GVbSscWXhfSv22XWgbNjAZ?= =?utf-8?q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IP:50.222.100.11;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:uww-mrp-01.datadirectnet.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230040)(376014)(36860700013)(1800799024)(82310400026);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: tDjCFhZgTyhp6pXfoK04jZ6HYmAKikaqsEbEyd8ytHAdinkCrhSMFxr3ztEaKdewf0XzmwcgXmltLT4jn/4VxwGdwTkzj1OwiIwlQU6Et730GWf/8VS1rGnyF/sz+7LDrhVhh9QgmZcbe4GQBtqxhf0glehGFIM2ezGF74l8nX2CgpJuYd38nJM+tmM9IoN28SUhTzFPvq70N7hEkE/JvXynU7yiiWN1tcr8FkMn4OTrMeGADuNMR9HdveO8Y7hHjQb2GmXO82E35iO2D/8wK1HRoQKltdQiJ0NeY4GpXuupJyhxPx9IPF+Gc/p8u0A5ahdK+PdQiXqp1rL86tqsadye2/OCSisd0hOVEj2HbQ6k184LghlazrbGNXk6lvxHZiImy+XFywuDJGevikDZD00IUG1wUNpzSnb6kV8jHPuXkg4+lWi+739Ftr/cCvq31MPCqaIhwWWlZV/y6V6ETA0GiJiGp8ifebEzlvifm3EgYY1FbCEYbiD/jc4ugwY/MYQ7YebAw8rpQxZ2ZAw4ML/xl/gEiw7VgMgNRrU5fldOjk8ERlis1pQDsT+jWEAeAJFVjNSpURYsK0ZCul1RssnGrQiy9wOwH6O2kzBTy/QetBJADIb/PnH2pYyvlsQR/Ag8/bsr+CM3Joo6f7x9Mw== X-OriginatorOrg: ddn.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Jan 2025 16:55:33.8199 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: ccb2be6c-506b-4b92-f6b6-08dd3bcec0b1 X-MS-Exchange-CrossTenant-Id: 753b6e26-6fd3-43e6-8248-3f1735d59bb4 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=753b6e26-6fd3-43e6-8248-3f1735d59bb4;Ip=[50.222.100.11];Helo=[uww-mrp-01.datadirectnet.com] X-MS-Exchange-CrossTenant-AuthSource: CY4PEPF0000EE36.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO1PR19MB5190 X-BESS-ID: 1737651335-105239-13392-10389-1 X-BESS-VER: 2019.1_20250122.1822 X-BESS-Apparent-Source-IP: 104.47.73.44 X-BESS-Parts: H4sIAAAAAAACA4uuVkqtKFGyUioBkjpK+cVKVoamhmZAVgZQMNkk0SI5LTUlKd U40STRwMLIOC3ZxCDR0MzAyNzS1MREqTYWAF6xBVZBAAAA X-BESS-Outbound-Spam-Score: 0.00 X-BESS-Outbound-Spam-Report: Code version 3.2, rules version 3.2.2.262005 [from cloudscan8-103.us-east-2a.ess.aws.cudaops.com] Rule breakdown below pts rule name description ---- ---------------------- -------------------------------- 0.00 BSF_BESS_OUTBOUND META: BESS Outbound X-BESS-Outbound-Spam-Status: SCORE=0.00 using account:ESS124931 scores of KILL_LEVEL=7.0 tests=BSF_BESS_OUTBOUND X-BESS-BRTS-Status: 1 The err assignment is not needed as it was already set to that value before and comment is better in the calling function, as it is about the queue object that. Fixes: fuse: {io-uring} Handle SQEs - register commands Spotted in review by: Luis Henriques Signed-off-by: Bernd Schubert --- fs/fuse/dev_uring.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/fs/fuse/dev_uring.c b/fs/fuse/dev_uring.c index 8e15acb3d350d223c64423233f3613b6eee075da..8e46cddde34539af398290f26db120713520ee51 100644 --- a/fs/fuse/dev_uring.c +++ b/fs/fuse/dev_uring.c @@ -1018,10 +1018,6 @@ fuse_uring_create_ring_ent(struct io_uring_cmd *cmd, return ERR_PTR(err); } - /* - * The created queue above does not need to be destructed in - * case of entry errors below, will be done at ring destruction time. - */ err = -ENOMEM; ent = kzalloc(sizeof(*ent), GFP_KERNEL_ACCOUNT); if (!ent) @@ -1063,7 +1059,6 @@ static int fuse_uring_register(struct io_uring_cmd *cmd, return -EINVAL; } - err = -ENOMEM; queue = ring->queues[qid]; if (!queue) { queue = fuse_uring_create_queue(ring, qid); @@ -1071,6 +1066,11 @@ static int fuse_uring_register(struct io_uring_cmd *cmd, return err; } + /* + * The created queue above does not need to be destructed in + * case of entry errors below, will be done at ring destruction time. + */ + ent = fuse_uring_create_ring_ent(cmd, queue); if (IS_ERR(ent)) return PTR_ERR(ent); From patchwork Thu Jan 23 16:55:32 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bernd Schubert X-Patchwork-Id: 13948459 Received: from outbound-ip168b.ess.barracuda.com (outbound-ip168b.ess.barracuda.com [209.222.82.102]) (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 150AE145A0F for ; Thu, 23 Jan 2025 16:55:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=209.222.82.102 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737651349; cv=fail; b=lNCR2r6ztlf21xk/h7V6ohaB0hBOEpEl8pP0IfPZUjC46xhSwtT+NCHzWksiXCkk3BXbzKtTjtVvcb9Ek5sE4VeFjlGMgVf8Y+XkzQH8MviaaIYPc28R4M2tSf59dEHcGBqf6qXTfYbzfsE5I8/Q1RSF0iTo+eACBO1HJKFjKVo= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737651349; c=relaxed/simple; bh=KtNNwAgaPSdPWS/mQhbikCiDNR3s1e8xxT5cseFMw9I=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=buF9SjFo7boA0z6j9e3UfnH99q2nt9WMKmsqAwNp5rvyjoQpgcMW3Gy1LHH0DBGDiiBy/WksuvQuBdig5MskMFD0uBk8+ArAVcsqJ69V73mNX+GFizMktvQ94ObhHsoCAbeyVS5b3Yp4/Epx5HkFH6T9deepqVHhwfe/OpMPBRI= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=ddn.com; spf=pass smtp.mailfrom=ddn.com; dkim=pass (1024-bit key) header.d=ddn.com header.i=@ddn.com header.b=SxHGsAPK; arc=fail smtp.client-ip=209.222.82.102 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=ddn.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ddn.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ddn.com header.i=@ddn.com header.b="SxHGsAPK" Received: from NAM10-BN7-obe.outbound.protection.outlook.com (mail-bn7nam10lp2045.outbound.protection.outlook.com [104.47.70.45]) by mx-outbound44-13.us-east-2c.ess.aws.cudaops.com (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Thu, 23 Jan 2025 16:55:37 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=yYyB8814/Viby6+rifdq3yf0/8DDHEXMy9LSh1UsUsfJMo4B9yPLdDWm76PI9jWr0Og1yQ95ZcnhfHWyx3+8V/e5vEJLb4GhA4QavKBIA2Rpx5YRantXRBV5vMiTTH2yGvqL/OYfSlPR5HEB0TjQKJaE0WpabpQk8fFyQnTeVVCdueVzlNz9I9jBIeDofiIlaSXH79jSXW6WyTAOgPGzmYr6ACwFcu1NSjPZAzMHLGUDIBIexTNrsO3gytCkWSXi1jO+UOr9Ab0hQByogdblDIK5Bipr4WS0tYdmnS5ms6G26kCE2Lqi5c9us1bBpKfknLd2uhLBP2Qvtqwb9EU+iQ== 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=GIlwN+DKkguUaqcv2R2l41Su4fRN3kGaWCQ8bQo0IAk=; b=Q776dHzYdqOhCHpU5rv890XrAY0mCECluQ6Khumb1G8N1YSUpGVYATAN+9gTYo2FdPwK1UM9qpetsuZ83QqjzI5qgYKP1c4bkXdAMNm/6qASZvKuw5Q2iJi18Mt/AF5YRPobrL/xlnMUJ7016vMBIzEePeE/W34klcoAgUy87tCJAvek2nUs56wfg8rngYM/2Tfsm+s19YyWU42dc3UEKaz0SxS7hG8alGycDhYWzyH8Y57BzfmOjXfgkUeZ5fn1hzABUyvkpaxVoJdkB34rpRpU/w1VJ5qUeCGHg41aZzYWyzpm9X2sSSL0tPo5DI09gEczmkeEn7CFgksvIZbd9Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 50.222.100.11) smtp.rcpttodomain=ddn.com smtp.mailfrom=ddn.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=ddn.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ddn.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=GIlwN+DKkguUaqcv2R2l41Su4fRN3kGaWCQ8bQo0IAk=; b=SxHGsAPK7Dcm36K8Hub5xZ1Vq7/jZIFg5n6GYmGt/jNbyLeuiHEJpPZ2G2cOVMBMIYnb/Ioe6ThF37XttAIoyXK1QhkVhlwPaWm8VZFn8HZDjbk2dO9vwG1a3O1AiE8ILSRkDS5cGMyMXlofwO2D+fSRqwICg8c2LmxLnIRYaDw= Received: from SJ0PR03CA0074.namprd03.prod.outlook.com (2603:10b6:a03:331::19) by LV2PR19MB5720.namprd19.prod.outlook.com (2603:10b6:408:17b::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8356.21; Thu, 23 Jan 2025 16:55:35 +0000 Received: from SJ1PEPF000026CA.namprd04.prod.outlook.com (2603:10b6:a03:331:cafe::74) by SJ0PR03CA0074.outlook.office365.com (2603:10b6:a03:331::19) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.8377.18 via Frontend Transport; Thu, 23 Jan 2025 16:55:35 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 50.222.100.11) smtp.mailfrom=ddn.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=ddn.com; Received-SPF: Pass (protection.outlook.com: domain of ddn.com designates 50.222.100.11 as permitted sender) receiver=protection.outlook.com; client-ip=50.222.100.11; helo=uww-mrp-01.datadirectnet.com; pr=C Received: from uww-mrp-01.datadirectnet.com (50.222.100.11) by SJ1PEPF000026CA.mail.protection.outlook.com (10.167.244.107) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.8377.8 via Frontend Transport; Thu, 23 Jan 2025 16:55:34 +0000 Received: from localhost (unknown [10.68.0.8]) by uww-mrp-01.datadirectnet.com (Postfix) with ESMTP id 6337880; Thu, 23 Jan 2025 16:55:34 +0000 (UTC) From: Bernd Schubert Date: Thu, 23 Jan 2025 17:55:32 +0100 Subject: [PATCH 3/5] fuse: prevent disabling io-uring on active connections Precedence: bulk X-Mailing-List: linux-fsdevel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20250123-fuse-uring-for-6-14-incremental-to-v10-v1-3-8aee9f27c066@ddn.com> References: <20250123-fuse-uring-for-6-14-incremental-to-v10-v1-0-8aee9f27c066@ddn.com> In-Reply-To: <20250123-fuse-uring-for-6-14-incremental-to-v10-v1-0-8aee9f27c066@ddn.com> To: Miklos Szeredi Cc: Dan Carpenter , Luis Henriques , Joanne Koong , linux-fsdevel@vger.kernel.org, Bernd Schubert X-Mailer: b4 0.15-dev-2a633 X-Developer-Signature: v=1; a=ed25519-sha256; t=1737651330; l=1542; i=bschubert@ddn.com; s=20240529; h=from:subject:message-id; bh=KtNNwAgaPSdPWS/mQhbikCiDNR3s1e8xxT5cseFMw9I=; b=1GnbpRNsVyvRpAo6SOFKAXTU7jn8+HH+UVKJ7PTOC9MgaO0h5GLdNY1Qq/s3Ki0iNVIaM+wxr 4fhAJJjAaFPBc6wK/ue7c7vuaXQeMOmatJx3rI0x8VVvzacHgS0gfaE X-Developer-Key: i=bschubert@ddn.com; a=ed25519; pk=EZVU4bq64+flgoWFCVQoj0URAs3Urjno+1fIq9ZJx8Y= X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ1PEPF000026CA:EE_|LV2PR19MB5720:EE_ X-MS-Office365-Filtering-Correlation-Id: 46233bd6-4a67-4f7b-3c2f-08dd3bcec16a X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|1800799024|36860700013|82310400026; X-Microsoft-Antispam-Message-Info: =?utf-8?q?gVHZPMc9QcNnkV4afufGc+xw/cnXR60?= =?utf-8?q?55zX6NQ9YV9aJyIWiz3nnWfDWOIUnLXG1D6vgLcmu9mKTnQ6YPRbxJG1J3Gmab8hd?= =?utf-8?q?2EA9dIzarTG9O516QAjJo1ZDK2tx4IutXhstfHFsAEfDSVbyZpEGxHoNprHkH0pBm?= =?utf-8?q?WT3dBPwvy8S9lGvwkZXXpMqX39Xly2B1ddAzR5L9fcJcvrtZYyK5pf+gREMqInRj+?= =?utf-8?q?hTSr3fhU9moLhjPOYA60y6uIvkeXyUpaLPXeltMPtcSNek6pAxPGUuKCAwnHK3MyK?= =?utf-8?q?1BzPVC5fpdySzBErif5m2L+Fa+1p+2qpJatm6h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+6oaYD6GC?= =?utf-8?q?DVsXZ6qsYGg0AL5u30fLiLv7YuURT2ik+kjoQBOHkRSUzGomviQTTeCXhGK5j2hQz?= =?utf-8?q?KEEXzQdI8C45oxcMBgvSwHbD/wXIXAtky16meZDBNP9I2BM0AUzKztWGofQR6K1q0?= =?utf-8?q?mycOMjf1wbeM6/HBHnwNABrSQNL/DnSSB+n8HVcRvpaPIUfxzZZd+Pmh83eU5vGJt?= =?utf-8?q?Egcmnef5kEJYh88d5o86WL0t5I4jqxQ9InvBnpfpLYuhQ6mDqNrT2o=3D?= X-Forefront-Antispam-Report: CIP:50.222.100.11;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:uww-mrp-01.datadirectnet.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230040)(376014)(1800799024)(36860700013)(82310400026);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: sWlvM0akoEQJgbQyLWdbK+AAprSH7ftixa1OxdxEW32kFZuRo6VBCtf0uMJ+xGAud7Blvv2IJlmP2gUNpimpzw1jK1k+Idok3mMQ7I/PMTWXofYXxnxkxFM+5FIiDigvsA869wnMDtX/euq7zlvtZrLU1CArfgIJ7QjSzTWs1duIS+53UuphpBiC3911CYsjhfcIbgxnpOEEKYDLIscqoUyI//Pqn6e8XhocvSP5/77AiUdRFhA9xBwpcofuCLIwULj102V6YrnT4HNY6TdOyv662PPik72zP5GaCvbnL027CKFXtTPJkHoDvOE2oe50CGsTEHz/UZOIXDfiw3TeKDgxWbVc6n4vTSnDdoP7ow+2KlzbWVhfV9T6xHBGf307CqPUYkRR6pnNSTlyNEkA3AbcytqsNxOcgCXP0FxqbgxKiLI6M8XnCAdLkPS/Jm+VjOCmlVUOE8EbPqseZ1NZMdUeZMOswFl8q0edeL6Efi3MM18rysOdcFYy7SocfSP6PNQHlOAYdUYcjg5zZ+ZShkLUQ50HtP8VNMepyk8X7G2MqRCH66YG3spwuP4fy04famV5azK1x+Et/NuWn7zX/hIfBz1YP+VSTOdDI2njWy+PBgSjRoB2c2pCHTfqG7JunpbuyJUiPos1S5yFxph/GA== X-OriginatorOrg: ddn.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Jan 2025 16:55:34.9650 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 46233bd6-4a67-4f7b-3c2f-08dd3bcec16a X-MS-Exchange-CrossTenant-Id: 753b6e26-6fd3-43e6-8248-3f1735d59bb4 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=753b6e26-6fd3-43e6-8248-3f1735d59bb4;Ip=[50.222.100.11];Helo=[uww-mrp-01.datadirectnet.com] X-MS-Exchange-CrossTenant-AuthSource: SJ1PEPF000026CA.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: LV2PR19MB5720 X-BESS-ID: 1737651337-111277-13411-1426-1 X-BESS-VER: 2019.1_20250122.1822 X-BESS-Apparent-Source-IP: 104.47.70.45 X-BESS-Parts: H4sIAAAAAAACA4uuVkqtKFGyUioBkjpK+cVKVoYmlhZAVgZQ0MQw2dLYICnRIs 3S1MzE0iDFzCIl2TQxNdXAxNLE2DRZqTYWAFiwr09BAAAA X-BESS-Outbound-Spam-Score: 0.00 X-BESS-Outbound-Spam-Report: Code version 3.2, rules version 3.2.2.262004 [from cloudscan15-131.us-east-2a.ess.aws.cudaops.com] Rule breakdown below pts rule name description ---- ---------------------- -------------------------------- 0.00 BSF_BESS_OUTBOUND META: BESS Outbound X-BESS-Outbound-Spam-Status: SCORE=0.00 using account:ESS124931 scores of KILL_LEVEL=7.0 tests=BSF_BESS_OUTBOUND X-BESS-BRTS-Status: 1 The enable_uring module parameter allows administrators to enable/disable io-uring support for FUSE at runtime. However, disabling io-uring while connections already have it enabled can lead to an inconsistent state. Fix this by keeping io-uring enabled on connections that were already using it, even if the module parameter is later disabled. This ensures active FUSE mounts continue to function correctly. Signed-off-by: Bernd Schubert --- fs/fuse/dev_uring.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/fs/fuse/dev_uring.c b/fs/fuse/dev_uring.c index 8e46cddde34539af398290f26db120713520ee51..a2abcde3f074459de3dba55727c5159f0a257521 100644 --- a/fs/fuse/dev_uring.c +++ b/fs/fuse/dev_uring.c @@ -1091,11 +1091,6 @@ int fuse_uring_cmd(struct io_uring_cmd *cmd, unsigned int issue_flags) u32 cmd_op = cmd->cmd_op; int err; - if (!enable_uring) { - pr_info_ratelimited("fuse-io-uring is disabled\n"); - return -EOPNOTSUPP; - } - if ((unlikely(issue_flags & IO_URING_F_CANCEL))) { fuse_uring_cancel(cmd, issue_flags); return 0; @@ -1112,6 +1107,12 @@ int fuse_uring_cmd(struct io_uring_cmd *cmd, unsigned int issue_flags) } fc = fud->fc; + /* Once a connection has io-uring enabled on it, it can't be disabled */ + if (!enable_uring && !fc->io_uring) { + pr_info_ratelimited("fuse-io-uring is disabled\n"); + return -EOPNOTSUPP; + } + if (fc->aborted) return -ECONNABORTED; if (!fc->connected) From patchwork Thu Jan 23 16:55:33 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bernd Schubert X-Patchwork-Id: 13948461 Received: from outbound-ip191a.ess.barracuda.com (outbound-ip191a.ess.barracuda.com [209.222.82.58]) (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 CF3D2145B03 for ; Thu, 23 Jan 2025 16:55:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=209.222.82.58 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737651350; cv=fail; b=MYFFkMO7o1XsHfwo1/snJirfWqq0Aiq+U2bOD0BAZ+d+8LCna8BnpgKIFcrTyY2VK3MJAuMVtsKtLnD3gylRDdHPBoMamjhqNX/AtCjJ6JrtEUmzyxet4io5Nn55Jz9V4bsINEJ/XRIk3ZObB5pJ5MkjaeGHl3Dvb4UiY2lmwyM= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737651350; c=relaxed/simple; bh=vJiSTPcDjBuPe0BbCVIsUueQRN8D+nxOgr6/skELfv0=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=AEAK+51OccdT5vlmztffEBWKIoPIQHR/BOUN6f2lw3R7uLG+SjKydnDZIqn+Xo/BrYokiwnR1t5tH3InQmIShh0jvwHUIoyPZe7KUut18NnQL8Dxb4T7VPolgA5qe5J3bwJHewUezTfI+yLSAXsCwITHXuDhAmHxeOO0LWVrVnk= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=ddn.com; spf=pass smtp.mailfrom=ddn.com; dkim=pass (1024-bit key) header.d=ddn.com header.i=@ddn.com header.b=OVCKxX6A; arc=fail smtp.client-ip=209.222.82.58 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=ddn.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ddn.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ddn.com header.i=@ddn.com header.b="OVCKxX6A" Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12lp2172.outbound.protection.outlook.com [104.47.55.172]) by mx-outbound8-185.us-east-2a.ess.aws.cudaops.com (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Thu, 23 Jan 2025 16:55:39 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=s0naieexWCDeOD90NU7dCR7bLDVy+uqsl2sj3Ya3kZdzq6q92NNg9wPW1+YsVBZMYfDV+w3CEwYDQYXfax9ruqFeBN1i5DHOUSGazzMeCvHdU0z4OIb8CcPPL948H1v7ZqVNo9EtIxrKcZRQju8FNK2inpOVOpY9gy82qjAVuuTN4IcvMQoiSZta2AOgOY9PxkG2OC4BAEqVPVEoiCnzjBe47YKLVZvMHfVw9Fj2ghhMq+Qcjk8gc5U7bY943EM8sQ+x5+R+JB5jbMUS7Tzllnju6HSuDeUQknan9yus65awEv93R5i13OyRJSfetZmp1lLG1uhzjIuuzqlZZOp0cQ== 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=rWusXsdlKywO2V/skLWKe/EpEAxlJZ+7XWmQTYCbxDs=; b=IBSe0PxhMtpdkUeMhU/ZEDxVHJ2GB8SZDjIV05qzVpbm0HpMF6njglpxdcB/xdvScSFkZbsFVZGiaK9hBDg7JbzQsTWz21CQ76zLyf1b0z7Z0tzJPy8gCDmXBIAEdoWEBAfjjI1czOQQ+OoopFKhf5ba0gJrvcxoQm9ZOAMxsoB7eKkFrmfo5/y8KnYIIQzPBvPrsAiBAROa109PQiE/8byqzzFKCvzjNbsMw9Zm1SEIV6EaVqlelDpQDHGFuavWHeDIwMI0KpPCRqqhx3OI76r/wxonRaKnSXm6LJSTLb/++DRIF2cKyRAORwkI9beh/H9wPXntGhMZT40zZZWD0A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 50.222.100.11) smtp.rcpttodomain=ddn.com smtp.mailfrom=ddn.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=ddn.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ddn.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=rWusXsdlKywO2V/skLWKe/EpEAxlJZ+7XWmQTYCbxDs=; b=OVCKxX6AbpANQrHV+e0AQjyENBkbFAb1XAW++W5ffsRKHtStNv+7ef5nXRl3NHOh4dN+Q+5CtknbnMnyFAbgoQjc7xBter9A1JhJJuKEFDgFugjTQ7tdPkK/KY+N8lo2Ih8s6yp3wSKdXCWzLA7OZFBdcZpLziHPDYx0kq4HSGU= Received: from BYAPR08CA0059.namprd08.prod.outlook.com (2603:10b6:a03:117::36) by SA1PR19MB5199.namprd19.prod.outlook.com (2603:10b6:806:184::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8377.16; Thu, 23 Jan 2025 16:55:36 +0000 Received: from SJ1PEPF000026C6.namprd04.prod.outlook.com (2603:10b6:a03:117:cafe::88) by BYAPR08CA0059.outlook.office365.com (2603:10b6:a03:117::36) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.8356.13 via Frontend Transport; Thu, 23 Jan 2025 16:55:36 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 50.222.100.11) smtp.mailfrom=ddn.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=ddn.com; Received-SPF: Pass (protection.outlook.com: domain of ddn.com designates 50.222.100.11 as permitted sender) receiver=protection.outlook.com; client-ip=50.222.100.11; helo=uww-mrp-01.datadirectnet.com; pr=C Received: from uww-mrp-01.datadirectnet.com (50.222.100.11) by SJ1PEPF000026C6.mail.protection.outlook.com (10.167.244.103) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.8377.8 via Frontend Transport; Thu, 23 Jan 2025 16:55:35 +0000 Received: from localhost (unknown [10.68.0.8]) by uww-mrp-01.datadirectnet.com (Postfix) with ESMTP id 5BA4D34; Thu, 23 Jan 2025 16:55:35 +0000 (UTC) From: Bernd Schubert Date: Thu, 23 Jan 2025 17:55:33 +0100 Subject: [PATCH 4/5] fuse: Remove unneeded include in fuse_dev_i.h Precedence: bulk X-Mailing-List: linux-fsdevel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20250123-fuse-uring-for-6-14-incremental-to-v10-v1-4-8aee9f27c066@ddn.com> References: <20250123-fuse-uring-for-6-14-incremental-to-v10-v1-0-8aee9f27c066@ddn.com> In-Reply-To: <20250123-fuse-uring-for-6-14-incremental-to-v10-v1-0-8aee9f27c066@ddn.com> To: Miklos Szeredi Cc: Dan Carpenter , Luis Henriques , Joanne Koong , linux-fsdevel@vger.kernel.org, Bernd Schubert X-Mailer: b4 0.15-dev-2a633 X-Developer-Signature: v=1; a=ed25519-sha256; t=1737651330; l=749; i=bschubert@ddn.com; s=20240529; h=from:subject:message-id; bh=vJiSTPcDjBuPe0BbCVIsUueQRN8D+nxOgr6/skELfv0=; b=gba6irkkSeo8evthngQuonwlD9zKqqTMtcWh3OrRiewcC7FFcXKnYysdTcY2B0mYOpCbNDhdd xAyB1k5IeSCAxsiypJ+HmTlNHbAoVs1mjSTZhtIyNVQWXkbwTQZIAmW X-Developer-Key: i=bschubert@ddn.com; a=ed25519; pk=EZVU4bq64+flgoWFCVQoj0URAs3Urjno+1fIq9ZJx8Y= X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ1PEPF000026C6:EE_|SA1PR19MB5199:EE_ X-MS-Office365-Filtering-Correlation-Id: 2c1f3217-2cb0-4def-d159-08dd3bcec200 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|36860700013|82310400026|376014; X-Microsoft-Antispam-Message-Info: =?utf-8?q?xfraepeDvT2rNQ5q/MG7ajsZPdeBWOl?= =?utf-8?q?+bE5C7NfQpPmjff/8RY1Z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DZfnhIUnHE8F5wcxB+lge5/k/M13lmmyP8TFvOIDM+2k?= =?utf-8?q?3N8Em/vjW1a/o6eUZ3md7xTZNrS4EVGXG+o59zrpdTN+JaTrtNN5vEh8havK8zA7o?= =?utf-8?q?RVQ1JoHLYPzWCRY/qXBEtBv0puXSc8DdxtyjmUlLG+fZgpwS+xIJbpwq8i+nlCAXk?= =?utf-8?q?VpYubJsybqQMzT5olP6/dyL43hZwGHoNhK/Oi/7bPzRTEYmyWrMrJCe9MQp3n2+NZ?= =?utf-8?q?Up9QNAyL9PKRomUuZP5b6VI+y+kWKQM8PJAJ3llWAYdH2bXU2VoQ00WGn3mfDojjl?= =?utf-8?q?5JQ6TvlgO88abZpEhiG8+koRPfwbqI++OecJK7/W3IrGRtoPNy2YIF4/vhHAyKLCQ?= =?utf-8?q?nY8BMyBaQZtX3EdMNquXVfYyizvMGR4qpzMNFgjiGdGFnqmqtjq62Mgx7inU1sLvc?= =?utf-8?q?MeOd+ZWQo8QVdUnQYW2hSgyfM4PytN8qV+5DJSmCULpI0d/bjCZsPbqq8fSjE1lTo?= =?utf-8?q?FFo/xVurPpGzKhdnf0cnRrso7wRpfCuJAN1xy4KQWL2WRWBn+qfHe8=3D?= X-Forefront-Antispam-Report: CIP:50.222.100.11;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:uww-mrp-01.datadirectnet.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230040)(1800799024)(36860700013)(82310400026)(376014);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: UwlQZEI5uOvv2I+BVVBp+dhBe5Ag3A8MyBMEiqKUMltfkJvcrVOStp71lRtR5rA1Cwxb0cv5t0H14QRfn5XXHlldCt5QZVMaJtv7Ml5MKTlhHwM0aSI6IllOAjmyeM0I2B+Wtwz4ngzNAGka+/Age1zBxGsd49akZcCJ3yuZ1FiW5BsI2gIkKjUQ8D6C9aYSt8uNjQMb0nCqLkk8+RySj8TIe5OHHPqgaDJ8hp94uSoPcf7uqyowQbI550i1zUPgeZcP8C6ZVqmTUv4Uar47kX/yh4Nr7+RTDBjnGeyxMI0sVMM3HORTFccP3T655mXmx5vuNd7GH9FbQY1FtsgeLoRDAfJXS97Y7lV2oCZWy+QfKHzKt2oTi9s+KVYkMyxFxx16egEwHSO36yw0gYz9jIKcS9Kp/VCHsDqJJTvde2nG2FQZ3bshmp2VzTlU0MBd/5mIUUoJfKf3cyo3vjtum9wSUpTdvgyuD8vRbg0mmGtpoxSDrcZalw+VmHvDvxZEPBdcgBedc5RECyQkFyacTMjQFvuntgYU0TJv5tmK5qAYkFJMg2ZoJ2ammvpuUvAPhWxmJzPYmOnPZM3laymsnWj4GUovZiOTouqk8mQWISG9C92t5OzoNLmts5ewqo9mx98fqRWHSJAftc9MfZvNqQ== X-OriginatorOrg: ddn.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Jan 2025 16:55:35.9675 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 2c1f3217-2cb0-4def-d159-08dd3bcec200 X-MS-Exchange-CrossTenant-Id: 753b6e26-6fd3-43e6-8248-3f1735d59bb4 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=753b6e26-6fd3-43e6-8248-3f1735d59bb4;Ip=[50.222.100.11];Helo=[uww-mrp-01.datadirectnet.com] X-MS-Exchange-CrossTenant-AuthSource: SJ1PEPF000026C6.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA1PR19MB5199 X-BESS-ID: 1737651338-102233-13470-14868-1 X-BESS-VER: 2019.1_20250122.1822 X-BESS-Apparent-Source-IP: 104.47.55.172 X-BESS-Parts: H4sIAAAAAAACA4uuVkqtKFGyUioBkjpK+cVKVuZGZkBGBlAsxTLJzCTV3Ng4Od k8JTnJ0sw0ydzI3NAkxdzUKNHENFWpNhYAesBOfkAAAAA= X-BESS-Outbound-Spam-Score: 0.00 X-BESS-Outbound-Spam-Report: Code version 3.2, rules version 3.2.2.262005 [from cloudscan9-95.us-east-2a.ess.aws.cudaops.com] Rule breakdown below pts rule name description ---- ---------------------- -------------------------------- 0.00 BSF_BESS_OUTBOUND META: BESS Outbound X-BESS-Outbound-Spam-Status: SCORE=0.00 using account:ESS124931 scores of KILL_LEVEL=7.0 tests=BSF_BESS_OUTBOUND X-BESS-BRTS-Status: 1 This include was accidentally added and is not needed. Fixes: fuse: {io-uring} Make hash-list req unique finding functions non-static Spotted in review by: Luis Henriques Signed-off-by: Bernd Schubert --- fs/fuse/fuse_dev_i.h | 1 - 1 file changed, 1 deletion(-) diff --git a/fs/fuse/fuse_dev_i.h b/fs/fuse/fuse_dev_i.h index 429661ae065464c62a093cf719c5ece38686bbbe..3b2bfe1248d3573abe3b144a6d4bf6a502f56a40 100644 --- a/fs/fuse/fuse_dev_i.h +++ b/fs/fuse/fuse_dev_i.h @@ -7,7 +7,6 @@ #define _FS_FUSE_DEV_I_H #include -#include /* Ordinary requests have even IDs, while interrupts IDs are odd */ #define FUSE_INT_REQ_BIT (1ULL << 0) From patchwork Thu Jan 23 16:55:34 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bernd Schubert X-Patchwork-Id: 13948462 Received: from outbound-ip191a.ess.barracuda.com (outbound-ip191a.ess.barracuda.com [209.222.82.58]) (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 DCC3C14659D for ; Thu, 23 Jan 2025 16:55:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=209.222.82.58 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737651352; cv=fail; b=cL/J3raeOabSMdCnL0p0lnf5fuCJ6mxsiKqVSXFWWoKu/iuw/SwVbGjPrRlUl0Oky5jHxtKEQWLDUO4xT++nZkYUlOg53qq0oqCRftGjyvhsGjZ/m459WkxcXMgkCG2JR8+uDyrugLRGNZsYhgMP2gBpwKm4BkAl3vcszZ8wds0= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737651352; c=relaxed/simple; bh=7uUznK/YfZU6oNaNqW7LoZdrn6Fsh6HO9Ng4Vz0MDEk=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=qRkDJdgaqHq7LlX4Ahdz1Bv5ayu5a3y54C0Ej+AmcQA7l1diIdlfQ0DFB+mEEuw8dubNdIt9OuMynVS+pSEqSLerpABQ6VbhvLmPOMr5B92S9jT1Qn55OOO2sY1q2t272RMO1hF5M2iirzKeMd0yBtleaZiAAvI718WoVGS+TyE= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=ddn.com; spf=pass smtp.mailfrom=ddn.com; dkim=pass (1024-bit key) header.d=ddn.com header.i=@ddn.com header.b=pArEmL9x; arc=fail smtp.client-ip=209.222.82.58 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=ddn.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ddn.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ddn.com header.i=@ddn.com header.b="pArEmL9x" Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1nam02lp2046.outbound.protection.outlook.com [104.47.57.46]) by mx-outbound45-180.us-east-2c.ess.aws.cudaops.com (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Thu, 23 Jan 2025 16:55:39 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=SeFCDfGIevmRxIe9tSTQgouKXr6vZAE7f4DpiiGR6zGJLkQt+hoX0Y46laYu+H4JRb11dO3tJ2RhmbsRP9Ji9FtYOZCnOs5semlJ6UBuULZXvKMcCYQ6iRXiXTd/9QId4on2koPqZEQ/yycVbdJk40Aj1A4LvhyXBI/U+TjSYfZujrZVSTNu/nuobvWiA+xdK562lJbLMFPcAJZ9TGMRMPzATRR0zNoPujZZhcelfjH9R8UNjlAHYy5zA5JQ4R41Nvff6iEmwLbm8BP9oE9QnSG4wDN3EoSBlNb5Pp7S774cIyF1b3gf8x6GvuMLQlsGaFBUPmrQ8lHyTL15dhQLlw== 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=qbdn+bx/mGhyu063yjZNwQmWoVeh1ncOW23ua6R1b2U=; b=sUAc1LKA3eEB8phUG1sZ/+4s4gmB4FVVa6M08T6muxIOariwihaQJ16S6e/ybWXXTkn3KiVmuDyEut70tdrQEYUNAZjNVK6s5xkX4UZ4tRQ0RB1GXUztJPxTYSVVKu7I7DlYanY/IfIwcBVUgjYLL8N5U3HeUi9rZVyZ+q78PH3I5EQrjWOq5/RDIgcVdeq2uyOCQLSqRhLVvw/c2YucCibbgMFLSfmX0Fjp02avR6908YkBSjuOBybAeNQ5ca4kP+/H1IvZpemcpG1G8mODZK5MP/zPSkToYMh408MEi4gCUcWv32WIyZInGACgofcZJTW3G6QeAomsjmD1nFVtbw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 50.222.100.11) smtp.rcpttodomain=ddn.com smtp.mailfrom=ddn.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=ddn.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ddn.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=qbdn+bx/mGhyu063yjZNwQmWoVeh1ncOW23ua6R1b2U=; b=pArEmL9xQ6X8jpwBjD7WNUp3wiVFq7UDc6lSZBVO3HzEtPgX5mRsTxwogYx1IX5NUFpUf1ek0YBJiMsNoamopmvS05nQOddDp6HFGoGqQ/hmvFHtisFUKEg7Q2PD7KAWeTMV1dbLRDY08iD9x+Ou3UXxu0qy1ZEpnoVWzSwLrbs= Received: from SJ0PR13CA0195.namprd13.prod.outlook.com (2603:10b6:a03:2c3::20) by MW5PR19MB5652.namprd19.prod.outlook.com (2603:10b6:303:1a3::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8356.21; Thu, 23 Jan 2025 16:55:37 +0000 Received: from SJ1PEPF000026C7.namprd04.prod.outlook.com (2603:10b6:a03:2c3:cafe::73) by SJ0PR13CA0195.outlook.office365.com (2603:10b6:a03:2c3::20) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.8377.18 via Frontend Transport; Thu, 23 Jan 2025 16:55:37 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 50.222.100.11) smtp.mailfrom=ddn.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=ddn.com; Received-SPF: Pass (protection.outlook.com: domain of ddn.com designates 50.222.100.11 as permitted sender) receiver=protection.outlook.com; client-ip=50.222.100.11; helo=uww-mrp-01.datadirectnet.com; pr=C Received: from uww-mrp-01.datadirectnet.com (50.222.100.11) by SJ1PEPF000026C7.mail.protection.outlook.com (10.167.244.104) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.8377.8 via Frontend Transport; Thu, 23 Jan 2025 16:55:36 +0000 Received: from localhost (unknown [10.68.0.8]) by uww-mrp-01.datadirectnet.com (Postfix) with ESMTP id 5448558; Thu, 23 Jan 2025 16:55:36 +0000 (UTC) From: Bernd Schubert Date: Thu, 23 Jan 2025 17:55:34 +0100 Subject: [PATCH 5/5] fuse: Fix the struct fuse_args->in_args array size Precedence: bulk X-Mailing-List: linux-fsdevel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20250123-fuse-uring-for-6-14-incremental-to-v10-v1-5-8aee9f27c066@ddn.com> References: <20250123-fuse-uring-for-6-14-incremental-to-v10-v1-0-8aee9f27c066@ddn.com> In-Reply-To: <20250123-fuse-uring-for-6-14-incremental-to-v10-v1-0-8aee9f27c066@ddn.com> To: Miklos Szeredi Cc: Dan Carpenter , Luis Henriques , Joanne Koong , linux-fsdevel@vger.kernel.org, Bernd Schubert X-Mailer: b4 0.15-dev-2a633 X-Developer-Signature: v=1; a=ed25519-sha256; t=1737651330; l=932; i=bschubert@ddn.com; s=20240529; h=from:subject:message-id; bh=7uUznK/YfZU6oNaNqW7LoZdrn6Fsh6HO9Ng4Vz0MDEk=; b=6oUez94nIIeCZtpmZ/wwOVfbdjqNCZC2SAF20yF+vz3bt7yc0RRun/D3S0ivnfoROdmKmZPl2 PXmA37FaZCbD11t2aKUrRA5YEr8jy5RY9KHzubMd0UG/akGctZPX9qt X-Developer-Key: i=bschubert@ddn.com; a=ed25519; pk=EZVU4bq64+flgoWFCVQoj0URAs3Urjno+1fIq9ZJx8Y= X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ1PEPF000026C7:EE_|MW5PR19MB5652:EE_ X-MS-Office365-Filtering-Correlation-Id: 25431981-150f-4454-4cb3-08dd3bcec29a X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|36860700013|82310400026|1800799024|376014; X-Microsoft-Antispam-Message-Info: =?utf-8?q?J5Ac8NMxNeXyBeFzYqV9xTK+KhjJ93X?= =?utf-8?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zGu0IMDeF3w4t4/NEQNArW044LL5yj9FfjnqJwLnpKkHaHzIVYg8396YM4GwDc9M?= =?utf-8?q?akEkNmqGG5vT1H+/1vnzXPA3alPqLrUxaZpTwrKzMjmizm2XLzO4NZf0Px896LAe5?= =?utf-8?q?kX4MVS4lUr4xsKHsQnxJWmyLqVo0LAcTJOEdPSB1agTZKLa0+JlcMihyPGtR1gPx9?= =?utf-8?q?XtqtRPXbtqtBP/aIVTANR+7xfLHjjvwK3BYUI+RTuxLwRm39lGkZ67YwsGpe0l4Ut?= =?utf-8?q?5Cu+6rZdEaPZzlBO2Q39sJZ6HIbkKRWZK5SGUy2gXW8wR569ztq0xTji81tcElnWi?= =?utf-8?q?qiVLhxX2Kp9x1PH8Td4ZqU+7+QnzlaYzfOfgp7cQ8NZ0F9zaW/GAI7aXeNlF8ayx+?= =?utf-8?q?rlGuK8cFugw7O/j/xwijabq7+s0mDmdz8//Quybqt4HUgXUSVyvBnRHo+8o4cWowg?= =?utf-8?q?TSkt6DxIzlY5q70lqcc7mmsSZN9htYygRnUvUyKU2WbCVhDuGi29QA+oFGYAXhIe6?= =?utf-8?q?6R8+blIsnUPm88ctCqt3vJuRgCbnTTNow=3D=3D?= X-Forefront-Antispam-Report: CIP:50.222.100.11;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:uww-mrp-01.datadirectnet.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230040)(36860700013)(82310400026)(1800799024)(376014);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: G947iCr2E1Xi9gCUu2cqBh8y/NSBOf5uXnH9gTU7onK2+ExVMTRQIXhif6jkP90jRa3gcRSpqdqYhzrUsRC4xdSScCMlrzpaGomCBNqOQwClEWp7oG6i8bpzwjh1JDAhY3Az05u08gyXZCB/Kx0RYAFccUKz82qCXAzfOgiHC/sDPsHGLO6vKnD+1j0Om5wiq2LfcZ+YEj094fifIZv5NW4F7u2Q2TomyqV7qYiuf5acIy/T1YYL+A8yJJV/MT5RrB8r261x0+mntBLu+09EagvGu7k6II2Qsu3PCqX6Bn7S4nJ4XXho1HGLxU8VFKozFRREXLF4oYOhnEG4oka9WbRuzYbZB9a6UrXcw3BtZZFNeekapTnB3v9UN7jnID/7FXAxUWuIq+UDV/BjS/ESH4dg7MoJIbiW/2nCtOO53yYvxuyeR6I15r5SuoZPWD3Fb5P4q1CF2PcNe5OGT0dsF7/vNmWvmg2mQTCEbDhd/ykfaXPGIS+qOhYz3EedwKH2BGsgWe66rUukYLThsXVnVtVnK1jFd+PzJUrBmiuaNLvglGkNGzHqBGNsaQ02gNM3VwvPUUgtRhNLExLBH/MZdjMFzZnypJIxOeHkMVAmClOyhw5KwRhwQvLCp31B/KG9YxZis2Nv2nJ5o1LKULS2ng== X-OriginatorOrg: ddn.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Jan 2025 16:55:36.9734 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 25431981-150f-4454-4cb3-08dd3bcec29a X-MS-Exchange-CrossTenant-Id: 753b6e26-6fd3-43e6-8248-3f1735d59bb4 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=753b6e26-6fd3-43e6-8248-3f1735d59bb4;Ip=[50.222.100.11];Helo=[uww-mrp-01.datadirectnet.com] X-MS-Exchange-CrossTenant-AuthSource: SJ1PEPF000026C7.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW5PR19MB5652 X-BESS-ID: 1737651339-111700-13407-10115-1 X-BESS-VER: 2019.1_20250122.1822 X-BESS-Apparent-Source-IP: 104.47.57.46 X-BESS-Parts: H4sIAAAAAAACA4uuVkqtKFGyUioBkjpK+cVKVpYGZkBGBlDM0tTCNCXN0igx1S TZ3MzI0tDc0DzVONXcwCDN0MjAMkmpNhYArGDOZUAAAAA= X-BESS-Outbound-Spam-Score: 0.00 X-BESS-Outbound-Spam-Report: Code version 3.2, rules version 3.2.2.262004 [from cloudscan11-173.us-east-2a.ess.aws.cudaops.com] Rule breakdown below pts rule name description ---- ---------------------- -------------------------------- 0.00 BSF_BESS_OUTBOUND META: BESS Outbound X-BESS-Outbound-Spam-Status: SCORE=0.00 using account:ESS124931 scores of KILL_LEVEL=7.0 tests=BSF_BESS_OUTBOUND X-BESS-BRTS-Status: 1 The patch that made in_args[0] to be alway the header, missed that the array size for in_args is too small for some operations. Fixes: fuse: make args->in_args[0] to be always the header Spotted by: smatch / Dan Carpenter Signed-off-by: Bernd Schubert --- fs/fuse/fuse_i.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/fuse/fuse_i.h b/fs/fuse/fuse_i.h index 886c3af2195892cb2ca0a171cd7b930b6e92484c..fee96fe7887b30cd57b8a6bbda11447a228cf446 100644 --- a/fs/fuse/fuse_i.h +++ b/fs/fuse/fuse_i.h @@ -310,7 +310,7 @@ struct fuse_args { bool is_ext:1; bool is_pinned:1; bool invalidate_vmap:1; - struct fuse_in_arg in_args[3]; + struct fuse_in_arg in_args[4]; struct fuse_arg out_args[2]; void (*end)(struct fuse_mount *fm, struct fuse_args *args, int error); /* Used for kvec iter backed by vmalloc address */