Received: by 2002:ab2:b82:0:b0:1f3:401:3cfb with SMTP id 2csp340516lqh; Thu, 28 Mar 2024 03:57:38 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVPMhFBDy1LrkX1IdNkLgQqKdKY6ZMtjzXS35qecUO7g/VTdQD8lnWyEKgIIhArCkdEfFHklpquyY42FiK9UwDX7kKJ8XASZcT2jhEZfQ== X-Google-Smtp-Source: AGHT+IGGfGptTs4R6fiWzEz/MVJJcs6VXpbHTFd/QFoUqMf7BQvfqu+ksKNdRARK6VRWYNDPpBGK X-Received: by 2002:a05:6830:a44:b0:6e6:84b4:5f35 with SMTP id g4-20020a0568300a4400b006e684b45f35mr2865159otu.8.1711623458511; Thu, 28 Mar 2024 03:57:38 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711623458; cv=pass; d=google.com; s=arc-20160816; b=E1+iiwKkR0Z1aL4cq2Af4cavbVLHnUZXxaSHjwumK6RgB65ejTBvFyvId++EO7YXqZ fvfXXIUCASS3UBnBWdsip05UyhESIkR+qYWmblYomLITFBzr56yB4QZEHWt63FtQ3CgT oPdy0uDtzyo7emJWHVSJBUW0MSVqiqPpPRe3Lo+VTlkl8fSk133mQv4C/q9jnEkWQ3Zw hxXRu3Moq8jamRY4pEGzeggBX+c5uD0w9Wy6F5Sgveaj59U+7m/CSWF0/1t1N+hZIWw1 5b56I5kKc1tsp1UX/0YqYzncpIvHA6COGqFkcpE3FB96CPupxAc/sjJzfaLulHsjML9B rVbA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date; bh=obVmwvGgB8fPjqhdYzdIwJ4dLpm8bhIwRam2vr6V1R8=; fh=gnfYQ26RuenRA/Xk0uBRWamzsrhnQeRKEn1bsaw8hl4=; b=XXE6TsP/eIOChSFYUYzTI5jt2Oc5S0BVdnIUK74xt855ji4TaFunbAM35v05N25OSB o5RjV0d8F7t2vFvC9hUgEBVO5M9ncdHpBo0A+b7/PdeC81EKT6b7EN/3w9t1kRx07Tgk 5FOEWIdxcy7PkLlx0NatgzVxqCKNtfkUPkm62XyxPHesq+RfZoieMOBW6fl1YrrVz5ca KMfDHX57U+Eo3jGQQsrmkEn9XKys3rGvFqXL/UN5cezHoBCZXrYkQLDPRfnqPnFAwHQk U1U0jg40AavQDiMmqwfGiwkeHPR23yt6uQIXS183Yh/9V9VVefENGZtlnvIozpBdYaqp tQnw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=gondor.apana.org.au dmarc=pass fromdomain=gondor.apana.org.au); spf=pass (google.com: domain of linux-crypto+bounces-3003-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-crypto+bounces-3003-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=REJECT sp=QUARANTINE dis=NONE) header.from=apana.org.au Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id n11-20020a63ee4b000000b005eb4d251435si1151916pgk.705.2024.03.28.03.57.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Mar 2024 03:57:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto+bounces-3003-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=gondor.apana.org.au dmarc=pass fromdomain=gondor.apana.org.au); spf=pass (google.com: domain of linux-crypto+bounces-3003-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-crypto+bounces-3003-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=REJECT sp=QUARANTINE dis=NONE) header.from=apana.org.au Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id CAD752996A3 for ; Thu, 28 Mar 2024 10:57:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BA5917D3F1; Thu, 28 Mar 2024 10:57:32 +0000 (UTC) X-Original-To: linux-crypto@vger.kernel.org Received: from abb.hmeau.com (abb.hmeau.com [144.6.53.87]) (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 D47592B9C6; Thu, 28 Mar 2024 10:57:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=144.6.53.87 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711623452; cv=none; b=R7BMTlQ0gge+dzHQMUSu1tdr8hOqVgLzI+lOt0JlKA1STBEcj66hCDdUDcq3ND8gW2YgMm42x2mcX4d0fHBcLFz47nfs4YKJgvRi0uP0Cv0+KOxWv65oZrOKpD4IWDv7uvuab176VItML1S0cQS6nvnVlldAgIohxlgQMYbDefU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711623452; c=relaxed/simple; bh=K+jKmepheYLf7B+PQen90LTa9MtOFKvzKtiVr+CVvYQ=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=hZPGECuAkNlANadRT4h4z07PX3Zrbtkkv2kjJV9NTNesLETyvf+dJXmDdwedMrljaTZbUwvm7ofTJeDY4WU87jeGXaoZ+8VugnzurKxqP2c7VbVkVXEw8GeHxaXFbixmc1e4m5mFnvApOmMLyZWLvKyrfCI6glmP4/lEi7XnobQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=gondor.apana.org.au; spf=pass smtp.mailfrom=gondor.apana.org.au; arc=none smtp.client-ip=144.6.53.87 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=gondor.apana.org.au Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gondor.apana.org.au 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 1rpnRd-00C8VP-9o; Thu, 28 Mar 2024 18:57:18 +0800 Received: by loth.rohan.me.apana.org.au (sSMTP sendmail emulation); Thu, 28 Mar 2024 18:57:33 +0800 Date: Thu, 28 Mar 2024 18:57:33 +0800 From: Herbert Xu To: Aleksandr Mishin Cc: "David S. Miller" , Steve Lin , Rob Rice , linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, lvc-project@linuxtesting.org Subject: Re: [PATCH v2] crypto: bcm/spu2 - Add buffer size check Message-ID: References: <20240306110022.21574-1-amishin@t-argos.ru> <20240322205915.13305-1-amishin@t-argos.ru> Precedence: bulk X-Mailing-List: linux-crypto@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240322205915.13305-1-amishin@t-argos.ru> On Fri, Mar 22, 2024 at 11:59:15PM +0300, Aleksandr Mishin wrote: > In spu2_dump_omd() value of ptr is increased by ciph_key_len > instead of hash_iv_len which could lead to going beyond the > buffer boundaries. > Fix this bug by changing ciph_key_len to hash_iv_len. > > Found by Linux Verification Center (linuxtesting.org) with SVACE. > > Fixes: 9d12ba86f818 ("crypto: brcm - Add Broadcom SPU driver") > Signed-off-by: Aleksandr Mishin > --- > v2: Fix commit message according to the Linux kernel rules > > drivers/crypto/bcm/spu2.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