================================================================== BUG: KASAN: slab-out-of-bounds in memcpy include/linux/string.h:347 [inline] BUG: KASAN: slab-out-of-bounds in soft_cursor+0x445/0xa40 drivers/video/fbdev/core/softcursor.c:70 Read of size 13 at addr ffff8880a65529eb by task syz-executor.0/29834 CPU: 1 PID: 29834 Comm: syz-executor.0 Not tainted 4.14.184-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+0x1b2/0x283 lib/dump_stack.c:58 print_address_description.cold+0x54/0x1dc 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/0x2b9 mm/kasan/report.c:393 memcpy+0x20/0x50 mm/kasan/kasan.c:302 memcpy include/linux/string.h:347 [inline] soft_cursor+0x445/0xa40 drivers/video/fbdev/core/softcursor.c:70 bit_cursor+0x1072/0x1660 drivers/video/fbdev/core/bitblit.c:386 fbcon_cursor+0x4b1/0x690 drivers/video/fbdev/core/fbcon.c:1350 hide_cursor+0x7a/0x2a0 drivers/tty/vt/vt.c:590 redraw_screen+0x2a2/0x760 drivers/tty/vt/vt.c:680 vc_do_resize+0xbe0/0xde0 drivers/tty/vt/vt.c:967 vt_ioctl+0x1a64/0x1f20 drivers/tty/vt/vt_ioctl.c:901 tty_ioctl+0x6c9/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+0x46/0xbb RIP: 0033:0x45c1d9 RSP: 002b:00007f915a4a2c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 000000000001a8c0 RCX: 000000000045c1d9 RDX: 0000000020000040 RSI: 000000000000560a RDI: 0000000000000003 RBP: 000000000078bf40 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000078bf0c R13: 00007fff0124a67f R14: 00007f915a4a39c0 R15: 000000000078bf0c Allocated by task 6359: save_stack mm/kasan/kasan.c:447 [inline] set_track mm/kasan/kasan.c:459 [inline] kasan_kmalloc.part.0+0x4f/0xd0 mm/kasan/kasan.c:551 __do_kmalloc_node mm/slab.c:3682 [inline] __kmalloc_node+0x4c/0x70 mm/slab.c:3689 kmalloc_node include/linux/slab.h:530 [inline] kvmalloc_node+0x46/0xd0 mm/util.c:397 kvmalloc include/linux/mm.h:531 [inline] kvzalloc include/linux/mm.h:539 [inline] netif_alloc_netdev_queues net/core/dev.c:7529 [inline] alloc_netdev_mqs+0x5e5/0xb70 net/core/dev.c:8143 rtnl_create_link+0x1ab/0x880 net/core/rtnetlink.c:2460 rtnl_newlink+0xdd0/0x1720 net/core/rtnetlink.c:2718 rtnetlink_rcv_msg+0x3be/0xb10 net/core/rtnetlink.c:4315 netlink_rcv_skb+0x127/0x370 net/netlink/af_netlink.c:2433 netlink_unicast_kernel net/netlink/af_netlink.c:1287 [inline] netlink_unicast+0x437/0x610 net/netlink/af_netlink.c:1313 netlink_sendmsg+0x64a/0xbb0 net/netlink/af_netlink.c:1878 sock_sendmsg_nosec net/socket.c:646 [inline] sock_sendmsg+0xb5/0x100 net/socket.c:656 SYSC_sendto net/socket.c:1763 [inline] SyS_sendto+0x1c7/0x2c0 net/socket.c:1731 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x46/0xbb Freed by task 6285: save_stack mm/kasan/kasan.c:447 [inline] set_track mm/kasan/kasan.c:459 [inline] kasan_slab_free+0xaf/0x190 mm/kasan/kasan.c:524 __cache_free mm/slab.c:3496 [inline] kfree+0xcb/0x260 mm/slab.c:3815 load_elf_binary+0x1bcc/0x46b0 fs/binfmt_elf.c:1096 search_binary_handler fs/exec.c:1640 [inline] search_binary_handler+0x139/0x6c0 fs/exec.c:1618 exec_binprm fs/exec.c:1682 [inline] do_execveat_common.isra.0+0xef0/0x1c50 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+0x46/0xbb The buggy address belongs to the object at ffff8880a6552800 which belongs to the cache kmalloc-512 of size 512 The buggy address is located 491 bytes inside of 512-byte region [ffff8880a6552800, ffff8880a6552a00) The buggy address belongs to the page: page:ffffea0002995480 count:1 mapcount:0 mapping:ffff8880a6552080 index:0xffff8880a6552080 flags: 0xfffe0000000100(slab) raw: 00fffe0000000100 ffff8880a6552080 ffff8880a6552080 0000000100000005 raw: ffffea00029a0c20 ffffea00021d56e0 ffff8880aa800940 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8880a6552880: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8880a6552900: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff8880a6552980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff8880a6552a00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8880a6552a80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================