Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp8102709rwd; Tue, 20 Jun 2023 10:09:23 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5b+MNkLsXwA+FNGRs85rDNUYDL9k0+JaqBZ0t4uTc7uChM53Ti3BYF6ZXZ88t6ZRKz7QdF X-Received: by 2002:a17:902:d48f:b0:1af:ea40:34e6 with SMTP id c15-20020a170902d48f00b001afea4034e6mr4106987plg.60.1687280962845; Tue, 20 Jun 2023 10:09:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687280962; cv=none; d=google.com; s=arc-20160816; b=x9Uwv8z63bM8ld+IsYeJyJfmv8iKNMW/jd4Gf83gPOxb28Mnt8JZ0OnE70GisIaAmd OrIuSayTWIJKcCe4iH5vvknf+9uOMsJvthwfOOXF7yJA4G7Decxw/nru8yZY7641XW5G JHoc2yQ5knzxk/NQtwKTS+EeGcuXfryppxlROTqOQMBq2Z35olftj4mKchU/72E+ST86 yjv1wfsJdWKerWAGLIlc0V35Pqyy0GELo0Sm+vLJp7lh1bjvk38wL8/U6odi67Sa57/W JhSyFyDprvQAnzC5kAtRljcJObdI5hNoaOKerwmyWU8EvdaWVEKVC9NxrNIhY6QDI5+1 fH4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=iFGev71zOSbUwc9Ipdme/ZAxUB7isGkByEQJ4BO7RuU=; b=RGGhX0P3R9v3F6QE0Iis5/YuXM5Hp1O4/X087Ugu8nWn8bZWESwyFFwHVCS6ve5q0+ E5PSKeKMWCgMYUosRccjeChDKYfY16j2wZvQYHVLGSQGSzmnUaGN1XmKINpxSpMVlGgH vw/9WpiWuFojB6h3Crg/LuPhQGCZYGl6vzSKKTVN31KUBQ2l7Z1ObkdBT0MmV6eMq5n1 IVzpTwsGi3eKdbvP4oc5gY27H1ReWIWOaGewzzXltW3db0nQcDSHJVp/LuryF403hRUr wEgkULh8M1hjRi33fdAnc/HALIsfwQvuy1ZDZnqMCPVb/4NkH7WUXRQMFx+15pqqFcWi ywwg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@arista.com header.s=google header.b=csYtTXyr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=arista.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j3-20020a170903028300b001b569049666si2379390plr.617.2023.06.20.10.09.08; Tue, 20 Jun 2023 10:09:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@arista.com header.s=google header.b=csYtTXyr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=arista.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230151AbjFTQ7a (ORCPT + 99 others); Tue, 20 Jun 2023 12:59:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44516 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229725AbjFTQ73 (ORCPT ); Tue, 20 Jun 2023 12:59:29 -0400 Received: from mail-wr1-x432.google.com (mail-wr1-x432.google.com [IPv6:2a00:1450:4864:20::432]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D2BF6E42 for ; Tue, 20 Jun 2023 09:59:27 -0700 (PDT) Received: by mail-wr1-x432.google.com with SMTP id ffacd0b85a97d-30adc51b65cso5085057f8f.0 for ; Tue, 20 Jun 2023 09:59:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arista.com; s=google; t=1687280366; x=1689872366; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=iFGev71zOSbUwc9Ipdme/ZAxUB7isGkByEQJ4BO7RuU=; b=csYtTXyre+3fJAdfsJmH5x4q253rZjhqSL6nkUR9EbWvn0z4eQn99DEpJcvyMz/N2B xvG4xNctd5VW6P54WYaxari2Ksw/Ave6KKjVIMOXWEjYwEp4EAgNGjbI2i4/r1VBbRkj XG2G6E50aTAUO1Y4YwUKTkNyDt7N3bTtRJzVzkoN/Fu0OYTxCfnna5U9lKomemVvAKqx 2iJAdKjqb5jcsva8gs+2WF9d4HVAcC6DdkSDx051c+yZRtucnwVj+2KL1P+A/FyU7uzA U8zci+DmIAG6SJMR1QdzgOcLgS5VjIf4SXO0+XMjNhliHWaFN92HkwPt+gKTDJ1QnyfB VUmw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687280366; x=1689872366; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=iFGev71zOSbUwc9Ipdme/ZAxUB7isGkByEQJ4BO7RuU=; b=P1o7U3vM5JKfIJXdvqKFBYVI1Jw2agDN3HuSzbYxSuRYSGdPhiHsFT1T5VXDx4RaDo XSxVk9apwI5Dh/v2CY1Gc8vA5UthH6wm/Xcfk71z7BXofPsO9B4gur2fGd4LizJ0VdDG P5R+ElMp4FDe8mwT5vVu0O6MUt+n7DBTzTINUHj8OqfRWo5oUqtbyoHxZ3oBV4mqLp44 e9UDdNuzIQa/Hrao4ghrpj/ykK0DS0QR+rmkivXdUBTbENi3Os9nBh451TcR6OKT4wf7 7mOhe2zHh65D9SFExCI+oXj7cQRY5TaGAMgDEM8bKEDr84BQr8S0H3e4YmkBIqSJVsA/ zTbQ== X-Gm-Message-State: AC+VfDw7B3BOV9B/M4EXqa1LPAvNI2mfnwRiBecjucjsJIlO9RMTq0RT eiDEbAdSLQaDJltnLaU55vxOWQ== X-Received: by 2002:adf:e848:0:b0:311:15ae:2cd2 with SMTP id d8-20020adfe848000000b0031115ae2cd2mr12172066wrn.15.1687280366354; Tue, 20 Jun 2023 09:59:26 -0700 (PDT) Received: from [10.83.37.24] ([217.173.96.166]) by smtp.gmail.com with ESMTPSA id t13-20020adff60d000000b003119633ecb5sm2364328wrp.88.2023.06.20.09.59.25 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 20 Jun 2023 09:59:25 -0700 (PDT) Message-ID: <973f8619-15ff-608e-250b-356f5c140a2a@arista.com> Date: Tue, 20 Jun 2023 17:59:24 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 Subject: Re: [v2 PATCH] crypto: api - Add __crypto_alloc_tfmgfp Content-Language: en-US To: Herbert Xu Cc: linux-kernel@vger.kernel.org, Bob Gilligan , David Ahern , "David S. Miller" , Dmitry Safonov <0x7f454c46@gmail.com>, Eric Dumazet , "Eric W. Biederman" , Francesco Ruggeri , Jakub Kicinski , Paolo Abeni , Salam Noureddine , linux-crypto@vger.kernel.org References: <20230614174643.3836590-1-dima@arista.com> <20230614174643.3836590-3-dima@arista.com> <6aa4521f-e5d2-ed12-ab49-1132409ab358@arista.com> From: Dmitry Safonov In-Reply-To: <6aa4521f-e5d2-ed12-ab49-1132409ab358@arista.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Herbert, On 6/15/23 17:19, Dmitry Safonov wrote: > On 6/15/23 10:00, Herbert Xu wrote: > [..] >> >> Good catch. Though I'd rather add the gfp argument to a separate >> function because I'm in the process of replacing ciphers with >> something that uses the new crypto_types API. >> >> Once that happens ciphers will switch over to the normal cloning >> call and this can be removed. > > LGTM, thanks! Would you prefer me to resend this v2 or you're happy to apply with your proposed changes? >> ---8<--- >> Use it straight away in crypto_clone_cipher(), as that is not meant to >> sleep. >> >> Fixes: 51d8d6d0f4be ("crypto: cipher - Add crypto_clone_cipher") >> Signed-off-by: Dmitry Safonov >> Signed-off-by: Herbert Xu >> >> diff --git a/crypto/api.c b/crypto/api.c > [..] Thanks, Dmitry