syzbot


KASAN: user-memory-access Read in insert_char

Status: upstream: reported C repro on 2019/12/10 18:41
Reported-by: syzbot+5c1aab02e13d79472e01@syzkaller.appspotmail.com
First crash: 1808d, last: 1627d
Fix bisection: failed (error log, bisect log)
  
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 KASAN: user-memory-access Read in insert_char C done 2 1595d 1808d 1/1 fixed on 2020/08/10 10:36
upstream KASAN: user-memory-access Read in insert_char serial C done error 12 1668d 1808d 0/28 closed as dup on 2020/08/16 01:40
Last patch testing requests (2)
Created Duration User Patch Repo Result
2023/01/23 12:32 13m retest repro linux-4.14.y report log
2022/09/06 07:27 10m retest repro linux-4.14.y report log
Fix bisection attempts (7)
Created Duration User Patch Repo Result
2020/07/07 22:59 0m bisect fix linux-4.14.y error job log
2020/06/07 22:34 24m bisect fix linux-4.14.y OK (0) job log log
2020/05/08 22:09 24m bisect fix linux-4.14.y OK (0) job log log
2020/04/08 21:44 24m bisect fix linux-4.14.y OK (0) job log log
2020/03/09 21:18 25m bisect fix linux-4.14.y OK (0) job log log
2020/02/08 20:52 23m bisect fix linux-4.14.y OK (0) job log log
2020/01/09 19:01 25m bisect fix linux-4.14.y OK (0) job log log

Sample crash report:
audit: type=1400 audit(1576003063.562:36): avc:  denied  { map } for  pid=7073 comm="syz-executor444" path="/root/syz-executor444533648" 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: KASAN: user-memory-access in memmove include/linux/string.h:362 [inline]
BUG: KASAN: user-memory-access in scr_memmovew include/linux/vt_buffer.h:68 [inline]
BUG: KASAN: user-memory-access in insert_char+0xce/0x290 drivers/tty/vt/vt.c:534
Read of size 212 at addr 00000000ffffff3a by task syz-executor444/7073

CPU: 0 PID: 7073 Comm: syz-executor444 Not tainted 4.14.158-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
 memmove+0x24/0x50 mm/kasan/kasan.c:293
 memmove include/linux/string.h:362 [inline]
 scr_memmovew include/linux/vt_buffer.h:68 [inline]
 insert_char+0xce/0x290 drivers/tty/vt/vt.c:534
 csi_at drivers/tty/vt/vt.c:1627 [inline]
 do_con_trol+0x35bd/0x5b40 drivers/tty/vt/vt.c:2074
 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/0xee0 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:00007ffea945dfe8 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
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/12/10 18:40 linux-4.14.y a844dc4c5442 4b83c8fb .config console log report syz C ci2-linux-4-14
* Struck through repros no longer work on HEAD.