Message ID | 20200128135826.241608399@linuxfoundation.org |
---|---|
State | New |
Headers | show
Return-Path: <SRS0=oJ2n=3R=vger.kernel.org=stable-owner@kernel.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=3.0 tests=DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4F47DC2D0DB for <stable@archiver.kernel.org>; Tue, 28 Jan 2020 14:03:39 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 1DE7224688 for <stable@archiver.kernel.org>; Tue, 28 Jan 2020 14:03:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1580220219; bh=YMLFAG4IzFk7w7pAcWRjtZubbB+Sd1vhE6LDzldamo8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=AbvFlH5IAru6Bq6FMqwYnCi2243HTLxm8rRVmE16m0MchGUbPUMzXSTPCYwkfv0K7 HieDHSFe8n14d5wXMZ0n5ZVzFMkFrdCvvgBjP7Y54EtX8x9Ao7/81dsBAibvoozIsf YlapRGF+wIxKqD2richmeQ2sSnmLepnQfwMAEOdk= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727903AbgA1ODh (ORCPT <rfc822;stable@archiver.kernel.org>); Tue, 28 Jan 2020 09:03:37 -0500 Received: from mail.kernel.org ([198.145.29.99]:50442 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727899AbgA1ODh (ORCPT <rfc822;stable@vger.kernel.org>); Tue, 28 Jan 2020 09:03:37 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 8F2DD24691; Tue, 28 Jan 2020 14:03:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1580220217; bh=YMLFAG4IzFk7w7pAcWRjtZubbB+Sd1vhE6LDzldamo8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=sYoJMNPJRaMFwfOoftNj/8/w8qSHT0ypW1L/pFWVx8HFn3QQko+Ic56oU8RTdsKo9 E7TCiiE0xIScIghRjb6hk4DyulPL6ZpzISnlUp1ueWuZJy0EXuPrINKgEWi7pxH9Tm RjqdxlogHt0AiL3c72E4nM93Wvcb4taa572dQ/q8= From: Greg Kroah-Hartman <gregkh@linuxfoundation.org> To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>, stable@vger.kernel.org, Mallesham Jatharakonda <mallesham.jatharakonda@oneconvergence.com>, Jakub Kicinski <jakub.kicinski@netronome.com>, Simon Horman <simon.horman@netronome.com>, "David S. Miller" <davem@davemloft.net> Subject: [PATCH 5.4 063/104] net/tls: fix async operation Date: Tue, 28 Jan 2020 15:00:24 +0100 Message-Id: <20200128135826.241608399@linuxfoundation.org> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200128135817.238524998@linuxfoundation.org> References: <20200128135817.238524998@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: <stable.vger.kernel.org> X-Mailing-List: stable@vger.kernel.org |
Series |
None
|
expand
|
--- a/net/tls/tls_sw.c +++ b/net/tls/tls_sw.c @@ -793,7 +793,7 @@ static int bpf_exec_tx_verdict(struct sk psock = sk_psock_get(sk); if (!psock || !policy) { err = tls_push_record(sk, flags, record_type); - if (err) { + if (err && err != -EINPROGRESS) { *copied -= sk_msg_free(sk, msg); tls_free_open_rec(sk); } @@ -819,7 +819,7 @@ more_data: switch (psock->eval) { case __SK_PASS: err = tls_push_record(sk, flags, record_type); - if (err < 0) { + if (err && err != -EINPROGRESS) { *copied -= sk_msg_free(sk, msg); tls_free_open_rec(sk); goto out_err;