================================================================== BUG: KASAN: slab-out-of-bounds in __fb_pad_aligned_buffer include/linux/fb.h:663 [inline] BUG: KASAN: slab-out-of-bounds in bit_putcs_aligned drivers/video/fbdev/core/bitblit.c:96 [inline] BUG: KASAN: slab-out-of-bounds in bit_putcs+0xb3a/0xcd0 drivers/video/fbdev/core/bitblit.c:185 Read of size 1 at addr ffff8880951211ff by task syz-executor436/6337 CPU: 1 PID: 6337 Comm: syz-executor436 Not tainted 4.14.175-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+0x13e/0x194 lib/dump_stack.c:58 print_address_description.cold+0x7c/0x1e2 mm/kasan/report.c:252 kasan_report_error mm/kasan/report.c:351 [inline] kasan_report mm/kasan/report.c:409 [inline] kasan_report.cold+0xa9/0x2ae mm/kasan/report.c:393 __fb_pad_aligned_buffer include/linux/fb.h:663 [inline] bit_putcs_aligned drivers/video/fbdev/core/bitblit.c:96 [inline] bit_putcs+0xb3a/0xcd0 drivers/video/fbdev/core/bitblit.c:185 fbcon_putcs+0x3c6/0x490 drivers/video/fbdev/core/fbcon.c:1298 do_update_region+0x34b/0x5b0 drivers/tty/vt/vt.c:373 redraw_screen+0x561/0x770 drivers/tty/vt/vt.c:705 vc_do_resize+0xbe0/0xde0 drivers/tty/vt/vt.c:967 vt_ioctl+0x1a64/0x1f20 drivers/tty/vt/vt_ioctl.c:901 tty_ioctl+0x6c5/0x1220 drivers/tty/tty_io.c:2661 vfs_ioctl fs/ioctl.c:46 [inline] file_ioctl fs/ioctl.c:500 [inline] do_vfs_ioctl+0x75a/0xfe0 fs/ioctl.c:684 SYSC_ioctl fs/ioctl.c:701 [inline] SyS_ioctl+0x7f/0xb0 fs/ioctl.c:692 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x42/0xb7 RIP: 0033:0x440219 RSP: 002b:00007fffab232798 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 0000000000440219 RDX: 0000000020000040 RSI: 000000000000560a RDI: 0000000000000004 RBP: 00000000006ca018 R08: 0000000000000000 R09: 00000000004002c8 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401b00 R13: 0000000000401b90 R14: 0000000000000000 R15: 0000000000000000 Allocated by task 6337: save_stack+0x32/0xa0 mm/kasan/kasan.c:447 set_track mm/kasan/kasan.c:459 [inline] kasan_kmalloc mm/kasan/kasan.c:551 [inline] kasan_kmalloc+0xbf/0xe0 mm/kasan/kasan.c:529 __do_kmalloc mm/slab.c:3720 [inline] __kmalloc+0x15b/0x7c0 mm/slab.c:3729 kmalloc include/linux/slab.h:493 [inline] fbcon_set_font+0x2f8/0x7c0 drivers/video/fbdev/core/fbcon.c:2618 con_font_set drivers/tty/vt/vt.c:4182 [inline] con_font_op+0xb73/0xf70 drivers/tty/vt/vt.c:4247 vt_ioctl+0x736/0x1f20 drivers/tty/vt/vt_ioctl.c:928 tty_ioctl+0x6c5/0x1220 drivers/tty/tty_io.c:2661 vfs_ioctl fs/ioctl.c:46 [inline] file_ioctl fs/ioctl.c:500 [inline] do_vfs_ioctl+0x75a/0xfe0 fs/ioctl.c:684 SYSC_ioctl fs/ioctl.c:701 [inline] SyS_ioctl+0x7f/0xb0 fs/ioctl.c:692 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x42/0xb7 Freed by task 5298: save_stack+0x32/0xa0 mm/kasan/kasan.c:447 set_track mm/kasan/kasan.c:459 [inline] kasan_slab_free+0x75/0xc0 mm/kasan/kasan.c:524 __cache_free mm/slab.c:3496 [inline] kfree+0xcb/0x260 mm/slab.c:3815 load_elf_binary+0x1bd6/0x46b0 fs/binfmt_elf.c:1097 search_binary_handler fs/exec.c:1638 [inline] search_binary_handler+0x139/0x6c0 fs/exec.c:1616 exec_binprm fs/exec.c:1680 [inline] do_execveat_common.isra.0+0xf32/0x1c70 fs/exec.c:1802 do_execve fs/exec.c:1847 [inline] SYSC_execve fs/exec.c:1928 [inline] SyS_execve+0x34/0x40 fs/exec.c:1923 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x42/0xb7 The buggy address belongs to the object at ffff8880951210c0 which belongs to the cache kmalloc-512 of size 512 The buggy address is located 319 bytes inside of 512-byte region [ffff8880951210c0, ffff8880951212c0) The buggy address belongs to the page: page:ffffea0002544840 count:1 mapcount:0 mapping:ffff8880951210c0 index:0xffff888095121340 flags: 0xfffe0000000100(slab) raw: 00fffe0000000100 ffff8880951210c0 ffff888095121340 0000000100000003 raw: ffffea00025af920 ffffea0002548c60 ffff88812fe56940 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff888095121080: fc fc fc fc fc fc fc fc 00 00 00 00 00 00 00 00 ffff888095121100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff888095121180: 00 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc ^ ffff888095121200: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888095121280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================