syzbot


WARNING in pegasus_open/usb_submit_urb

Status: fixed on 2023/06/08 14:41
Subsystems: input usb
[Documentation on labels]
Reported-by: syzbot+04ee0cb4caccaed12d78@syzkaller.appspotmail.com
Fix commit: b3d80fd27a3c Input: pegasus-notetaker - check pipe type when probing
First crash: 1576d, last: 565d
Discussions (3)
Title Replies (including bot) Last reply
[PATCH] Input: Check sanity of pipe in pegasus_probe() 2 (2) 2023/04/10 02:24
[PATCH] Input: Check sanity of endpoint in pegasus_open() 2 (2) 2022/08/29 14:51
WARNING in pegasus_open/usb_submit_urb 0 (1) 2020/06/12 12:04
Last patch testing requests (5)
Created Duration User Patch Repo Result
2023/04/04 06:43 28m soumya.negi97@gmail.com patch https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master OK log
2023/03/19 21:32 20m retest repro upstream report log
2022/12/09 19:31 24m retest repro upstream report log
2022/08/31 17:27 18m retest repro upstream report log
2022/08/29 12:00 24m soumya.negi97@gmail.com patch https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master OK log

Sample crash report:
------------[ cut here ]------------
usb 5-1: BOGUS urb xfer, pipe 1 != type 3
WARNING: CPU: 3 PID: 3109 at drivers/usb/core/urb.c:502 usb_submit_urb+0xed2/0x18a0 drivers/usb/core/urb.c:502
Modules linked in:
CPU: 3 PID: 3109 Comm: acpid Not tainted 5.18.0-rc1-syzkaller #0
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.14.0-2 04/01/2014
RIP: 0010:usb_submit_urb+0xed2/0x18a0 drivers/usb/core/urb.c:502
Code: 7c 24 18 e8 00 6d 01 fc 48 8b 7c 24 18 e8 86 ef 05 ff 41 89 d8 44 89 e1 4c 89 ea 48 89 c6 48 c7 c7 00 27 6b 8a e8 f6 49 a3 03 <0f> 0b e9 58 f8 ff ff e8 d2 6c 01 fc 48 81 c5 48 06 00 00 e9 84 f7
RSP: 0018:ffffc90001f5f7c0 EFLAGS: 00010286
RAX: 0000000000000000 RBX: 0000000000000003 RCX: 0000000000000000
RDX: ffff88801f3c6280 RSI: ffffffff815efab8 RDI: fffff520003ebeea
RBP: ffff88801feb9e00 R08: 0000000000000000 R09: 0000000000000000
R10: ffffffff815ea48e R11: 0000000000000000 R12: 0000000000000001
R13: ffff888014950c00 R14: 0000000000000002 R15: ffff888013f3e000
FS:  00007fa5d7755740(0000) GS:ffff88802cd00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffdc6dbdf50 CR3: 0000000018fa4000 CR4: 0000000000150ee0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 pegasus_open+0x18f/0x2e0 drivers/input/tablet/pegasus_notetaker.c:228
 input_open_device+0x1bb/0x320 drivers/input/input.c:676
 mousedev_open_device+0xdc/0x140 drivers/input/mousedev.c:430
 mousedev_open+0x2f8/0x580 drivers/input/mousedev.c:556
 chrdev_open+0x266/0x770 fs/char_dev.c:414
 do_dentry_open+0x4a1/0x11e0 fs/open.c:824
 do_open fs/namei.c:3476 [inline]
 path_openat+0x1c71/0x2910 fs/namei.c:3609
 do_filp_open+0x1aa/0x400 fs/namei.c:3636
 do_sys_openat2+0x16d/0x4c0 fs/open.c:1213
 do_sys_open fs/open.c:1229 [inline]
 __do_sys_openat fs/open.c:1245 [inline]
 __se_sys_openat fs/open.c:1240 [inline]
 __x64_sys_openat+0x13f/0x1f0 fs/open.c:1240
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x35/0x80 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x7fa5d783d697
Code: 25 00 00 41 00 3d 00 00 41 00 74 37 64 8b 04 25 18 00 00 00 85 c0 75 5b 44 89 e2 48 89 ee bf 9c ff ff ff b8 01 01 00 00 0f 05 <48> 3d 00 f0 ff ff 0f 87 85 00 00 00 48 83 c4 68 5d 41 5c c3 0f 1f
RSP: 002b:00007ffd6f3ba1f0 EFLAGS: 00000246 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 00007ffd6f3ba4d8 RCX: 00007fa5d783d697
RDX: 0000000000080800 RSI: 00007ffd6f3ba3d8 RDI: 00000000ffffff9c
RBP: 00007ffd6f3ba3d8 R08: 00007ffd6f3ba4ec R09: 00007ffd6f3ba3d8
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000080800
R13: 00007ffd6f3ba4d8 R14: 0000000000000020 R15: 0000000000000000
 </TASK>

Crashes (7):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/04/05 14:09 upstream 312310928417 5915c2cb .config console log report syz C ci-qemu-upstream WARNING in pegasus_open/usb_submit_urb
2020/06/12 11:03 https://github.com/google/kasan.git usb-fuzzer 2089c6ed5a17 819b58b0 .config console log report syz C ci2-upstream-usb
2022/04/26 00:46 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing bdddc253b093 152baedd .config console log report info ci2-upstream-usb WARNING in pegasus_open/usb_submit_urb
2022/04/17 04:35 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 312310928417 8bcc32a6 .config console log report info ci2-upstream-usb WARNING in pegasus_open/usb_submit_urb
2022/04/11 16:56 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 312310928417 af01ee7d .config console log report info ci2-upstream-usb WARNING in pegasus_open/usb_submit_urb
2020/08/22 05:55 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 28157b8c7d9a 6436ce4b .config console log report ci2-upstream-usb
2020/08/15 23:41 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 449dc8c97089 5ce13532 .config console log report ci2-upstream-usb
* Struck through repros no longer work on HEAD.