Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp4218899rwl; Wed, 28 Dec 2022 00:42:11 -0800 (PST) X-Google-Smtp-Source: AMrXdXs06VP1FOf9rZ8KNllqr1bdQFdHXUa2cI6uzLvIXNBEJkeY2oLpRLZcPjiwYwqNBuGpUlQq X-Received: by 2002:a17:90a:206:b0:219:440f:667e with SMTP id c6-20020a17090a020600b00219440f667emr27261260pjc.16.1672216931784; Wed, 28 Dec 2022 00:42:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672216931; cv=none; d=google.com; s=arc-20160816; b=xcKUQCaNY0PjRCajNjvPALDhWZ6U0QWugGKoNVKsGCFheIbV50GPf1xCD62dfAQpYb s6pcCzodhzeohCgmBRVSO+iDR55ERI0ILPEO8MthdOghXH9lfGSnBfXFsKqebhIB36va fsK0ltjZdIEq0IT87OkRA41aR70SJHvznpaIf3FToVLy8ddwpZUe+UGnJ/tX4VVk6gDR Bte/1nx5s7YYWbtYOB/dz0fErTKt5zs/DKohwYhzAsN6S8iSqePafsoH3Sl/kxVZkcDh FMHXGv3gQUhRdFYoE9LVk+/8XrD7/u13P6pnBwY3cSEsCI4W5iFgpW2+sfTIcCxEjKuc ootg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=n7THmq87ktFLuu6EAosjSi9QRe05OoWam6XX0JnAHcc=; b=pW1num+p32GrPPhtj6VxurQK5ursnu9wGFuOds7r/ZXvgVsFN9iXMA6azjXwkp/TpY TpFyTXFuQAzyfHPB8H+uvgkGo3ETEPHyn0lrjT3GDCHlowI57uJIscpBJ5/RsEqLd3/t wxOW6lFU2QCzYsf3j93zuQheNwUUn9feOA+IrE5y26K4rxgLzQBvsb9I2fmRj9OEAdY/ BzjKoMWSyrZxjOqUaQWXXwhgFjjhYPZWH3B7gm1My48i9W9uI/37Za3w67yXYmRYiI73 yGbCFDeAIr60BNbv2dUFpJNeNSPh2AihrCireMJJDEnD62Wb2FrEPV/9oBNv95wRBQSv lhLw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qe2-20020a17090b4f8200b00218c111625csi21583896pjb.150.2022.12.28.00.41.51; Wed, 28 Dec 2022 00:42:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229630AbiL1Iij (ORCPT + 99 others); Wed, 28 Dec 2022 03:38:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45126 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229526AbiL1Iii (ORCPT ); Wed, 28 Dec 2022 03:38:38 -0500 Received: from formenos.hmeau.com (helcar.hmeau.com [216.24.177.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AB95BDF12 for ; Wed, 28 Dec 2022 00:38:36 -0800 (PST) Received: from loth.rohan.me.apana.org.au ([192.168.167.2]) by formenos.hmeau.com with smtp (Exim 4.94.2 #2 (Debian)) id 1pARxH-00BTFF-7R; Wed, 28 Dec 2022 16:38:32 +0800 Received: by loth.rohan.me.apana.org.au (sSMTP sendmail emulation); Wed, 28 Dec 2022 16:38:31 +0800 Date: Wed, 28 Dec 2022 16:38:31 +0800 From: Herbert Xu To: Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= Cc: Horia =?utf-8?Q?Geant=C4=83?= , Gaurav Jain , Pankaj Gupta , linux-crypto@vger.kernel.org, kernel@pengutronix.de, "David S. Miller" Subject: Re: [PATCH] crypto: caam - Prevent fortify error Message-ID: References: <20221222162513.4021928-1-u.kleine-koenig@pengutronix.de> <20221223174719.4n6pmwio4zycj2qm@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20221223174719.4n6pmwio4zycj2qm@pengutronix.de> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Fri, Dec 23, 2022 at 06:47:19PM +0100, Uwe Kleine-K?nig wrote: > > Using > > if (data && len) > > fixes it (that's the patch that b4 picks for the above message id :-\), > > if (!IS_ENABLED(CONFIG_CRYPTO_DEV_FSL_CAAM_DEBUG) && len) > > makes the problem go away, too. But I wonder if the latter is correct. Thanks for confirming! > Shouldn't the memcpy happen even with that debugging symbol enabled? It's just a pecularity with gcc. It only produces the warning because of the extra complexities introduced by the debugging code. Cheers, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt