syzbot


BUG: corrupted list in prepare_to_wait_event

Status: auto-closed as invalid on 2020/08/22 12:05
Reported-by: syzbot+203dab0973ed2614b955@syzkaller.appspotmail.com
First crash: 1723d, last: 1673d

Sample crash report:
list_del corruption. prev->next should be ffff8881cd68fbd8, but was 0000000000000000
------------[ cut here ]------------
kernel BUG at lib/list_debug.c:53!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 11837 Comm: syz-executor.1 Not tainted 5.4.35-syzkaller-00681-g6672f8e3a405 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:__list_del_entry_valid+0xe1/0x100 lib/list_debug.c:51
Code: 81 af 2f ff 0f 0b 48 c7 c7 1b 80 98 84 4c 89 f6 31 c0 e8 6e af 2f ff 0f 0b 48 c7 c7 53 80 98 84 4c 89 f6 31 c0 e8 5b af 2f ff <0f> 0b 48 c7 c7 91 80 98 84 4c 89 f6 31 c0 e8 48 af 2f ff 0f 0b 90
RSP: 0018:ffff8881cd68fa38 EFLAGS: 00010046
RAX: 0000000000000054 RBX: ffff8881d928d168 RCX: 2dc980da66744200
RDX: ffffc90002a32000 RSI: 00000000000017dd RDI: 00000000000017de
RBP: ffff8881cd68fb30 R08: ffffffff812bdcbe R09: ffffed103b725de0
R10: ffffed103b725de0 R11: 0000000000000000 R12: dffffc0000000000
R13: ffff8881cd68fbd8 R14: ffff8881cd68fbd8 R15: ffff8881d928d168
FS:  00007fc31381b700(0000) GS:ffff8881db900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020010000 CR3: 00000001d1e64002 CR4: 00000000001606e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 __list_del_entry include/linux/list.h:131 [inline]
 list_del_init include/linux/list.h:190 [inline]
 prepare_to_wait_event+0x2e6/0x540 kernel/sched/wait.c:277
 uhid_char_read+0x26f/0x6d0 drivers/hid/uhid.c:669
 do_loop_readv_writev fs/read_write.c:717 [inline]
 do_iter_read+0x43b/0x550 fs/read_write.c:938
 vfs_readv fs/read_write.c:1000 [inline]
 do_readv+0x26a/0x450 fs/read_write.c:1037
 do_syscall_64+0xcb/0x150 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x45c829
Code: 0d b7 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 db b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007fc31381ac78 EFLAGS: 00000246 ORIG_RAX: 0000000000000013
RAX: ffffffffffffffda RBX: 00000000004fadc0 RCX: 000000000045c829
RDX: 0000000000000002 RSI: 0000000020001680 RDI: 0000000000000003
RBP: 000000000078bf00 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff
R13: 000000000000088c R14: 00000000004cb1e3 R15: 00007fc31381b6d4
Modules linked in:
---[ end trace 7e588890c4adf42d ]---
RIP: 0010:__list_del_entry_valid+0xe1/0x100 lib/list_debug.c:51
Code: 81 af 2f ff 0f 0b 48 c7 c7 1b 80 98 84 4c 89 f6 31 c0 e8 6e af 2f ff 0f 0b 48 c7 c7 53 80 98 84 4c 89 f6 31 c0 e8 5b af 2f ff <0f> 0b 48 c7 c7 91 80 98 84 4c 89 f6 31 c0 e8 48 af 2f ff 0f 0b 90
RSP: 0018:ffff8881cd68fa38 EFLAGS: 00010046
RAX: 0000000000000054 RBX: ffff8881d928d168 RCX: 2dc980da66744200
RDX: ffffc90002a32000 RSI: 00000000000017dd RDI: 00000000000017de
RBP: ffff8881cd68fb30 R08: ffffffff812bdcbe R09: ffffed103b725de0
R10: ffffed103b725de0 R11: 0000000000000000 R12: dffffc0000000000
R13: ffff8881cd68fbd8 R14: ffff8881cd68fbd8 R15: ffff8881d928d168
FS:  00007fc31381b700(0000) GS:ffff8881db900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020010000 CR3: 00000001d1e64002 CR4: 00000000001606e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (4):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/04/24 12:04 https://android.googlesource.com/kernel/common android-5.4 6672f8e3a405 03d97a1b .config console log report ci2-android-5-4-kasan
2020/03/30 04:39 https://android.googlesource.com/kernel/common android-5.4 8398205ce446 05736b29 .config console log report ci2-android-5-4-kasan
2020/03/19 10:09 https://android.googlesource.com/kernel/common android-5.4 401eeccd435b 2c31c529 .config console log report ci2-android-5-4-kasan
2020/03/06 01:26 https://android.googlesource.com/kernel/common android-5.4 017d67e9a8b3 b655d91b .config console log report ci2-android-5-4-kasan
* Struck through repros no longer work on HEAD.