Received: by 2002:a5d:925a:0:0:0:0:0 with SMTP id e26csp1201004iol; Fri, 10 Jun 2022 02:25:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxnG0dmqTD4wsWWiBrsWZDBRKNWGXYDQkAnu0kHaHy2hh/93EECZqRRGkEJgapK3zIgERjc X-Received: by 2002:a63:7c2:0:b0:3fc:6f1f:d12 with SMTP id 185-20020a6307c2000000b003fc6f1f0d12mr38933327pgh.372.1654853131317; Fri, 10 Jun 2022 02:25:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654853131; cv=none; d=google.com; s=arc-20160816; b=FmuZFUaZeCIdNAM/9ubmFBDVT2C2xvj3oVGzHcKuUpuE7QBeUplEOX1yC99+nDbvV6 nMQpA0qA3yBZUi2GC/AO/4VhaJLL+sTIwMy/Vn0lkssT+M+7wjZJF+tNtkmn0iP5+QwX xHtYgGh8A19BeqNdsD/QY3c5ENO5V+utdvQjr/KBOnSu5zRVt5uqEZDq2SzSzAcjCvoi xmLAOy1K9tGJYWF5kt17CSdnZfie/a+46C7IetZl/Q8wrc+mVFg/YdnoOLhRFCFRr2+f SdBAAkjSS31zQ/uiv52oJr+2YJ+3JAyp/KsMxSDFNZrZctmohBR1baye79rY8SaE4iXa kBiQ== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=w9pgAj2B7fOhVHac+x2FG8oAuxdy1VbSUvD82sABqdU=; b=O4Y4YcbCYR0uO2bkvoMpL6QLHkkoLPrVqT8lEeZFnIu/I69UXeMu8M2e3ar/yPH/Ak nbnXvT1LW2NCjAQ7K7jIWFVa+IPHL+DE/0eH/TTlFOU9re6OnDT5ZtaX7NRnfgWD8OJk MSsw6eFwjKn46h5eglfJOOpZfA+JSODbeau6EV9xpZNRHu/SCxqwcTI2b5DRXs1eIktA xWAHV4mXdg2MOCpNlQNyCB/x2JnCujBDubM280Veqn+F/YaeYtFxO0Zijq7FCyGLkEGe QY+Lx1sQ6r6trAKhBmOls21kTFKHRj6Vjbw6SjwZBuLpgNTctF6haVpMstrOiqPHQ0KI 8vlg== 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 u13-20020a170903124d00b0015e9e402cbbsi38459163plh.189.2022.06.10.02.25.10; Fri, 10 Jun 2022 02:25:31 -0700 (PDT) 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 S1349084AbiFJJUa (ORCPT + 99 others); Fri, 10 Jun 2022 05:20:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35980 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349189AbiFJJSz (ORCPT ); Fri, 10 Jun 2022 05:18:55 -0400 Received: from fornost.hmeau.com (helcar.hmeau.com [216.24.177.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C3DA32FEBB5; Fri, 10 Jun 2022 02:17:09 -0700 (PDT) Received: from gwarestrin.arnor.me.apana.org.au ([192.168.103.7]) by fornost.hmeau.com with smtp (Exim 4.94.2 #2 (Debian)) id 1nzalB-005MfF-C8; Fri, 10 Jun 2022 19:16:54 +1000 Received: by gwarestrin.arnor.me.apana.org.au (sSMTP sendmail emulation); Fri, 10 Jun 2022 17:16:53 +0800 Date: Fri, 10 Jun 2022 17:16:53 +0800 From: Herbert Xu To: Shijith Thotton Cc: Arnaud Ebalard , Boris Brezillon , Dan Carpenter , linux-crypto@vger.kernel.org, jerinj@marvell.com, sgoutham@marvell.com, Srujana Challa , "David S. Miller" , Jiapeng Chong , Kees Cook , open list Subject: Re: [PATCH v2] crypto: octeontx2: fix potential null pointer access Message-ID: References: <6f772668877d2bd7dfdf7b45bb90cb56b3a6339b.1654070734.git.sthotton@marvell.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6f772668877d2bd7dfdf7b45bb90cb56b3a6339b.1654070734.git.sthotton@marvell.com> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 Wed, Jun 01, 2022 at 01:38:59PM +0530, Shijith Thotton wrote: > Added missing checks to avoid null pointer dereference. > > The patch fixes below issue reported by klocwork tool: > . Pointer 'strsep( &val, ":" )' returned from call to function 'strsep' > at line 1608 may be NULL and will be dereferenced at line 1608. Also > there are 2 similar errors on lines 1620, 1632 in otx2_cptpf_ucode.c. > > Signed-off-by: Shijith Thotton > --- > v2: > * Removed unwanted check for pcim_iomap_table. > > .../crypto/marvell/octeontx2/otx2_cptpf_ucode.c | 15 ++++++++++++--- > 1 file changed, 12 insertions(+), 3 deletions(-) Patch applied. Thanks. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt