syzbot


general protection fault in tty_release

Status: upstream: reported C repro on 2020/08/29 05:22
Reported-by: syzbot+0a106d9018ee84723321@syzkaller.appspotmail.com
First crash: 819d, last: 807d
similar bugs (2):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 general protection fault in tty_release C done 9 812d 819d 1/1 fixed on 2020/10/05 13:12
linux-4.14 general protection fault in tty_release C done 10 809d 819d 1/1 fixed on 2020/10/08 10:30

Sample crash report:
kasan: GPF could be caused by NULL-ptr deref or user memory access
general protection fault: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 1592 Comm: syz-executor953 Not tainted 5.4.61-syzkaller-00823-g34364883b1f7 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:file_tty drivers/tty/tty_io.c:181 [inline]
RIP: 0010:__tty_fasync drivers/tty/tty_io.c:2120 [inline]
RIP: 0010:tty_release+0xf0/0x1100 drivers/tty/tty_io.c:1664
Code: 00 00 00 fc ff df 41 80 7c 05 00 00 74 08 4c 89 f7 e8 c4 15 34 ff 49 8b 1e 48 89 d8 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df <80> 3c 08 00 74 08 48 89 df e8 a2 15 34 ff 4c 89 74 24 18 48 8b 2b
RSP: 0018:ffff8881cc727da0 EFLAGS: 00010246
RAX: 0000000000000000 RBX: 0000000000000000 RCX: dffffc0000000000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 0000000000005401 R08: ffffffff823c3e0c R09: ffffed10398e05a1
R10: ffffed10398e05a1 R11: 0000000000000000 R12: ffff8881cc6eb000
R13: 1ffff110399b4a69 R14: ffff8881ccda5348 R15: ffff8881ccda5280
FS:  00007efe52c27700(0000) GS:ffff8881db900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007efe52c05e78 CR3: 00000001ccdf3003 CR4: 00000000001606e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 __fput+0x27d/0x6c0 fs/file_table.c:280
 task_work_run+0x176/0x1a0 kernel/task_work.c:113
 tracehook_notify_resume include/linux/tracehook.h:188 [inline]
 exit_to_usermode_loop arch/x86/entry/common.c:163 [inline]
 prepare_exit_to_usermode+0x286/0x2e0 arch/x86/entry/common.c:194
 entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x446899
Code: e8 5c b3 02 00 48 83 c4 18 c3 0f 1f 80 00 00 00 00 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 8b 07 fc ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007efe52c26db8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e9
RAX: 0000000000000000 RBX: 00000000006dbc58 RCX: 0000000000446899
RDX: 0000000000000006 RSI: 0000000000000001 RDI: 0000000000000007
RBP: 00000000006dbc50 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000020000380 R11: 0000000000000246 R12: 00000000006dbc5c
R13: 00007ffeaf98799f R14: 00007efe52c279c0 R15: 20c49ba5e353f7cf
Modules linked in:
RSP: 0018:ffff8881cc727da0 EFLAGS: 00010246
RBP: 0000000000005401 R08: ffffffff823c3e0c R09: ffffed10398e05a1
R13: 1ffff110399b4a69 R14: ffff8881ccda5348 R15: ffff8881ccda5280
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007efe52c05e78 CR3: 00000001ccdf3003 CR4: 00000000001606e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (11):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-android-5-4-kasan 2020/08/29 05:54 https://android.googlesource.com/kernel/common android-5.4 34364883b1f7 d5a3ae1f .config log report syz C
ci2-android-5-4-kasan 2020/09/10 01:20 https://android.googlesource.com/kernel/common android-5.4 80d830d79a4d ac7ca78e .config log report syz
ci2-android-5-4-kasan 2020/09/08 01:58 https://android.googlesource.com/kernel/common android-5.4 c99fd3bf1076 abf9ba4f .config log report syz
ci2-android-5-4-kasan 2020/09/04 11:56 https://android.googlesource.com/kernel/common android-5.4 0ddc717be4a9 abf9ba4f .config log report syz
ci2-android-5-4-kasan 2020/09/04 10:05 https://android.googlesource.com/kernel/common android-5.4 0ddc717be4a9 abf9ba4f .config log report syz
ci2-android-5-4-kasan 2020/09/03 15:33 https://android.googlesource.com/kernel/common android-5.4 0ede4657b27f abf9ba4f .config log report syz
ci2-android-5-4-kasan 2020/08/31 01:08 https://android.googlesource.com/kernel/common android-5.4 e15cc541b749 d5a3ae1f .config log report syz
ci2-android-5-4-kasan 2020/08/29 06:53 https://android.googlesource.com/kernel/common android-5.4 34364883b1f7 d5a3ae1f .config log report syz
ci2-android-5-4-kasan 2020/08/29 06:26 https://android.googlesource.com/kernel/common android-5.4 34364883b1f7 d5a3ae1f .config log report syz
ci2-android-5-4-kasan 2020/08/29 05:32 https://android.googlesource.com/kernel/common android-5.4 34364883b1f7 d5a3ae1f .config log report syz
ci2-android-5-4-kasan 2020/08/29 05:21 https://android.googlesource.com/kernel/common android-5.4 34364883b1f7 d5a3ae1f .config log report syz
* Struck through repros no longer work on HEAD.