]> git.baikalelectronics.ru Git - kernel.git/commit
USB: fix usbmon BUG trigger
authorPete Zaitcev <zaitcev@redhat.com>
Mon, 8 Jan 2018 21:46:41 +0000 (15:46 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 9 Jan 2018 15:06:53 +0000 (16:06 +0100)
commit98ffbf72306f822ee78bafd58a4e858e57a72f47
tree6e023a773c858245b4ceca196ec093ad5a9b7298
parent9b577f0fbe7312b73cce4bf0809a98499152604b
USB: fix usbmon BUG trigger

Automated tests triggered this by opening usbmon and accessing the
mmap while simultaneously resizing the buffers. This bug was with
us since 2006, because typically applications only size the buffers
once and thus avoid racing. Reported by Kirill A. Shutemov.

Reported-by: <syzbot+f9831b881b3e849829fc@syzkaller.appspotmail.com>
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_bin.c