IPv6: ADDRCONF(NETDEV_CHANGE): veth0: link becomes ready IPv6: ADDRCONF(NETDEV_UP): team0: link is not ready 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_replace include/linux/list.h:140 [inline] BUG: KASAN: use-after-free in list_replace_init include/linux/list.h:148 [inline] BUG: KASAN: use-after-free in padata_parallel_worker+0x69b/0x6f0 kernel/padata.c:74 Write of size 8 at addr ffff8801107c7298 by task kworker/0:3/6725 CPU: 0 PID: 6725 Comm: kworker/0:3 Not tainted 4.12.0-rc5+ #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: pencrypt padata_parallel_worker 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_store8_noabort+0x17/0x20 mm/kasan/report.c:434 list_replace include/linux/list.h:140 [inline] list_replace_init include/linux/list.h:148 [inline] padata_parallel_worker+0x69b/0x6f0 kernel/padata.c:74 process_one_work+0xa62/0x1c70 kernel/workqueue.c:2097 worker_thread+0x215/0x1900 kernel/workqueue.c:2231 kthread+0x345/0x410 kernel/kthread.c:231 ret_from_fork+0x2a/0x40 arch/x86/entry/entry_64.S:424 Allocated by task 6851: 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 6851: 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 ffff8801107c7240 which belongs to the cache kmalloc-1024 of size 1024 The buggy address is located 88 bytes inside of 1024-byte region [ffff8801107c7240, ffff8801107c7640) The buggy address belongs to the page: page:ffffea000441f180 count:1 mapcount:0 mapping:ffff8801107c6040 index:0x0 compound_mapcount: 0 flags: 0x2fffc0000008100(slab|head) raw: 02fffc0000008100 ffff8801107c6040 0000000000000000 0000000100000007 raw: ffffea0004509920 ffff88012bc01848 ffff88012bc00ac0 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8801107c7180: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ffff8801107c7200: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb >ffff8801107c7280: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff8801107c7300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8801107c7380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================