syzbot


general protection fault in do_con_write

Status: fixed on 2020/09/01 18:34
Reported-by: syzbot+22e5b3df1b4ac3612a61@syzkaller.appspotmail.com
Fix commit: 74752b81eae8 vt: Reject zero-sized screen buffer size.
First crash: 1815d, last: 1576d
Fix bisection: fixed by (bisect log) :
commit 74752b81eae8ae64e97de222320026367e92c4b5
Author: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Date: Sun Jul 12 11:10:12 2020 +0000

  vt: Reject zero-sized screen buffer size.

  
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.14 general protection fault in do_con_write C error 3499 1030d 1815d 0/1 upstream: reported C repro on 2019/12/03 10:33
upstream general protection fault in do_con_write C done 10703 1579d 1814d 15/28 fixed on 2020/09/16 22:51

Sample crash report:
audit: type=1400 audit(1593809794.373:8): avc:  denied  { execmem } for  pid=6425 comm="syz-executor754" scontext=system_u:system_r:kernel_t:s0 tcontext=system_u:system_r:kernel_t:s0 tclass=process permissive=1
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: 6425 Comm: syz-executor754 Not tainted 4.19.131-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:do_con_write+0x94d/0x1d90 drivers/tty/vt/vt.c:2766
Code: 03 9c 24 ba 00 00 00 01 dd e8 6f ee bd fd 48 8b 44 24 70 80 38 00 0f 85 75 11 00 00 49 8b 9d a0 03 00 00 48 89 d8 48 c1 e8 03 <42> 0f b6 14 30 48 89 d8 83 e0 07 83 c0 01 38 d0 7c 08 84 d2 0f 85
RSP: 0018:ffff888091d37920 EFLAGS: 00010203
RAX: 0000000020000001 RBX: 000000010000000c RCX: ffffffff83abb991
RDX: 0000000000000000 RSI: ffffffff83abb9d1 RDI: 0000000000000003
RBP: 00000000000007fe R08: ffffffff83aa57c0 R09: 0000000000000000
R10: 0000000000000003 R11: 0000000000000000 R12: 0000000000000001
R13: ffff8880a55ff300 R14: dffffc0000000000 R15: 0000000000000000
FS:  0000000001fad880(0000) GS:ffff8880ae700000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000004553a0 CR3: 000000009372b000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 con_write+0x22/0xb0 drivers/tty/vt/vt.c:3138
 process_output_block drivers/tty/n_tty.c:593 [inline]
 n_tty_write+0x3c0/0xff0 drivers/tty/n_tty.c:2331
 do_tty_write drivers/tty/tty_io.c:960 [inline]
 tty_write+0x496/0x810 drivers/tty/tty_io.c:1044
 __vfs_write+0xf7/0x770 fs/read_write.c:485
 vfs_write+0x1f3/0x540 fs/read_write.c:549
 ksys_write+0x12b/0x2a0 fs/read_write.c:599
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x440459
Code: 18 89 d0 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 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 5b 14 fc ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007ffdc888ee88 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 0000000000440459
RDX: 0000000000001006 RSI: 0000000020000240 RDI: 0000000000000004
RBP: 00000000006cb018 R08: 000000000000000e R09: 00000000004002c8
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401d40
R13: 0000000000401dd0 R14: 0000000000000000 R15: 0000000000000000
Modules linked in:
---[ end trace ac8e59b206f902ab ]---
RIP: 0010:do_con_write+0x94d/0x1d90 drivers/tty/vt/vt.c:2766
Code: 03 9c 24 ba 00 00 00 01 dd e8 6f ee bd fd 48 8b 44 24 70 80 38 00 0f 85 75 11 00 00 49 8b 9d a0 03 00 00 48 89 d8 48 c1 e8 03 <42> 0f b6 14 30 48 89 d8 83 e0 07 83 c0 01 38 d0 7c 08 84 d2 0f 85
RSP: 0018:ffff888091d37920 EFLAGS: 00010203
RAX: 0000000020000001 RBX: 000000010000000c RCX: ffffffff83abb991
RDX: 0000000000000000 RSI: ffffffff83abb9d1 RDI: 0000000000000003
RBP: 00000000000007fe R08: ffffffff83aa57c0 R09: 0000000000000000
R10: 0000000000000003 R11: 0000000000000000 R12: 0000000000000001
R13: ffff8880a55ff300 R14: dffffc0000000000 R15: 0000000000000000
FS:  0000000001fad880(0000) GS:ffff8880ae700000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000004553a0 CR3: 000000009372b000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (3008):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/07/03 20:58 linux-4.19.y 399849e4654e 6e569755 .config console log report syz C ci2-linux-4-19
2020/06/10 16:27 linux-4.19.y 106fa147d3da 5caaad3a .config console log report syz C ci2-linux-4-19
2020/04/11 16:56 linux-4.19.y dda0e2920330 a8c6a3f8 .config console log report syz C ci2-linux-4-19
2020/02/16 08:47 linux-4.19.y 9b15f7fae677 5d7b90f1 .config console log report syz C ci2-linux-4-19
2020/01/27 18:09 linux-4.19.y 88d6de67e390 56cd6c9b .config console log report syz C ci2-linux-4-19
2020/01/26 06:35 linux-4.19.y d183c8e2647a f4e7270e .config console log report syz C ci2-linux-4-19
2019/12/03 05:53 linux-4.19.y 174651bdf802 ab342da3 .config console log report syz C ci2-linux-4-19
2020/07/29 07:07 linux-4.19.y 20b3a3dfdf6c 19a8de55 .config console log report ci2-linux-4-19
2020/07/29 04:00 linux-4.19.y 20b3a3dfdf6c cb93dc6a .config console log report ci2-linux-4-19
2020/07/28 20:45 linux-4.19.y 20b3a3dfdf6c cb93dc6a .config console log report ci2-linux-4-19
2020/07/28 03:55 linux-4.19.y 20b3a3dfdf6c cb93dc6a .config console log report ci2-linux-4-19
2020/07/27 06:07 linux-4.19.y 20b3a3dfdf6c cb93dc6a .config console log report ci2-linux-4-19
2020/07/26 19:00 linux-4.19.y 20b3a3dfdf6c 51265195 .config console log report ci2-linux-4-19
2020/07/25 11:35 linux-4.19.y 20b3a3dfdf6c 1f7cc1ca .config console log report ci2-linux-4-19
2020/07/24 19:36 linux-4.19.y 20b3a3dfdf6c 554af388 .config console log report ci2-linux-4-19
2020/07/24 11:49 linux-4.19.y 20b3a3dfdf6c 554af388 .config console log report ci2-linux-4-19
2020/07/24 10:43 linux-4.19.y 20b3a3dfdf6c 554af388 .config console log report ci2-linux-4-19
2020/07/24 04:00 linux-4.19.y 20b3a3dfdf6c 70c104a1 .config console log report ci2-linux-4-19
2020/07/23 02:38 linux-4.19.y 20b3a3dfdf6c 340ea530 .config console log report ci2-linux-4-19
2020/07/22 14:43 linux-4.19.y 20b3a3dfdf6c 128cd85f .config console log report ci2-linux-4-19
2020/07/22 02:49 linux-4.19.y 17a87580a885 21f1765e .config console log report ci2-linux-4-19
2020/07/21 14:29 linux-4.19.y 17a87580a885 e562dd8a .config console log report ci2-linux-4-19
2020/07/21 08:03 linux-4.19.y 17a87580a885 d88894e6 .config console log report ci2-linux-4-19
2020/07/21 02:58 linux-4.19.y 17a87580a885 d88894e6 .config console log report ci2-linux-4-19
2020/07/20 18:56 linux-4.19.y 17a87580a885 8caeeeb7 .config console log report ci2-linux-4-19
2020/07/20 10:06 linux-4.19.y 17a87580a885 8caeeeb7 .config console log report ci2-linux-4-19
2020/07/20 10:04 linux-4.19.y 17a87580a885 8caeeeb7 .config console log report ci2-linux-4-19
2020/07/20 08:05 linux-4.19.y 17a87580a885 9c812472 .config console log report ci2-linux-4-19
2020/07/20 05:43 linux-4.19.y 17a87580a885 9c812472 .config console log report ci2-linux-4-19
2020/07/20 02:58 linux-4.19.y 17a87580a885 9c812472 .config console log report ci2-linux-4-19
2020/07/20 01:49 linux-4.19.y 17a87580a885 9c812472 .config console log report ci2-linux-4-19
2020/07/20 00:44 linux-4.19.y 17a87580a885 9c812472 .config console log report ci2-linux-4-19
2020/07/19 21:12 linux-4.19.y 17a87580a885 9c812472 .config console log report ci2-linux-4-19
2020/07/19 18:49 linux-4.19.y 17a87580a885 9c812472 .config console log report ci2-linux-4-19
2020/07/19 16:57 linux-4.19.y 17a87580a885 9c812472 .config console log report ci2-linux-4-19
2020/07/19 14:53 linux-4.19.y 17a87580a885 9c812472 .config console log report ci2-linux-4-19
2020/07/19 13:46 linux-4.19.y 17a87580a885 9c812472 .config console log report ci2-linux-4-19
2020/07/19 11:13 linux-4.19.y 17a87580a885 9c812472 .config console log report ci2-linux-4-19
2020/07/19 06:07 linux-4.19.y 17a87580a885 9c812472 .config console log report ci2-linux-4-19
2020/07/19 05:07 linux-4.19.y 17a87580a885 9c812472 .config console log report ci2-linux-4-19
2020/07/18 21:52 linux-4.19.y 17a87580a885 9c812472 .config console log report ci2-linux-4-19
2020/07/18 13:33 linux-4.19.y 17a87580a885 9c812472 .config console log report ci2-linux-4-19
2020/07/18 06:51 linux-4.19.y 17a87580a885 9c812472 .config console log report ci2-linux-4-19
2020/07/18 03:00 linux-4.19.y 17a87580a885 9c812472 .config console log report ci2-linux-4-19
2020/07/17 19:14 linux-4.19.y 17a87580a885 9c812472 .config console log report ci2-linux-4-19
2020/07/17 13:31 linux-4.19.y 17a87580a885 54b3c45e .config console log report ci2-linux-4-19
2020/07/17 09:10 linux-4.19.y 17a87580a885 54b3c45e .config console log report ci2-linux-4-19
2020/07/17 01:38 linux-4.19.y 17a87580a885 54b3c45e .config console log report ci2-linux-4-19
2020/07/16 21:20 linux-4.19.y 17a87580a885 b090c643 .config console log report ci2-linux-4-19
2020/07/16 07:43 linux-4.19.y 17a87580a885 ada108d0 .config console log report ci2-linux-4-19
2020/07/16 01:53 linux-4.19.y dce0f88600e4 ada108d0 .config console log report ci2-linux-4-19
* Struck through repros no longer work on HEAD.