[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <168679535176.3778526.10107132390411297417.b4-ty@oracle.com>
Date: Wed, 14 Jun 2023 22:16:20 -0400
From: "Martin K. Petersen" <martin.petersen@...cle.com>
To: James Smart <james.smart@...adcom.com>,
Dick Kennedy <dick.kennedy@...adcom.com>,
"James E.J. Bottomley" <jejb@...ux.ibm.com>,
Kees Cook <keescook@...omium.org>,
"Gustavo A. R. Silva" <gustavoars@...nel.org>
Cc: "Martin K . Petersen" <martin.petersen@...cle.com>,
linux-scsi@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-hardening@...r.kernel.org
Subject: Re: [PATCH v2][next] scsi: lpfc: Avoid -Wstringop-overflow warning
On Thu, 01 Jun 2023 17:40:41 -0600, Gustavo A. R. Silva wrote:
> Prevent any potential integer wrapping issue, and avoid a
> -Wstringop-overflow warning by using the check_mul_overflow() helper.
>
> drivers/scsi/lpfc/lpfc.h:
> 837:#define LPFC_RAS_MIN_BUFF_POST_SIZE (256 * 1024)
>
> drivers/scsi/lpfc/lpfc_debugfs.c:
> 2266 size = LPFC_RAS_MIN_BUFF_POST_SIZE * phba->cfg_ras_fwlog_buffsize;
>
> [...]
Applied to 6.5/scsi-queue, thanks!
[1/1] scsi: lpfc: Avoid -Wstringop-overflow warning
https://git.kernel.org/mkp/scsi/c/a48e2c328c65
--
Martin K. Petersen Oracle Linux Engineering
Powered by blists - more mailing lists