Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8A9A5C636D4 for ; Tue, 7 Feb 2023 18:50:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232450AbjBGSul (ORCPT ); Tue, 7 Feb 2023 13:50:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43886 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232354AbjBGSuk (ORCPT ); Tue, 7 Feb 2023 13:50:40 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0B316103; Tue, 7 Feb 2023 10:50:39 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 2BFD760F98; Tue, 7 Feb 2023 18:50:39 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A34E9C433D2; Tue, 7 Feb 2023 18:50:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1675795838; bh=ODzdhcFGiquws7826KpX34sqDv+PisvGBzStMDRRjKw=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=cNUixezJ+SvECnDWIb0o+0ZGpKA6jtC9wof+gC/BVeo/ol+r7bfxNHk1F2Ix+MJDx hK4gApF9EDiramc3YenC0mrcepi+C9HK4XfsTQG3cOpUQfbrk5D1IlNIIDBWBR9O01 wbatX0e0R0rhUfmR/i8dP7sKVxD+QpZlKBijrAWnifidRRQ6DOO0uCc70tAP9aSBVJ XmbqC4s7swInfITIY2nLOlx20L+yEevCnwcFQK2hNlIKOlNoR8iX8W0Xvxyks9/em1 j8I1KovQ1AhmcdBi4eUrb0WmyKAUt0yP97XI/M7Wu6jWju4KG2r6aYaDnHgwqTdJKH PZAniAEs/+NxA== Date: Tue, 7 Feb 2023 10:50:36 -0800 From: Jakub Kicinski To: Herbert Xu Cc: Linux Crypto Mailing List , Alasdair Kergon , Mike Snitzer , dm-devel@redhat.com, "David S. Miller" , Eric Dumazet , Paolo Abeni , netdev@vger.kernel.org, Tyler Hicks , ecryptfs@vger.kernel.org, Marcel Holtmann , Johan Hedberg , Luiz Augusto von Dentz , linux-bluetooth@vger.kernel.org, Steffen Klassert , Jon Maloy , Ying Xue , Boris Pismenny , John Fastabend , David Howells , Jarkko Sakkinen , keyrings@vger.kernel.org Subject: Re: [PATCH] tls: Pass rec instead of aead_req into tls_encrypt_done Message-ID: <20230207105036.76b30090@kernel.org> In-Reply-To: References: <20230206231521.712f53e5@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org On Tue, 7 Feb 2023 16:18:36 +0800 Herbert Xu wrote: > > > aead_request_set_callback(aead_req, CRYPTO_TFM_REQ_MAY_BACKLOG, > > > - tls_encrypt_done, sk); > > > + tls_encrypt_done, aead_req); > > > > ... let's just pass rec instead of aead_req here, then? > > Good point. Could we do this as a follow-up patch? Reposting > the whole series would disturb a lot of people. Of course if > other major issues crop up I can fold this into the existing > patch. Whatever works best! Reviewed-by: Jakub Kicinski