================================================================== BUG: KASAN: slab-out-of-bounds in memcpy include/linux/string.h:406 [inline] BUG: KASAN: slab-out-of-bounds in scr_memcpyw include/linux/vt_buffer.h:49 [inline] BUG: KASAN: slab-out-of-bounds in vc_do_resize+0x888/0x1370 drivers/tty/vt/vt.c:1280 Read of size 2 at addr ffff8880a2043448 by task syz-executor.2/13760 CPU: 0 PID: 13760 Comm: syz-executor.2 Not tainted 5.7.0-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.constprop.0.cold+0xd3/0x413 mm/kasan/report.c:383 __kasan_report mm/kasan/report.c:513 [inline] kasan_report.cold+0x1f/0x37 mm/kasan/report.c:530 check_memory_region_inline mm/kasan/generic.c:186 [inline] check_memory_region+0x141/0x190 mm/kasan/generic.c:192 memcpy+0x20/0x60 mm/kasan/common.c:105 memcpy include/linux/string.h:406 [inline] scr_memcpyw include/linux/vt_buffer.h:49 [inline] vc_do_resize+0x888/0x1370 drivers/tty/vt/vt.c:1280 fbcon_modechanged+0x36a/0x720 drivers/video/fbdev/core/fbcon.c:2989 fbcon_set_all_vcs+0x3b3/0x460 drivers/video/fbdev/core/fbcon.c:3038 fbcon_update_vcs+0x26/0x50 drivers/video/fbdev/core/fbcon.c:3045 fb_set_var+0xb03/0xd90 drivers/video/fbdev/core/fbmem.c:1056 do_fb_ioctl+0x390/0x6e0 drivers/video/fbdev/core/fbmem.c:1109 fb_ioctl+0xdd/0x130 drivers/video/fbdev/core/fbmem.c:1185 vfs_ioctl fs/ioctl.c:47 [inline] ksys_ioctl+0x11a/0x180 fs/ioctl.c:771 __do_sys_ioctl fs/ioctl.c:780 [inline] __se_sys_ioctl fs/ioctl.c:778 [inline] __x64_sys_ioctl+0x6f/0xb0 fs/ioctl.c:778 do_syscall_64+0xf6/0x7d0 arch/x86/entry/common.c:295 entry_SYSCALL_64_after_hwframe+0x49/0xb3 RIP: 0033:0x45ca59 Code: 0d b7 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 db b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007fad2eb3ec78 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00000000004e5060 RCX: 000000000045ca59 RDX: 0000000020000000 RSI: 0000000000004601 RDI: 0000000000000004 RBP: 000000000078bf00 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff R13: 00000000000002f7 R14: 00000000004c575e R15: 00007fad2eb3f6d4 Allocated by task 13760: save_stack+0x1b/0x40 mm/kasan/common.c:48 set_track mm/kasan/common.c:56 [inline] __kasan_kmalloc mm/kasan/common.c:494 [inline] __kasan_kmalloc.constprop.0+0xbf/0xd0 mm/kasan/common.c:467 __do_kmalloc mm/slab.c:3656 [inline] __kmalloc+0x161/0x7a0 mm/slab.c:3665 kmalloc include/linux/slab.h:560 [inline] kzalloc include/linux/slab.h:669 [inline] vc_do_resize+0x245/0x1370 drivers/tty/vt/vt.c:1217 fbcon_modechanged+0x36a/0x720 drivers/video/fbdev/core/fbcon.c:2989 fbcon_update_vcs+0x3a/0x50 drivers/video/fbdev/core/fbcon.c:3047 fb_set_var+0xb03/0xd90 drivers/video/fbdev/core/fbmem.c:1056 fbcon_resize+0x5a1/0x650 drivers/video/fbdev/core/fbcon.c:2231 resize_screen drivers/tty/vt/vt.c:1156 [inline] vc_do_resize+0x3ff/0x1370 drivers/tty/vt/vt.c:1235 fbcon_modechanged+0x36a/0x720 drivers/video/fbdev/core/fbcon.c:2989 fbcon_set_all_vcs+0x3b3/0x460 drivers/video/fbdev/core/fbcon.c:3038 fbcon_update_vcs+0x26/0x50 drivers/video/fbdev/core/fbcon.c:3045 fb_set_var+0xb03/0xd90 drivers/video/fbdev/core/fbmem.c:1056 do_fb_ioctl+0x390/0x6e0 drivers/video/fbdev/core/fbmem.c:1109 fb_ioctl+0xdd/0x130 drivers/video/fbdev/core/fbmem.c:1185 vfs_ioctl fs/ioctl.c:47 [inline] ksys_ioctl+0x11a/0x180 fs/ioctl.c:771 __do_sys_ioctl fs/ioctl.c:780 [inline] __se_sys_ioctl fs/ioctl.c:778 [inline] __x64_sys_ioctl+0x6f/0xb0 fs/ioctl.c:778 do_syscall_64+0xf6/0x7d0 arch/x86/entry/common.c:295 entry_SYSCALL_64_after_hwframe+0x49/0xb3 Freed by task 3881: save_stack+0x1b/0x40 mm/kasan/common.c:48 set_track mm/kasan/common.c:56 [inline] kasan_set_free_info mm/kasan/common.c:316 [inline] __kasan_slab_free+0xf7/0x140 mm/kasan/common.c:455 __cache_free mm/slab.c:3426 [inline] kfree+0x109/0x2b0 mm/slab.c:3757 security_cred_free+0xa5/0x100 security/security.c:1604 put_cred_rcu+0x122/0x4a0 kernel/cred.c:114 __put_cred+0x1de/0x250 kernel/cred.c:148 put_cred include/linux/cred.h:287 [inline] revert_creds+0x1a8/0x1f0 kernel/cred.c:598 do_faccessat+0x2cd/0x830 fs/open.c:464 do_syscall_64+0xf6/0x7d0 arch/x86/entry/common.c:295 entry_SYSCALL_64_after_hwframe+0x49/0xb3 The buggy address belongs to the object at ffff8880a2043440 which belongs to the cache kmalloc-32 of size 32 The buggy address is located 8 bytes inside of 32-byte region [ffff8880a2043440, ffff8880a2043460) The buggy address belongs to the page: page:ffffea00028810c0 refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff8880a2043fc1 flags: 0xfffe0000000200(slab) raw: 00fffe0000000200 ffffea00025e5c08 ffffea00028958c8 ffff8880aa0001c0 raw: ffff8880a2043fc1 ffff8880a2043000 000000010000003c 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8880a2043300: fb fb fb fb fc fc fc fc 06 fc fc fc fc fc fc fc ffff8880a2043380: fb fb fb fb fc fc fc fc 06 fc fc fc fc fc fc fc >ffff8880a2043400: fb fb fb fb fc fc fc fc 00 fc fc fc fc fc fc fc ^ ffff8880a2043480: 06 fc fc fc fc fc fc fc 06 fc fc fc fc fc fc fc ffff8880a2043500: 00 fc fc fc fc fc fc fc fb fb fb fb fc fc fc fc ==================================================================