All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] Switch to using scnprintf() in the UHCI driver's debugging code
@ 2022-03-12 20:28 Sergey Shtylyov
  2022-03-12 20:28 ` [PATCH 1/2] usb: host: uhci-debug: use scnprintf() instead of sprintf() Sergey Shtylyov
  2022-03-12 20:28 ` [PATCH 2/2] usb: host: uhci: remove #define EXTRA_SPACE Sergey Shtylyov
  0 siblings, 2 replies; 5+ messages in thread
From: Sergey Shtylyov @ 2022-03-12 20:28 UTC (permalink / raw)
  To: Alan Stern, Greg Kroah-Hartman, linux-usb

Here are 2 patches against the 'usb-next' branch of Greg KH's 'usb.git' repo.
The UHCI driver's debugging code uses a lot of sprintf() calls with the large
buffers, leaving some space at the end of the buffers to handle the buffer
overflow.  Using scnprntf() calls instead eliminates the very possibility of
the buffer overflow...

Sergey Shtylyov (2):
  usb: host: uhci-debug: use scnprintf() instead of sprintf()
  usb: host: uhci: remove #define EXTRA_SPACE

 drivers/usb/host/uhci-debug.c | 263 ++++++++++++----------------------
 drivers/usb/host/uhci-hcd.c   |   2 +-
 drivers/usb/host/uhci-q.c     |   2 +-
 3 files changed, 93 insertions(+), 174 deletions(-)

-- 
2.26.3

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-04-24 15:35 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-12 20:28 [PATCH 0/2] Switch to using scnprintf() in the UHCI driver's debugging code Sergey Shtylyov
2022-03-12 20:28 ` [PATCH 1/2] usb: host: uhci-debug: use scnprintf() instead of sprintf() Sergey Shtylyov
2022-03-12 22:33   ` David Laight
2022-04-24 15:31     ` Sergey Shtylyov
2022-03-12 20:28 ` [PATCH 2/2] usb: host: uhci: remove #define EXTRA_SPACE Sergey Shtylyov

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.