bisecting fixing commit since fb683b5e3f53a73e761952735736180939a313df building syzkaller on 1508f45368a309a3b1196a342b3d64ce7be4cc43 testing commit fb683b5e3f53a73e761952735736180939a313df with gcc (GCC) 8.1.0 kernel signature: 07f44b9705c7b29f73cb1748fa2192cc6ff79f321f041464c4ac58e7838d5d6b all runs: crashed: KASAN: global-out-of-bounds Read in fb_pad_aligned_buffer testing current HEAD 205a42ce2861f2d0dea8eb5090d05262e1cfa049 testing commit 205a42ce2861f2d0dea8eb5090d05262e1cfa049 with gcc (GCC) 8.1.0 kernel signature: a2514b537862d3ca683722df983714896ad03c3b33a351202ecafff26644e8fa all runs: crashed: KASAN: global-out-of-bounds Read in fb_pad_aligned_buffer revisions tested: 2, total time: 26m28.147595038s (build: 19m4.231605581s, test: 5m56.969971474s) the crash still happens on HEAD commit msg: Linux 4.19.135 crash: KASAN: global-out-of-bounds Read in fb_pad_aligned_buffer IPv6: ADDRCONF(NETDEV_CHANGE): veth0_to_bond: link becomes ready IPv6: ADDRCONF(NETDEV_CHANGE): veth0_to_hsr: link becomes ready IPv6: ADDRCONF(NETDEV_CHANGE): hsr_slave_0: link becomes ready IPv6: ADDRCONF(NETDEV_CHANGE): team0: link becomes ready ================================================================== BUG: KASAN: global-out-of-bounds in __fb_pad_aligned_buffer include/linux/fb.h:674 [inline] BUG: KASAN: global-out-of-bounds in fb_pad_aligned_buffer+0xd3/0x130 drivers/video/fbdev/core/fbmem.c:122 Read of size 1 at addr ffffffff87694ff6 by task syz-executor.1/7455 CPU: 0 PID: 7455 Comm: syz-executor.1 Not tainted 4.19.135-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+0x123/0x177 lib/dump_stack.c:118 print_address_description.cold.8+0x58/0x1ff mm/kasan/report.c:256 kasan_report_error mm/kasan/report.c:354 [inline] kasan_report.cold.9+0x242/0x309 mm/kasan/report.c:412 __asan_report_load1_noabort+0x14/0x20 mm/kasan/report.c:430 __fb_pad_aligned_buffer include/linux/fb.h:674 [inline] fb_pad_aligned_buffer+0xd3/0x130 drivers/video/fbdev/core/fbmem.c:122 bit_putcs_aligned drivers/video/fbdev/core/bitblit.c:99 [inline] bit_putcs+0x7b9/0xde0 drivers/video/fbdev/core/bitblit.c:185 fbcon_putcs+0x2fb/0x5a0 drivers/video/fbdev/core/fbcon.c:1323 do_update_region+0x30c/0x640 drivers/tty/vt/vt.c:683 redraw_screen+0x515/0x820 drivers/tty/vt/vt.c:1031 fbcon_do_set_font+0x656/0xa30 drivers/video/fbdev/core/fbcon.c:2586 fbcon_copy_font+0x116/0x1a0 drivers/video/fbdev/core/fbcon.c:2601 con_font_copy drivers/tty/vt/vt.c:4592 [inline] con_font_op+0x228/0x11f0 drivers/tty/vt/vt.c:4607 vt_ioctl+0xa4e/0x2310 drivers/tty/vt/vt_ioctl.c:980 tty_ioctl+0x452/0x1290 drivers/tty/tty_io.c:2669 vfs_ioctl fs/ioctl.c:46 [inline] file_ioctl fs/ioctl.c:501 [inline] do_vfs_ioctl+0x196/0x10c0 fs/ioctl.c:688 ksys_ioctl+0x62/0x90 fs/ioctl.c:705 __do_sys_ioctl fs/ioctl.c:712 [inline] __se_sys_ioctl fs/ioctl.c:710 [inline] __x64_sys_ioctl+0x6e/0xb0 fs/ioctl.c:710 do_syscall_64+0xd0/0x4e0 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x45a779 Code: 2d b6 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 fb b5 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007f45e4742c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 000000000045a779 RDX: 0000000020000000 RSI: 0000000000004b72 RDI: 0000000000000004 RBP: 000000000075bf20 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f45e47436d4 R13: 00000000004c38ab R14: 00000000004d8df8 R15: 00000000ffffffff The buggy address belongs to the variable: oid_index+0x76/0xa60 Memory state around the buggy address: ffffffff87694e80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffffffff87694f00: 00 00 00 00 00 00 00 00 00 00 00 05 fa fa fa fa >ffffffff87694f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 06 fa ^ ffffffff87695000: fa fa fa fa 00 02 fa fa fa fa fa fa 00 01 fa fa ffffffff87695080: fa fa fa fa 00 00 02 fa fa fa fa fa 00 03 fa fa ==================================================================