audit: type=1400 audit(1582984968.118:36): avc: denied { map } for pid=8546 comm="syz-executor577" path="/root/syz-executor577970905" dev="sda1" ino=16484 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: slab-out-of-bounds in memcpy include/linux/string.h:348 [inline] BUG: KASAN: slab-out-of-bounds in soft_cursor+0x448/0xa20 drivers/video/fbdev/core/softcursor.c:70 Read of size 64 at addr ffff888093cab3d0 by task syz-executor577/8546 CPU: 0 PID: 8546 Comm: syz-executor577 Not tainted 4.19.107-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+0x188/0x20d lib/dump_stack.c:118 print_address_description.cold+0x7c/0x212 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+0x88/0x2b9 mm/kasan/report.c:396 memcpy+0x20/0x50 mm/kasan/kasan.c:302 memcpy include/linux/string.h:348 [inline] soft_cursor+0x448/0xa20 drivers/video/fbdev/core/softcursor.c:70 bit_cursor+0x1230/0x1900 drivers/video/fbdev/core/bitblit.c:386 fbcon_cursor+0x572/0x760 drivers/video/fbdev/core/fbcon.c:1369 hide_cursor+0x99/0x2f0 drivers/tty/vt/vt.c:895 redraw_screen+0x2ed/0x870 drivers/tty/vt/vt.c:999 vc_do_resize+0x109e/0x13a0 drivers/tty/vt/vt.c:1298 vt_ioctl+0x1dff/0x2310 drivers/tty/vt/vt_ioctl.c:891 tty_ioctl+0x7a1/0x1420 drivers/tty/tty_io.c:2669 vfs_ioctl fs/ioctl.c:46 [inline] file_ioctl fs/ioctl.c:501 [inline] do_vfs_ioctl+0xcda/0x12e0 fs/ioctl.c:688 ksys_ioctl+0x9b/0xc0 fs/ioctl.c:705 __do_sys_ioctl fs/ioctl.c:712 [inline] __se_sys_ioctl fs/ioctl.c:710 [inline] __x64_sys_ioctl+0x6f/0xb0 fs/ioctl.c:710 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x440269 Code: 18 89 d0 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 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 0f 83 5b 14 fc ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007ffec15e1b38 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 0000000000440269 RDX: 0000000020000080 RSI: 000000000000560a RDI: 0000000000000004 RBP: 00000000006cb018 R08: 0000000000000001 R09: 00000000004002c8 R10: 0000000000000008 R11: 0000000000000246 R12: 0000000000401b50 R13: 0000000000401be0 R14: 0000000000000000 R15: 0000000000000000 Allocated by task 8546: set_track mm/kasan/kasan.c:460 [inline] kasan_kmalloc mm/kasan/kasan.c:553 [inline] kasan_kmalloc+0xbf/0xe0 mm/kasan/kasan.c:531 __do_kmalloc mm/slab.c:3727 [inline] __kmalloc+0x15b/0x770 mm/slab.c:3736 kmalloc include/linux/slab.h:520 [inline] fbcon_set_font+0x331/0x870 drivers/video/fbdev/core/fbcon.c:2641 con_font_set drivers/tty/vt/vt.c:4503 [inline] con_font_op+0xd3e/0x1130 drivers/tty/vt/vt.c:4568 vt_ioctl+0x1615/0x2310 drivers/tty/vt/vt_ioctl.c:970 tty_ioctl+0x7a1/0x1420 drivers/tty/tty_io.c:2669 vfs_ioctl fs/ioctl.c:46 [inline] file_ioctl fs/ioctl.c:501 [inline] do_vfs_ioctl+0xcda/0x12e0 fs/ioctl.c:688 ksys_ioctl+0x9b/0xc0 fs/ioctl.c:705 __do_sys_ioctl fs/ioctl.c:712 [inline] __se_sys_ioctl fs/ioctl.c:710 [inline] __x64_sys_ioctl+0x6f/0xb0 fs/ioctl.c:710 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe Freed by task 0: (stack is not available) The buggy address belongs to the object at ffff888093ca9a80 which belongs to the cache kmalloc-8192 of size 8192 The buggy address is located 6480 bytes inside of 8192-byte region [ffff888093ca9a80, ffff888093caba80) The buggy address belongs to the page: page:ffffea00024f2a00 count:1 mapcount:0 mapping:ffff88812c3d5080 index:0x0 compound_mapcount: 0 flags: 0xfffe0000008100(slab|head) raw: 00fffe0000008100 ffffea00024faa08 ffffea00024ea208 ffff88812c3d5080 raw: 0000000000000000 ffff888093ca9a80 0000000100000001 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff888093cab280: 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888093cab300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff888093cab380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff888093cab400: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888093cab480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================