Re: [PATCH][next] scsi: mpt3sas: Fix out-of-bounds warnings in _ctl_addnl_diag_query

2021-04-15 Thread Martin K. Petersen
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'

Re: [PATCH][next] scsi: mpt3sas: Fix out-of-bounds warnings in _ctl_addnl_diag_query

2021-04-12 Thread Martin K. Petersen
Gustavo, > 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: Applied to 5.13/scsi-staging, thanks! -- Martin K. Petersen Oracle Linux Engineering

[PATCH][next] scsi: mpt3sas: Fix out-of-bounds warnings in _ctl_addnl_diag_query

2021-04-01 Thread Gustavo A. R. Silva
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