Re: [PATCH 6/6] usbip: vhci_sysfs: Use safer strscpy() instead of strcpy()

From: Shuah Khan

Date: Thu Mar 26 2026 - 14:29:47 EST


On 3/25/26 04:57, 艾超 wrote:
Dear Shuah:

Test Report for [usbip: vhci_sysfs: Use safer strscpy() instead of strcpy()]
Environment:
Kernel Version: v6.12.76+ (with patch applied)
Hardware/QEMU: Thinkpad E15


Conclusion:
The longth of the name is MAX_STATUS_NAME+1 = 17, used the strcpy copy "status-abcdefghijklmnopqrstuvwxyz1234567890" in name and used strscpy copy "status-abcdefghi" in name.
Tested-by: Aichao@xxxxxxxxxx


Thank you for the report.

Acked-by: Shuah Khan <skhan@xxxxxxxxxxxxxxxxxxx>

Greg, Please pick this patch up.

thanks,
-- Shuah