Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp63535lqp; Wed, 20 Mar 2024 13:52:14 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXmqysRF5rFnmD/GIVMfhTg3p7v63oDdvHlXiD/5TMPJSn9DzScs8MgRxqZGawoBLL87i1/kgjvTHIU6Mm9gTh7UfoILjKWbNPkzFB2ew== X-Google-Smtp-Source: AGHT+IET2cW9wOO0ZyhI2BmUUaReB6kChJCvUt7PRhf8m9kEifMxO6uG0t1Zq42jrRytiCA9bxl4 X-Received: by 2002:a17:902:dac9:b0:1e0:b0d:5b7d with SMTP id q9-20020a170902dac900b001e00b0d5b7dmr13630425plx.36.1710967934522; Wed, 20 Mar 2024 13:52:14 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710967934; cv=pass; d=google.com; s=arc-20160816; b=xs5Bz9xNxG+p8vjx119KKxzWyjrD/b8ORwL4JnGIPzDDRH8rGh15yxxUkrkcgelYAD cAvFwkBKXhbQLPXpn5tqx4bfHfKXmBptgMEq4OSc9XaDtNZ2ppDgjQFK0Alpa2YXM8ck 9rF/D3rsOi+IFUmPyIIMLq+iYrErrr5ScGv5hmKz9zDyG8UW+Y4vh9Lz5G8sb7AKr/0y K4VokHSH7ufwGIndza337pfNobU2ADo+wbCZAo0Nm3LUVP/dNBTkllZerSXbynG3Vpz/ HDuYISAeNophDb65e60kezpRTTv/OgMQllcefmwzzpy7lGtO/l60zxymmzP/h7GMGGez 9OGA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:date:message-id:from:subject :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:dkim-signature; bh=yB/slcS6dESgn/M07vsOTsBjdL1UmtzFReKI6aNUCOI=; fh=yLP3A3+5PdfMcqAqVdYYBeAAS10Ej7LlQpdnLrcNWLA=; b=BhRGp9UhgWbbaKsYVUSswuhU1sVAT3mijkAvjz2K22+u8SCTE0MmeHH3TvjR/hK3sF B65/qsfpixPDZbn2K0BXQ8gwTRbiQrEAnuHxf9/c0NXfOXHjjTftO6fqyCAy/TXVom9X e7pIPx0Y2a5wjJ4ztTgJji06vTlwkq95J+QZq8vqGA9rLxHl4hQGuLkrHvHXTd7aRo2E 0ZJXoBEbF1aQBu9mHYIQzao0NrRej0OrS1Z+UIfDUq5HRg0reSdGJk7iq16gZb7epo/E 7LM35lynsM+H15CHzjL07tavA0SN6Q8TI345OOmiWRISeZCa2pmuoPUPcG0AyV+CDZVf khdA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="JN/d0Foc"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-109416-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-109416-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id e3-20020a170902cf4300b001e00e512fe5si8279834plg.311.2024.03.20.13.52.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Mar 2024 13:52:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-109416-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="JN/d0Foc"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-109416-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-109416-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id C34A5B22B2E for ; Wed, 20 Mar 2024 20:52:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 87B4086AC1; Wed, 20 Mar 2024 20:50:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="JN/d0Foc" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 C70A48594C; Wed, 20 Mar 2024 20:50:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710967839; cv=none; b=O0PbG+vyZWMDC5gC65svDpc4e+OICCATw2PCNiTvMMCGF2nbQ7On8gvG+MmlROITIeYT+Zloh3aSMWt4iUtZL9gW36EhI6vRcuvTKLxMdvrqAPjdoQxmKQWjNdC8oqnY3CinJC/efuosBHsLrNflGrjAztS8GIn8EHFm6xTlV9c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710967839; c=relaxed/simple; bh=btAeiZEcxlPc+5rjYdZBbRGASbJnixxCwyL87/+mmOo=; h=Content-Type:MIME-Version:Subject:From:Message-Id:Date:References: In-Reply-To:To:Cc; b=ibXl7DyzfHYajXqd65+nij8/f6WKAv4ot8iq6MPYJZIVNKhkXS08qpKQiFTWGh3JnaK9bMNPZEMKix2hI3N9r91naYg23Fjtrei7E2EOQ4tyYALWyW5I2L5uqZ17CTReAGuZD5MF3FqgysV/6iaITh5el/lFcHz47ub2w9UDTQA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=JN/d0Foc; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPS id 57AADC43142; Wed, 20 Mar 2024 20:50:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1710967839; bh=btAeiZEcxlPc+5rjYdZBbRGASbJnixxCwyL87/+mmOo=; h=Subject:From:Date:References:In-Reply-To:To:Cc:From; b=JN/d0FocPRzqdLlU5VONUvcBZvnw9D4YRv8Y3S5UurFmfqHDO7Sqn0paBjrkfe+Qj e/UDyZU3WH3eIoBQRu2Z4rHSTGvWyGxZOYGSeGXRYN2r9a0mx/YfyL8tyLYED5iQxU BSUtRnwhMtjbjXw5qX9tBgugPTbOUEZhLJ+g60ruK3nVWm7kB6JG8kqdEo7Nwuo0P2 yQXBRtKyme+0ak27W6kGkJ02ncA95rZvSQpkLXoohaVPRZ5ET0drm0UCoKA2Vx85nH fWxULX7R8Lg8zokts8jPRZq4aOoNRY6cHsZT/X3fr2mCowtqrWEAuju+2l5s1bOWCh bVl1azAGYztTw== Received: from aws-us-west-2-korg-oddjob-1.ci.codeaurora.org (localhost.localdomain [127.0.0.1]) by aws-us-west-2-korg-oddjob-1.ci.codeaurora.org (Postfix) with ESMTP id 4A960D84BB0; Wed, 20 Mar 2024 20:50:39 +0000 (UTC) Content-Type: text/plain; charset="utf-8" Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH] riscv: Use kcalloc() instead of kzalloc() From: patchwork-bot+linux-riscv@kernel.org Message-Id: <171096783930.6804.853209401745501176.git-patchwork-notify@kernel.org> Date: Wed, 20 Mar 2024 20:50:39 +0000 References: <20240120135400.4710-1-erick.archer@gmx.com> In-Reply-To: <20240120135400.4710-1-erick.archer@gmx.com> To: Erick Archer Cc: linux-riscv@lists.infradead.org, paul.walmsley@sifive.com, palmer@dabbelt.com, aou@eecs.berkeley.edu, conor.dooley@microchip.com, ajones@ventanamicro.com, evan@rivosinc.com, cleger@rivosinc.com, jszhang@kernel.org, charlie@rivosinc.com, gustavoars@kernel.org, linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org Hello: This patch was applied to riscv/linux.git (for-next) by Palmer Dabbelt : On Sat, 20 Jan 2024 14:54:00 +0100 you wrote: > As noted in the "Deprecated Interfaces, Language Features, Attributes, > and Conventions" documentation [1], size calculations (especially > multiplication) should not be performed in memory allocator (or similar) > function arguments due to the risk of them overflowing. This could lead > to values wrapping around and a smaller allocation being made than the > caller was expecting. Using those allocations could lead to linear > overflows of heap memory and other misbehaviors. > > [...] Here is the summary with links: - riscv: Use kcalloc() instead of kzalloc() https://git.kernel.org/riscv/c/28e4748e5e3d You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html