syzbot


KASAN: user-memory-access Read in do_con_trol

Status: closed as dup on 2020/07/20 22:48
Reported-by: syzbot+c5c252a500b90d63e07f@syzkaller.appspotmail.com
First crash: 829d, last: 826d
Duplicate of (1):
Title Repro Cause bisect Fix bisect Count Last Reported
general protection fault in do_con_write C done 10703 745d 980d
similar bugs (2):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.14 KASAN: user-memory-access Read in do_con_trol 1 902d 902d 0/1 auto-closed as invalid on 2020/06/19 12:31
linux-4.19 KASAN: user-memory-access Read in do_con_trol 2 861d 903d 0/1 auto-closed as invalid on 2020/07/31 00:46

Sample crash report:
==================================================================
BUG: KASAN: user-memory-access in memcpy include/linux/string.h:381 [inline]
BUG: KASAN: user-memory-access in scr_memcpyw include/linux/vt_buffer.h:49 [inline]
BUG: KASAN: user-memory-access in delete_char drivers/tty/vt/vt.c:853 [inline]
BUG: KASAN: user-memory-access in csi_P drivers/tty/vt/vt.c:2008 [inline]
BUG: KASAN: user-memory-access in do_con_trol+0x364/0x5d00 drivers/tty/vt/vt.c:2402
Read of size 398 at addr 00000000fffffe82 by task syz-executor.5/11995

CPU: 1 PID: 11995 Comm: syz-executor.5 Not tainted 5.7.0-rc4-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x188/0x20d lib/dump_stack.c:118
 __kasan_report.cold+0x5/0x4d mm/kasan/report.c:515
 kasan_report+0x33/0x50 mm/kasan/common.c:625
 check_memory_region_inline mm/kasan/generic.c:187 [inline]
 check_memory_region+0x141/0x190 mm/kasan/generic.c:193
 memcpy+0x20/0x60 mm/kasan/common.c:106
 memcpy include/linux/string.h:381 [inline]
 scr_memcpyw include/linux/vt_buffer.h:49 [inline]
 delete_char drivers/tty/vt/vt.c:853 [inline]
 csi_P drivers/tty/vt/vt.c:2008 [inline]
 do_con_trol+0x364/0x5d00 drivers/tty/vt/vt.c:2402
 do_con_write.part.0+0xf34/0x1dc0 drivers/tty/vt/vt.c:2818
 do_con_write drivers/tty/vt/vt.c:2588 [inline]
 con_write+0x41/0xe0 drivers/tty/vt/vt.c:3154
 process_output_block drivers/tty/n_tty.c:595 [inline]
 n_tty_write+0x3f0/0xf90 drivers/tty/n_tty.c:2333
 do_tty_write drivers/tty/tty_io.c:962 [inline]
 tty_write+0x495/0x800 drivers/tty/tty_io.c:1046
 __vfs_write+0x76/0x100 fs/read_write.c:495
 vfs_write+0x268/0x5d0 fs/read_write.c:559
 ksys_write+0x12d/0x250 fs/read_write.c:612
 do_syscall_64+0xf6/0x7d0 arch/x86/entry/common.c:295
 entry_SYSCALL_64_after_hwframe+0x49/0xb3
RIP: 0033:0x45c829
Code: 0d b7 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 db b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007fe8c3dc7c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 000000000050c660 RCX: 000000000045c829
RDX: 0000000000000320 RSI: 00000000200000c0 RDI: 0000000000000003
RBP: 000000000078bf00 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff
R13: 0000000000000cea R14: 00000000004cf16f R15: 00007fe8c3dc86d4
==================================================================

Crashes (3):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kasan-gce 2020/05/06 19:32 upstream 3c40cdb0e93e 4618eb2d .config log report
ci-upstream-kasan-gce 2020/05/06 02:05 upstream dc56c5acd850 35b8eb30 .config log report
ci-upstream-kasan-gce 2020/05/03 16:22 upstream f66ed1ebbfde 58ae5e18 .config log report