Re: WARNING in snd_usbmidi_submit_urb/usb_submit_urb
On Wed, Jun 3, 2020 at 8:12 AM Greg KH wrote: > > On Tue, Jun 02, 2020 at 10:41:16PM -0700, syzbot wrote: > > syzbot has found a reproducer for the following crash on: > > > > HEAD commit:1ee08de1 Merge tag 'for-5.8/io_uring-2020-06-01' of git://.. > > git tree: upstream > > console output: https://syzkaller.appspot.com/x/log.txt?x=15f9e51610 > > kernel config: https://syzkaller.appspot.com/x/.config?x=b46ebd806238a886 > > dashboard link: https://syzkaller.appspot.com/bug?extid=5f1d24c49c1d2c427497 > > compiler: gcc (GCC) 9.0.0 20181231 (experimental) > > userspace arch: i386 > > syz repro: https://syzkaller.appspot.com/x/repro.syz?x=1667dcca10 > > C reproducer: https://syzkaller.appspot.com/x/repro.c?x=13f9e51610 > > > > The bug was bisected to: > > > > commit f2c2e717642c66f7fe7e5dd69b2e8ff5849f4d10 > > Author: Andrey Konovalov > > Date: Mon Feb 24 16:13:03 2020 + > > > > usb: gadget: add raw-gadget interface > > I thought this "bisect to the tool that finds bugs" issue was fixed :) The change was merged after this message was sent, and it also takes some time to be deployed.
Re: WARNING in snd_usbmidi_submit_urb/usb_submit_urb
On Tue, Jun 02, 2020 at 10:41:16PM -0700, syzbot wrote: > syzbot has found a reproducer for the following crash on: > > HEAD commit:1ee08de1 Merge tag 'for-5.8/io_uring-2020-06-01' of git://.. > git tree: upstream > console output: https://syzkaller.appspot.com/x/log.txt?x=15f9e51610 > kernel config: https://syzkaller.appspot.com/x/.config?x=b46ebd806238a886 > dashboard link: https://syzkaller.appspot.com/bug?extid=5f1d24c49c1d2c427497 > compiler: gcc (GCC) 9.0.0 20181231 (experimental) > userspace arch: i386 > syz repro: https://syzkaller.appspot.com/x/repro.syz?x=1667dcca10 > C reproducer: https://syzkaller.appspot.com/x/repro.c?x=13f9e51610 > > The bug was bisected to: > > commit f2c2e717642c66f7fe7e5dd69b2e8ff5849f4d10 > Author: Andrey Konovalov > Date: Mon Feb 24 16:13:03 2020 + > > usb: gadget: add raw-gadget interface I thought this "bisect to the tool that finds bugs" issue was fixed :)
Re: WARNING in snd_usbmidi_submit_urb/usb_submit_urb
syzbot has found a reproducer for the following crash on: HEAD commit:1ee08de1 Merge tag 'for-5.8/io_uring-2020-06-01' of git://.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=15f9e51610 kernel config: https://syzkaller.appspot.com/x/.config?x=b46ebd806238a886 dashboard link: https://syzkaller.appspot.com/bug?extid=5f1d24c49c1d2c427497 compiler: gcc (GCC) 9.0.0 20181231 (experimental) userspace arch: i386 syz repro: https://syzkaller.appspot.com/x/repro.syz?x=1667dcca10 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=13f9e51610 The bug was bisected to: commit f2c2e717642c66f7fe7e5dd69b2e8ff5849f4d10 Author: Andrey Konovalov Date: Mon Feb 24 16:13:03 2020 + usb: gadget: add raw-gadget interface bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=164afcf210 final crash:https://syzkaller.appspot.com/x/report.txt?x=154afcf210 console output: https://syzkaller.appspot.com/x/log.txt?x=114afcf210 IMPORTANT: if you fix the bug, please add the following tag to the commit: Reported-by: syzbot+5f1d24c49c1d2c427...@syzkaller.appspotmail.com Fixes: f2c2e717642c ("usb: gadget: add raw-gadget interface") [ cut here ] URB 44767a7f submitted while active WARNING: CPU: 1 PID: 9186 at drivers/usb/core/urb.c:363 usb_submit_urb+0x10c1/0x13b0 drivers/usb/core/urb.c:363 Kernel panic - not syncing: panic_on_warn set ... CPU: 1 PID: 9186 Comm: syz-executor730 Not tainted 5.7.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x188/0x20d lib/dump_stack.c:118 panic+0x2e3/0x75c kernel/panic.c:221 __warn.cold+0x2f/0x35 kernel/panic.c:582 report_bug+0x27b/0x2f0 lib/bug.c:195 fixup_bug arch/x86/kernel/traps.c:105 [inline] fixup_bug arch/x86/kernel/traps.c:100 [inline] do_error_trap+0x12b/0x220 arch/x86/kernel/traps.c:197 do_invalid_op+0x32/0x40 arch/x86/kernel/traps.c:216 invalid_op+0x23/0x30 arch/x86/entry/entry_64.S:1027 RIP: 0010:usb_submit_urb+0x10c1/0x13b0 drivers/usb/core/urb.c:363 Code: 89 de e8 c2 16 66 fc 84 db 0f 85 42 f6 ff ff e8 85 15 66 fc 4c 89 fe 48 c7 c7 40 b3 ab 88 c6 05 98 27 78 05 01 e8 57 29 37 fc <0f> 0b e9 20 f6 ff ff c7 44 24 14 01 00 00 00 e9 d7 f6 ff ff 41 bd RSP: 0018:c90007dc72b0 EFLAGS: 00010286 RAX: RBX: RCX: RDX: RSI: 815cd4c7 RDI: f52000fb8e48 RBP: dc00 R08: 888095b144c0 R09: ed1015ce45f1 R10: 8880ae722f83 R11: ed1015ce45f0 R12: 0cc0 R13: fff0 R14: 888095974000 R15: 88809fa06600 snd_usbmidi_submit_urb+0x19/0x60 sound/usb/midi.c:194 snd_usbmidi_input_start_ep sound/usb/midi.c:2313 [inline] snd_usbmidi_input_start.part.0+0xbe/0x1c0 sound/usb/midi.c:2329 snd_usbmidi_input_start sound/usb/midi.c:1119 [inline] substream_open.isra.0+0x505/0x830 sound/usb/midi.c:1119 open_substream+0x42e/0x880 sound/core/rawmidi.c:299 rawmidi_open_priv+0x2e8/0x6e0 sound/core/rawmidi.c:342 snd_rawmidi_kernel_open+0x1b5/0x270 sound/core/rawmidi.c:382 midisynth_subscribe+0xf2/0x330 sound/core/seq/seq_midi.c:170 subscribe_port sound/core/seq/seq_ports.c:412 [inline] check_and_subscribe_port+0x5b5/0x800 sound/core/seq/seq_ports.c:495 snd_seq_port_connect+0x2e4/0x510 sound/core/seq/seq_ports.c:564 snd_seq_ioctl_subscribe_port+0x1df/0x310 sound/core/seq/seq_clientmgr.c:1484 snd_seq_kernel_client_ctl+0xeb/0x130 sound/core/seq/seq_clientmgr.c:2353 snd_seq_oss_midi_open+0x3cb/0x640 sound/core/seq/oss/seq_oss_midi.c:364 snd_seq_oss_synth_setup_midi+0x123/0x520 sound/core/seq/oss/seq_oss_synth.c:269 snd_seq_oss_open+0x7fa/0x980 sound/core/seq/oss/seq_oss_init.c:261 odev_open+0x6c/0x90 sound/core/seq/oss/seq_oss.c:125 soundcore_open+0x446/0x600 sound/sound_core.c:593 chrdev_open+0x219/0x5c0 fs/char_dev.c:414 do_dentry_open+0x546/0x1340 fs/open.c:828 do_open fs/namei.c:3229 [inline] path_openat+0x1e59/0x27d0 fs/namei.c:3346 do_filp_open+0x192/0x260 fs/namei.c:3373 do_sys_openat2+0x585/0x7d0 fs/open.c:1179 do_sys_open+0xc3/0x140 fs/open.c:1195 do_syscall_32_irqs_on arch/x86/entry/common.c:337 [inline] do_fast_syscall_32+0x270/0xe90 arch/x86/entry/common.c:396 entry_SYSENTER_compat+0x70/0x7f arch/x86/entry/entry_64_compat.S:139 Kernel Offset: disabled Rebooting in 86400 seconds..
Re: WARNING in snd_usbmidi_submit_urb/usb_submit_urb
On Mon, Jun 1, 2020 at 2:29 PM Greg KH wrote: > > On Mon, Jun 01, 2020 at 02:22:40PM +0200, Andrey Konovalov wrote: > > On Mon, Jun 1, 2020 at 10:43 AM Greg KH wrote: > > > > > > On Mon, Jun 01, 2020 at 12:24:03AM -0700, syzbot wrote: > > > > syzbot has bisected this bug to: > > > > > > > > commit f2c2e717642c66f7fe7e5dd69b2e8ff5849f4d10 > > > > Author: Andrey Konovalov > > > > Date: Mon Feb 24 16:13:03 2020 + > > > > > > > > usb: gadget: add raw-gadget interface > > > > > > > > bisection log: > > > > https://syzkaller.appspot.com/x/bisect.txt?x=164afcf210 > > > > start commit: bdc48fa1 checkpatch/coding-style: deprecate 80-column > > > > warn.. > > > > git tree: upstream > > > > final crash: > > > > https://syzkaller.appspot.com/x/report.txt?x=154afcf210 > > > > console output: https://syzkaller.appspot.com/x/log.txt?x=114afcf210 > > > > kernel config: > > > > https://syzkaller.appspot.com/x/.config?x=129ea1e5950835e5 > > > > dashboard link: > > > > https://syzkaller.appspot.com/bug?extid=5f1d24c49c1d2c427497 > > > > syz repro: > > > > https://syzkaller.appspot.com/x/repro.syz?x=12d70cf210 > > > > > > > > Reported-by: syzbot+5f1d24c49c1d2c427...@syzkaller.appspotmail.com > > > > Fixes: f2c2e717642c ("usb: gadget: add raw-gadget interface") > > > > > > > > For information about bisection process see: > > > > https://goo.gl/tpsmEJ#bisection > > > > > > So the tool that was used to create the bug has bisected the problem to > > > the patch that adds the tool to the kernel to test for the issue? > > > > > > This feels wrong... > > > > That's the expected result of bisection with the way it's intended to > > work. We'll be getting more bisection results pointing to that commit > > for old USB bugs. For new ones (that are introduced after raw-gadget), > > the bisection should point to proper commits. > > Ok, can you then mute any bisection emails that are about to get sent > out that resolve to this commit to save us the effort of just ignoring > the thing on our end? Sent syzbot change: https://github.com/google/syzkaller/pull/1782
Re: WARNING in snd_usbmidi_submit_urb/usb_submit_urb
On Mon, Jun 01, 2020 at 02:22:40PM +0200, Andrey Konovalov wrote: > On Mon, Jun 1, 2020 at 10:43 AM Greg KH wrote: > > > > On Mon, Jun 01, 2020 at 12:24:03AM -0700, syzbot wrote: > > > syzbot has bisected this bug to: > > > > > > commit f2c2e717642c66f7fe7e5dd69b2e8ff5849f4d10 > > > Author: Andrey Konovalov > > > Date: Mon Feb 24 16:13:03 2020 + > > > > > > usb: gadget: add raw-gadget interface > > > > > > bisection log: > > > https://syzkaller.appspot.com/x/bisect.txt?x=164afcf210 > > > start commit: bdc48fa1 checkpatch/coding-style: deprecate 80-column > > > warn.. > > > git tree: upstream > > > final crash: > > > https://syzkaller.appspot.com/x/report.txt?x=154afcf210 > > > console output: https://syzkaller.appspot.com/x/log.txt?x=114afcf210 > > > kernel config: https://syzkaller.appspot.com/x/.config?x=129ea1e5950835e5 > > > dashboard link: > > > https://syzkaller.appspot.com/bug?extid=5f1d24c49c1d2c427497 > > > syz repro: https://syzkaller.appspot.com/x/repro.syz?x=12d70cf210 > > > > > > Reported-by: syzbot+5f1d24c49c1d2c427...@syzkaller.appspotmail.com > > > Fixes: f2c2e717642c ("usb: gadget: add raw-gadget interface") > > > > > > For information about bisection process see: > > > https://goo.gl/tpsmEJ#bisection > > > > So the tool that was used to create the bug has bisected the problem to > > the patch that adds the tool to the kernel to test for the issue? > > > > This feels wrong... > > That's the expected result of bisection with the way it's intended to > work. We'll be getting more bisection results pointing to that commit > for old USB bugs. For new ones (that are introduced after raw-gadget), > the bisection should point to proper commits. Ok, can you then mute any bisection emails that are about to get sent out that resolve to this commit to save us the effort of just ignoring the thing on our end? thanks, greg k-h
Re: WARNING in snd_usbmidi_submit_urb/usb_submit_urb
On Mon, Jun 1, 2020 at 10:43 AM Greg KH wrote: > > On Mon, Jun 01, 2020 at 12:24:03AM -0700, syzbot wrote: > > syzbot has bisected this bug to: > > > > commit f2c2e717642c66f7fe7e5dd69b2e8ff5849f4d10 > > Author: Andrey Konovalov > > Date: Mon Feb 24 16:13:03 2020 + > > > > usb: gadget: add raw-gadget interface > > > > bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=164afcf210 > > start commit: bdc48fa1 checkpatch/coding-style: deprecate 80-column warn.. > > git tree: upstream > > final crash:https://syzkaller.appspot.com/x/report.txt?x=154afcf210 > > console output: https://syzkaller.appspot.com/x/log.txt?x=114afcf210 > > kernel config: https://syzkaller.appspot.com/x/.config?x=129ea1e5950835e5 > > dashboard link: https://syzkaller.appspot.com/bug?extid=5f1d24c49c1d2c427497 > > syz repro: https://syzkaller.appspot.com/x/repro.syz?x=12d70cf210 > > > > Reported-by: syzbot+5f1d24c49c1d2c427...@syzkaller.appspotmail.com > > Fixes: f2c2e717642c ("usb: gadget: add raw-gadget interface") > > > > For information about bisection process see: https://goo.gl/tpsmEJ#bisection > > So the tool that was used to create the bug has bisected the problem to > the patch that adds the tool to the kernel to test for the issue? > > This feels wrong... That's the expected result of bisection with the way it's intended to work. We'll be getting more bisection results pointing to that commit for old USB bugs. For new ones (that are introduced after raw-gadget), the bisection should point to proper commits.
Re: WARNING in snd_usbmidi_submit_urb/usb_submit_urb
On Mon, Jun 01, 2020 at 12:24:03AM -0700, syzbot wrote: > syzbot has bisected this bug to: > > commit f2c2e717642c66f7fe7e5dd69b2e8ff5849f4d10 > Author: Andrey Konovalov > Date: Mon Feb 24 16:13:03 2020 + > > usb: gadget: add raw-gadget interface > > bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=164afcf210 > start commit: bdc48fa1 checkpatch/coding-style: deprecate 80-column warn.. > git tree: upstream > final crash:https://syzkaller.appspot.com/x/report.txt?x=154afcf210 > console output: https://syzkaller.appspot.com/x/log.txt?x=114afcf210 > kernel config: https://syzkaller.appspot.com/x/.config?x=129ea1e5950835e5 > dashboard link: https://syzkaller.appspot.com/bug?extid=5f1d24c49c1d2c427497 > syz repro: https://syzkaller.appspot.com/x/repro.syz?x=12d70cf210 > > Reported-by: syzbot+5f1d24c49c1d2c427...@syzkaller.appspotmail.com > Fixes: f2c2e717642c ("usb: gadget: add raw-gadget interface") > > For information about bisection process see: https://goo.gl/tpsmEJ#bisection So the tool that was used to create the bug has bisected the problem to the patch that adds the tool to the kernel to test for the issue? This feels wrong... greg k-h
Re: WARNING in snd_usbmidi_submit_urb/usb_submit_urb
syzbot has bisected this bug to: commit f2c2e717642c66f7fe7e5dd69b2e8ff5849f4d10 Author: Andrey Konovalov Date: Mon Feb 24 16:13:03 2020 + usb: gadget: add raw-gadget interface bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=164afcf210 start commit: bdc48fa1 checkpatch/coding-style: deprecate 80-column warn.. git tree: upstream final crash:https://syzkaller.appspot.com/x/report.txt?x=154afcf210 console output: https://syzkaller.appspot.com/x/log.txt?x=114afcf210 kernel config: https://syzkaller.appspot.com/x/.config?x=129ea1e5950835e5 dashboard link: https://syzkaller.appspot.com/bug?extid=5f1d24c49c1d2c427497 syz repro: https://syzkaller.appspot.com/x/repro.syz?x=12d70cf210 Reported-by: syzbot+5f1d24c49c1d2c427...@syzkaller.appspotmail.com Fixes: f2c2e717642c ("usb: gadget: add raw-gadget interface") For information about bisection process see: https://goo.gl/tpsmEJ#bisection
WARNING in snd_usbmidi_submit_urb/usb_submit_urb
Hello, syzbot found the following crash on: HEAD commit:bdc48fa1 checkpatch/coding-style: deprecate 80-column warn.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=15d6458610 kernel config: https://syzkaller.appspot.com/x/.config?x=129ea1e5950835e5 dashboard link: https://syzkaller.appspot.com/bug?extid=5f1d24c49c1d2c427497 compiler: gcc (GCC) 9.0.0 20181231 (experimental) syz repro: https://syzkaller.appspot.com/x/repro.syz?x=12d70cf210 IMPORTANT: if you fix the bug, please add the following tag to the commit: Reported-by: syzbot+5f1d24c49c1d2c427...@syzkaller.appspotmail.com RBP: 0078bf00 R08: R09: R10: R11: 0246 R12: 0004 R13: 07dc R14: 004cab2a R15: 7f5ab0e216d4 [ cut here ] URB d6b1ff88 submitted while active WARNING: CPU: 1 PID: 8661 at drivers/usb/core/urb.c:363 usb_submit_urb+0x10c1/0x13b0 drivers/usb/core/urb.c:363 Kernel panic - not syncing: panic_on_warn set ... CPU: 1 PID: 8661 Comm: syz-executor.0 Not tainted 5.7.0-rc7-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x188/0x20d lib/dump_stack.c:118 panic+0x2e3/0x75c kernel/panic.c:221 __warn.cold+0x2f/0x35 kernel/panic.c:582 report_bug+0x27b/0x2f0 lib/bug.c:195 fixup_bug arch/x86/kernel/traps.c:175 [inline] fixup_bug arch/x86/kernel/traps.c:170 [inline] do_error_trap+0x12b/0x220 arch/x86/kernel/traps.c:267 do_invalid_op+0x32/0x40 arch/x86/kernel/traps.c:286 invalid_op+0x23/0x30 arch/x86/entry/entry_64.S:1027 RIP: 0010:usb_submit_urb+0x10c1/0x13b0 drivers/usb/core/urb.c:363 Code: 89 de e8 32 54 6a fc 84 db 0f 85 42 f6 ff ff e8 f5 52 6a fc 4c 89 fe 48 c7 c7 60 46 ab 88 c6 05 22 f3 7b 05 01 e8 b7 82 3b fc <0f> 0b e9 20 f6 ff ff c7 44 24 14 01 00 00 00 e9 d7 f6 ff ff 41 bd RSP: 0018:c9000a37f2c8 EFLAGS: 00010282 RAX: RBX: RCX: RDX: RSI: 815cf161 RDI: f5200146fe4b RBP: dc00 R08: 88808f2242c0 R09: ed1015ce66a9 R10: 8880ae733547 R11: ed1015ce66a8 R12: 0cc0 R13: fff0 R14: 8880a37b6400 R15: 8880894c1600 snd_usbmidi_submit_urb+0x19/0x60 sound/usb/midi.c:194 snd_usbmidi_input_start_ep sound/usb/midi.c:2313 [inline] snd_usbmidi_input_start.part.0+0xbe/0x1c0 sound/usb/midi.c:2329 snd_usbmidi_input_start sound/usb/midi.c:1119 [inline] substream_open.isra.0+0x505/0x830 sound/usb/midi.c:1119 open_substream+0x42e/0x880 sound/core/rawmidi.c:299 rawmidi_open_priv+0x2e8/0x6e0 sound/core/rawmidi.c:342 snd_rawmidi_kernel_open+0x1b5/0x270 sound/core/rawmidi.c:382 midisynth_subscribe+0xf2/0x330 sound/core/seq/seq_midi.c:170 subscribe_port sound/core/seq/seq_ports.c:412 [inline] check_and_subscribe_port+0x5b5/0x800 sound/core/seq/seq_ports.c:495 snd_seq_port_connect+0x2e4/0x510 sound/core/seq/seq_ports.c:564 snd_seq_ioctl_subscribe_port+0x1df/0x310 sound/core/seq/seq_clientmgr.c:1484 snd_seq_kernel_client_ctl+0xeb/0x130 sound/core/seq/seq_clientmgr.c:2353 snd_seq_oss_midi_open+0x3cb/0x640 sound/core/seq/oss/seq_oss_midi.c:364 snd_seq_oss_synth_setup_midi+0x123/0x520 sound/core/seq/oss/seq_oss_synth.c:269 snd_seq_oss_open+0x7fa/0x980 sound/core/seq/oss/seq_oss_init.c:261 odev_open+0x6c/0x90 sound/core/seq/oss/seq_oss.c:125 soundcore_open+0x446/0x600 sound/sound_core.c:593 chrdev_open+0x219/0x5c0 fs/char_dev.c:414 do_dentry_open+0x4ba/0x1290 fs/open.c:797 do_open fs/namei.c:3229 [inline] path_openat+0x1e59/0x27d0 fs/namei.c:3346 do_filp_open+0x192/0x260 fs/namei.c:3373 do_sys_openat2+0x585/0x7d0 fs/open.c:1148 --- 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 syzkal...@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