Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1357813rwd; Thu, 15 Jun 2023 09:26:13 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ50/K/pPcWZm48+joNlVdvhUDp4pDLQQHQHjfK2CYcjzNBVM0Fp1upGUKKlhG3bpBXcdpRQ X-Received: by 2002:a17:907:9403:b0:982:3db3:8d25 with SMTP id dk3-20020a170907940300b009823db38d25mr7413358ejc.60.1686846373310; Thu, 15 Jun 2023 09:26:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686846373; cv=none; d=google.com; s=arc-20160816; b=POWM/b44XV4LAUhQuEVIo1yAgEqe4QC35ilC+BzaH30V4nxon7NEpf5WQHHJFWgXLS fAe/RxUQ52S4OMgtRSl3HWRpxdDh5bLZr2HFpAGXOgxslcX3AOkALx86/BVIVtpiy8nN Foj2Jx+1W3LoC1UnaN+bfMYZrgarbHtQyl7zkjAERfzS6OQu9kL4w9S0hwhAiQ1W7O45 z+4ZuvKblbRvn3j5wTppzVLxfWfxLZndmHIcXCszsybjLRQcRhLgVaqoEk0BqaotPfeD ulY97mTEwEXu3Ga6VciO/HV6ZXChvwulsqn+7xXE2vlRf6LGZvDjUcrqqT4gJ6VFubhE 90pA== 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 :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=vYWBqB+lSwhG8wORrnHLWYrtimD2ZM+aCUIorOoeBDs=; b=MQsPvWhX2Dea+NRYsDiacpdmdUnitQjerzlX26fCrupSFqduUt5eVVVw0PpTt8gUBS CXKVyTZIPtWDz6xdWoQxa7+hoO4scQr5/PU0Lv6PgMctk/fTkocVX6y2I1k6olMoQerw UoDBpRuYSXUfwK9lborTm7WQE8T6l87XrxqdsjmtAdY3sRTD4FtTHWxuyEWqUqT3UsXn p2xeUZQWTYJ8DPXsPKhTlyyNyji9GvvJNzJcxtuLY2QgOAtQI3pckVKoPGmS1UJezOFk 7e4gWVqwHTxapqn5BysFZK1/SuP7elXjO0r++dTE23JY/6F+W5xi94hWc5ci2QxodfZd Bcyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@arista.com header.s=google header.b=JIP18p22; 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 a9-20020a1709064a4900b00965e4bf42e1si10100168ejv.351.2023.06.15.09.25.47; Thu, 15 Jun 2023 09:26:13 -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=JIP18p22; 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 S232905AbjFOQTf (ORCPT + 99 others); Thu, 15 Jun 2023 12:19:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59086 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234129AbjFOQTI (ORCPT ); Thu, 15 Jun 2023 12:19:08 -0400 Received: from mail-wm1-x32e.google.com (mail-wm1-x32e.google.com [IPv6:2a00:1450:4864:20::32e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 498E9273E for ; Thu, 15 Jun 2023 09:19:06 -0700 (PDT) Received: by mail-wm1-x32e.google.com with SMTP id 5b1f17b1804b1-3f8d0d68530so22440525e9.0 for ; Thu, 15 Jun 2023 09:19:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arista.com; s=google; t=1686845945; x=1689437945; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=vYWBqB+lSwhG8wORrnHLWYrtimD2ZM+aCUIorOoeBDs=; b=JIP18p220Cn8gTeeEDEWZ9vvN6ai5FZmR7HwbHVfknPADASswj8KY8eo3DQqEC6Siw tGghDo8+MZoUnUHAjPSsJMsKB4hdKlAkGOCCOCktVDEab/EyyyG3RitjY3HR8eJEpZE0 k1SnS1gZ18dSfv2+70GLhmcq0wMVzZb1Zf/O71SC2+UNpnmZYQYYCbgim8iJf2AudYuy Szg3tPMpM7jh2DCGhCcTBePit8eW1apYDr1SIkmdzpu3ix8NnapBMPK01xaBAhz2apzl vnJ4ordrHGym2xfr0DqPjdlOi4towpcVpOpnI/4DELQdDnRNhyR34QDx1MjCObKhf3OW oB2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686845945; x=1689437945; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=vYWBqB+lSwhG8wORrnHLWYrtimD2ZM+aCUIorOoeBDs=; b=BEeFt8XEDeDYA/4FUB4uXjCYErgIfDu1fu1PisxFSLyYtnwLVPxXMTiUhgFcH+g6St eVdBoeS4zHVz3gUiB9VBrDjNRkzcIXCznaHH3zduv7JVbCLUS1to4ZBOoABMBhTmcCPt LOp4pOYSwZGliuEc7C2369OzxEgAODDXDBdiCTBZyGs9Dm2GhKF8Gt/Mo5dYVZFtd6VP jvARWBprHkjfx78+s92WEfk8DXTeoBE4+PeenfqzzexwcIRoz2BWVnoWKMb3+YztO2RU 6ZxtWFOE387hvaBLlRCF8lRM7wJAdjESMd4vIGxh2CArTok8TAIKMmrbTaEEUa7A/htu 1GTQ== X-Gm-Message-State: AC+VfDynyRkuUgG3kbr3XB11LOLQn/RGcPlFDoa1i3GOusdC+MUOQx2J gCa+0OxY0jph6xbpsZCmTMbgkw== X-Received: by 2002:a7b:c84c:0:b0:3f6:76e:604b with SMTP id c12-20020a7bc84c000000b003f6076e604bmr14882510wml.0.1686845944780; Thu, 15 Jun 2023 09:19:04 -0700 (PDT) Received: from [10.83.37.24] ([217.173.96.166]) by smtp.gmail.com with ESMTPSA id ja15-20020a05600c556f00b003f61177faffsm11354104wmb.0.2023.06.15.09.19.03 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 15 Jun 2023 09:19:04 -0700 (PDT) Message-ID: <6aa4521f-e5d2-ed12-ab49-1132409ab358@arista.com> Date: Thu, 15 Jun 2023 17:19:01 +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 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> Content-Language: en-US From: Dmitry Safonov In-Reply-To: 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 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 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! > > ---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