input: syz0 as /devices/virtual/input/input32 netlink: 148 bytes leftover after parsing attributes in process `syz-executor.1'. ================================================================== 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+0xbaa/0xd10 drivers/video/fbdev/core/bitblit.c:185 Read of size 1 at addr ffff888096c12dbe by task syz-executor.0/6693 CPU: 0 PID: 6693 Comm: syz-executor.0 Not tainted 4.19.128-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/0x222 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 __fb_pad_aligned_buffer include/linux/fb.h:674 [inline] bit_putcs_aligned drivers/video/fbdev/core/bitblit.c:96 [inline] bit_putcs+0xbaa/0xd10 drivers/video/fbdev/core/bitblit.c:185 fbcon_putcs+0x424/0x4e0 drivers/video/fbdev/core/fbcon.c:1323 do_update_region+0x398/0x630 drivers/tty/vt/vt.c:683 redraw_screen+0x5e1/0x870 drivers/tty/vt/vt.c:1031 fbcon_blank+0xae4/0xe90 drivers/video/fbdev/core/fbcon.c:2395 do_unblank_screen+0x241/0x610 drivers/tty/vt/vt.c:4268 unblank_screen drivers/tty/vt/vt.c:4287 [inline] poke_blanked_console+0x217/0x270 drivers/tty/vt/vt.c:4322 paste_selection+0xf0/0x467 drivers/tty/vt/selection.c:366 tioclinux+0x122/0x470 drivers/tty/vt/vt.c:3047 vt_ioctl+0x1940/0x2500 drivers/tty/vt/vt_ioctl.c:372 tty_ioctl+0x7a5/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: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:00007fc7c8cc8c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00000000004ef3a0 RCX: 000000000045ca59 RDX: 0000000020000100 RSI: 000000000000541c RDI: 0000000000000003 RBP: 000000000078bf00 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff R13: 0000000000000584 R14: 00000000004c83e2 R15: 00007fc7c8cc96d4 Allocated by task 15723: __do_kmalloc_node mm/slab.c:3689 [inline] __kmalloc_node+0x4c/0x70 mm/slab.c:3696 kmalloc_node include/linux/slab.h:557 [inline] kzalloc_node include/linux/slab.h:720 [inline] qdisc_alloc+0xad/0xa20 net/sched/sch_generic.c:836 qdisc_create_dflt+0x70/0x1d0 net/sched/sch_generic.c:910 attach_one_default_qdisc net/sched/sch_generic.c:1033 [inline] netdev_for_each_tx_queue include/linux/netdevice.h:2107 [inline] attach_default_qdiscs net/sched/sch_generic.c:1052 [inline] dev_activate+0x6d3/0xb50 net/sched/sch_generic.c:1095 __dev_open+0x265/0x390 net/core/dev.c:1415 __dev_change_flags+0x4dd/0x620 net/core/dev.c:7676 dev_change_flags+0x7e/0x140 net/core/dev.c:7745 do_setlink+0x162d/0x3570 net/core/rtnetlink.c:2449 rtnl_newlink+0xabb/0x1440 net/core/rtnetlink.c:3077 rtnetlink_rcv_msg+0x453/0xb80 net/core/rtnetlink.c:4777 netlink_rcv_skb+0x160/0x410 net/netlink/af_netlink.c:2455 netlink_unicast_kernel net/netlink/af_netlink.c:1318 [inline] netlink_unicast+0x4d7/0x6a0 net/netlink/af_netlink.c:1344 netlink_sendmsg+0x6e3/0xcc0 net/netlink/af_netlink.c:1909 sock_sendmsg_nosec net/socket.c:622 [inline] sock_sendmsg+0xc3/0x120 net/socket.c:632 __sys_sendto+0x21a/0x330 net/socket.c:1787 __do_sys_sendto net/socket.c:1799 [inline] __se_sys_sendto net/socket.c:1795 [inline] __x64_sys_sendto+0xdd/0x1b0 net/socket.c:1795 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 ffff888096c12940 which belongs to the cache kmalloc-1024 of size 1024 The buggy address is located 126 bytes to the right of 1024-byte region [ffff888096c12940, ffff888096c12d40) The buggy address belongs to the page: page:ffffea00025b0480 count:1 mapcount:0 mapping:ffff88812c3dcac0 index:0x0 compound_mapcount: 0 flags: 0xfffe0000008100(slab|head) raw: 00fffe0000008100 ffffea0002521308 ffffea0002498988 ffff88812c3dcac0 raw: 0000000000000000 ffff888096c12040 0000000100000007 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff888096c12c80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888096c12d00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff888096c12d80: fc fc fc fc fc fc fc fc 00 00 00 00 00 00 00 00 ^ ffff888096c12e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888096c12e80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================