Re: [PATCH v2] scsi: message: fusion: replace deprecated strncpy with strscpy

2023-10-13 Thread Martin K. Petersen
On Tue, 03 Oct 2023 22:15:45 +, Justin Stitt wrote: > `strncpy` is deprecated for use on NUL-terminated destination strings > [1] and as such we should prefer more robust and less ambiguous string > interfaces. > > The only caller of mptsas_exp_repmanufacture_info() is > mptsas_probe_one_phy(

Re: [PATCH v2] scsi: message: fusion: replace deprecated strncpy with strscpy

2023-10-09 Thread Martin K. Petersen
Justin, > `strncpy` is deprecated for use on NUL-terminated destination strings > [1] and as such we should prefer more robust and less ambiguous string > interfaces. Applied to 6.7/scsi-staging, thanks! -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH v2] scsi: message: fusion: replace deprecated strncpy with strscpy

2023-10-03 Thread Kees Cook
On Tue, Oct 03, 2023 at 10:15:45PM +, Justin Stitt wrote: > `strncpy` is deprecated for use on NUL-terminated destination strings > [1] and as such we should prefer more robust and less ambiguous string > interfaces. > > The only caller of mptsas_exp_repmanufacture_info() is > mptsas_probe_one

[PATCH v2] scsi: message: fusion: replace deprecated strncpy with strscpy

2023-10-03 Thread Justin Stitt
`strncpy` is deprecated for use on NUL-terminated destination strings [1] and as such we should prefer more robust and less ambiguous string interfaces. The only caller of mptsas_exp_repmanufacture_info() is mptsas_probe_one_phy() which can allocate rphy in either sas_end_device_alloc() or sas_exp