syzbot


WARNING in send_packet/usb_submit_urb

Status: upstream: reported C repro on 2022/07/05 03:30
Reported-by: syzbot+0c3cb6dc05fbbdc3ad66@syzkaller.appspotmail.com
Fix commit: media: imon: fix a race condition in send_packet()
Patched on: [], missing on: [ci-qemu-upstream ci-qemu-upstream-386 ci-qemu2-arm32 ci-qemu2-arm64 ci-qemu2-arm64-compat ci-qemu2-arm64-mte ci-qemu2-riscv64 ci-upstream-bpf-kasan-gce ci-upstream-bpf-next-kasan-gce ci-upstream-gce-arm64 ci-upstream-gce-leak ci-upstream-kasan-gce ci-upstream-kasan-gce-386 ci-upstream-kasan-gce-root ci-upstream-kasan-gce-selinux-root ci-upstream-kasan-gce-smack-root ci-upstream-kmsan-gce ci-upstream-kmsan-gce-386 ci-upstream-linux-next-kasan-gce-root ci-upstream-net-kasan-gce ci-upstream-net-this-kasan-gce ci2-upstream-fs ci2-upstream-kcsan-gce ci2-upstream-usb]
First crash: 150d, last: 2d08h

Cause bisection: the issue happens on the oldest tested release (bisect log)
Crash: possible deadlock in display_open (log)
Repro: C syz .config
Patch testing requests:
Created Duration User Patch Repo Result
2022/07/05 10:59 16m hdanton@sina.com patch http://kernel.source.codeaurora.cn/pub/scm/linux/kernel/git/torvalds/linux.git 1a0e93df1e10 OK log

Sample crash report:
------------[ cut here ]------------
URB ffff88801781b900 submitted while active
WARNING: CPU: 0 PID: 3615 at drivers/usb/core/urb.c:379 usb_submit_urb+0x1116/0x1920 drivers/usb/core/urb.c:379
Modules linked in:
CPU: 0 PID: 3615 Comm: syz-executor379 Not tainted 6.1.0-rc4-syzkaller-00045-g1767a722a708 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
RIP: 0010:usb_submit_urb+0x1116/0x1920 drivers/usb/core/urb.c:379
Code: 00 41 8b 06 89 44 24 10 e9 a5 f8 ff ff e8 42 a4 71 fb c6 05 78 0f fb 07 01 48 c7 c7 c0 0e 54 8b 4c 89 ee 31 c0 e8 0a a6 38 fb <0f> 0b e9 62 ef ff ff e8 1e a4 71 fb eb 2d e8 17 a4 71 fb 44 8b 74
RSP: 0018:ffffc90003b9fb98 EFLAGS: 00010246
RAX: 426a9f77cf7b8500 RBX: ffff888147404170 RCX: ffff88802466ba80
RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000
RBP: ffff88801781b908 R08: ffffffff816cfd9d R09: ffffed1017344f13
R10: ffffed1017344f13 R11: 1ffff11017344f12 R12: 0000000000000cc0
R13: ffff88801781b900 R14: dffffc0000000000 R15: dffffc0000000000
FS:  00007f4f070fe700(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007efd363cd160 CR3: 000000001e8c6000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 send_packet+0x5ad/0xa90 drivers/media/rc/imon.c:642
 vfd_write+0x218/0x5b0 drivers/media/rc/imon.c:989
 vfs_write+0x2e5/0xbb0 fs/read_write.c:582
 ksys_write+0x19b/0x2c0 fs/read_write.c:637
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f4f07172119
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 81 14 00 00 90 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 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f4f070fe2f8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f4f071f64d0 RCX: 00007f4f07172119
RDX: 0000000000000001 RSI: 00000000200004c0 RDI: 0000000000000004
RBP: 00007f4f071f64dc R08: 00007f4f070fe700 R09: 0000000000000000
R10: 00007f4f070fe700 R11: 0000000000000246 R12: 00007f4f071c4080
R13: 0b8b0509005505e1 R14: 0d97714ecb804e96 R15: 00007f4f071f64d8
 </TASK>

Crashes (830):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kasan-gce-smack-root 2022/11/11 03:13 upstream 1767a722a708 3ead01ad .config log report syz C WARNING in send_packet/usb_submit_urb
ci-upstream-kasan-gce-selinux-root 2022/11/04 06:21 upstream f2f32f8af2b0 6d752409 .config log report syz C WARNING in send_packet/usb_submit_urb
ci-upstream-kasan-gce-smack-root 2022/10/29 22:17 upstream b229b6ca5abb 899d812a .config log report syz C WARNING in send_packet/usb_submit_urb
ci-upstream-kasan-gce-smack-root 2022/10/05 04:41 upstream a5088ee7251e eab8f949 .config log report syz C WARNING in send_packet/usb_submit_urb
ci-upstream-kasan-gce-root 2022/09/02 00:13 upstream 2880e1a175b9 86c46e46 .config log report syz C WARNING in send_packet/usb_submit_urb
ci-upstream-kasan-gce 2022/08/29 10:32 upstream 8379c0b31fbc 07177916 .config log report syz C WARNING in send_packet/usb_submit_urb
ci-upstream-kasan-gce-root 2022/08/22 07:54 upstream e3f259d33c0e 26a13b38 .config log report syz C WARNING in send_packet/usb_submit_urb
ci-upstream-kasan-gce-root 2022/08/20 02:21 upstream 4c2d0b039c5c 26a13b38 .config log report syz C WARNING in send_packet/usb_submit_urb
ci-upstream-kasan-gce 2022/08/11 17:19 upstream 200e340f2196 787ed7e0 .config log report syz C WARNING in send_packet/usb_submit_urb
ci-upstream-kasan-gce 2022/08/06 01:50 upstream 200e340f2196 e853abd9 .config log report syz C WARNING in send_packet/usb_submit_urb
ci-upstream-kasan-gce-root 2022/08/04 04:21 upstream 200e340f2196 1c9013ac .config log report syz C WARNING in send_packet/usb_submit_urb
ci-upstream-kasan-gce 2022/07/01 05:15 upstream 1a0e93df1e10 1434eec0 .config log report syz C WARNING in send_packet/usb_submit_urb
ci-upstream-linux-next-kasan-gce-root 2022/10/15 10:40 linux-next aaa11ce2ffc8 67cb024c .config log report syz C WARNING in send_packet/usb_submit_urb
ci-upstream-linux-next-kasan-gce-root 2022/10/03 00:42 linux-next aaa11ce2ffc8 feb56351 .config log report syz C WARNING in send_packet/usb_submit_urb
ci-upstream-linux-next-kasan-gce-root 2022/09/14 02:32 linux-next e47eb90a0a9a b884348d .config log report syz C WARNING in send_packet/usb_submit_urb
ci2-upstream-usb 2022/08/29 13:59 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing ffcf9c5700e4 94da0b6b .config log report syz C WARNING in send_packet/usb_submit_urb
ci2-upstream-usb 2022/08/11 14:43 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing ffcf9c5700e4 787ed7e0 .config log report syz C WARNING in send_packet/usb_submit_urb
ci2-upstream-usb 2022/08/05 19:12 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing b2a88c212e65 a65a7ce9 .config log report syz C WARNING in send_packet/usb_submit_urb
ci2-upstream-usb 2022/07/01 04:51 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 1ce69c35b860 1434eec0 .config log report syz C WARNING in send_packet/usb_submit_urb
ci-upstream-kasan-gce 2022/11/26 10:08 upstream 0b1dcc2cf55a 74a66371 .config log report info WARNING in send_packet/usb_submit_urb
ci-upstream-kasan-gce 2022/11/24 11:30 upstream 4312098baf37 12c66417 .config log report info WARNING in send_packet/usb_submit_urb
ci-upstream-kasan-gce 2022/11/17 04:46 upstream 59d0d52c30d4 3a127a31 .config log report info WARNING in send_packet/usb_submit_urb
ci-upstream-kasan-gce-root 2022/10/04 19:28 upstream a5088ee7251e eab8f949 .config log report info WARNING in send_packet/usb_submit_urb
ci-upstream-kasan-gce-386 2022/10/03 05:30 upstream a962b54e162c feb56351 .config log report info WARNING in send_packet/usb_submit_urb
ci2-upstream-usb 2022/11/21 00:32 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing dd65a243a915 5bb70014 .config log report info WARNING in send_packet/usb_submit_urb
ci2-upstream-usb 2022/11/20 14:56 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing dd65a243a915 5bb70014 .config log report info WARNING in send_packet/usb_submit_urb
ci2-upstream-usb 2022/11/20 13:05 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing dd65a243a915 5bb70014 .config log report info WARNING in send_packet/usb_submit_urb
ci2-upstream-usb 2022/11/20 02:42 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing dd65a243a915 5bb70014 .config log report info WARNING in send_packet/usb_submit_urb
ci2-upstream-usb 2022/11/19 23:48 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing dd65a243a915 5bb70014 .config log report info WARNING in send_packet/usb_submit_urb
ci2-upstream-usb 2022/11/19 22:21 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing dd65a243a915 5bb70014 .config log report info WARNING in send_packet/usb_submit_urb
ci2-upstream-usb 2022/11/19 17:29 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing dd65a243a915 5bb70014 .config log report info WARNING in send_packet/usb_submit_urb
ci2-upstream-usb 2022/11/19 13:45 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing dd65a243a915 5bb70014 .config log report info WARNING in send_packet/usb_submit_urb
ci2-upstream-usb 2022/11/19 12:09 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing dd65a243a915 5bb70014 .config log report info WARNING in send_packet/usb_submit_urb
ci2-upstream-usb 2022/11/19 11:04 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing dd65a243a915 5bb70014 .config log report info WARNING in send_packet/usb_submit_urb
ci2-upstream-usb 2022/11/19 04:44 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing dd65a243a915 5bb70014 .config log report info WARNING in send_packet/usb_submit_urb
ci2-upstream-usb 2022/11/18 05:36 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing dd65a243a915 5bb70014 .config log report info WARNING in send_packet/usb_submit_urb
ci2-upstream-usb 2022/11/18 03:13 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing dd65a243a915 5bb70014 .config log report info WARNING in send_packet/usb_submit_urb
ci2-upstream-usb 2022/11/17 18:12 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing dd65a243a915 4ba8ab94 .config log report info WARNING in send_packet/usb_submit_urb
ci2-upstream-usb 2022/11/17 16:08 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing dd65a243a915 4ba8ab94 .config log report info WARNING in send_packet/usb_submit_urb
ci2-upstream-usb 2022/11/17 15:05 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing dd65a243a915 4ba8ab94 .config log report info WARNING in send_packet/usb_submit_urb
ci2-upstream-usb 2022/11/17 06:16 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing dd65a243a915 3a127a31 .config log report info WARNING in send_packet/usb_submit_urb
ci2-upstream-usb 2022/11/17 00:55 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing dd65a243a915 3a127a31 .config log report info WARNING in send_packet/usb_submit_urb
ci2-upstream-usb 2022/11/16 21:58 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing dd65a243a915 3a127a31 .config log report info WARNING in send_packet/usb_submit_urb
ci2-upstream-usb 2022/11/16 08:09 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing dd65a243a915 3a127a31 .config log report info WARNING in send_packet/usb_submit_urb
ci2-upstream-usb 2022/11/16 02:26 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing dd65a243a915 3a127a31 .config log report info WARNING in send_packet/usb_submit_urb
ci2-upstream-usb 2022/11/16 01:26 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing dd65a243a915 3a127a31 .config log report info WARNING in send_packet/usb_submit_urb
ci2-upstream-usb 2022/11/15 21:40 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing dd65a243a915 97de9cfc .config log report info WARNING in send_packet/usb_submit_urb
ci2-upstream-usb 2022/11/15 17:32 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing dd65a243a915 97de9cfc .config log report info WARNING in send_packet/usb_submit_urb
ci2-upstream-usb 2022/11/15 15:19 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing dd65a243a915 97de9cfc .config log report info WARNING in send_packet/usb_submit_urb
ci2-upstream-usb 2022/11/15 11:56 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing dd65a243a915 97de9cfc .config log report info WARNING in send_packet/usb_submit_urb
ci2-upstream-usb 2022/11/15 08:24 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing dd65a243a915 97de9cfc .config log report info WARNING in send_packet/usb_submit_urb
ci2-upstream-usb 2022/11/15 06:46 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing dd65a243a915 97de9cfc .config log report info WARNING in send_packet/usb_submit_urb
ci2-upstream-usb 2022/11/15 05:26 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing dd65a243a915 97de9cfc .config log report info WARNING in send_packet/usb_submit_urb
ci2-upstream-usb 2022/11/15 04:21 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing dd65a243a915 97de9cfc .config log report info WARNING in send_packet/usb_submit_urb
ci2-upstream-usb 2022/11/15 02:41 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing dd65a243a915 97de9cfc .config log report info WARNING in send_packet/usb_submit_urb
ci2-upstream-usb 2022/11/15 01:25 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing dd65a243a915 97de9cfc .config log report info WARNING in send_packet/usb_submit_urb
ci2-upstream-usb 2022/11/15 00:21 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing dd65a243a915 97de9cfc .config log report info WARNING in send_packet/usb_submit_urb
ci2-upstream-usb 2022/11/14 20:58 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing dd65a243a915 943f4cb8 .config log report info WARNING in send_packet/usb_submit_urb
ci2-upstream-usb 2022/11/14 17:41 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing dd65a243a915 943f4cb8 .config log report info WARNING in send_packet/usb_submit_urb
ci2-upstream-usb 2022/11/14 15:09 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing dd65a243a915 943f4cb8 .config log report info WARNING in send_packet/usb_submit_urb
ci2-upstream-usb 2022/11/14 13:42 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing dd65a243a915 943f4cb8 .config log report info WARNING in send_packet/usb_submit_urb
ci2-upstream-usb 2022/11/14 11:54 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing dd65a243a915 943f4cb8 .config log report info WARNING in send_packet/usb_submit_urb
ci2-upstream-usb 2022/11/14 09:17 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing dd65a243a915 7ba4d859 .config log report info WARNING in send_packet/usb_submit_urb
ci2-upstream-usb 2022/11/14 04:32 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing dd65a243a915 7ba4d859 .config log report info WARNING in send_packet/usb_submit_urb
ci2-upstream-usb 2022/11/13 20:19 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing dd65a243a915 7ba4d859 .config log report info WARNING in send_packet/usb_submit_urb
ci2-upstream-usb 2022/11/13 17:42 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing dd65a243a915 7ba4d859 .config log report info WARNING in send_packet/usb_submit_urb
ci2-upstream-usb 2022/11/13 02:34 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing dd65a243a915 f42ee5d8 .config log report info WARNING in send_packet/usb_submit_urb
ci2-upstream-usb 2022/11/12 23:10 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing dd65a243a915 f42ee5d8 .config log report info WARNING in send_packet/usb_submit_urb
ci2-upstream-usb 2022/11/12 17:45 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing dd65a243a915 f42ee5d8 .config log report info WARNING in send_packet/usb_submit_urb
ci2-upstream-usb 2022/11/11 18:35 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing dd65a243a915 f42ee5d8 .config log report info WARNING in send_packet/usb_submit_urb
ci2-upstream-usb 2022/11/11 15:58 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing dd65a243a915 f42ee5d8 .config log report info WARNING in send_packet/usb_submit_urb
ci2-upstream-usb 2022/11/11 14:26 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing dd65a243a915 f42ee5d8 .config log report info WARNING in send_packet/usb_submit_urb
ci2-upstream-usb 2022/07/01 03:28 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 1ce69c35b860 1434eec0 .config log report info WARNING in send_packet/usb_submit_urb
* Struck through repros no longer work on HEAD.