From patchwork Wed Feb 28 22:43:56 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sabrina Dubroca X-Patchwork-Id: 13576022 Received: from relay7-d.mail.gandi.net (relay7-d.mail.gandi.net [217.70.183.200]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DB0DF1361CC for ; Wed, 28 Feb 2024 22:44:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.200 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709160260; cv=none; b=Q6aLJZ5M65A6N328rUgnTNRV8/InXG2D12YgJE0OKiOyqTdsbS7yDk36SgrcwILhbMSgnY8Kh/q4gjn6YG3EhK4hEZEWBNz3CDFwAllzvPaSeK0ddFT05eWyobCh2zNpmn5p7wvyTOcJ/B0BHGNa+eMR26fcPljl+9h4L3e0beY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709160260; c=relaxed/simple; bh=5fyca7Im6DJWqM0Nq1UEUP4OBBcKpECT4aRKU0cGVjI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=qqnMIWXCDlXebSIWn46yTqa1yQ8QVF2HHgqHnhV+yTrFtlhcGq8BKuPuJI4q9bu9eb7GpQhEzV9lW5RpxVoqM67DldvXI8aixCuHv/odb/3BF/pd8R/4i4lwt6DwZw7E70CgAUZVpxgCI2+Q/mhHlF5X2QJsOE2BBpXF+W7Y/08= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=queasysnail.net; spf=none smtp.mailfrom=queasysnail.net; arc=none smtp.client-ip=217.70.183.200 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=queasysnail.net Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=queasysnail.net Received: by mail.gandi.net (Postfix) with ESMTPSA id BC2F220004; Wed, 28 Feb 2024 22:44:08 +0000 (UTC) From: Sabrina Dubroca To: netdev@vger.kernel.org Cc: Sabrina Dubroca , Vakul Garg , Boris Pismenny , John Fastabend , Jakub Kicinski , "David S. Miller" , Eric Dumazet , Paolo Abeni , Simon Horman Subject: [PATCH net 0/4] tls: a few more fixes for async decrypt Date: Wed, 28 Feb 2024 23:43:56 +0100 Message-ID: X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-GND-Sasl: sd@queasysnail.net X-Patchwork-Delegate: kuba@kernel.org The previous patchset [1] took care of "full async". This adds a few fixes for cases where only part of the crypto operations go the async route, found by extending my previous debug patch [2] to do N synchronous operations followed by M asynchronous ops (with N and M configurable). [1] https://patchwork.kernel.org/project/netdevbpf/list/?series=823784&state=* [2] https://lore.kernel.org/all/9d664093b1bf7f47497b2c40b3a085b45f3274a2.1694021240.git.sd@queasysnail.net/ Sabrina Dubroca (4): tls: decrement decrypt_pending if no async completion will be called tls: fix peeking with sync+async decryption tls: separate no-async decryption request handling from async tls: fix use-after-free on failed backlog decryption net/tls/tls_sw.c | 40 +++++++++++++++++++++++++++++----------- 1 file changed, 29 insertions(+), 11 deletions(-)