On Thu, 1 Apr 2021 11:20:54 -0500, Gustavo A. R. Silva wrote:
> Fix the following out-of-bounds warnings by embedding existing
> struct htb_rel_query into struct mpt3_addnl_diag_query, instead
> of duplicating its members:
>
> include/linux/fortify-string.h:20:29: warning: '__builtin_memcpy' offset [19,
> 32] from the object at 'karg' is out of the bounds of referenced subobject
> 'buffer_rel_condition' with type 'short unsigned int' at offset 16
> [-Warray-bounds]
> include/linux/fortify-string.h:22:29: warning: '__builtin_memset' offset [19,
> 32] from the object at 'karg' is out of the bounds of referenced subobject
> 'buffer_rel_condition' with type 'short unsigned int' at offset 16
> [-Warray-bounds]
>
> [...]
Applied to 5.13/scsi-queue, thanks!
[1/1] scsi: mpt3sas: Fix out-of-bounds warnings in _ctl_addnl_diag_query
https://git.kernel.org/mkp/scsi/c/16660db3fc2a
--
Martin K. Petersen Oracle Linux Engineering