Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp1045480pxx; Thu, 29 Oct 2020 23:52:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxO1gjpRgV6YciA60DODTofkXc/SJBTzVnhHV4gs792nLQPQRruXwolxCA6u4yK+GGnqOnX X-Received: by 2002:a17:906:580e:: with SMTP id m14mr1011074ejq.237.1604040752159; Thu, 29 Oct 2020 23:52:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1604040752; cv=none; d=google.com; s=arc-20160816; b=xCd2KcLFDZW0krHQh/6Umk2n7DVi+nER+W3hTYOtgJ2CjoUElUqV/MQ3uSPGtl403V 2hr9jVfzKNbG5H1sOkwhzweoPg8R94SVUHBdhmsc2WBfImGvhz1Day0Kk+UZsWXAiPlI aKqRPEXJvBpj7NR6ZVIwnIKzA/bsqxlgQmJT9zKapw/msrJpIsu4zKF9OP4JIKhByWfa uQxT2rGPj5NtswrSSfprsVmJS14GzI8ZzuX3pvIwd1vuR8IxqdpPl59keVsWkbFCh6x+ OZoOLJ8HOb5yECNa1XAFGWtIRiUP9UdVqCBwbDZsFy/nN5txv8kNS1m0izDH1sEEI0bP gpRA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=oLsXULdX0K9PSmRZ3oCrXHFSbSjRQsBywdbu07on3hw=; b=yXdjMmDQy/doKMrtWXuk/edmhhdECQHKZjVGxiC8ft/3vR0uZdsNYUshYM+YVIoc/s NdE8YYTpPMrhstokIOk4I6zwk0UKnzhF0g7sXrhpqlBgNkLR8fCAGCclfnKFq+GCUhAg R9tSblzA7wTfCUpHMgZ/kVsbT/WL2VfcaZ9Xii4dqa5o08iIXbBhgP84QJdhi3yZlXkc LrHbuCszx8fOSrYo5wNP/Zm4Dqt/dceszxRT2dAu8OlUmhZwosXPE/EeWItksn8aslAo pqW3YsumtYis9arOY1VINjuZIWe2ba4NRndL+qZtJU3Ma3GPMOjqm/wUAa5y4yeLoSZB jlxA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y24si3572526ejw.503.2020.10.29.23.52.09; Thu, 29 Oct 2020 23:52:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725943AbgJ3Gto (ORCPT + 99 others); Fri, 30 Oct 2020 02:49:44 -0400 Received: from helcar.hmeau.com ([216.24.177.18]:60500 "EHLO fornost.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725930AbgJ3Gto (ORCPT ); Fri, 30 Oct 2020 02:49:44 -0400 Received: from gwarestrin.arnor.me.apana.org.au ([192.168.0.7]) by fornost.hmeau.com with smtp (Exim 4.92 #5 (Debian)) id 1kYOE9-0004rH-Q8; Fri, 30 Oct 2020 17:49:34 +1100 Received: by gwarestrin.arnor.me.apana.org.au (sSMTP sendmail emulation); Fri, 30 Oct 2020 17:49:33 +1100 Date: Fri, 30 Oct 2020 17:49:33 +1100 From: Herbert Xu To: Colin King Cc: Antoine Tenart , "David S . Miller" , Ofer Heifetz , linux-crypto@vger.kernel.org, kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] crypto: inside-secure: Fix sizeof() mismatch Message-ID: <20201030064933.GE25453@gondor.apana.org.au> References: <20201010164736.12871-1-colin.king@canonical.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201010164736.12871-1-colin.king@canonical.com> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Sat, Oct 10, 2020 at 05:47:36PM +0100, Colin King wrote: > From: Colin Ian King > > An incorrect sizeof() is being used, sizeof(priv->ring[i].rdr_req) is > not correct, it should be sizeof(*priv->ring[i].rdr_req). Note that > since the size of ** is the same size as * this is not causing any > issues. > > Addresses-Coverity: ("Sizeof not portable (SIZEOF_MISMATCH)") > Fixes: 9744fec95f06 ("crypto: inside-secure - remove request list to improve performance") > Signed-off-by: Colin Ian King > --- > drivers/crypto/inside-secure/safexcel.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Patch applied. Thanks. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt