From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH net-next] tls: Skip zerocopy path for ITER_KVEC Date: Tue, 24 Jul 2018 14:38:02 -0700 (PDT) Message-ID: <20180724.143802.309217898930041106.davem@davemloft.net> References: <20180720181900.1073485-1-doronrk@fb.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: davejwatson@fb.com, netdev@vger.kernel.org To: doronrk@fb.com Return-path: Received: from shards.monkeyblade.net ([23.128.96.9]:38748 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727453AbeGXWq2 (ORCPT ); Tue, 24 Jul 2018 18:46:28 -0400 In-Reply-To: <20180720181900.1073485-1-doronrk@fb.com> Sender: netdev-owner@vger.kernel.org List-ID: From: Doron Roberts-Kedes Date: Fri, 20 Jul 2018 11:19:00 -0700 > The zerocopy path ultimately calls iov_iter_get_pages, which defines the > step function for ITER_KVECs as simply, return -EFAULT. Taking the > non-zerocopy path for ITER_KVECs avoids the unnecessary fallback. > > See https://lore.kernel.org/lkml/20150401023311.GL29656@ZenIV.linux.org.uk/T/#u > for a discussion of why zerocopy for vmalloc data is not a good idea. > > Discovered while testing NBD traffic encrypted with ktls. > > Fixes: c46234ebb4d1 ("tls: RX path for ktls") > Signed-off-by: Doron Roberts-Kedes Applied to net-next, thanks.