linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* BUG: bad host security descriptor; not enough data (4 vs 5 left)
@ 2019-11-11 15:34 syzbot
  2019-11-11 16:09 ` Greg KH
  0 siblings, 1 reply; 5+ messages in thread
From: syzbot @ 2019-11-11 15:34 UTC (permalink / raw)
  To: andreyknvl, linux-kernel, linux-usb, syzkaller-bugs

Hello,

syzbot found the following crash on:

HEAD commit:    3183c037 usb: gadget: add raw-gadget interface
git tree:       https://github.com/google/kasan.git usb-fuzzer
console output: https://syzkaller.appspot.com/x/log.txt?x=12525dc6e00000
kernel config:  https://syzkaller.appspot.com/x/.config?x=79de80330003b5f7
dashboard link: https://syzkaller.appspot.com/bug?extid=d934a9036346e0215d8f
compiler:       gcc (GCC) 9.0.0 20181231 (experimental)
syz repro:      https://syzkaller.appspot.com/x/repro.syz?x=14ac7406e00000
C reproducer:   https://syzkaller.appspot.com/x/repro.c?x=13eea39ae00000

IMPORTANT: if you fix the bug, please add the following tag to the commit:
Reported-by: syzbot+d934a9036346e0215d8f@syzkaller.appspotmail.com

usb 1-1: config 0 interface 0 altsetting 0 has 3 endpoint descriptors,  
different from the interface descriptor's value: 4
usb 1-1: New USB device found, idVendor=13dc, idProduct=5611,  
bcdDevice=2f.15
usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
usb 1-1: config 0 descriptor??
hwa-hc 1-1:0.0: Wire Adapter v106.52 newer than groked v1.0
hwa-hc 1-1:0.0: FIXME: USB_MAXCHILDREN too low for WUSB adapter (194 ports)
usb 1-1: BUG: bad host security descriptor; not enough data (4 vs 5 left)
usb 1-1: supported encryption types: �S\x03Ё���|c\x03Ё����c\x03Ё���
usb 1-1: E: host doesn't support CCM-1 crypto
hwa-hc 1-1:0.0: Wireless USB HWA host controller
hwa-hc 1-1:0.0: new USB bus registered, assigned bus number 11


---
This bug is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzkaller@googlegroups.com.

syzbot will keep track of this bug report. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.
syzbot can test patches for this bug, for details see:
https://goo.gl/tpsmEJ#testing-patches

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

* Re: BUG: bad host security descriptor; not enough data (4 vs 5 left)
  2019-11-11 15:34 BUG: bad host security descriptor; not enough data (4 vs 5 left) syzbot
@ 2019-11-11 16:09 ` Greg KH
  2019-11-20 11:18   ` Oliver Neukum
  0 siblings, 1 reply; 5+ messages in thread
From: Greg KH @ 2019-11-11 16:09 UTC (permalink / raw)
  To: syzbot; +Cc: andreyknvl, linux-kernel, linux-usb, syzkaller-bugs

On Mon, Nov 11, 2019 at 07:34:08AM -0800, syzbot wrote:
> Hello,
> 
> syzbot found the following crash on:
> 
> HEAD commit:    3183c037 usb: gadget: add raw-gadget interface
> git tree:       https://github.com/google/kasan.git usb-fuzzer
> console output: https://syzkaller.appspot.com/x/log.txt?x=12525dc6e00000
> kernel config:  https://syzkaller.appspot.com/x/.config?x=79de80330003b5f7
> dashboard link: https://syzkaller.appspot.com/bug?extid=d934a9036346e0215d8f
> compiler:       gcc (GCC) 9.0.0 20181231 (experimental)
> syz repro:      https://syzkaller.appspot.com/x/repro.syz?x=14ac7406e00000
> C reproducer:   https://syzkaller.appspot.com/x/repro.c?x=13eea39ae00000
> 
> IMPORTANT: if you fix the bug, please add the following tag to the commit:
> Reported-by: syzbot+d934a9036346e0215d8f@syzkaller.appspotmail.com
> 
> usb 1-1: config 0 interface 0 altsetting 0 has 3 endpoint descriptors,
> different from the interface descriptor's value: 4
> usb 1-1: New USB device found, idVendor=13dc, idProduct=5611,
> bcdDevice=2f.15
> usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
> usb 1-1: config 0 descriptor??
> hwa-hc 1-1:0.0: Wire Adapter v106.52 newer than groked v1.0
> hwa-hc 1-1:0.0: FIXME: USB_MAXCHILDREN too low for WUSB adapter (194 ports)
> usb 1-1: BUG: bad host security descriptor; not enough data (4 vs 5 left)
> usb 1-1: supported encryption types: �S\x03Ё���|c\x03Ё����c\x03Ё���
> usb 1-1: E: host doesn't support CCM-1 crypto
> hwa-hc 1-1:0.0: Wireless USB HWA host controller
> hwa-hc 1-1:0.0: new USB bus registered, assigned bus number 11

wusb code, hah.  It's about to be deleted from the kernel because no one
uses it and there is no hardware out there.  I wouldn't spend a ton of
time fuzzing it.

One more good reason to just delete it soon...

thanks,

greg k-h

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

* Re: BUG: bad host security descriptor; not enough data (4 vs 5 left)
  2019-11-11 16:09 ` Greg KH
@ 2019-11-20 11:18   ` Oliver Neukum
  2019-11-20 11:24     ` Dmitry Vyukov
  2019-11-20 13:32     ` Greg KH
  0 siblings, 2 replies; 5+ messages in thread
From: Oliver Neukum @ 2019-11-20 11:18 UTC (permalink / raw)
  To: Greg KH, syzbot; +Cc: andreyknvl, linux-kernel, linux-usb, syzkaller-bugs

Am Montag, den 11.11.2019, 17:09 +0100 schrieb Greg KH:
> On Mon, Nov 11, 2019 at 07:34:08AM -0800, syzbot wrote:
> > Hello,
> > 
> > syzbot found the following crash on:
> > 
> > HEAD commit:    3183c037 usb: gadget: add raw-gadget interface
> > git tree:       https://github.com/google/kasan.git usb-fuzzer
> > console output: https://syzkaller.appspot.com/x/log.txt?x=12525dc6e00000
> > kernel config:  https://syzkaller.appspot.com/x/.config?x=79de80330003b5f7
> > dashboard link: https://syzkaller.appspot.com/bug?extid=d934a9036346e0215d8f
> > compiler:       gcc (GCC) 9.0.0 20181231 (experimental)
> > syz repro:      https://syzkaller.appspot.com/x/repro.syz?x=14ac7406e00000
> > C reproducer:   https://syzkaller.appspot.com/x/repro.c?x=13eea39ae00000
> > 
> > IMPORTANT: if you fix the bug, please add the following tag to the commit:
> > Reported-by: syzbot+d934a9036346e0215d8f@syzkaller.appspotmail.com
> > 
> > usb 1-1: config 0 interface 0 altsetting 0 has 3 endpoint descriptors,
> > different from the interface descriptor's value: 4
> > usb 1-1: New USB device found, idVendor=13dc, idProduct=5611,
> > bcdDevice=2f.15
> > usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
> > usb 1-1: config 0 descriptor??
> > hwa-hc 1-1:0.0: Wire Adapter v106.52 newer than groked v1.0
> > hwa-hc 1-1:0.0: FIXME: USB_MAXCHILDREN too low for WUSB adapter (194 ports)
> > usb 1-1: BUG: bad host security descriptor; not enough data (4 vs 5 left)
> > usb 1-1: supported encryption types: �S\x03Ё���|c\x03Ё����c\x03Ё���
> > usb 1-1: E: host doesn't support CCM-1 crypto
> > hwa-hc 1-1:0.0: Wireless USB HWA host controller
> > hwa-hc 1-1:0.0: new USB bus registered, assigned bus number 11
> 
> wusb code, hah.  It's about to be deleted from the kernel because no one
> uses it and there is no hardware out there.  I wouldn't spend a ton of
> time fuzzing it.
> 
> One more good reason to just delete it soon...

Unfortunately that is not an option for the stable trees. Before I try
something quick and dirty here, I have a question for the testing team.

What exactly crashed? There is nothing in the logs? Did you undergo
an absolute freeze of the machine? Or do you tested for the word "BUG"
in the logs?

	Regards
		Oliver


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

* Re: BUG: bad host security descriptor; not enough data (4 vs 5 left)
  2019-11-20 11:18   ` Oliver Neukum
@ 2019-11-20 11:24     ` Dmitry Vyukov
  2019-11-20 13:32     ` Greg KH
  1 sibling, 0 replies; 5+ messages in thread
From: Dmitry Vyukov @ 2019-11-20 11:24 UTC (permalink / raw)
  To: Oliver Neukum
  Cc: Greg KH, syzbot, Andrey Konovalov, LKML, USB list, syzkaller-bugs

On Wed, Nov 20, 2019 at 12:19 PM Oliver Neukum <oneukum@suse.com> wrote:
>
> Am Montag, den 11.11.2019, 17:09 +0100 schrieb Greg KH:
> > On Mon, Nov 11, 2019 at 07:34:08AM -0800, syzbot wrote:
> > > Hello,
> > >
> > > syzbot found the following crash on:
> > >
> > > HEAD commit:    3183c037 usb: gadget: add raw-gadget interface
> > > git tree:       https://github.com/google/kasan.git usb-fuzzer
> > > console output: https://syzkaller.appspot.com/x/log.txt?x=12525dc6e00000
> > > kernel config:  https://syzkaller.appspot.com/x/.config?x=79de80330003b5f7
> > > dashboard link: https://syzkaller.appspot.com/bug?extid=d934a9036346e0215d8f
> > > compiler:       gcc (GCC) 9.0.0 20181231 (experimental)
> > > syz repro:      https://syzkaller.appspot.com/x/repro.syz?x=14ac7406e00000
> > > C reproducer:   https://syzkaller.appspot.com/x/repro.c?x=13eea39ae00000
> > >
> > > IMPORTANT: if you fix the bug, please add the following tag to the commit:
> > > Reported-by: syzbot+d934a9036346e0215d8f@syzkaller.appspotmail.com
> > >
> > > usb 1-1: config 0 interface 0 altsetting 0 has 3 endpoint descriptors,
> > > different from the interface descriptor's value: 4
> > > usb 1-1: New USB device found, idVendor=13dc, idProduct=5611,
> > > bcdDevice=2f.15
> > > usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
> > > usb 1-1: config 0 descriptor??
> > > hwa-hc 1-1:0.0: Wire Adapter v106.52 newer than groked v1.0
> > > hwa-hc 1-1:0.0: FIXME: USB_MAXCHILDREN too low for WUSB adapter (194 ports)
> > > usb 1-1: BUG: bad host security descriptor; not enough data (4 vs 5 left)
> > > usb 1-1: supported encryption types: �S Ё���|c Ё����c Ё���
> > > usb 1-1: E: host doesn't support CCM-1 crypto
> > > hwa-hc 1-1:0.0: Wireless USB HWA host controller
> > > hwa-hc 1-1:0.0: new USB bus registered, assigned bus number 11
> >
> > wusb code, hah.  It's about to be deleted from the kernel because no one
> > uses it and there is no hardware out there.  I wouldn't spend a ton of
> > time fuzzing it.
> >
> > One more good reason to just delete it soon...
>
> Unfortunately that is not an option for the stable trees. Before I try
> something quick and dirty here, I have a question for the testing team.
>
> What exactly crashed? There is nothing in the logs? Did you undergo
> an absolute freeze of the machine? Or do you tested for the word "BUG"
> in the logs?

Hi Oliver,

Yes, it's the "BUG:" on the console that's detected as kernel bug
(what's being produced by BUG_ON).

There are only 2 special bug types in syzkaller that are detected
based not on kernel output matching:
"lost connection to test machine":
https://syzkaller.appspot.com/bug?id=b97ec15bfe317ac1ddccb41f2a913d4f7a31c6d7
and "no output from test machine":
https://syzkaller.appspot.com/bug?id=0b210638616bb68109e9642158d4c0072770ae1c
(hopefully self-explanatory from the title).

The rest are based on output matching and what's matched is pretty
much the bug title/email subject.

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

* Re: BUG: bad host security descriptor; not enough data (4 vs 5 left)
  2019-11-20 11:18   ` Oliver Neukum
  2019-11-20 11:24     ` Dmitry Vyukov
@ 2019-11-20 13:32     ` Greg KH
  1 sibling, 0 replies; 5+ messages in thread
From: Greg KH @ 2019-11-20 13:32 UTC (permalink / raw)
  To: Oliver Neukum; +Cc: syzbot, andreyknvl, linux-kernel, linux-usb, syzkaller-bugs

On Wed, Nov 20, 2019 at 12:18:57PM +0100, Oliver Neukum wrote:
> Am Montag, den 11.11.2019, 17:09 +0100 schrieb Greg KH:
> > On Mon, Nov 11, 2019 at 07:34:08AM -0800, syzbot wrote:
> > > Hello,
> > > 
> > > syzbot found the following crash on:
> > > 
> > > HEAD commit:    3183c037 usb: gadget: add raw-gadget interface
> > > git tree:       https://github.com/google/kasan.git usb-fuzzer
> > > console output: https://syzkaller.appspot.com/x/log.txt?x=12525dc6e00000
> > > kernel config:  https://syzkaller.appspot.com/x/.config?x=79de80330003b5f7
> > > dashboard link: https://syzkaller.appspot.com/bug?extid=d934a9036346e0215d8f
> > > compiler:       gcc (GCC) 9.0.0 20181231 (experimental)
> > > syz repro:      https://syzkaller.appspot.com/x/repro.syz?x=14ac7406e00000
> > > C reproducer:   https://syzkaller.appspot.com/x/repro.c?x=13eea39ae00000
> > > 
> > > IMPORTANT: if you fix the bug, please add the following tag to the commit:
> > > Reported-by: syzbot+d934a9036346e0215d8f@syzkaller.appspotmail.com
> > > 
> > > usb 1-1: config 0 interface 0 altsetting 0 has 3 endpoint descriptors,
> > > different from the interface descriptor's value: 4
> > > usb 1-1: New USB device found, idVendor=13dc, idProduct=5611,
> > > bcdDevice=2f.15
> > > usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
> > > usb 1-1: config 0 descriptor??
> > > hwa-hc 1-1:0.0: Wire Adapter v106.52 newer than groked v1.0
> > > hwa-hc 1-1:0.0: FIXME: USB_MAXCHILDREN too low for WUSB adapter (194 ports)
> > > usb 1-1: BUG: bad host security descriptor; not enough data (4 vs 5 left)
> > > usb 1-1: supported encryption types: �S\x03Ё���|c\x03Ё����c\x03Ё���
> > > usb 1-1: E: host doesn't support CCM-1 crypto
> > > hwa-hc 1-1:0.0: Wireless USB HWA host controller
> > > hwa-hc 1-1:0.0: new USB bus registered, assigned bus number 11
> > 
> > wusb code, hah.  It's about to be deleted from the kernel because no one
> > uses it and there is no hardware out there.  I wouldn't spend a ton of
> > time fuzzing it.
> > 
> > One more good reason to just delete it soon...
> 
> Unfortunately that is not an option for the stable trees.

Well, we can just mark the thing as BROKEN.  I strongly doubt anyone is
using it as there is no hardware out there.

thanks,

greg k-h

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

end of thread, other threads:[~2019-11-20 13:32 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-11 15:34 BUG: bad host security descriptor; not enough data (4 vs 5 left) syzbot
2019-11-11 16:09 ` Greg KH
2019-11-20 11:18   ` Oliver Neukum
2019-11-20 11:24     ` Dmitry Vyukov
2019-11-20 13:32     ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).