bisecting fixing commit since 6794862a16ef41f753abd75c03a152836e4c8028 building syzkaller on 5a5826a14e99564bdd4de163d3ac368056e5d992 testing commit 6794862a16ef41f753abd75c03a152836e4c8028 with gcc (GCC) 8.1.0 kernel signature: ea944688d5688aacffbc5ed8eb60177d23cf01f0bff1ff1e76178eaf54d26308 all runs: crashed: KASAN: wild-memory-access Read in insert_char testing current HEAD 04300d66f0a06d572d9f2ad6768c38cabde22179 testing commit 04300d66f0a06d572d9f2ad6768c38cabde22179 with gcc (GCC) 8.1.0 kernel signature: c6b5678509fd392ea3a03b2ac53bd452a971830c3908cfba2a2978720c978be3 all runs: crashed: BUG: unable to handle kernel paging request in do_con_trol revisions tested: 2, total time: 22m19.071999582s (build: 15m5.220488186s, test: 6m9.878030746s) the crash still happens on HEAD commit msg: Merge tag 'riscv-for-linus-5.8-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux into master crash: BUG: unable to handle kernel paging request in do_con_trol BUG: unable to handle page fault for address: 0000000100000006 #PF: supervisor read access in kernel mode #PF: error_code(0x0000) - not-present page PGD 10ebe4067 P4D 10ebe4067 PUD 0 Oops: 0000 [#1] PREEMPT SMP CPU: 0 PID: 8032 Comm: syz-executor.3 Not tainted 5.8.0-rc6-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:__memmove+0xe2/0x1a0 arch/x86/lib/memmove_64.S:134 Code: 0f 1f 84 00 00 00 00 00 48 83 fa 20 72 50 48 81 fa a8 02 00 00 72 05 40 38 fe 74 bc 48 01 d6 48 01 d7 48 83 ea 20 48 83 ea 20 <4c> 8b 5e f8 4c 8b 56 f0 4c 8b 4e e8 4c 8b 46 e0 48 8d 76 e0 4c 89 RSP: 0018:ffffc90002763c00 EFLAGS: 00010202 RAX: 00000000ffffff3c RBX: 00000000ffffff3a RCX: 0000000000000000 RDX: 0000000000000094 RSI: 000000010000000e RDI: 0000000100000010 RBP: ffffc90002763c30 R08: 000000010000000e R09: 0000000000000000 R10: 0000000000000040 R11: 39dc6256011b8337 R12: ffff88810e81a800 R13: 0000000000000001 R14: 0000000000000001 R15: ffff88810e995800 FS: 0000000000000000(0000) GS:ffff88812c000000(0063) knlGS:00000000f7f8cb40 CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 CR2: 0000000100000006 CR3: 000000010ebe3000 CR4: 00000000001406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: csi_at drivers/tty/vt/vt.c:1992 [inline] do_con_trol+0x168f/0x16a0 drivers/tty/vt/vt.c:2459 do_con_write.part.23+0x311/0x940 drivers/tty/vt/vt.c:2823 do_con_write drivers/tty/vt/vt.c:2593 [inline] con_write+0x1f/0x60 drivers/tty/vt/vt.c:3159 process_output_block drivers/tty/n_tty.c:595 [inline] n_tty_write+0x1aa/0x4d0 drivers/tty/n_tty.c:2333 do_tty_write drivers/tty/tty_io.c:962 [inline] tty_write+0x15e/0x320 drivers/tty/tty_io.c:1046 vfs_write+0xca/0x230 fs/read_write.c:576 ksys_write+0x62/0xe0 fs/read_write.c:631 __do_sys_write fs/read_write.c:643 [inline] __se_sys_write fs/read_write.c:640 [inline] __ia32_sys_write+0x13/0x20 fs/read_write.c:640 do_syscall_32_irqs_on+0x43/0x60 arch/x86/entry/common.c:428 __do_fast_syscall_32 arch/x86/entry/common.c:475 [inline] do_fast_syscall_32+0x83/0x120 arch/x86/entry/common.c:503 do_SYSENTER_32+0x1f/0x30 arch/x86/entry/common.c:552 entry_SYSENTER_compat_after_hwframe+0x4d/0x5c RIP: 0023:0xf7f91569 Code: 10 05 03 74 b8 01 10 06 03 74 b4 01 10 07 03 74 b0 01 10 08 03 74 d8 01 00 00 00 00 00 00 00 00 00 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 eb 0d 90 90 90 90 90 90 90 90 90 90 90 90 RSP: 002b:00000000f7f8c0cc EFLAGS: 00000296 ORIG_RAX: 0000000000000004 RAX: ffffffffffffffda RBX: 0000000000000004 RCX: 0000000020000000 RDX: 0000000000000078 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 Modules linked in: CR2: 0000000100000006 ---[ end trace 0d6853fa6c581b8b ]--- RIP: 0010:__memmove+0xe2/0x1a0 arch/x86/lib/memmove_64.S:134 Code: 0f 1f 84 00 00 00 00 00 48 83 fa 20 72 50 48 81 fa a8 02 00 00 72 05 40 38 fe 74 bc 48 01 d6 48 01 d7 48 83 ea 20 48 83 ea 20 <4c> 8b 5e f8 4c 8b 56 f0 4c 8b 4e e8 4c 8b 46 e0 48 8d 76 e0 4c 89 RSP: 0018:ffffc90002763c00 EFLAGS: 00010202 RAX: 00000000ffffff3c RBX: 00000000ffffff3a RCX: 0000000000000000 RDX: 0000000000000094 RSI: 000000010000000e RDI: 0000000100000010 RBP: ffffc90002763c30 R08: 000000010000000e R09: 0000000000000000 R10: 0000000000000040 R11: 39dc6256011b8337 R12: ffff88810e81a800 R13: 0000000000000001 R14: 0000000000000001 R15: ffff88810e995800 FS: 0000000000000000(0000) GS:ffff88812c000000(0063) knlGS:00000000f7f8cb40 CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 CR2: 0000000100000006 CR3: 000000010ebe3000 CR4: 00000000001406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400