syzbot


BUG: unable to handle kernel paging request in do_con_trol

Status: fixed on 2020/08/28 16:06
Reported-by: syzbot+69b47ab1682bdd85bee5@syzkaller.appspotmail.com
Fix commit: 74752b81eae8 vt: Reject zero-sized screen buffer size.
First crash: 1571d, last: 1339d
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 BUG: unable to handle kernel paging request in do_con_trol C inconclusive 29 1400d 1571d 0/1 upstream: reported C repro on 2019/12/09 17:13
upstream BUG: unable to handle kernel paging request in do_con_trol serial C done 98 1373d 1571d 0/26 closed as dup on 2020/07/20 22:52
Fix bisection attempts (4)
Created Duration User Patch Repo Result
2020/08/27 20:23 4h01m bisect fix linux-4.19.y job log (1)
2020/07/28 19:55 27m bisect fix linux-4.19.y job log (0) log
2020/06/21 18:18 24m bisect fix linux-4.19.y job log (0) log
2020/03/21 13:44 26m bisect fix linux-4.19.y job log (0) log

Sample crash report:
audit: type=1400 audit(1579595219.523:36): avc:  denied  { map } for  pid=8194 comm="syz-executor919" path="/root/syz-executor919148823" dev="sda1" ino=16483 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file permissive=1
BUG: unable to handle kernel paging request at 000000010000000e
PGD 89777067 P4D 89777067 PUD 0 
Oops: 0002 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 8194 Comm: syz-executor919 Not tainted 4.19.97-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:memset16 arch/x86/include/asm/string_64.h:43 [inline]
RIP: 0010:scr_memsetw include/linux/vt_buffer.h:36 [inline]
RIP: 0010:csi_K drivers/tty/vt/vt.c:1559 [inline]
RIP: 0010:do_con_trol+0x39e6/0x6070 drivers/tty/vt/vt.c:2351
Code: 08 2c 01 0f 8e 81 13 00 00 4c 8b bd 08 ff ff ff 48 63 db 44 89 e9 41 0f b7 84 24 c8 03 00 00 48 01 db d1 e9 49 01 df 4c 89 ff <f3> 66 ab 49 8d bc 24 78 04 00 00 b8 ff ff 37 00 48 89 fa 48 c1 e0
RSP: 0018:ffff888080d87780 EFLAGS: 00010202
RAX: 0000000000000720 RBX: 0000000000000000 RCX: 0000000000000001
RDX: 1ffff11010814699 RSI: ffffffff83b67209 RDI: 000000010000000e
RBP: ffff888080d878a0 R08: ffff888092056180 R09: 0000000000000005
R10: ffffed1015d24732 R11: ffff8880ae923993 R12: ffff8880840a3100
R13: 0000000000000002 R14: 0000000000000001 R15: 000000010000000e
FS:  0000000000c0d880(0000) GS:ffff8880ae900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000010000000e CR3: 00000000a7986000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 do_con_write.part.0+0xfd5/0x1eb0 drivers/tty/vt/vt.c:2773
 do_con_write drivers/tty/vt/vt.c:2541 [inline]
 con_write+0x46/0xd0 drivers/tty/vt/vt.c:3110
 process_output_block drivers/tty/n_tty.c:593 [inline]
 n_tty_write+0x3f9/0x1140 drivers/tty/n_tty.c:2331
 do_tty_write drivers/tty/tty_io.c:960 [inline]
 tty_write+0x458/0x7a0 drivers/tty/tty_io.c:1044
 __vfs_write+0x114/0x810 fs/read_write.c:485
 vfs_write+0x20c/0x560 fs/read_write.c:549
 ksys_write+0x14f/0x2d0 fs/read_write.c:599
 __do_sys_write fs/read_write.c:611 [inline]
 __se_sys_write fs/read_write.c:608 [inline]
 __x64_sys_write+0x73/0xb0 fs/read_write.c:608
 do_syscall_64+0xfd/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x4404f9
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:00007ffdfd8abfd8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 00000000004404f9
RDX: 0000000000000078 RSI: 0000000020000000 RDI: 0000000000000004
RBP: 00000000006ca018 R08: 0000000000000000 R09: 00000000004002c8
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401de0
R13: 0000000000401e70 R14: 0000000000000000 R15: 0000000000000000
Modules linked in:
CR2: 000000010000000e
---[ end trace 60b2f6e3cf9fd57d ]---
RIP: 0010:memset16 arch/x86/include/asm/string_64.h:43 [inline]
RIP: 0010:scr_memsetw include/linux/vt_buffer.h:36 [inline]
RIP: 0010:csi_K drivers/tty/vt/vt.c:1559 [inline]
RIP: 0010:do_con_trol+0x39e6/0x6070 drivers/tty/vt/vt.c:2351
Code: 08 2c 01 0f 8e 81 13 00 00 4c 8b bd 08 ff ff ff 48 63 db 44 89 e9 41 0f b7 84 24 c8 03 00 00 48 01 db d1 e9 49 01 df 4c 89 ff <f3> 66 ab 49 8d bc 24 78 04 00 00 b8 ff ff 37 00 48 89 fa 48 c1 e0
RSP: 0018:ffff888080d87780 EFLAGS: 00010202
RAX: 0000000000000720 RBX: 0000000000000000 RCX: 0000000000000001
RDX: 1ffff11010814699 RSI: ffffffff83b67209 RDI: 000000010000000e
RBP: ffff888080d878a0 R08: ffff888092056180 R09: 0000000000000005
R10: ffffed1015d24732 R11: ffff8880ae923993 R12: ffff8880840a3100
R13: 0000000000000002 R14: 0000000000000001 R15: 000000010000000e
FS:  0000000000c0d880(0000) GS:ffff8880ae900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000010000000e CR3: 00000000a7986000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (36):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/01/21 08:29 linux-4.19.y dc4ba5be1bab 8eda0b95 .config console log report syz C ci2-linux-4-19
2019/12/09 16:56 linux-4.19.y fb683b5e3f53 b31eda3d .config console log report syz C ci2-linux-4-19
2020/06/28 19:55 linux-4.19.y a39e75458e1c a2cdad9d .config console log report ci2-linux-4-19
2020/06/24 03:17 linux-4.19.y b3a99fd385fa bbad15ae .config console log report ci2-linux-4-19
2020/06/24 00:14 linux-4.19.y b3a99fd385fa bbad15ae .config console log report ci2-linux-4-19
2020/05/22 18:18 linux-4.19.y 1bab61d3e8cd 4afdfa20 .config console log report ci2-linux-4-19
2020/05/22 06:56 linux-4.19.y 1bab61d3e8cd 4afdfa20 .config console log report ci2-linux-4-19
2020/05/17 20:28 linux-4.19.y 258f0cf7ac3b 37bccd4e .config console log report ci2-linux-4-19
2020/05/17 08:23 linux-4.19.y 258f0cf7ac3b 37bccd4e .config console log report ci2-linux-4-19
2020/05/13 03:00 linux-4.19.y 033c4ea49a4b a44eb8f7 .config console log report ci2-linux-4-19
2020/05/04 20:16 linux-4.19.y fdc072324f3c 9941337c .config console log report ci2-linux-4-19
2020/05/03 12:40 linux-4.19.y fdc072324f3c 58ae5e18 .config console log report ci2-linux-4-19
2020/05/02 11:48 linux-4.19.y 765675379b62 58da4c35 .config console log report ci2-linux-4-19
2020/04/10 22:24 linux-4.19.y dda0e2920330 a8c6a3f8 .config console log report ci2-linux-4-19
2020/04/03 22:20 linux-4.19.y dda0e2920330 ef26b610 .config console log report ci2-linux-4-19
2020/03/30 10:28 linux-4.19.y 54b4fa6d3955 c8d1cc20 .config console log report ci2-linux-4-19
2020/03/29 15:35 linux-4.19.y 54b4fa6d3955 05736b29 .config console log report ci2-linux-4-19
2020/03/27 08:58 linux-4.19.y 54b4fa6d3955 9af8b4b3 .config console log report ci2-linux-4-19
2020/02/20 13:44 linux-4.19.y 4fccc2503536 81230308 .config console log report ci2-linux-4-19
2020/02/19 01:02 linux-4.19.y 9b15f7fae677 135c18aa .config console log report ci2-linux-4-19
2020/02/10 19:42 linux-4.19.y b499cf4b3a90 d9e55b05 .config console log report ci2-linux-4-19
2020/02/10 16:31 linux-4.19.y b499cf4b3a90 18847f55 .config console log report ci2-linux-4-19
2020/02/08 11:01 linux-4.19.y b499cf4b3a90 06150bf1 .config console log report ci2-linux-4-19
2020/02/07 14:56 linux-4.19.y b499cf4b3a90 06150bf1 .config console log report ci2-linux-4-19
2020/02/01 23:18 linux-4.19.y 32ee7492f104 2274ad39 .config console log report ci2-linux-4-19
2020/02/01 22:51 linux-4.19.y 32ee7492f104 2274ad39 .config console log report ci2-linux-4-19
2020/01/16 12:49 linux-4.19.y db5b9190ff82 3de7aabb .config console log report ci2-linux-4-19
2020/01/16 11:48 linux-4.19.y db5b9190ff82 3de7aabb .config console log report ci2-linux-4-19
2020/01/09 10:17 linux-4.19.y cb1f9a169a0e ddc3e859 .config console log report ci2-linux-4-19
2020/01/09 04:36 linux-4.19.y 3d40d7117e35 ddc3e859 .config console log report ci2-linux-4-19
2019/12/13 08:46 linux-4.19.y 312017a460d5 2a752b7c .config console log report ci2-linux-4-19
2019/12/12 17:20 linux-4.19.y fb683b5e3f53 08003f64 .config console log report ci2-linux-4-19
2019/12/11 15:47 linux-4.19.y fb683b5e3f53 0d368675 .config console log report ci2-linux-4-19
2019/12/11 12:25 linux-4.19.y fb683b5e3f53 101194eb .config console log report ci2-linux-4-19
2019/12/10 22:24 linux-4.19.y fb683b5e3f53 101194eb .config console log report ci2-linux-4-19
2019/12/09 14:41 linux-4.19.y fb683b5e3f53 b31eda3d .config console log report ci2-linux-4-19
* Struck through repros no longer work on HEAD.