syzbot


general protection fault in uhid_char_release

Status: upstream: reported C repro on 2020/03/06 02:03
Reported-by: syzbot+9f1864536c435ba15b05@syzkaller.appspotmail.com
First crash: 1005d, last: 828d
Patch testing requests:
Created Duration User Patch Repo Result
2022/08/28 12:27 0m retest repro https://android.googlesource.com/kernel/common android-5.4 error
2022/08/28 11:27 0m retest repro https://android.googlesource.com/kernel/common android-5.4 error
2022/08/28 09:27 0m retest repro https://android.googlesource.com/kernel/common android-5.4 error
2022/08/28 07:27 0m retest repro https://android.googlesource.com/kernel/common android-5.4 error
2022/08/28 04:27 0m retest repro https://android.googlesource.com/kernel/common android-5.4 error
2022/08/28 03:27 0m retest repro https://android.googlesource.com/kernel/common android-5.4 error
2022/08/28 01:27 0m retest repro https://android.googlesource.com/kernel/common android-5.4 error
2022/08/27 23:27 0m retest repro https://android.googlesource.com/kernel/common android-5.4 error
2022/08/27 22:27 0m retest repro https://android.googlesource.com/kernel/common android-5.4 error
2022/08/27 20:27 0m retest repro https://android.googlesource.com/kernel/common android-5.4 error
2022/08/27 18:27 0m retest repro https://android.googlesource.com/kernel/common android-5.4 error
2022/08/27 15:27 0m retest repro https://android.googlesource.com/kernel/common android-5.4 error

Sample crash report:
kasan: CONFIG_KASAN_INLINE enabled
kasan: GPF could be caused by NULL-ptr deref or user memory access
general protection fault: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 529 Comm: syz-executor447 Not tainted 5.4.61-syzkaller-00873-ge15cc541b749 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:__wake_up_common+0x217/0x450 kernel/sched/wait.c:86
Code: 31 f6 eb 18 0f 1f 44 00 00 66 2e 0f 1f 84 00 00 00 00 00 4d 39 fc 0f 84 e3 01 00 00 4c 89 fb 49 8d 6f e8 4c 89 f8 48 c1 e8 03 <80> 3c 10 00 74 12 48 89 df e8 9b ff 47 00 48 ba 00 00 00 00 00 fc
RSP: 0018:ffff8881c8ce7ae0 EFLAGS: 00010046
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: dffffc0000000000 RSI: 0000000000000001 RDI: ffff8881c9bd52a0
RBP: ffffffffffffffe8 R08: 0000000000000000 R09: ffff8881c8ce7b80
R10: ffffed103919cf55 R11: 0000000000000004 R12: ffff8881c9bd52a8
R13: 1ffff1103919cf70 R14: 0000000000000000 R15: 0000000000000000
FS:  00000000015ea880(0000) GS:ffff8881db800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000004c0968 CR3: 00000001cfadf006 CR4: 00000000001606f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 __wake_up_common_lock kernel/sched/wait.c:123 [inline]
 __wake_up+0x145/0x210 kernel/sched/wait.c:142
 uhid_dev_destroy drivers/hid/uhid.c:563 [inline]
 uhid_char_release+0x8f/0x5f0 drivers/hid/uhid.c:642
 __fput+0x27d/0x6c0 fs/file_table.c:280
 task_work_run+0x176/0x1a0 kernel/task_work.c:113
 exit_task_work include/linux/task_work.h:22 [inline]
 do_exit+0xc42/0x2700 kernel/exit.c:808
 do_group_exit+0x155/0x2b0 kernel/exit.c:906
 __do_sys_exit_group+0x13/0x20 kernel/exit.c:917
 __se_sys_exit_group+0x10/0x10 kernel/exit.c:915
 __x64_sys_exit_group+0x37/0x40 kernel/exit.c:915
 do_syscall_64+0xcb/0x150 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x43ff88
Code: Bad RIP value.
RSP: 002b:00007ffde94e3f28 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ff88
RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000
RBP: 00000000004c0930 R08: 00000000000000e7 R09: ffffffffffffffd0
R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001
R13: 00000000006d2180 R14: 0000000000000000 R15: 0000000000000000
Modules linked in:
---[ end trace 0767bd5460ee6541 ]---
RIP: 0010:__wake_up_common+0x217/0x450 kernel/sched/wait.c:86
Code: 31 f6 eb 18 0f 1f 44 00 00 66 2e 0f 1f 84 00 00 00 00 00 4d 39 fc 0f 84 e3 01 00 00 4c 89 fb 49 8d 6f e8 4c 89 f8 48 c1 e8 03 <80> 3c 10 00 74 12 48 89 df e8 9b ff 47 00 48 ba 00 00 00 00 00 fc
RSP: 0018:ffff8881c8ce7ae0 EFLAGS: 00010046
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: dffffc0000000000 RSI: 0000000000000001 RDI: ffff8881c9bd52a0
RBP: ffffffffffffffe8 R08: 0000000000000000 R09: ffff8881c8ce7b80
R10: ffffed103919cf55 R11: 0000000000000004 R12: ffff8881c9bd52a8
R13: 1ffff1103919cf70 R14: 0000000000000000 R15: 0000000000000000
FS:  00000000015ea880(0000) GS:ffff8881db800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000000043ff5e CR3: 00000001cfadf006 CR4: 00000000001606f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (27):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-android-5-4-kasan 2020/08/29 11:46 https://android.googlesource.com/kernel/common android-5.4 e15cc541b749 d5a3ae1f .config log report syz C
ci2-android-5-4-kasan 2020/08/07 06:30 https://android.googlesource.com/kernel/common android-5.4 20874555c706 cb436c69 .config log report syz C
ci2-android-5-4-kasan 2020/04/24 12:22 https://android.googlesource.com/kernel/common android-5.4 6672f8e3a405 03d97a1b .config log report syz C
ci2-android-5-4-kasan 2020/03/30 05:03 https://android.googlesource.com/kernel/common android-5.4 8398205ce446 05736b29 .config log report syz C
ci2-android-5-4-kasan 2020/03/22 06:37 https://android.googlesource.com/kernel/common android-5.4 16ada3b38ebf 78267cec .config log report syz C
ci2-android-5-4-kasan 2020/03/21 16:15 https://android.googlesource.com/kernel/common android-5.4 62060692112b aa6c6a55 .config log report syz C
ci2-android-5-4-kasan 2020/03/21 15:49 https://android.googlesource.com/kernel/common android-5.4 62060692112b aa6c6a55 .config log report syz C
ci2-android-5-4-kasan 2020/03/19 22:59 https://android.googlesource.com/kernel/common android-5.4 fe54c238b38a 2c31c529 .config log report syz C
ci2-android-5-4-kasan 2020/03/19 10:39 https://android.googlesource.com/kernel/common android-5.4 401eeccd435b 2c31c529 .config log report syz C
ci2-android-5-4-kasan 2020/03/15 12:39 https://android.googlesource.com/kernel/common android-5.4 21ee296526c7 749688d2 .config log report syz C
ci2-android-5-4-kasan 2020/03/09 12:05 https://android.googlesource.com/kernel/common android-5.4 3334f0da669e 2e9971bb .config log report syz C
ci2-android-5-4-kasan 2020/03/06 02:02 https://android.googlesource.com/kernel/common android-5.4 017d67e9a8b3 b655d91b .config log report syz C
ci2-android-5-4-kasan 2020/08/30 05:19 https://android.googlesource.com/kernel/common android-5.4 e15cc541b749 d5a3ae1f .config log report
ci2-android-5-4-kasan 2020/05/08 05:18 https://android.googlesource.com/kernel/common android-5.4 2c3b4cba8ab3 6c70a1c2 .config log report
ci2-android-5-4-kasan 2020/04/30 20:54 https://android.googlesource.com/kernel/common android-5.4 484d980ecf78 3698959a .config log report
ci2-android-5-4-kasan 2020/04/24 12:47 https://android.googlesource.com/kernel/common android-5.4 6672f8e3a405 03d97a1b .config log report
ci2-android-5-4-kasan 2020/04/22 19:33 https://android.googlesource.com/kernel/common android-5.4 6aa1b53a5bc4 2e44d63e .config log report
ci2-android-5-4-kasan 2020/04/14 08:49 https://android.googlesource.com/kernel/common android-5.4 1f19ec7b027d 7c54686a .config log report
ci2-android-5-4-kasan 2020/04/09 01:31 https://android.googlesource.com/kernel/common android-5.4 9179772db7e6 a8c6a3f8 .config log report
ci2-android-5-4-kasan 2020/04/07 21:00 https://android.googlesource.com/kernel/common android-5.4 fc78ab971efe db9bcd4b .config log report
ci2-android-5-4-kasan 2020/03/28 09:19 https://android.googlesource.com/kernel/common android-5.4 fc2c4ee73fe3 831e9a81 .config log report
ci2-android-5-4-kasan 2020/03/28 09:08 https://android.googlesource.com/kernel/common android-5.4 fc2c4ee73fe3 831e9a81 .config log report
ci2-android-5-4-kasan 2020/03/25 14:25 https://android.googlesource.com/kernel/common android-5.4 a94bb98bfb79 e8e6c7d2 .config log report
ci2-android-5-4-kasan 2020/03/24 15:55 https://android.googlesource.com/kernel/common android-5.4 8874c961255a 33e14df3 .config log report
ci2-android-5-4-kasan 2020/03/19 02:28 https://android.googlesource.com/kernel/common android-5.4 401eeccd435b 2c31c529 .config log report
ci2-android-5-4-kasan 2020/03/18 16:31 https://android.googlesource.com/kernel/common android-5.4 62a48a7e90f9 0a96a13c .config log report
ci2-android-5-4-kasan 2020/03/14 18:53 https://android.googlesource.com/kernel/common android-5.4 21ee296526c7 749688d2 .config log report
* Struck through repros no longer work on HEAD.