On Sun, Aug 14, 2022 at 12:03:50PM +0300, Sergey Shtylyov wrote: > Hello! > > On 8/14/22 1:42 AM, Sasha Levin wrote: > > > This is a note to let you know that I've just added the patch titled > > > > usb: host: xhci: use snprintf() in xhci_decode_trb() > > > > to the 5.10-stable tree which can be found at: > > http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary > > > > The filename of the patch is: > > usb-host-xhci-use-snprintf-in-xhci_decode_trb.patch > > and it can be found in the queue-5.10 subdirectory. > > > > If you, or anyone else, feels it should not be added to the stable tree, > > please let <stable@xxxxxxxxxxxxxxx> know about it. > > > > > > > > commit 9f17443bd457cd5dd4c3f93b21ba66ae1363d06b > > Author: Sergey Shtylyov <s.shtylyov@xxxxxx> > > Date: Thu Jun 30 15:46:45 2022 +0300 > > > > usb: host: xhci: use snprintf() in xhci_decode_trb() > > > > [ Upstream commit 1ce69c35b86038dd11d3a6115a04501c5b89a940 ] > > > > Commit cbf286e8ef83 ("xhci: fix unsafe memory usage in xhci tracing") > > apparently missed one sprintf() call in xhci_decode_trb() -- replace > > it with the snprintf() call as well... > > > > Found by Linux Verification Center (linuxtesting.org) with the SVACE static > > analysis tool. > > > > Fixes: cbf286e8ef83 ("xhci: fix unsafe memory usage in xhci tracing") > > I think that commit 1st appeared in the 5.15-rc1 timeframe, thus this patch > shouldn't be merged to 5.10.y (and it wouldn't even compile!). Please note that the above commit is in the following kernel releases: 5.4.145 5.10.64 5.13.16 5.14.3 5.15 so yes, this is needed in the 5.10.y and 5.4.y trees. thanks, greg k-h