From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 09125324B31; Mon, 30 Mar 2026 14:49:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774882146; cv=none; b=R/tophmy+AYrllcJjPeIB7Mas+/ATcakWNqPUrfTWmPDJKkdBglWq3vo6sUr2Nkg3O3CkaTcn2zlTvcJP8Xep1lcQ8qe2DSYhE/cdpBOCpgnTMS2AK/d29QT/M3sq5pd1yNPYUDdRvgv1HW4zGK2e0I6WF1XS+CIr03PgcpZeYs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774882146; c=relaxed/simple; bh=wPYsw/26KE1S75IaJ0ipl3L6zzAJuNwbO7rh6w6Qy0M=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=IMch2THW9xm/4k/B9LKjF3AS3+w3qx6So63/H31zNGSPMnLd/1sZ8cxdTjNuMAX3ioXjQinLW/dVohkMX0imSqI7ztiK/1IAzopQgpmcbIni5Akhb4nc+8jB+nmPxSSooM6KRcEvS2IUQa5dqCmKqgtVrMFF77zuvVbK/dG+7HM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=P1I5Jb1Y; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="P1I5Jb1Y" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 41EA9C2BCB1; Mon, 30 Mar 2026 14:49:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1774882145; bh=wPYsw/26KE1S75IaJ0ipl3L6zzAJuNwbO7rh6w6Qy0M=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=P1I5Jb1Y9l1EaQysMfDivQJ/tdZvSk9md5NYV+T+tmfeQO3LOjTdxMIvR37HqebFf 4Ch0uK42NTlT66afr6y+lnO+KWtzUDvYuI96DAkvzYMXq2E0Gm7hpxQhzS+kvm/N/h wi0dYFTviuxiPhbi+FMdhcVpOUuacImYGh5QalCg= Date: Mon, 30 Mar 2026 16:49:02 +0200 From: gregkh To: Shuah Khan Cc: =?utf-8?B?6Im+6LaF?= , b-liu , johan , badhri , "heikki.krogerus" , "valentina.manea.m" , shuah , i , tiwai , kees , "christophe.jaillet" , "prashanth.k" , khtsai , tglx , mingo , linux-usb , linux-kernel , Dan Carpenter Subject: Re: [PATCH 6/6] usbip: vhci_sysfs: Use safer strscpy() instead of strcpy() Message-ID: <2026033047-joystick-blimp-0be8@gregkh> References: <7990xi1aonqb-79968wxve9t0@nsmail8.2--kylin--1> Precedence: bulk X-Mailing-List: linux-usb@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: 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@kylinos.cn > > > > Thank you for the report. > > Acked-by: Shuah Khan > > 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