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?q?ETa3Hqz9NRQI0BJVjHjO1pY0Bz0UMF1XEi7erKFYB2VwW43rA6FED5gXWKekXGH3C?= =?utf-8?q?eoIeMNwlR9pVtoDOekoIWVAk/s35uTZA5FwKpTWr4yZiNiQx0ahwfwBOd9HB5JAMG?= =?utf-8?q?9zIZ8Odc9vQZNKONAJVzReIp1gDBD6EhwJ6KZnCgJojcJawOh8U9OtdfH9P+PL+Er?= =?utf-8?q?bMpCRj5FsYe2JkJQWoFctM94dpLcuS3tbM6nyzc09OdajaLWfHVr4YfA8wZ/suGGW?= =?utf-8?q?NUJ80bReGCToApPIOX0W7cQhQNbBLFX3tErn8BqAtMfR6LYjeN+qh8afr+sZiTKkD?= =?utf-8?q?lnnSd0oSS+8S/Gc2NncaNK/wEWDQsk72p7l9vbhBaHwiu0fAsfn5aN+dvSS+6wFJt?= =?utf-8?q?Wza+5MTF2MqTk5jWVOi99eyy8Kv+anWtxFnkCLnxpoEruweP+9jVbUei40ZqZba8v?= =?utf-8?q?s3UtYOT98zwxSToPFDsk4mnIC5vwqj4g7+Z8hAPST+pBkSzivTMAP8vlUHfBI00Cn?= =?utf-8?q?tT9iMo7PST0omj4loG3tqtc1vbG7Q0pXlEjbiK8Um+MSxrrE/Z7pBSI6v0sXA2j2o?= =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Y: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 */