bisecting fixing commit since daefdc9eb24bfa11ab77a4b2a9c3923f1051fe0b building syzkaller on f12ba0c59fb470378fd054bba8ce424156c4f164 testing commit daefdc9eb24bfa11ab77a4b2a9c3923f1051fe0b with gcc (GCC) 8.4.1 20210217 kernel signature: 24628566e036f748cc20157cb8ef464c945ca4e5a45302b4f23274156febf068 all runs: crashed: KASAN: global-out-of-bounds Read in soft_cursor testing current HEAD 125222814e7b8f84df767d6ab622aff2a6d2f234 testing commit 125222814e7b8f84df767d6ab622aff2a6d2f234 with gcc (GCC) 8.4.1 20210217 kernel signature: c8be0aac8d2f2cf05ce2e3207387e238a83e6b7425ef94ca51d217ee616fc7c2 all runs: crashed: KASAN: global-out-of-bounds Read in soft_cursor revisions tested: 2, total time: 21m56.600956973s (build: 14m54.432834234s, test: 6m33.29709494s) the crash still happens on HEAD commit msg: Linux 4.19.182 crash: KASAN: global-out-of-bounds Read in soft_cursor IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready IPv6: ADDRCONF(NETDEV_CHANGE): wlan1: link becomes ready IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready ================================================================== BUG: KASAN: global-out-of-bounds in memcpy include/linux/string.h:377 [inline] BUG: KASAN: global-out-of-bounds in soft_cursor+0x430/0xc70 drivers/video/fbdev/core/softcursor.c:70 Read of size 32 at addr ffffffff88528550 by task syz-executor.2/9832 CPU: 0 PID: 9832 Comm: syz-executor.2 Not tainted 4.19.182-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+0x17c/0x226 lib/dump_stack.c:118 print_address_description.cold.6+0x12f/0x211 mm/kasan/report.c:256 kasan_report_error mm/kasan/report.c:354 [inline] kasan_report mm/kasan/report.c:412 [inline] kasan_report.cold.7+0x242/0x2fe mm/kasan/report.c:396 check_memory_region_inline mm/kasan/kasan.c:260 [inline] check_memory_region+0x13c/0x1b0 mm/kasan/kasan.c:267 memcpy+0x23/0x50 mm/kasan/kasan.c:302 memcpy include/linux/string.h:377 [inline] soft_cursor+0x430/0xc70 drivers/video/fbdev/core/softcursor.c:70 bit_cursor+0xdca/0x1d40 drivers/video/fbdev/core/bitblit.c:377 fbcon_cursor+0x452/0x660 drivers/video/fbdev/core/fbcon.c:1309 hide_cursor+0x73/0x2b0 drivers/tty/vt/vt.c:902 update_region+0x11d/0x170 drivers/tty/vt/vt.c:700 vcs_write+0x2dd/0xb10 drivers/tty/vt/vc_screen.c:604 __vfs_write+0xe3/0x890 fs/read_write.c:485 vfs_write+0x150/0x4d0 fs/read_write.c:549 ksys_write+0x103/0x260 fs/read_write.c:599 __do_sys_write fs/read_write.c:611 [inline] __se_sys_write fs/read_write.c:608 [inline] __x64_sys_write+0x6e/0xb0 fs/read_write.c:608 do_syscall_64+0xd0/0x4e0 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x4657f9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 73 01 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f1833b02188 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 000000000055bf00 RCX: 00000000004657f9 RDX: 0000000000000121 RSI: 00000000200000c0 RDI: 0000000000000004 RBP: 00000000004af682 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000055bf00 R13: 00007fff162d454f R14: 00007f1833b02300 R15: 0000000000022000 The buggy address belongs to the variable: oid_index+0x850/0xa60 Memory state around the buggy address: ffffffff88528400: fa fa fa fa 04 fa fa fa fa fa fa fa 04 fa fa fa ffffffff88528480: fa fa fa fa 07 fa fa fa fa fa fa fa 04 fa fa fa >ffffffff88528500: fa fa fa fa 05 fa fa fa fa fa fa fa 01 fa fa fa ^ ffffffff88528580: fa fa fa fa 00 00 02 fa fa fa fa fa 00 00 00 fa ffffffff88528600: fa fa fa fa 00 00 00 00 00 01 fa fa fa fa fa fa ==================================================================