general protection fault in uhid_char_write

4 views
Skip to first unread message

syzbot

unread,
Mar 9, 2020, 2:52:11 AM3/9/20
to syzkaller-a...@googlegroups.com
Hello,

syzbot found the following crash on:

HEAD commit: 3334f0da FROMGIT: driver core: Reevaluate dev->links.need_..
git tree: android-5.4
console output: https://syzkaller.appspot.com/x/log.txt?x=13f40af9e00000
kernel config: https://syzkaller.appspot.com/x/.config?x=2425845ca84241a0
dashboard link: https://syzkaller.appspot.com/bug?extid=8166e4919828a3f3335b
compiler: Android (6032204 based on r370808) clang version 10.0.1 (https://android.googlesource.com/toolchain/llvm-project 6e765c10313d15c02ab29977a82938f66742c3a9)

Unfortunately, I don't have any reproducer for this crash yet.

IMPORTANT: if you fix the bug, please add the following tag to the commit:
Reported-by: syzbot+8166e4...@syzkaller.appspotmail.com

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: 22613 Comm: syz-executor.4 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:ffff8881c5677858 EFLAGS: 00010046
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: dffffc0000000000 RSI: 0000000000000001 RDI: ffff88819c4dd2a0
RBP: ffff8881c56778b0 R08: 0000000000000000 R09: ffff8881c5677900
R10: ffffed1038acef05 R11: 0000000000000004 R12: 0000000000000000
R13: ffff88819c4dd2a8 R14: ffffffffffffffe8 R15: ffff8881c5677900
FS: 00007f9c7ae2b700(0000) GS:ffff8881dbb00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000000076c000 CR3: 00000001da233006 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:00007f9c7ae2ac78 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f9c7ae2b6d4 RCX: 000000000045c4a9
RDX: 0000000000000235 RSI: 00000000200000c0 RDI: 0000000000000004
RBP: 000000000076bfc0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff
R13: 0000000000000cce R14: 00000000004ceb5c R15: 000000000076bfcc
Modules linked in:
---[ end trace 42dcf2a92a7a7fd1 ]---
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:ffff8881c5677858 EFLAGS: 00010046
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: dffffc0000000000 RSI: 0000000000000001 RDI: ffff88819c4dd2a0
RBP: ffff8881c56778b0 R08: 0000000000000000 R09: ffff8881c5677900
R10: ffffed1038acef05 R11: 0000000000000004 R12: 0000000000000000
R13: ffff88819c4dd2a8 R14: ffffffffffffffe8 R15: ffff8881c5677900
FS: 00007f9c7ae2b700(0000) GS:ffff8881dbb00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000000076c000 CR3: 00000001da233006 CR4: 00000000001606e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400


---
This bug is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzk...@googlegroups.com.

syzbot will keep track of this bug report. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

syzbot

unread,
Jul 7, 2020, 7:49:15 AM7/7/20
to syzkaller-a...@googlegroups.com
Auto-closing this bug as obsolete.
Crashes did not happen for a while, no reproducer and no activity.
Reply all
Reply to author
Forward
0 new messages