syzbot


general protection fault in uhid_char_write

Status: auto-closed as invalid on 2020/07/07 11:49
Reported-by: syzbot+8166e4919828a3f3335b@syzkaller.appspotmail.com
First crash: 1502d, last: 1502d

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: 1 PID: 6698 Comm: syz-executor.1 Not tainted 5.4.24-syzkaller-00181-g3334f0da669e #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:__wake_up_common+0x218/0x450 kernel/sched/wait.c:86
Code: 89 c5 c7 45 c0 00 00 00 00 eb 10 0f 1f 80 00 00 00 00 4d 39 e5 0f 84 e1 01 00 00 4c 89 e3 4d 8d 74 24 e8 4c 89 e0 48 c1 e8 03 <80> 3c 10 00 74 12 48 89 df e8 ea 9d 47 00 48 ba 00 00 00 00 00 fc
RSP: 0018:ffff88819a337858 EFLAGS: 00010046
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: dffffc0000000000 RSI: 0000000000000001 RDI: ffff8881c6fc52a0
RBP: ffff88819a3378b0 R08: 0000000000000000 R09: ffff88819a337900
R10: ffffed1033466f05 R11: 0000000000000004 R12: 0000000000000000
R13: ffff8881c6fc52a8 R14: ffffffffffffffe8 R15: ffff88819a337900
FS:  00007f8ecb31d700(0000) GS:ffff8881dbb00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020010000 CR3: 00000001d56a3001 CR4: 00000000001606e0
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_write+0x7f5/0x1c90 drivers/hid/uhid.c:741
 __vfs_write+0xff/0x700 fs/read_write.c:496
 vfs_write+0x203/0x4e0 fs/read_write.c:560
 ksys_write+0x168/0x2a0 fs/read_write.c:614
 __do_sys_write fs/read_write.c:626 [inline]
 __se_sys_write fs/read_write.c:623 [inline]
 __x64_sys_write+0x7b/0x90 fs/read_write.c:623
 do_syscall_64+0xc0/0x100 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x45c4a9
Code: ad b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 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 0f 83 7b b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007f8ecb31cc78 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f8ecb31d6d4 RCX: 000000000045c4a9
RDX: 0000000000000235 RSI: 00000000200000c0 RDI: 0000000000000003
RBP: 000000000076bfc0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff
R13: 0000000000000cce R14: 00000000004ceb5c R15: 000000000076bfcc
Modules linked in:
---[ end trace 55544404eed43361 ]---
RIP: 0010:__wake_up_common+0x218/0x450 kernel/sched/wait.c:86
Code: 89 c5 c7 45 c0 00 00 00 00 eb 10 0f 1f 80 00 00 00 00 4d 39 e5 0f 84 e1 01 00 00 4c 89 e3 4d 8d 74 24 e8 4c 89 e0 48 c1 e8 03 <80> 3c 10 00 74 12 48 89 df e8 ea 9d 47 00 48 ba 00 00 00 00 00 fc
RSP: 0018:ffff88819a337858 EFLAGS: 00010046
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: dffffc0000000000 RSI: 0000000000000001 RDI: ffff8881c6fc52a0
RBP: ffff88819a3378b0 R08: 0000000000000000 R09: ffff88819a337900
R10: ffffed1033466f05 R11: 0000000000000004 R12: 0000000000000000
R13: ffff8881c6fc52a8 R14: ffffffffffffffe8 R15: ffff88819a337900
FS:  00007f8ecb31d700(0000) GS:ffff8881dbb00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020010000 CR3: 00000001d56a3001 CR4: 00000000001606e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/03/09 11:48 https://android.googlesource.com/kernel/common android-5.4 3334f0da669e 2e9971bb .config console log report ci2-android-5-4-kasan
2020/03/09 06:51 https://android.googlesource.com/kernel/common android-5.4 3334f0da669e 2e9971bb .config console log report ci2-android-5-4-kasan
* Struck through repros no longer work on HEAD.