sd 0:0:1:0: [sg0] tag#5657 CDB[e0]: 00 00 00 00 00 00 00 00 00 00 00 00 sd 0:0:1:0: [sg0] tag#5784 CDB[00]: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ================================================================== BUG: KASAN: use-after-free in __fb_pad_aligned_buffer include/linux/fb.h:663 [inline] BUG: KASAN: use-after-free in bit_putcs_aligned drivers/video/fbdev/core/bitblit.c:96 [inline] BUG: KASAN: use-after-free in bit_putcs+0xc09/0xdb0 drivers/video/fbdev/core/bitblit.c:185 Read of size 1 at addr ffff88807ff52bf8 by task syz-executor.0/6356 CPU: 1 PID: 6356 Comm: syz-executor.0 Not tainted 4.14.158-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+0x142/0x197 lib/dump_stack.c:58 print_address_description.cold+0x7c/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/0x2af mm/kasan/report.c:393 __asan_report_load1_noabort+0x14/0x20 mm/kasan/report.c:427 sd 0:0:1:0: [sg0] tag#5784 CDB[10]: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 __fb_pad_aligned_buffer include/linux/fb.h:663 [inline] bit_putcs_aligned drivers/video/fbdev/core/bitblit.c:96 [inline] bit_putcs+0xc09/0xdb0 drivers/video/fbdev/core/bitblit.c:185 fbcon_putcs+0x3c2/0x480 drivers/video/fbdev/core/fbcon.c:1298 do_update_region+0x3b3/0x650 drivers/tty/vt/vt.c:373 update_region drivers/tty/vt/vt.c:391 [inline] update_region+0xe7/0x120 drivers/tty/vt/vt.c:385 vcs_write+0x36b/0xbc0 drivers/tty/vt/vc_screen.c:549 __vfs_write+0x105/0x6b0 fs/read_write.c:480 sd 0:0:1:0: [sg0] tag#5784 CDB[20]: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 vfs_write+0x198/0x500 fs/read_write.c:544 SYSC_write fs/read_write.c:590 [inline] SyS_write+0xfd/0x230 fs/read_write.c:582 do_syscall_64+0x1e8/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x42/0xb7 RIP: 0033:0x45a679 RSP: 002b:00007f150f0dcc78 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 000000000045a679 RDX: 0000000000000276 RSI: 0000000020000240 RDI: 0000000000000006 RBP: 000000000075bfc8 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f150f0dd6d4 R13: 00000000004d36e8 R14: 00000000004e5340 R15: 00000000ffffffff Allocated by task 5389: save_stack_trace+0x16/0x20 arch/x86/kernel/stacktrace.c:59 save_stack+0x45/0xd0 mm/kasan/kasan.c:447 set_track mm/kasan/kasan.c:459 [inline] kasan_kmalloc mm/kasan/kasan.c:551 [inline] kasan_kmalloc+0xce/0xf0 mm/kasan/kasan.c:529 sd 0:0:1:0: [sg0] tag#5784 CDB[30]: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 __do_kmalloc_node mm/slab.c:3682 [inline] __kmalloc_node_track_caller+0x51/0x80 mm/slab.c:3696 __kmalloc_reserve.isra.0+0x40/0xe0 net/core/skbuff.c:137 __alloc_skb+0xcf/0x500 net/core/skbuff.c:205 alloc_skb include/linux/skbuff.h:980 [inline] alloc_skb_with_frags+0x86/0x4b0 net/core/skbuff.c:5228 sock_alloc_send_pskb+0x5db/0x740 net/core/sock.c:2078 packet_alloc_skb net/packet/af_packet.c:2843 [inline] packet_snd net/packet/af_packet.c:2938 [inline] packet_sendmsg+0x16b8/0x5a60 net/packet/af_packet.c:3018 sock_sendmsg_nosec net/socket.c:646 [inline] sock_sendmsg+0xce/0x110 net/socket.c:656 ___sys_sendmsg+0x349/0x840 net/socket.c:2062 __sys_sendmmsg+0x152/0x3a0 net/socket.c:2152 SYSC_sendmmsg net/socket.c:2183 [inline] SyS_sendmmsg+0x35/0x60 net/socket.c:2178 do_syscall_64+0x1e8/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x42/0xb7 Freed by task 5389: save_stack_trace+0x16/0x20 arch/x86/kernel/stacktrace.c:59 save_stack+0x45/0xd0 mm/kasan/kasan.c:447 set_track mm/kasan/kasan.c:459 [inline] kasan_slab_free+0x75/0xc0 mm/kasan/kasan.c:524 __cache_free mm/slab.c:3496 [inline] kfree+0xcc/0x270 mm/slab.c:3815 skb_free_head+0x8b/0xb0 net/core/skbuff.c:554 skb_release_data+0x543/0x7c0 net/core/skbuff.c:574 skb_release_all+0x4d/0x60 net/core/skbuff.c:631 __kfree_skb net/core/skbuff.c:645 [inline] kfree_skb+0xb5/0x350 net/core/skbuff.c:663 sit_tunnel_xmit net/ipv6/sit.c:1039 [inline] sit_tunnel_xmit+0xf3/0x22ad net/ipv6/sit.c:1016 sd 0:0:1:0: [sg0] tag#5784 CDB[40]: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 __netdev_start_xmit include/linux/netdevice.h:4033 [inline] netdev_start_xmit include/linux/netdevice.h:4042 [inline] xmit_one net/core/dev.c:3009 [inline] dev_hard_start_xmit+0x18c/0x8b0 net/core/dev.c:3025 __dev_queue_xmit+0x1d95/0x25e0 net/core/dev.c:3525 dev_queue_xmit+0x18/0x20 net/core/dev.c:3558 packet_snd net/packet/af_packet.c:2993 [inline] packet_sendmsg+0x1dd4/0x5a60 net/packet/af_packet.c:3018 sock_sendmsg_nosec net/socket.c:646 [inline] sock_sendmsg+0xce/0x110 net/socket.c:656 ___sys_sendmsg+0x349/0x840 net/socket.c:2062 __sys_sendmmsg+0x152/0x3a0 net/socket.c:2152 SYSC_sendmmsg net/socket.c:2183 [inline] SyS_sendmmsg+0x35/0x60 net/socket.c:2178 do_syscall_64+0x1e8/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x42/0xb7 The buggy address belongs to the object at ffff88807ff52a80 which belongs to the cache kmalloc-512 of size 512 The buggy address is located 376 bytes inside of 512-byte region [ffff88807ff52a80, ffff88807ff52c80) The buggy address belongs to the page: page:ffffea0001ffd480 count:1 mapcount:0 mapping:ffff88807ff52080 index:0x0 flags: 0xfffe0000000100(slab) raw: 00fffe0000000100 ffff88807ff52080 0000000000000000 0000000100000006 raw: ffffea0002482120 ffffea000264b6a0 ffff8880aa800940 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff88807ff52a80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88807ff52b00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff88807ff52b80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88807ff52c00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88807ff52c80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ================================================================== sd 0:0:1:0: [sg0] tag#5784 CDB[50]: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00