general protection fault in prepare_to_wait_event

8 views
Skip to first unread message

syzbot

unread,
Mar 19, 2020, 6:42:14 PM3/19/20
to syzkaller-a...@googlegroups.com
Hello,

syzbot found the following crash on:

HEAD commit: fe54c238 ANDROID: GKI: module.h: add Android ABI padding t..
git tree: android-5.4
console output: https://syzkaller.appspot.com/x/log.txt?x=1346a68de00000
kernel config: https://syzkaller.appspot.com/x/.config?x=12541171095551c4
dashboard link: https://syzkaller.appspot.com/bug?extid=f9c7187515a4b863a507
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+f9c718...@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: 0 PID: 25181 Comm: syz-executor.0 Not tainted 5.4.26-syzkaller-00556-gfe54c238b38a #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:__list_add_valid+0x2b/0xc0 lib/list_debug.c:23
Code: 48 89 e5 41 57 41 56 41 55 41 54 53 49 89 d6 49 89 f4 49 89 ff 49 bd 00 00 00 00 00 fc ff df 48 8d 5a 08 48 89 d8 48 c1 e8 03 <42> 80 3c 28 00 74 08 48 89 df e8 e6 5f 74 ff 48 8b 13 4c 39 e2 75
RSP: 0018:ffff8881cefcf9e8 EFLAGS: 00010002
RAX: 0000000000000001 RBX: 0000000000000008 RCX: ffff888103451168
RDX: 0000000000000000 RSI: ffff888103451168 RDI: ffff8881cefcfb98
RBP: ffff8881cefcfa10 R08: dffffc0000000000 R09: ffffed101220b1d9
R10: ffffed101220b1d9 R11: 0000000000000000 R12: ffff888103451168
R13: dffffc0000000000 R14: 0000000000000000 R15: ffff8881cefcfb98
FS: 00007f6f77813700(0000) GS:ffff8881dba00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b33a21000 CR3: 00000001cad52001 CR4: 00000000001606f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
__list_add include/linux/list.h:60 [inline]
list_add include/linux/list.h:79 [inline]
__add_wait_queue include/linux/wait.h:169 [inline]
prepare_to_wait_event+0x217/0x530 kernel/sched/wait.c:284
uhid_char_read+0x1c2/0x6e0 drivers/hid/uhid.c:669
do_loop_readv_writev fs/read_write.c:717 [inline]
do_iter_read+0x4a2/0x5b0 fs/read_write.c:938
vfs_readv fs/read_write.c:1000 [inline]
do_readv+0x216/0x400 fs/read_write.c:1037
__do_sys_readv fs/read_write.c:1128 [inline]
__se_sys_readv fs/read_write.c:1125 [inline]
__x64_sys_readv+0x7d/0x90 fs/read_write.c:1125
do_syscall_64+0xc0/0x100 arch/x86/entry/common.c:290
entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x45c849
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:00007f6f77812c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000013
RAX: ffffffffffffffda RBX: 00007f6f778136d4 RCX: 000000000045c849
RDX: 0000000000000001 RSI: 0000000020000600 RDI: 0000000000000003
RBP: 000000000076bfa0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff
R13: 0000000000000886 R14: 00000000004cb18c R15: 000000000076bfac
Modules linked in:
---[ end trace 687d1fb766b7cbc0 ]---
RIP: 0010:__list_add_valid+0x2b/0xc0 lib/list_debug.c:23
Code: 48 89 e5 41 57 41 56 41 55 41 54 53 49 89 d6 49 89 f4 49 89 ff 49 bd 00 00 00 00 00 fc ff df 48 8d 5a 08 48 89 d8 48 c1 e8 03 <42> 80 3c 28 00 74 08 48 89 df e8 e6 5f 74 ff 48 8b 13 4c 39 e2 75
RSP: 0018:ffff8881cefcf9e8 EFLAGS: 00010002
RAX: 0000000000000001 RBX: 0000000000000008 RCX: ffff888103451168
RDX: 0000000000000000 RSI: ffff888103451168 RDI: ffff8881cefcfb98
RBP: ffff8881cefcfa10 R08: dffffc0000000000 R09: ffffed101220b1d9
R10: ffffed101220b1d9 R11: 0000000000000000 R12: ffff888103451168
R13: dffffc0000000000 R14: 0000000000000000 R15: ffff8881cefcfb98
FS: 00007f6f77813700(0000) GS:ffff8881dba00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b33a21000 CR3: 00000001cad52001 CR4: 00000000001606f0
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 17, 2020, 6:42:11 PM7/17/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