Hello,
syzbot found the following crash on:
HEAD commit: 017d67e9 ANDROID: CC_FLAGS_CFI add -fno-sanitize-blacklist
git tree: android-5.4
console output:
https://syzkaller.appspot.com/x/log.txt?x=16864e2de00000
kernel config:
https://syzkaller.appspot.com/x/.config?x=3f89e7b19e996a7b
dashboard link:
https://syzkaller.appspot.com/bug?extid=9f1864536c435ba15b05
compiler: Android (6032204 based on r370808) clang version 10.0.1 (
https://android.googlesource.com/toolchain/llvm-project 6e765c10313d15c02ab29977a82938f66742c3a9)
syz repro:
https://syzkaller.appspot.com/x/repro.syz?x=105b2f29e00000
C reproducer:
https://syzkaller.appspot.com/x/repro.c?x=10c5f691e00000
IMPORTANT: if you fix the bug, please add the following tag to the commit:
Reported-by:
syzbot+9f1864...@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: 3642 Comm: syz-executor052 Not tainted 5.4.24-syzkaller-00161-g017d67e9a8b3 #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:ffff8881d5a9fa78 EFLAGS: 00010046
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: dffffc0000000000 RSI: 0000000000000001 RDI: ffff8881d1ff92a0
RBP: ffff8881d5a9fad0 R08: 0000000000000000 R09: ffff8881d5a9fb20
R10: ffffed103ab53f49 R11: 0000000000000004 R12: 0000000000000000
R13: ffff8881d1ff92a8 R14: ffffffffffffffe8 R15: ffff8881d5a9fb20
FS: 0000000000000000(0000) GS:ffff8881dbb00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000004c0dc8 CR3: 000000000460e001 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_release+0x98/0x600 drivers/hid/uhid.c:642
__fput+0x295/0x710 fs/file_table.c:280
____fput+0x15/0x20 fs/file_table.c:313
task_work_run+0x176/0x1a0 kernel/task_work.c:113
exit_task_work include/linux/task_work.h:22 [inline]
do_exit+0xc02/0x26f0 kernel/exit.c:801
do_group_exit+0x153/0x2a0 kernel/exit.c:899
__do_sys_exit_group+0x17/0x20 kernel/exit.c:910
__se_sys_exit_group+0x14/0x20 kernel/exit.c:908
__x64_sys_exit_group+0x3b/0x40 kernel/exit.c:908
do_syscall_64+0xc0/0x100 arch/x86/entry/common.c:290
entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x4403d8
Code: Bad RIP value.
RSP: 002b:00007ffee3a68248 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000004403d8
RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000
RBP: 00000000004c0d90 R08: 00000000000000e7 R09: ffffffffffffffd4
R10: 0000000000402570 R11: 0000000000000246 R12: 0000000000000001
R13: 00000000006d3180 R14: 0000000000000000 R15: 0000000000000000
Modules linked in:
---[ end trace ff7acb9e9033ce76 ]---
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:ffff8881d5a9fa78 EFLAGS: 00010046
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: dffffc0000000000 RSI: 0000000000000001 RDI: ffff8881d1ff92a0
RBP: ffff8881d5a9fad0 R08: 0000000000000000 R09: ffff8881d5a9fb20
R10: ffffed103ab53f49 R11: 0000000000000004 R12: 0000000000000000
R13: ffff8881d1ff92a8 R14: ffffffffffffffe8 R15: ffff8881d5a9fb20
FS: 0000000000000000(0000) GS:ffff8881dbb00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000004403ae CR3: 000000000460e001 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 can test patches for this bug, for details see:
https://goo.gl/tpsmEJ#testing-patches