[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <172437814913.4018943.7804520176988407566.b4-ty@oracle.com>
Date: Thu, 22 Aug 2024 21:56:03 -0400
From: "Martin K. Petersen" <martin.petersen@...cle.com>
To: james.smart@...adcom.com, dick.kennedy@...adcom.com,
James.Bottomley@...senPartnership.com,
Sherry Yang <sherry.yang@...cle.com>
Cc: "Martin K . Petersen" <martin.petersen@...cle.com>,
linux-kernel@...r.kernel.org, linux-scsi@...r.kernel.org
Subject: Re: [PATCH] scsi: lpfc: fix overflow build issue
On Tue, 20 Aug 2024 23:51:31 -0700, Sherry Yang wrote:
> Build failed while enabling "CONFIG_GCOV_KERNEL=y" and
> "CONFIG_GCOV_PROFILE_ALL=y" with following error:
>
> BUILDSTDERR: drivers/scsi/lpfc/lpfc_bsg.c: In function 'lpfc_get_cgnbuf_info':
> BUILDSTDERR: ./include/linux/fortify-string.h:114:33: error: '__builtin_memcpy' accessing 18446744073709551615 bytes at offsets 0 and 0 overlaps 9223372036854775807 bytes at offset -9223372036854775808 [-Werror=restrict]
> BUILDSTDERR: 114 | #define __underlying_memcpy __builtin_memcpy
> BUILDSTDERR: | ^
> BUILDSTDERR: ./include/linux/fortify-string.h:637:9: note: in expansion of macro '__underlying_memcpy'
> BUILDSTDERR: 637 | __underlying_##op(p, q, __fortify_size); \
> BUILDSTDERR: | ^~~~~~~~~~~~~
> BUILDSTDERR: ./include/linux/fortify-string.h:682:26: note: in expansion of macro '__fortify_memcpy_chk'
> BUILDSTDERR: 682 | #define memcpy(p, q, s) __fortify_memcpy_chk(p, q, s, \
> BUILDSTDERR: | ^~~~~~~~~~~~~~~~~~~~
> BUILDSTDERR: drivers/scsi/lpfc/lpfc_bsg.c:5468:9: note: in expansion of macro 'memcpy'
> BUILDSTDERR: 5468 | memcpy(cgn_buff, cp, cinfosz);
> BUILDSTDERR: | ^~~~~~
>
> [...]
Applied to 6.11/scsi-fixes, thanks!
[1/1] scsi: lpfc: fix overflow build issue
https://git.kernel.org/mkp/scsi/c/3417c9574e36
--
Martin K. Petersen Oracle Linux Engineering
Powered by blists - more mailing lists