Re: [PATCH v2 4/9] ALSA: line6: Add a sanity check for invalid EPs

2017-10-11 Thread Takashi Iwai
On Wed, 11 Oct 2017 16:52:09 +0200, Johan Hovold wrote: > > On Wed, Oct 11, 2017 at 04:45:16PM +0200, Takashi Iwai wrote: > > On Wed, 11 Oct 2017 16:28:37 +0200, > > Johan Hovold wrote: > > > > > > On Wed, Oct 11, 2017 at 12:36:41PM +0200, Takashi Iwai wrote: > > > > As syzkaller spotted, current

Re: [PATCH v2 4/9] ALSA: line6: Add a sanity check for invalid EPs

2017-10-11 Thread Johan Hovold
On Wed, Oct 11, 2017 at 04:45:16PM +0200, Takashi Iwai wrote: > On Wed, 11 Oct 2017 16:28:37 +0200, > Johan Hovold wrote: > > > > On Wed, Oct 11, 2017 at 12:36:41PM +0200, Takashi Iwai wrote: > > > As syzkaller spotted, currently line6 drivers submit a URB with the > > > fixed EP without checking

Re: [PATCH v2 4/9] ALSA: line6: Add a sanity check for invalid EPs

2017-10-11 Thread Takashi Iwai
On Wed, 11 Oct 2017 16:28:37 +0200, Johan Hovold wrote: > > On Wed, Oct 11, 2017 at 12:36:41PM +0200, Takashi Iwai wrote: > > As syzkaller spotted, currently line6 drivers submit a URB with the > > fixed EP without checking whether it's actually available, which may > > result in a kernel warning

Re: [PATCH v2 4/9] ALSA: line6: Add a sanity check for invalid EPs

2017-10-11 Thread Johan Hovold
On Wed, Oct 11, 2017 at 12:36:41PM +0200, Takashi Iwai wrote: > As syzkaller spotted, currently line6 drivers submit a URB with the > fixed EP without checking whether it's actually available, which may > result in a kernel warning like: > usb 1-1: BOGUS urb xfer, pipe 3 != type 1 > ---

[PATCH v2 4/9] ALSA: line6: Add a sanity check for invalid EPs

2017-10-11 Thread Takashi Iwai
As syzkaller spotted, currently line6 drivers submit a URB with the fixed EP without checking whether it's actually available, which may result in a kernel warning like: usb 1-1: BOGUS urb xfer, pipe 3 != type 1 [ cut here ] WARNING: CPU: 0 PID: 24 at drivers/usb/core/