]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
usb: usbmon: Read text within supplied buffer size
authorPete Zaitcev <zaitcev@kotori.zaitcev.us>
Fri, 9 Mar 2018 06:21:14 +0000 (00:21 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 18 Mar 2018 10:17:53 +0000 (11:17 +0100)
commitabe0ecd5597c31c6b70dc347145789000f4cf68f
treed4aebf6751d37f3372b35de005dc10ab874e0c44
parent2feea85fe95e3ad89d0b28fef10840696b5094f9
usb: usbmon: Read text within supplied buffer size

commit a5f596830e27e15f7a0ecd6be55e433d776986d8 upstream.

This change fixes buffer overflows and silent data corruption with the
usbmon device driver text file read operations.

Signed-off-by: Fredrik Noring <noring@nocrew.org>
Signed-off-by: Pete Zaitcev <zaitcev@redhat.com>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/mon/mon_text.c