================================================================== BUG: KASAN: slab-out-of-bounds in __fb_pad_aligned_buffer include/linux/fb.h:674 [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+0xbaf/0xd10 drivers/video/fbdev/core/bitblit.c:185 Read of size 1 at addr ffff88808b55ebe1 by task syz-executor.2/19234 CPU: 1 PID: 19234 Comm: syz-executor.2 Not tainted 4.19.129-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+0x1fc/0x2fe lib/dump_stack.c:118 print_address_description.cold+0x54/0x219 mm/kasan/report.c:256 kasan_report_error.cold+0x8a/0x1c7 mm/kasan/report.c:354 kasan_report mm/kasan/report.c:412 [inline] __asan_report_load1_noabort+0x88/0x90 mm/kasan/report.c:430 __fb_pad_aligned_buffer include/linux/fb.h:674 [inline] bit_putcs_aligned drivers/video/fbdev/core/bitblit.c:96 [inline] bit_putcs+0xbaf/0xd10 drivers/video/fbdev/core/bitblit.c:185 fbcon_putcs+0x336/0x4f0 drivers/video/fbdev/core/fbcon.c:1323 do_update_region+0x399/0x630 drivers/tty/vt/vt.c:683 invert_screen+0x335/0x640 drivers/tty/vt/vt.c:800 highlight drivers/tty/vt/selection.c:55 [inline] clear_selection drivers/tty/vt/selection.c:83 [inline] clear_selection+0x55/0x70 drivers/tty/vt/selection.c:79 vc_do_resize+0x10a8/0x1440 drivers/tty/vt/vt.c:1233 vt_ioctl+0x1f74/0x24d0 drivers/tty/vt/vt_ioctl.c:901 tty_ioctl+0x5b0/0x15c0 drivers/tty/tty_io.c:2669 vfs_ioctl fs/ioctl.c:46 [inline] file_ioctl fs/ioctl.c:501 [inline] do_vfs_ioctl+0xcdb/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:0x45cb09 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:00007efe01664c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00000000004f3540 RCX: 000000000045cb09 RDX: 0000000020000000 RSI: 000000000000560a RDI: 0000000000000003 RBP: 000000000078bf00 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff R13: 000000000000067e R14: 00000000004c9836 R15: 00007efe016656d4 Allocated by task 8706: __do_kmalloc mm/slab.c:3727 [inline] __kmalloc+0x15a/0x3c0 mm/slab.c:3736 kmalloc include/linux/slab.h:520 [inline] fbcon_set_font+0x34f/0x8a0 drivers/video/fbdev/core/fbcon.c:2644 con_font_set drivers/tty/vt/vt.c:4529 [inline] con_font_op+0xd02/0x10e0 drivers/tty/vt/vt.c:4594 vt_ioctl+0x116d/0x24d0 drivers/tty/vt/vt_ioctl.c:928 tty_ioctl+0x5b0/0x15c0 drivers/tty/tty_io.c:2669 vfs_ioctl fs/ioctl.c:46 [inline] file_ioctl fs/ioctl.c:501 [inline] do_vfs_ioctl+0xcdb/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 6449: __cache_free mm/slab.c:3503 [inline] kfree+0xcc/0x210 mm/slab.c:3822 ip6table_security_table_init net/ipv6/netfilter/ip6table_security.c:63 [inline] ip6table_security_table_init+0x8d/0xc0 net/ipv6/netfilter/ip6table_security.c:50 xt_find_table_lock+0x289/0x430 net/netfilter/x_tables.c:1228 xt_request_find_table_lock+0x27/0xd0 net/netfilter/x_tables.c:1258 get_info+0x12f/0x530 net/ipv6/netfilter/ip6_tables.c:984 do_ip6t_get_ctl+0x14e/0x910 net/ipv6/netfilter/ip6_tables.c:1708 nf_sockopt net/netfilter/nf_sockopt.c:104 [inline] nf_getsockopt+0x72/0xd0 net/netfilter/nf_sockopt.c:122 ipv6_getsockopt+0x1b6/0x260 net/ipv6/ipv6_sockglue.c:1387 tcp_getsockopt+0x86/0xd0 net/ipv4/tcp.c:3616 __sys_getsockopt+0x135/0x210 net/socket.c:1938 __do_sys_getsockopt net/socket.c:1949 [inline] __se_sys_getsockopt net/socket.c:1946 [inline] __x64_sys_getsockopt+0xba/0x150 net/socket.c:1946 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe The buggy address belongs to the object at ffff88808b55e940 which belongs to the cache kmalloc-1024 of size 1024 The buggy address is located 673 bytes inside of 1024-byte region [ffff88808b55e940, ffff88808b55ed40) The buggy address belongs to the page: page:ffffea00022d5780 count:1 mapcount:0 mapping:ffff88812c39cac0 index:0xffff88808b55e040 compound_mapcount: 0 flags: 0xfffe0000008100(slab|head) raw: 00fffe0000008100 ffffea0002673188 ffffea00022a8d08 ffff88812c39cac0 raw: ffff88808b55e040 ffff88808b55e040 0000000100000006 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff88808b55ea80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88808b55eb00: 00 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc >ffff88808b55eb80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff88808b55ec00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88808b55ec80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================