syzbot


KASAN: user-memory-access Read in do_con_trol

Status: auto-closed as invalid on 2020/06/19 12:31
Reported-by: syzbot+5b7abf2ac1d20a3044de@syzkaller.appspotmail.com
First crash: 1754d, last: 1754d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KASAN: user-memory-access Read in do_con_trol serial 3 1677d 1676d 0/28 closed as dup on 2020/07/20 22:48
linux-4.19 KASAN: user-memory-access Read in do_con_trol 2 1712d 1755d 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:347 [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:546 [inline]
BUG: KASAN: user-memory-access in csi_P drivers/tty/vt/vt.c:1648 [inline]
BUG: KASAN: user-memory-access in do_con_trol+0x3188/0x5b40 drivers/tty/vt/vt.c:2022
Read of size 338 at addr 00000000fffffebe by task syz-executor.3/1272

CPU: 1 PID: 1272 Comm: syz-executor.3 Not tainted 4.14.171-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:17 [inline]
 dump_stack+0x142/0x197 lib/dump_stack.c:58
 kasan_report_error mm/kasan/report.c:349 [inline]
 kasan_report mm/kasan/report.c:409 [inline]
 kasan_report.cold+0x127/0x2af mm/kasan/report.c:393
 check_memory_region_inline mm/kasan/kasan.c:260 [inline]
 check_memory_region+0x123/0x190 mm/kasan/kasan.c:267
 memcpy+0x24/0x50 mm/kasan/kasan.c:302
 memcpy include/linux/string.h:347 [inline]
 scr_memcpyw include/linux/vt_buffer.h:49 [inline]
 delete_char drivers/tty/vt/vt.c:546 [inline]
 csi_P drivers/tty/vt/vt.c:1648 [inline]
 do_con_trol+0x3188/0x5b40 drivers/tty/vt/vt.c:2022
 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:0x45c449
RSP: 002b:00007fe608442c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007fe6084436d4 RCX: 000000000045c449
RDX: 0000000000000004 RSI: 0000000020000080 RDI: 0000000000000003
RBP: 000000000076bf20 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff
R13: 0000000000000cad R14: 00000000004ce949 R15: 000000000076bf2c
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/02/20 12:31 linux-4.14.y 98db2bf27b9e b690a6e3 .config console log report ci2-linux-4-14
* Struck through repros no longer work on HEAD.