From: Eric Dumazet Subject: Re: [PATCH net-next 3/4] tls: kernel TLS support Date: Fri, 26 May 2017 07:16:59 -0700 Message-ID: <1495808219.6465.118.camel@edumazet-glaptop3.roam.corp.google.com> References: <20170524162708.GA24215@davejwatson-mba.local> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Cc: Ilya Lesokhin , Aviad Yehezkel , Boris Pismenny , Liran Liss , Matan Barak , David Miller , netdev@vger.kernel.org, Tom Herbert , herbert@gondor.apana.org.au, linux-crypto@vger.kernel.org, Hannes Frederic Sowa , Alexei Starovoitov , nmav@gnults.org, fridolin.pokorny@gmail.com To: Dave Watson Return-path: Received: from mail-pf0-f193.google.com ([209.85.192.193]:34703 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S940721AbdEZORC (ORCPT ); Fri, 26 May 2017 10:17:02 -0400 In-Reply-To: <20170524162708.GA24215@davejwatson-mba.local> Sender: linux-crypto-owner@vger.kernel.org List-ID: On Wed, 2017-05-24 at 09:27 -0700, Dave Watson wrote: > Software implementation of transport layer security, implemented using ULP > infrastructure. tcp proto_ops are replaced with tls equivalents of sendmsg and > sendpage. ... > + > +int tls_sw_sendmsg(struct sock *sk, struct msghdr *msg, size_t size) > +{ ... > + > + lock_sock(sk); > + > + /* Only one writer at a time is allowed */ > + if (sk->sk_write_pending) > + return -EBUSY; Ouch...