syzbot


BUG: corrupted list in mousedev_release

Status: fixed on 2020/09/30 06:27
Reported-by: syzbot+8ed2ec1e9532c331e97e@syzkaller.appspotmail.com
Fix commit: 37d933e8b41b fix regression in "epoll: Keep a reference on files added to the check list"
First crash: 1331d, last: 1331d
Fix bisection: fixed by (bisect log) :
commit 37d933e8b41b83bb8278815e366aec5a542b7e31
Author: Al Viro <viro@zeniv.linux.org.uk>
Date: Wed Sep 2 15:30:48 2020 +0000

  fix regression in "epoll: Keep a reference on files added to the check list"

  
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.14 BUG: corrupted list in mousedev_release syz done 1 1331d 1331d 1/1 fixed on 2020/09/30 06:39
upstream BUG: corrupted list in mousedev_release input syz done 5 1330d 1331d 15/26 fixed on 2020/09/25 01:17

Sample crash report:
Bluetooth: hci0: command 0x041b tx timeout
Bluetooth: hci0: command 0x040f tx timeout
Bluetooth: hci0: command 0x0419 tx timeout
list_del corruption, ffff88809e5cca50->prev is LIST_POISON2 (dead000000000200)
------------[ cut here ]------------
kernel BUG at lib/list_debug.c:48!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 9167 Comm: syz-executor.0 Not tainted 4.19.142-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:__list_del_entry_valid.cold+0x37/0x55 lib/list_debug.c:48
Code: f4 fd 0f 0b 4c 89 ea 48 89 ee 48 c7 c7 40 0d cb 87 e8 11 12 f4 fd 0f 0b 4c 89 e2 48 89 ee 48 c7 c7 a0 0d cb 87 e8 fd 11 f4 fd <0f> 0b 48 89 ee 48 c7 c7 60 0e cb 87 e8 ec 11 f4 fd 0f 0b 90 90 90
RSP: 0018:ffff888096e37de0 EFLAGS: 00010286
RAX: 000000000000004e RBX: ffff88809b6d8880 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff8154d001 RDI: ffffed1012dc6fae
RBP: ffff88809e5cca50 R08: 000000000000004e R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: dead000000000200
R13: ffff88809b6d8918 R14: ffff88809e5cca50 R15: ffff88809e5cca58
FS:  00007f0c007b9700(0000) GS:ffff8880ae600000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000016a8660 CR3: 000000008c435000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 __list_del_entry include/linux/list.h:117 [inline]
 list_del_rcu include/linux/rculist.h:130 [inline]
 mousedev_detach_client drivers/input/mousedev.c:518 [inline]
 mousedev_release+0x7d/0x1f0 drivers/input/mousedev.c:528
 __fput+0x2ce/0x890 fs/file_table.c:278
 task_work_run+0x148/0x1c0 kernel/task_work.c:113
 tracehook_notify_resume include/linux/tracehook.h:193 [inline]
 exit_to_usermode_loop+0x251/0x2a0 arch/x86/entry/common.c:167
 prepare_exit_to_usermode arch/x86/entry/common.c:198 [inline]
 syscall_return_slowpath arch/x86/entry/common.c:271 [inline]
 do_syscall_64+0x538/0x620 arch/x86/entry/common.c:296
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x45d5b9
Code: 5d b4 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 2b b4 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007f0c007b8c78 EFLAGS: 00000246 ORIG_RAX: 00000000000000e9
RAX: 0000000000000000 RBX: 0000000000002ac0 RCX: 000000000045d5b9
RDX: 0000000000000004 RSI: 0000000000000001 RDI: 0000000000000005
RBP: 000000000118cf88 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000020000040 R11: 0000000000000246 R12: 000000000118cf4c
R13: 00007fff58e9cf0f R14: 00007f0c007b99c0 R15: 000000000118cf4c
Modules linked in:
---[ end trace d79bc53b1f6fe69e ]---
RIP: 0010:__list_del_entry_valid.cold+0x37/0x55 lib/list_debug.c:48
Code: f4 fd 0f 0b 4c 89 ea 48 89 ee 48 c7 c7 40 0d cb 87 e8 11 12 f4 fd 0f 0b 4c 89 e2 48 89 ee 48 c7 c7 a0 0d cb 87 e8 fd 11 f4 fd <0f> 0b 48 89 ee 48 c7 c7 60 0e cb 87 e8 ec 11 f4 fd 0f 0b 90 90 90
RSP: 0018:ffff888096e37de0 EFLAGS: 00010286
RAX: 000000000000004e RBX: ffff88809b6d8880 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff8154d001 RDI: ffffed1012dc6fae
RBP: ffff88809e5cca50 R08: 000000000000004e R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: dead000000000200
R13: ffff88809b6d8918 R14: ffff88809e5cca50 R15: ffff88809e5cca58
FS:  00007f0c007b9700(0000) GS:ffff8880ae600000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000016a8660 CR3: 000000008c435000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/08/30 20:53 linux-4.19.y f6d5cb9e2c06 d5a3ae1f .config console log report syz ci2-linux-4-19
* Struck through repros no longer work on HEAD.