syzbot


BUG: unable to handle kernel paging request in csi_J

Status: upstream: reported C repro on 2020/01/09 15:19
Reported-by: syzbot+29f88f8aeb22d06d0932@syzkaller.appspotmail.com
First crash: 909d, last: 752d

Fix bisection: the fix commit could be any of (bisect log):
  c04fc6fa5c96 Linux 4.14.165
  56dfe6252c68 Linux 4.14.188
similar bugs (2):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream BUG: unable to handle kernel paging request in csi_J C done error 11 783d 910d 0/22 closed as dup on 2020/08/16 01:38
linux-4.19 BUG: unable to handle kernel paging request in csi_J C done 3 734d 902d 1/1 fixed on 2020/08/02 06:53

Sample crash report:
audit: type=1400 audit(1579135300.339:36): avc:  denied  { map } for  pid=7307 comm="syz-executor577" path="/root/syz-executor577666368" 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
IP: memset16 arch/x86/include/asm/string_64.h:58 [inline]
IP: scr_memsetw include/linux/vt_buffer.h:36 [inline]
IP: csi_J+0x32d/0x560 drivers/tty/vt/vt.c:1195
PGD a073a067 P4D a073a067 PUD 0 
Oops: 0002 [#1] PREEMPT SMP KASAN
Modules linked in:
CPU: 1 PID: 7307 Comm: syz-executor577 Not tainted 4.14.165-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
task: ffff8880a4948480 task.stack: ffff88809f218000
RIP: 0010:memset16 arch/x86/include/asm/string_64.h:58 [inline]
RIP: 0010:scr_memsetw include/linux/vt_buffer.h:36 [inline]
RIP: 0010:csi_J+0x32d/0x560 drivers/tty/vt/vt.c:1195
RSP: 0018:ffff88809f21f838 EFLAGS: 00010202
RAX: 0000000000000720 RBX: ffff88809d1fab40 RCX: 0000000000000001
RDX: 1ffff11013a3f5e1 RSI: 0000000000000000 RDI: 000000010000000e
RBP: ffff88809f21f868 R08: ffff88809d1faf0c R09: 0000000000000002
R10: 0000000000000000 R11: ffff8880a4948480 R12: 7fffffff80000001
R13: 000000010000000e R14: ffff88809d1fb038 R15: ffff88809d1faf08
FS:  000000000119a880(0000) GS:ffff8880aed00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000010000000e CR3: 00000000a840e000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 do_con_trol+0x3344/0x5b40 drivers/tty/vt/vt.c:2010
 do_con_write.part.0+0xcc7/0x1b50 drivers/tty/vt/vt.c:2434
 do_con_write drivers/tty/vt/vt.c:2205 [inline]
 con_write+0x38/0xc0 drivers/tty/vt/vt.c:2787
 process_output_block drivers/tty/n_tty.c:595 [inline]
 n_tty_write+0x38b/0xf20 drivers/tty/n_tty.c:2333
 do_tty_write drivers/tty/tty_io.c:959 [inline]
 tty_write+0x3f6/0x700 drivers/tty/tty_io.c:1043
 __vfs_write+0x105/0x6b0 fs/read_write.c:480
 vfs_write+0x198/0x500 fs/read_write.c:544
 SYSC_write fs/read_write.c:590 [inline]
 SyS_write+0xfd/0x230 fs/read_write.c:582
 do_syscall_64+0x1e8/0x640 arch/x86/entry/common.c:292
 entry_SYSCALL_64_after_hwframe+0x42/0xb7
RIP: 0033:0x4404f9
RSP: 002b:00007fff30a87c28 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
Code: fa 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 0f b6 04 02 84 c0 74 08 3c 01 0f 8e 69 01 00 00 0f b7 83 c8 03 00 00 d1 e9 4c 89 ef <f3> 66 ab 48 b8 00 00 00 00 00 fc ff df 4c 89 f2 48 c1 ea 03 80 
RIP: memset16 arch/x86/include/asm/string_64.h:58 [inline] RSP: ffff88809f21f838
RIP: scr_memsetw include/linux/vt_buffer.h:36 [inline] RSP: ffff88809f21f838
RIP: csi_J+0x32d/0x560 drivers/tty/vt/vt.c:1195 RSP: ffff88809f21f838
CR2: 000000010000000e
---[ end trace d192bd78c645fedd ]---

Crashes (3):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-linux-4-14 2020/01/16 00:44 linux-4.14.y c04fc6fa5c96 f9b69507 .config log report syz C
ci2-linux-4-14 2020/01/10 15:37 linux-4.14.y b0cdffaa546e 532ec44e .config log report
ci2-linux-4-14 2020/01/09 15:18 linux-4.14.y b0cdffaa546e 4de4e9f0 .config log report