From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=40.93.195.20 ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1795974239; b=S+dpIq3C52kl+nmhw1tZOWPnLIB036Mrv2te2eJG8LdKo5tQHu4nekQXoi6J9GoDnJQK rWwHe3dHRtZGD0O8++3Mopg//MGejnsuGhsdmip7xfav8tGemJ2vnS5lCO50RNehnJ0EF MThAJeepPIPskIFqJFdNUUf+HAlf8jJ3LU1w6EtC7I92V72Ku9sKXXDQ5K/mFuWw8XGfg 6V8/EejILPtoooLTZ/FnILyDTbMEb97ReAdcjiy4K9UmHmRtdf0RqQPLP/GXTtDqF9Vne wf+AMlhEgUeF8Wg1lGypRRQKFUqlFFuK/41xZgYEgOrPtL6tJNVffx7QZX+Wi4e5laQ== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795974239; h=DMARC-Filter:DKIM-Signature:Received:Received: X-MS-Exchange-Authentication-Results:Received-SPF:Received:Received: Received:Received:From:To:CC:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:MIME-Version:Content-Type:X-NV-OnPremToCloud: X-EOPAttributedMessage:X-MS-PublicTrafficType: X-MS-TrafficTypeDiagnostic:X-MS-Office365-Filtering-Correlation-Id: X-MS-Exchange-SenderADCheck:X-MS-Exchange-AntiSpam-Relay: X-Microsoft-Antispam:X-Microsoft-Antispam-Message-Info: X-Forefront-Antispam-Report: X-MS-Exchange-AntiSpam-MessageData-ChunkCount: X-MS-Exchange-AntiSpam-MessageData-0:X-OriginatorOrg: X-MS-Exchange-CrossTenant-OriginalArrivalTime: X-MS-Exchange-CrossTenant-Network-Message-Id: X-MS-Exchange-CrossTenant-Id: X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: X-MS-Exchange-CrossTenant-AuthSource:X-MS-Exchange-CrossTenant-AuthAs: X-MS-Exchange-CrossTenant-FromEntityHeader: X-MS-Exchange-Transport-CrossTenantHeadersStamped; bh=SK47AqCpkyurATcfRCWWAM4QjpW0jXibZC7YoHgRXHQ=; b=TBMQFzJ4qtNXhq/G2RrhPbstFegKlYJHJooGabLJtKR5j49j5lST+5S1ZjAyjD+PvzCm qm/VJ3hK/0JJ7TIQP872qL2gjQwWZhm7EtV7x1daeYriRV38aboR4KU9UBv/OY/9GSqVE ZAUGaQqcF4YEbfJrgOTOLRkqS1u/4ZNxX4iICWg0pHh/AWJI5z4nUz7QUFtxN8nh7z7b+ /GuvLQUlDnvjnDLs4gzCmta/SLqJjtIm+X0yUB9jCTjqZ/EnDlUNSfQsukvLvF+pRIF3U Ev0uUFJmMeC0UqiHCP5C+eqxFgmaCpdriOB+s3FLC5Hz/vEUy1zgSzt2FBA2KDvw5gg== ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass header.from=nvidia.com; spf=fail smtp.mailfrom=nvidia.com; dkim=pass header.d=Nvidia.com header.i=@Nvidia.com header.a=rsa-sha256 header.s=selector2 header.b=crsbak+a; arc=pass header.oldest-pass=0 smtp.remote-ip=40.93.195.20 Received: from SN4PR2101CU001.outbound.protection.outlook.com (mail-southcentralusazon11012020.outbound.protection.outlook.com [40.93.195.20]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (secp384r1) server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CD3B4606A323; Sun, 29 Nov 2026 17:43:58 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org CD3B4606A323 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=nvidia.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=nvidia.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=Nvidia.com header.i=@Nvidia.com header.a=rsa-sha256 header.s=selector2 header.b=crsbak+a ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=ROol3FVNTnz1QLwZ4lUetrkXqxm3WJOSIz4rxTULhhwq2Xb5LFjQz0hnPhrBEw15xQyIdXc6+6razpgcQKuN9YvTh5b297uo1RzTGKomdnM5xeQ05kuoNuqgb1Qz1dIBLHC3WjV1vfIYlWPIsl9ZX3j51zx7NIHeAM2GdqNj3aZ+V0aATL9U/o7JHS/b00Y1X9N/xYUzWmRKDRfH8bUZC7tRxWHGwbZFph/E2aF4gSxq/sjyavTu+stpolZ4VfFeOWexjhjKVBbXfSO7n2t8XVE53YVUVQdCYH/rNRaXVlDuXek3lr0UBTTm/le7XhWc49mek8a8yXAtrRyMXo+3CQ== 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=SK47AqCpkyurATcfRCWWAM4QjpW0jXibZC7YoHgRXHQ=; b=TeDhqc6Yujpjn7Xji7zz8zTIylV0hV8+VnGvQWllet4NByU0oo6rs106q+DIXUoxVerd80sVnO4lpYqGtu0eBk9PQKscBzNvrUFYs53AykbV95k9FNtrwL9OGXnsjchu4E5Ozz/QKN42wHMiUw/rk3dNO9+tPPNUpccK4XiqE0mRW9FfJxQRL3Lvr0Lf+WTSXD/I+9HMk9vmDb7Pw8Nc7QmtY7my4uzQpOSJQqD0es+NpQ6Xs+/TKfNVhpL+9Bh1VNpGvoV8+adwzS3jm2vO6IDkdJNcbktWtJ+gas/j1Hg4fJCDZ2ir9UZampcIEkN7RfqmBmZdRLVU0StvXrrk/Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.160) smtp.rcpttodomain=ziepe.ca smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=SK47AqCpkyurATcfRCWWAM4QjpW0jXibZC7YoHgRXHQ=; b=crsbak+aXfNh4sWLxpLMjP49XcgmpIn7d9fht03jOVaHD46itbezheUW7H9Wn9UaPzdGUPJzn5JAHrst+chPksBdi1e62Ep+uHBL8fJr057KLY7pNq4mnqtE78IFJc1iqiodq/G6XPpRjPbNTui+6OeU83P7KgVTPIzoDyPunnf7zwXv3ko6NLoLWSaOI8tfQsBmU+cbWWlV+dPBJIjy/WeXrPrbDK/JkJAGCRqRCCJqKfo/8OI2nutY9rtct8Mh+UEXp4h8gtUQvicrt9kc4jVfn3j4n4oX4z2bhvmRU8L6BzQWWj7PEIitFoI6F1VMP6mgWEHjCUFZVMw91aKTcw== Received: from CH2PR02CA0024.namprd02.prod.outlook.com (2603:10b6:610:4e::34) by SA1PR12MB6750.namprd12.prod.outlook.com (2603:10b6:806:257::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.662.11; Sun, 29 Nov 2026 17:43:55 +0000 Received: from DS8PEPF000000E4.namprd05.prod.outlook.com (2603:10b6:610:4e:cafe::66) by CH2PR02CA0024.outlook.office365.com (2603:10b6:610:4e::34) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.21.662.11 via Frontend Transport; Sun, 29 Nov 2026 17:43:54 +0000 X-MS-Exchange-Authentication-Results: mx.microsoft.com 1; spf=pass (sender IP is 216.228.117.160) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.117.160 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.160; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.160) by DS8PEPF000000E4.mail.protection.outlook.com (10.167.23.202) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.688.5 via Frontend Transport; Sun, 29 Nov 2026 17:43:54 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by mail.nvidia.com (10.129.200.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.57; Sun, 29 Nov 2026 09:43:42 -0800 Received: from rnnvmail203.nvidia.com (10.129.68.9) by rnnvmail201.nvidia.com (10.129.68.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.57; Sun, 29 Nov 2026 09:43:41 -0800 Received: from vdi.nvidia.com (10.127.8.12) by mail.nvidia.com (10.129.68.9) with Microsoft SMTP Server id 15.2.2562.57 via Frontend Transport; Sun, 29 Nov 2026 09:43:34 -0800 From: Yishai Hadas To: , CC: , , , , , , , , , , , , , Subject: [PATCH V3 rdma-next 18/21] RDMA/mlx5: Clamp log_max_cq_sz shift in CQ size checks Date: Sun, 29 Nov 2026 19:41:43 +0200 Message-ID: <20261129174146.34295-19-yishaih@nvidia.com> X-Mailer: git-send-email 2.18.1 In-Reply-To: <20261129174146.34295-1-yishaih@nvidia.com> References: <20261129174146.34295-1-yishaih@nvidia.com> X-Mailing-List: netdev@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain X-NV-OnPremToCloud: ExternallySecured X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS8PEPF000000E4:EE_|SA1PR12MB6750:EE_ X-MS-Office365-Filtering-Correlation-Id: 44bad0e2-3e37-4afa-7755-08df4e4056a5 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|23010399003|36860700016|376014|1800799024|82310400026|10067099003|56012099006|11063799006|261022105027099003|261022075727099003|261021123027099003|261021135927099003|261021121427099003|261026121527099003|261026140227099003|261102123227099003|261028144727099003|261009223027099003|22082099003|18002099003; X-Microsoft-Antispam-Message-Info: HXeorbRU3bbh1jJ2QnFyekftqS6TfqFciqdvqvlR9WfX6+O9A5MbRZqcTpMDdtqP4DLcBDLkuEP5o8W6bS2Pf1JkAbcC1Q7Erwhvlk3epM3BBqMTystWv3tJ7y+OUVji21jE3+/VWbcETYMYdkCGfhT7CrZaDjvu5QVcRGeXU+03cAW7HAavJQTC3ZrPr7vEEF4j1QhKD+uqNT4PUYTseF93QOI7opp18p54mHlBGyP0WBukCk0/y7Kb45C6k3HtaeOr8jHV3aTX0T1bDI0J8RF3dFpXJPRgVOWKUyZs9XKX0w0Dog5YerzlEEHme6qyECax/ALMPahqdv+noYFwrGQW2DDYV2FXw5NzdTG812QP2qPEK8ZjySJK8xeoKb0pHYFvRfJtUiKVXhtuh9hFbR16WcLuY/gSnw0zGQqUqKsjerBB8vfgjMPC1vFrgBj9dl8ahUxDX7s8hOd+XS4Z3izpjHCDN8/44bbE/kP15DP8Bw0xpYZGUSSbANSPYMvqm9CnYhnY007P6XZy3gl7v+q0XmuqNyq1wUcKa4rmzJs06FLl5Boqi/gRqbGXhdjxZOt/H9J64tHHaQu/aQ2FsfhPSrXFK1K8CO1qcs5FpJzVT01j0HzWAhcaVh1Hf3S7iO550VI4JPmr5Y6HxjxR+3Mg9ZPz0Bd2IQ+d3tr82Y4rGfdE1Gk6kdujRfuJm9dUfangobf8agvrfE75EZdjwg== X-Forefront-Antispam-Report: CIP:216.228.117.160;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:mail.nvidia.com;PTR:dc6edge1.nvidia.com;CAT:NONE;SFS:(13230040)(23010399003)(36860700016)(376014)(1800799024)(82310400026)(10067099003)(56012099006)(11063799006)(261022105027099003)(261022075727099003)(261021123027099003)(261021135927099003)(261021121427099003)(261026121527099003)(261026140227099003)(261102123227099003)(261028144727099003)(261009223027099003)(22082099003)(18002099003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: jLNuKd9DJtOpLtaS4xBeU6zWgChRPaPRtiaGqtWzSAwXEYLqdShqKvj1MeozW2uwKU7MgJJMnrTdemJq4L76YM9LGxf8Xo/xaWJgFbOyM/tMgpM+u8K17D/njEF9dc42UKGqkFDBSAze0KEoIJnjAWgKQc7ab3tzOj09eNaOQBSoesnuQXlvLj2V9b8rbL+x0qUxd+a8oDqFd4/M2zSrMfqx+i+FERIu99I32Mv43RvzSh4wT2NZzQXCvM06dYLyLq3SFqDGH3xNxJAK/9pgT94YsjvuejvARNwkQF9XRRlzzNq+6DvxOf0dHKkkSHdSKHZRWY8mSyGuAQBwsxswKeEj3Y6JOimtvwzbpcXizx2u+GsWUrwBi/0WNTz3Q1ZtfdhC1GpEpy0ju50AsyaVGFIIpzt4kvEg2VsZtketTybehxMdqs8KDL5RySz/QayA X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Nov 2026 17:43:54.6980 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 44bad0e2-3e37-4afa-7755-08df4e4056a5 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a;Ip=[216.228.117.160];Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: DS8PEPF000000E4.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA1PR12MB6750 The CQ create and resize paths check the requested size against 1 << log_max_cq_sz. The cap is 8 bits wide, so an untrusted NIC can report 31 or more, which makes the shift undefined. A large limit also lets the rounded up CQ size exceed INT_MAX, and it is then truncated when passed on as an int. Such a size also overflows the CQ buffer size, entries * cqe_size, which create_cq_user() and alloc_cq_frag_buf() compute as an int. A user CQ buffer smaller than the CQ the NIC is given then passes the umem size check, and a kernel CQ gets a zero-sized buffer that init_cq_frag_buf() writes to. Take the limit from MLX5_CAP_GEN_LOGSZ_U64(), round up in 64 bits, and reject sizes above INT_MAX. Compute the buffer size with check_mul_overflow(), as resize_user() already does. Signed-off-by: Yishai Hadas --- drivers/infiniband/hw/mlx5/cq.c | 55 +++++++++++++++++++++++++-------- 1 file changed, 42 insertions(+), 13 deletions(-) diff --git a/drivers/infiniband/hw/mlx5/cq.c b/drivers/infiniband/hw/mlx5/cq.c index ae350bb0d120..0d29a6fde4d6 100644 --- a/drivers/infiniband/hw/mlx5/cq.c +++ b/drivers/infiniband/hw/mlx5/cq.c @@ -882,10 +882,14 @@ static int alloc_cq_frag_buf(struct mlx5_core_dev *mdev, struct mlx5_frag_buf *frag_buf = &buf->frag_buf; u8 log_wq_stride = 6 + (cqe_size == 128 ? 1 : 0); u8 log_wq_sz = ilog2(cqe_size); + int size; int err; + if (check_mul_overflow(nent, cqe_size, &size)) + return -EINVAL; + err = mlx5_frag_buf_alloc_node(mdev, - nent * cqe_size, + size, frag_buf, mdev->priv.numa_node); if (err) @@ -928,6 +932,7 @@ static int create_cq_user(struct mlx5_ib_dev *dev, struct ib_udata *udata, { struct mlx5_ib_create_cq ucmd; unsigned long page_size; + size_t buf_size; unsigned int page_offset_quantized; __be64 *pas; int ncont; @@ -951,9 +956,13 @@ static int create_cq_user(struct mlx5_ib_dev *dev, struct ib_udata *udata, *cqe_size = ucmd.cqe_size; + if (check_mul_overflow((size_t)entries, (size_t)ucmd.cqe_size, + &buf_size)) + return -EINVAL; + cq->buf.umem = ib_umem_get_cq_buf_or_va(&dev->ib_dev, attrs, ucmd.buf_addr, - entries * ucmd.cqe_size, + buf_size, IB_ACCESS_LOCAL_WRITE); if (IS_ERR(cq->buf.umem)) return PTR_ERR(cq->buf.umem); @@ -1152,6 +1161,15 @@ static void notify_soft_wc_handler(struct work_struct *work) cq->ibcq.comp_handler(&cq->ibcq, cq->ibcq.cq_context); } +/* + * Next power of 2 above entries. It can be 2^32, which doesn't fit the + * unsigned long of roundup_pow_of_two() on 32-bit archs. + */ +static u64 cq_roundup_entries(u64 entries) +{ + return 1ULL << fls64(entries); +} + int mlx5_ib_create_user_cq(struct ib_cq *ibcq, const struct ib_cq_init_attr *attr, struct uverbs_attr_bundle *attrs) @@ -1159,7 +1177,7 @@ int mlx5_ib_create_user_cq(struct ib_cq *ibcq, struct ib_udata *udata = &attrs->driver_udata; struct ib_device *ibdev = ibcq->device; struct mlx5_ib_create_cq_resp uresp = {}; - int entries = attr->cqe; + u64 entries = attr->cqe; int vector = attr->comp_vector; struct mlx5_ib_dev *dev = to_dev(ibdev); struct mlx5_ib_cq *cq = to_mcq(ibcq); @@ -1171,17 +1189,20 @@ int mlx5_ib_create_user_cq(struct ib_cq *ibcq, int cqe_size; int eqn; int err; + u64 max_cq_entries; cq->mdev = dev->mdev; + max_cq_entries = MLX5_CAP_GEN_LOGSZ_U64(cq_to_mdev(cq), log_max_cq_sz); - if (attr->cqe > (1 << MLX5_CAP_GEN(cq_to_mdev(cq), log_max_cq_sz))) + if (attr->cqe > max_cq_entries) return -EINVAL; if (check_cq_create_flags(attr->flags)) return -EOPNOTSUPP; - entries = roundup_pow_of_two(entries + 1); - if (entries > (1 << MLX5_CAP_GEN(cq_to_mdev(cq), log_max_cq_sz))) + entries = cq_roundup_entries(entries); + /* cq->ibcq.cqe and create_cq_user() take an int */ + if (entries > max_cq_entries || entries > INT_MAX) return -EINVAL; cq->ibcq.cqe = entries - 1; @@ -1250,7 +1271,7 @@ int mlx5_ib_create_cq(struct ib_cq *ibcq, const struct ib_cq_init_attr *attr, struct uverbs_attr_bundle *attrs) { struct ib_device *ibdev = ibcq->device; - int entries = attr->cqe; + u64 entries = attr->cqe; int vector = attr->comp_vector; struct mlx5_ib_dev *dev = to_dev(ibdev); struct mlx5_ib_cq *cq = to_mcq(ibcq); @@ -1262,14 +1283,17 @@ int mlx5_ib_create_cq(struct ib_cq *ibcq, const struct ib_cq_init_attr *attr, int cqe_size; int eqn; int err; + u64 max_cq_entries; cq->mdev = dev->mdev; + max_cq_entries = MLX5_CAP_GEN_LOGSZ_U64(cq_to_mdev(cq), log_max_cq_sz); - if (attr->cqe > (1 << MLX5_CAP_GEN(cq_to_mdev(cq), log_max_cq_sz))) + if (attr->cqe > max_cq_entries) return -EINVAL; - entries = roundup_pow_of_two(entries + 1); - if (entries > (1 << MLX5_CAP_GEN(cq_to_mdev(cq), log_max_cq_sz))) + entries = cq_roundup_entries(entries); + /* cq->ibcq.cqe and create_cq_kernel() take an int */ + if (entries > max_cq_entries || entries > INT_MAX) return -EINVAL; cq->ibcq.cqe = entries - 1; @@ -1489,18 +1513,23 @@ int mlx5_ib_resize_cq(struct ib_cq *ibcq, unsigned int entries, unsigned long page_size; int inlen; int cqe_size; + u64 entries64 = entries; + u64 max_cq_entries = MLX5_CAP_GEN_LOGSZ_U64(cq_to_mdev(cq), + log_max_cq_sz); if (!MLX5_CAP_GEN(cq_to_mdev(cq), cq_resize)) { pr_info("Firmware does not support resize CQ\n"); return -ENOSYS; } - if (entries > (1 << MLX5_CAP_GEN(cq_to_mdev(cq), log_max_cq_sz))) + if (entries64 > max_cq_entries) return -EINVAL; - entries = roundup_pow_of_two(entries + 1); - if (entries > (1 << MLX5_CAP_GEN(cq_to_mdev(cq), log_max_cq_sz)) + 1) + entries64 = cq_roundup_entries(entries64); + /* resize_user() and resize_kernel() take an int */ + if (entries64 > max_cq_entries + 1 || entries64 > INT_MAX) return -EINVAL; + entries = entries64; if (entries == ibcq->cqe + 1) return 0; -- 2.18.1