IPv6: ADDRCONF(NETDEV_CHANGE): veth0: link becomes ready 8021q: adding VLAN 0 to HW filter on device team0 8021q: adding VLAN 0 to HW filter on device team0 TCP: request_sock_TCPv6: Possible SYN flooding on port 20002. Sending cookies. Check SNMP counters. ================================================================== BUG: KASAN: use-after-free in __list_add_valid+0xc6/0xd0 lib/list_debug.c:26 Read of size 8 at addr ffff8801da611250 by task syz-executor4/7356 CPU: 0 PID: 7356 Comm: syz-executor4 Not tainted 4.12.0-rc5+ #1 TCP: request_sock_TCPv6: Possible SYN flooding on port 20002. Sending cookies. Check SNMP counters. Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:16 [inline] dump_stack+0x145/0x1f1 lib/dump_stack.c:52 print_address_description+0xd4/0x230 mm/kasan/report.c:252 kasan_report_error mm/kasan/report.c:351 [inline] kasan_report+0x24d/0x340 mm/kasan/report.c:408 __asan_report_load8_noabort+0x14/0x20 mm/kasan/report.c:429 __list_add_valid+0xc6/0xd0 lib/list_debug.c:26 __list_add include/linux/list.h:59 [inline] list_add_tail include/linux/list.h:92 [inline] padata_do_parallel+0x3bd/0x7a0 kernel/padata.c:137 pcrypt_do_parallel+0x1fb/0x3f0 crypto/pcrypt.c:99 pcrypt_aead_encrypt+0x351/0x450 crypto/pcrypt.c:173 crypto_aead_encrypt include/crypto/aead.h:330 [inline] tls_do_encryption net/tls/tls_sw.c:233 [inline] tls_push_record+0x902/0x12d0 net/tls/tls_sw.c:264 tls_sw_push_pending_record+0xe/0x10 net/tls/tls_sw.c:292 tls_push_pending_closed_record+0x64/0x120 net/tls/tls_main.c:180 tls_complete_pending_work include/net/tls.h:150 [inline] tls_sk_proto_close+0x5ce/0xa70 net/tls/tls_main.c:220 inet_release+0xd9/0x1c0 net/ipv4/af_inet.c:425 inet6_release+0x46/0x60 net/ipv6/af_inet6.c:432 sock_release+0x83/0x1b0 net/socket.c:597 sock_close+0xd/0x20 net/socket.c:1113 __fput+0x307/0x900 fs/file_table.c:209 ____fput+0x9/0x10 fs/file_table.c:245 task_work_run+0x140/0x220 kernel/task_work.c:116 get_signal+0x12d4/0x16c0 kernel/signal.c:2148 do_signal+0x90/0x1e90 arch/x86/kernel/signal.c:808 exit_to_usermode_loop+0x1c7/0x2a0 arch/x86/entry/common.c:157 prepare_exit_to_usermode arch/x86/entry/common.c:194 [inline] syscall_return_slowpath+0x344/0x3f0 arch/x86/entry/common.c:263 entry_SYSCALL_64_fastpath+0xc0/0xc2 RIP: 0033:0x4576b9 RSP: 002b:00007f57c7026c78 EFLAGS: 00000246 ORIG_RAX: 000000000000002c RAX: 0000000000000001 RBX: 0000000000000006 RCX: 00000000004576b9 RDX: 0000000000000001 RSI: 00000000200003c0 RDI: 0000000000000006 RBP: 000000000072bf00 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f57c70276d4 R13: 00000000004c411b R14: 00000000004d69b0 R15: 00000000ffffffff Allocated by task 7356: save_stack_trace+0x16/0x20 arch/x86/kernel/stacktrace.c:59 save_stack+0x43/0xd0 mm/kasan/kasan.c:513 set_track mm/kasan/kasan.c:525 [inline] kasan_kmalloc+0xad/0xe0 mm/kasan/kasan.c:617 __do_kmalloc mm/slab.c:3733 [inline] __kmalloc+0x156/0x790 mm/slab.c:3742 kmalloc include/linux/slab.h:497 [inline] tls_do_encryption net/tls/tls_sw.c:222 [inline] tls_push_record+0x6b7/0x12d0 net/tls/tls_sw.c:264 tls_sw_sendmsg+0xb45/0x12d0 net/tls/tls_sw.c:449 inet_sendmsg+0x10e/0x5d0 net/ipv4/af_inet.c:762 sock_sendmsg_nosec net/socket.c:633 [inline] sock_sendmsg+0xb5/0xf0 net/socket.c:643 SYSC_sendto+0x30e/0x5e0 net/socket.c:1737 SyS_sendto+0x9/0x10 net/socket.c:1705 entry_SYSCALL_64_fastpath+0x23/0xc2 Freed by task 7356: save_stack_trace+0x16/0x20 arch/x86/kernel/stacktrace.c:59 save_stack+0x43/0xd0 mm/kasan/kasan.c:513 set_track mm/kasan/kasan.c:525 [inline] kasan_slab_free+0x71/0xc0 mm/kasan/kasan.c:590 __cache_free mm/slab.c:3511 [inline] kfree+0xcc/0x270 mm/slab.c:3828 tls_do_encryption net/tls/tls_sw.c:238 [inline] tls_push_record+0x9ad/0x12d0 net/tls/tls_sw.c:264 tls_sw_sendmsg+0xb45/0x12d0 net/tls/tls_sw.c:449 inet_sendmsg+0x10e/0x5d0 net/ipv4/af_inet.c:762 sock_sendmsg_nosec net/socket.c:633 [inline] sock_sendmsg+0xb5/0xf0 net/socket.c:643 SYSC_sendto+0x30e/0x5e0 net/socket.c:1737 SyS_sendto+0x9/0x10 net/socket.c:1705 entry_SYSCALL_64_fastpath+0x23/0xc2 The buggy address belongs to the object at ffff8801da611200 which belongs to the cache kmalloc-1024 of size 1024 The buggy address is located 80 bytes inside of 1024-byte region [ffff8801da611200, ffff8801da611600) The buggy address belongs to the page: page:ffffea0007698400 count:1 mapcount:0 mapping:ffff8801da610000 index:0x0 compound_mapcount: 0 flags: 0x2fffc0000008100(slab|head) raw: 02fffc0000008100 ffff8801da610000 0000000000000000 0000000100000007 raw: ffffea0007640720 ffffea00075f6020 ffff8801da400ac0 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8801da611100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8801da611180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff8801da611200: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff8801da611280: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8801da611300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================