From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f45.google.com (mail-wr1-f45.google.com [209.85.221.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1D2153CF663 for ; Wed, 25 Mar 2026 11:09:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774436995; cv=none; b=MCGSIjmym5MRdEtX3dL2QcygezyL7ybSQMtJw4fEE6kY+UnDeZVM7Bdjfk+0A1feC0NYlO7ak1f5hsH73foRANe9NpZ1Y7cH9WWfRJraWBcKl7z3z5xMz2G8wCjLL5Pd85gzhHL7Uo4kyYdEKGdG4QkKuCZmi5TuDjrtjaRFhYk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774436995; c=relaxed/simple; bh=Nb5t1Ac0Gt9BuEcT1gKeoz7g+HMS+azfePVGae+Bd2w=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=DnMS4o4jAVAZoKUzdn3/zRjeOvmXvs5dBiXE+fv3I441RlZotfQ2CaEnN3VvBfV19HarY84Lntu98cPh2MKUTD0EG+X4S+8K3+1vzOuyGJZ107B2jWdV5s8W2KunGqAvKGyA6WHpe5FUieJi17iLsSPsIlgrKh9vraXAvj9mMDI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=eUdPQ8Y8; arc=none smtp.client-ip=209.85.221.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="eUdPQ8Y8" Received: by mail-wr1-f45.google.com with SMTP id ffacd0b85a97d-43b45bb7548so4465758f8f.1 for ; Wed, 25 Mar 2026 04:09:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1774436990; x=1775041790; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=XfO9Z2lWl5MXFniiv+EbGxhInhKb23qjBJTY9QWd0x0=; b=eUdPQ8Y8i3mUO2IKE894cfNOL0jULl/2mTkNMoJFqGX8oOov4B03asxg725quwllDI hzncTd9SMITM91LeUcLQRPI/r8EIifODigemvmIev6pBu191yb4Yup20GKkENCwnmEFH brFiRAx5jUBG3AA422CLi5g6OhSAJr1P5r8JjgBtjm4qF1rvFDg32DI51OB7OsIu9ebz Q0Zx0bxUI2rxZt8bWhGa9JwixtG7SdUzYFYSnixpOE6NjE6C5JifBSpdQlsyVxq1Mgnn 7SQXkv5WGLJmij9uhvYCHezXDYTtnwmFWMd5Z+bdgDGlXHlkZU1H6LgYY59l5Lh0Z0mn iGxg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1774436990; x=1775041790; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=XfO9Z2lWl5MXFniiv+EbGxhInhKb23qjBJTY9QWd0x0=; b=YktorSgVwaEJF3Q/crcWSLewaHRA1LGAB/sCY4zGr3Qb/pTLL4yaHBfHPLKA+y/4hE 3Xs2UsW/8FyB5oNhMxxhmTaT6+DhZrCVGe5hFRRAc8M8ufwAJ9UFa5s9HXZJ0A4US/Io /7bu0VXiXdqTtTjrkZgPh0hmfBlmPflvn85qq+eTjSGBSVoNmDlHc9zmQNZBHnXSfDAE xmH1Qrk5LxFaBKXgOg3t2KFqlIiB44Bk500QNF7wSPW0mIB39/Vb3h7UZ6xXgS1fPcXF KPSLUr4FyLjwuC3oYCK6HnkzWvSmz1pbTJbW3C9T3v+1VbPIfgXdqLT+da8/IsTZqgyk QjBA== X-Forwarded-Encrypted: i=1; AJvYcCWjCa7sAzij/L41FFWcFuByOJMPlv85tjMsbu8qHttlO/7ObgMURlCkgKsLXiKsSyUTsgJ59RoNTo/XnNQ=@vger.kernel.org X-Gm-Message-State: AOJu0YzKJvUWGXcHrZ+8o7nmqjmsnaBmTTO7XlP7d61KSJLokWfqDMui KYU8nq+MV/bfP5ZAfwobFtyIercohXYFYf09x6jheOHsoTLRfx46ExC+DQBfmykdvrA= X-Gm-Gg: ATEYQzz9IT1l7yj3+iU7wIySMnQsAC0RSBfq8rI17MeAzwbgRvbJJtby2qc7M6655WU GpjHgwJTcBAEBayoW5TKTxAmO9+h/1SFIxbJBGWB/00hUEMeoK4aLTMRpJOPkxuDBfbLAXKt5a7 eLv/Zooa+nWpvoAuXhBGqX+VUVGOPRbnsNXgBvz6kbcvCW54KdhqiuSGTXizuq1zrDFDggQ6L86 WvEJcqYalznmLZMIyn962lxMqdvu453+0DIlnp7wb6GmPHxDQdhsMpUaydXm3V85JwnuxXYOq2B onLNBUDzqeYruyW5G4MFDrOcU0CXbjRS50NCyhYZgpTS9cHC12ZOziZo0KM5zIu9o2OY6PdmmxX 1EIOKLmueFs7GNrzXpg5rxlXkiZ/w5c3GDakIQLynCDbobSVMeXKgvumjwb5pZvOObSjUrFAGYi 9A8BH+VHxU0HkKPO/wx6GQknciv2+r5ZJnhemUJUE= X-Received: by 2002:a05:6000:4285:b0:43b:45a0:9df8 with SMTP id ffacd0b85a97d-43b88a0fc0bmr4525201f8f.35.1774436989849; Wed, 25 Mar 2026 04:09:49 -0700 (PDT) Received: from localhost ([196.207.164.177]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-43b64703c27sm46355279f8f.18.2026.03.25.04.09.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Mar 2026 04:09:48 -0700 (PDT) Date: Wed, 25 Mar 2026 14:09:45 +0300 From: Dan Carpenter To: Shuah Khan Cc: Ai Chao , gregkh@linuxfoundation.org, b-liu@ti.com, johan@kernel.org, badhri@google.com, heikki.krogerus@linux.intel.com, valentina.manea.m@gmail.com, shuah@kernel.org, i@zenithal.me, tiwai@suse.de, kees@kernel.org, christophe.jaillet@wanadoo.fr, prashanth.k@oss.qualcomm.com, khtsai@google.com, tglx@kernel.org, mingo@kernel.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 6/6] usbip: vhci_sysfs: Use safer strscpy() instead of strcpy() Message-ID: References: <20260310094434.3639602-1-aichao@kylinos.cn> <20260310094434.3639602-7-aichao@kylinos.cn> <4328a59a-a02b-491f-92a5-4dbd10ee77c2@linuxfoundation.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4328a59a-a02b-491f-92a5-4dbd10ee77c2@linuxfoundation.org> On Tue, Mar 24, 2026 at 03:34:03PM -0600, Shuah Khan wrote: > On 3/11/26 01:22, Dan Carpenter wrote: > > On Tue, Mar 10, 2026 at 04:10:20PM -0600, Shuah Khan wrote: > > > On 3/10/26 03:44, Ai Chao wrote: > > > > Use a safer function strscpy() instead of strcpy() for copying to > > > > arrays. > > > > > > > > Only idiomatic code replacement, and no functional changes. > > > > > > It is a functional change since it calls a new routine. Get rid > > > of this line from change log. > > > > > > How did you test this patch? I am curious because of you are > > > describing the change as "idiomatic code replacement" > > > > > > > I liked the commit message... To me it says that patch affect > > runtime. It doesn' fix any bugs or introduce any bugs. Too often > > these changes are sold as a "potential" bugfix, which means people > > haven't bothered to check whether it fixes a bug or not. > > > > It's the right thing to add a note under the --- cut off that the > > patch hasn't been tested. Testing isn't required for this sort > > of patch but a note is good so reviewers will know to be careful. > > I would like to see some sort of testing for patches like this one. > It isn't hard to test this change. It would take me a while to figure out how to test this. :P Presumably, it's: sudo ./tools/testing/selftests/drivers/usb/usbip/usbip_test.sh -b -p tools/usb/usbip/ but I couldn't figure out what to supply for a busid... Does kernel-ci do usbip testing? regards, dan carpenter