Re: [PATCH 6/6] usbip: vhci_sysfs: Use safer strscpy() instead of strcpy()
From: gregkh
Date: Mon Mar 30 2026 - 10:57:49 EST
On Thu, Mar 26, 2026 at 12:19:24PM -0600, Shuah Khan wrote:
> 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.
Can someone resend it please, I can't seem to find it anywhere on its
own.
thanks,
greg k-h