Patch "tcp: reset sk_send_head in tcp_write_queue_purge" has been added to the 4.14-stable tree