Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp2055739lqg; Mon, 4 Mar 2024 11:22:02 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUOb2S/KupLVokIFIZvko6tgguyL8plyUaFgSQ+N5yEn3mNUkroYKgsT786YRfvMP/e7q6BXyO37eUZX0e77elkPcHJgb2rYzueHd8iPw== X-Google-Smtp-Source: AGHT+IEtTYSWFWG4BquHMxXTdDNAashsAFrMXDe/9QQtx+yM9w9bFQt+hf0pNTJSsUuv+wgrzVX3 X-Received: by 2002:a0c:cc08:0:b0:68f:ed21:d91f with SMTP id r8-20020a0ccc08000000b0068fed21d91fmr10510478qvk.35.1709580122009; Mon, 04 Mar 2024 11:22:02 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709580121; cv=pass; d=google.com; s=arc-20160816; b=N21Kx1hSNOWQyvIM0uVmkerANzLh4EbOzxSj73J6eYBGc9bD4ODqYeEg4Quf4ko8wF ejnnCULFBGE94ey0AKk7zL/WRDwMJ1C7kS/dMRTVh6LbIGrqTGWYMQbnnpNCGjMHg2K5 lpDIKcEH0Rd97zckok7oy9d3vZPp1q1LXfZqwilRTl1teieXOOa3VMODOFjl0wiydadc wn6erjsJN4iZGorPCZTNzC9G2jtztnPfA/9vlAHV6C/zd6qWaUR8wUdt92E9HwYu+K3x bA8NYVFBA+cJVb8sdIjyNKYghDouUvbYkwYP5pU5lMpTcfSNxaIMwf+ZfUUNygzT5/7t kH4Q== 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:dkim-signature; bh=2d/CslPL1EraYcaAaGcmoqtpYyoK8YMpMIw867/LKMI=; fh=sM9oBy9SH6wEx03ca8gnjmmxwrwJx0T5tdLv8WRtt/o=; b=rfvmdlAtHfGI2VRrK6qBVzERRZaPPklWTpctcVegZGV924PGFlwb7+rhM+TXAUUOfu jF8YGxdd04io4gM4F1FrSXUHQfx/b9LPEkZgJ5RAMtv5hbvrPa1bVwigUwQjgzLKPr4Y dgjreLU3dfoA0TgPcncjvt4YGCSknZ4znZRiNFyR6Kw0QRCRncChidycnU5VyXnJU2Jt /y/EhRI8KPuxCxYlEI+n2MuyU0Jq3vqcgmCO3nmWRAoRiUZYVnNTUAb080odDnk8WHVm 7ltVbfxB6F5xI9lt9MYO7yfkGVq2j4nDjipEqNfQz+iYBRtAVaspMCMoj6dPh8/vbMjF Bjhw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=WVDQGdi5; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-91170-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-91170-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id k15-20020ad45bef000000b00690099c0edasi10286451qvc.474.2024.03.04.11.22.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Mar 2024 11:22:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-91170-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=WVDQGdi5; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-91170-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-91170-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id BBD241C20D29 for ; Mon, 4 Mar 2024 19:22:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 55D5E79935; Mon, 4 Mar 2024 19:21:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="WVDQGdi5" 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 80BF078B73 for ; Mon, 4 Mar 2024 19:21:55 +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=1709580115; cv=none; b=oMH0IPukKPV4QuE7Y4V3qrzvorFz48zGuw3fmBCanua5Ix93EFFWjStYN4h9ASe2db2BSxYc2kz5Vzo6B2E5jjHer/JBE35vrWHZY4pxAJcPJbBIpfYGM+iLajbULOiMhTXl16GeyBR9AwoBLqV8xW0ss8QKe9E1MwHCGIpUS/M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709580115; c=relaxed/simple; bh=H5PqKdrGjVod2x5/bHqwhRA1EcdARgXVF0B4zM+jIvo=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=RXcBk5xn0JT//fSJhbFv3b6SLsWJXZVnbJndSLcYCvvj4Ogf1Sm/ONqu1aJmM8RbazFmv3cStVwts5gKLgaWyAz3WgBEddQ8v0Z+Nsrml9l38YtRxwWdKlVU95hhvCB90Ef7HmCDeiPeLrn4lQUddWhzJoQ/Y8asUAm0apTmrrw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=WVDQGdi5; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id A50CEC433F1; Mon, 4 Mar 2024 19:21:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1709580115; bh=H5PqKdrGjVod2x5/bHqwhRA1EcdARgXVF0B4zM+jIvo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=WVDQGdi5/u2ZoVwqQBagbMsJFsSE1gWqfYoUDtLEmFCWbDzd9UMLcJLePnrkzTpah DiqPMH/R0iI4bYI0cxC79ZtEzfV7vsCl80YIGM4z4FmHIrKhQ6GpaoGWD54/oxBQVm OqNkq2YNmBWbWJuJIO3XcTMGPRJJP3AkMXwURuXTi/ko3/4/2vseOpw8m6eeow0MMI zpCn3y1ydSuFq6qqyKqyM0vxONeCc6xvygYDZeo5BwACeJmY2PKxaLRLmQqRjrOnIB KdZHwRXB3EUNfQez6VpeZCzSorMUTHXoWPW5cB2TzkGvjspzVl0RVPWlrqMhzzDfmV ClLu/qsJTCTuQ== Date: Mon, 4 Mar 2024 19:21:51 +0000 From: Conor Dooley To: Dawei Li Cc: conor.dooley@microchip.com, daire.mcnamara@microchip.com, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, kernel test robot Subject: Re: [PATCH v2] firmware: microchip: Fix over-requested allocation size Message-ID: <20240304-rifling-nemeses-c830702266bc@spud> References: <20240304101653.126570-1-dawei.li@shingroup.cn> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="wMKfExtoszAhgpYP" Content-Disposition: inline In-Reply-To: <20240304101653.126570-1-dawei.li@shingroup.cn> --wMKfExtoszAhgpYP Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Mar 04, 2024 at 06:16:53PM +0800, Dawei Li wrote: > cocci warnings: (new ones prefixed by >>) > >> drivers/firmware/microchip/mpfs-auto-update.c:387:72-78: > ERROR: application of sizeof to pointer > drivers/firmware/microchip/mpfs-auto-update.c:170:72-78: > ERROR: application of sizeof to pointer >=20 > response_msg is a pointer to u32, so the size of element it points to is > supposed to be a multiple of sizeof(u32), rather than sizeof(u32 *). >=20 > Reported-by: kernel test robot > Closes: https://lore.kernel.org/oe-kbuild-all/202403040516.CYxoWTXw-lkp@i= ntel.com/ > Signed-off-by: Dawei Li > --- >=20 > V1 -> V2: > sizeof(u32)->sizeof(*response_msg)=20 Thanks for the quick respin. I'll send this as 6.9 material cos of the proximity to the merge window and the fact that we just over-allocate here. Thanks! I added a Fixes: tag when I applied this, you should add those in the future. I should've mentioned this earlier but forgot. Thanks, Conor. https://git.kernel.org/conor/c/af1e0a7d39f98c0dea1b186a76fcee7da6a5f7bc --wMKfExtoszAhgpYP Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZeYfTwAKCRB4tDGHoIJi 0rFuAQDxFJ5GT1qa5JLgA1JNpEJBkbxmIEMWJCYFlKSD4MOPwgD+PDtW+d26QimF duEOvvqr8nkcTZl57I1xXjODkejCoAs= =gP+N -----END PGP SIGNATURE----- --wMKfExtoszAhgpYP--