syzbot


WARNING in cm109_input_ev/usb_submit_urb

Status: fixed on 2021/03/10 01:48
Subsystems: input usb
[Documentation on labels]
Reported-by: syzbot+150f793ac5bc18eee150@syzkaller.appspotmail.com
Fix commit: 82e060904732 Input: cm109 - do not stomp on control URB
First crash: 1241d, last: 1221d
Cause bisection: introduced by (bisect log) [ignored commit]:
commit f2c2e717642c66f7fe7e5dd69b2e8ff5849f4d10
Author: Andrey Konovalov <andreyknvl@google.com>
Date: Mon Feb 24 16:13:03 2020 +0000

  usb: gadget: add raw-gadget interface

Crash: WARNING in cm109_submit_buzz_toggle/usb_submit_urb (log)
Repro: C syz .config
  
Discussions (8)
Title Replies (including bot) Last reply
[PATCH 4.14 000/242] 4.14.213-rc1 review 245 (245) 2021/01/13 01:20
[PATCH 4.19 000/346] 4.19.164-rc1 review 356 (356) 2021/01/02 11:29
[PATCH 4.4 000/132] 4.4.249-rc1 review 136 (136) 2020/12/30 09:37
[PATCH 4.9 000/175] 4.9.249-rc1 review 178 (178) 2020/12/29 09:28
[PATCH 5.9 000/105] 5.9.15-rc1 review 113 (113) 2020/12/16 13:21
[PATCH 5.4 00/36] 5.4.84-rc1 review 40 (40) 2020/12/15 20:31
[PATCH] Input: cm109 - do not stomp on control URB 1 (1) 2020/12/10 23:58
WARNING in cm109_input_ev/usb_submit_urb 1 (4) 2020/12/10 13:38
Last patch testing requests (1)
Created Duration User Patch Repo Result
2020/12/10 04:23 19m dmitry.torokhov@gmail.com git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input.git f6d088b4efe9636b0c5144e8ef36d785214e62cd OK

Sample crash report:
------------[ cut here ]------------
URB 00000000fa7e6a0b submitted while active
WARNING: CPU: 0 PID: 8462 at drivers/usb/core/urb.c:378 usb_submit_urb+0xf57/0x1510 drivers/usb/core/urb.c:378
Modules linked in:
CPU: 0 PID: 8462 Comm: syz-executor064 Not tainted 5.10.0-rc6-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:usb_submit_urb+0xf57/0x1510 drivers/usb/core/urb.c:378
Code: 5c 41 5d 41 5e 41 5f 5d e9 76 5b ff ff e8 c1 e9 04 fc c6 05 45 10 8b 07 01 48 c7 c7 a0 b6 5b 8a 4c 89 e6 31 c0 e8 69 08 d5 fb <0f> 0b e9 20 f1 ff ff e8 9d e9 04 fc eb 05 e8 96 e9 04 fc bb a6 ff
RSP: 0018:ffffc90000ecf6d8 EFLAGS: 00010046
RAX: ed1497fd940bbe00 RBX: ffff8880113d2108 RCX: ffff88801b269a40
RDX: 0000000000000000 RSI: 0000000080000002 RDI: 0000000000000000
RBP: 0000000000000a20 R08: ffffffff815d29e2 R09: ffffed1017383ffc
R10: ffffed1017383ffc R11: 0000000000000000 R12: ffff8880113d2100
R13: dffffc0000000000 R14: dffffc0000000000 R15: ffff88801d001850
FS:  00000000013ac880(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000558946f0cf78 CR3: 0000000011c70000 CR4: 00000000001506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 cm109_submit_buzz_toggle drivers/input/misc/cm109.c:351 [inline]
 cm109_toggle_buzzer_async drivers/input/misc/cm109.c:487 [inline]
 cm109_input_ev+0x1dc/0x3a0 drivers/input/misc/cm109.c:621
 input_handle_event+0x895/0x1510 drivers/input/input.c:376
 input_inject_event+0x1e8/0x280 drivers/input/input.c:471
 kd_sound_helper+0xfc/0x200 drivers/tty/vt/keyboard.c:242
 input_handler_for_each_handle+0xc8/0x160 drivers/input/input.c:2356
 kd_mksound+0x6c/0x140 drivers/tty/vt/keyboard.c:266
 do_con_trol drivers/tty/vt/vt.c:2152 [inline]
 do_con_write+0x3325/0xdee0 drivers/tty/vt/vt.c:2911
 con_write+0x20/0x40 drivers/tty/vt/vt.c:3255
 process_output_block drivers/tty/n_tty.c:595 [inline]
 n_tty_write+0xcc2/0x1160 drivers/tty/n_tty.c:2333
 do_tty_write drivers/tty/tty_io.c:962 [inline]
 tty_write+0x585/0x8f0 drivers/tty/tty_io.c:1046
 vfs_write+0x220/0xab0 fs/read_write.c:603
 ksys_write+0x11b/0x220 fs/read_write.c:658
 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x444839
Code: e8 bc af 02 00 48 83 c4 18 c3 0f 1f 80 00 00 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 9b d7 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007ffeb806aaf8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 0000000000444839
RDX: 0000000000001006 RSI: 00000000200002c0 RDI: 0000000000000005
RBP: 00000000006d0018 R08: 00000000004002e0 R09: 00000000004002e0
R10: 000000000000000d R11: 0000000000000246 R12: 0000000000402460
R13: 00000000004024f0 R14: 0000000000000000 R15: 0000000000000000

Crashes (8):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/12/03 04:56 upstream 3bb61aa61828 8c9190ef .config console log report syz C ci-upstream-kasan-gce-smack-root
2020/12/11 10:23 upstream 33dc9614dc20 f900b48c .config console log report info ci-upstream-kasan-gce-smack-root
2020/12/09 00:50 upstream 7d8761ba27fc a7f7f4a4 .config console log report info ci-upstream-kasan-gce-smack-root
2020/12/05 13:53 upstream b3298500b23f 50503117 .config console log report info ci-upstream-kasan-gce-smack-root
2020/12/03 01:38 upstream 3bb61aa61828 8c9190ef .config console log report info ci-upstream-kasan-gce-smack-root
2020/11/23 16:00 upstream 418baf2c28f3 878fb17a .config console log report info ci-upstream-kasan-gce-smack-root
2020/11/22 03:42 upstream a349e4c65960 0d27f508 .config console log report info ci-upstream-kasan-gce-smack-root
2020/11/20 14:34 upstream 4d02da974ea8 740ff461 .config console log report info ci-upstream-kasan-gce-smack-root
* Struck through repros no longer work on HEAD.