Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp117879ybg; Tue, 9 Jun 2020 18:07:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxyZ/wDJghB0FxCTcusFWmGXMYPvl1b3YtQ+wY6ezwmSjKp5GQnASjunziprQ64LIe8I89M X-Received: by 2002:a17:907:94ca:: with SMTP id dn10mr994427ejc.348.1591751250131; Tue, 09 Jun 2020 18:07:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591751250; cv=none; d=google.com; s=arc-20160816; b=t8WbB5Sc/oiSpiKSdneSPSDSDvSooCrNDkiyrEB2k2AGBSwvFXl8OCUyRCY0abqlN6 A0/0NUjYz9lZ/k+10Q93U6NLzZSqyQvSEYfYVjD0p0fDyNSfD1qUVYCZP6AFVrVCJfuK 6HasL3dSj5NWS5kvebI9kt25EhSzlLinq/M3g+vKBGVJtOMkAtrkWFCVnrIq7MMvGIrt kK0HKmpXTWSmzezhDCC6bt1SUo2IKWaNBg4VE3j5/gg0/ldLw+j1hzQXnsMMu72BQgaa kN+CF1YpD0lqLtV6/NfH/Rjv1dAdJ/a0nMcGzqbHljXndFg4f8F1Mg+sToWhLUkNQeag /Dag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=7DbzBI5o+jbEByvu3lNro4NXqYHxjxNXHct5yZUxzLE=; b=nLafp3CfKsB/l/CimmtQC8wGBc4t/tjbu/FBDSNMwSfdk45CzdH66MwWxctWuWCFep 8YzZDgrW5PnF43NV9LBqzlW7ibhujuhWMonKa5TvUObr/G7xanARkUZ8o+lld1S/C+DX XaW++75YUR6e5ZSwFVJ4w/Ydpi5XBq2DhH6Z/MRMZFW0uGKW01T3oWf+wER4qANkbAhQ AZ9+mXv18zu9YI2ou4nXJwBGaNx6VFvUcxEqvpFHlvRZ+ijeESVSJ+2e04VkVdf405UN mTg4Hg/snbAkuTprytm9Y0Sdue6QxzZ16JrHaGMibjQ8zVxuApslaXDdnw357Lfg3JGf xLOw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o10si12150057ejr.656.2020.06.09.18.07.05; Tue, 09 Jun 2020 18:07:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726127AbgFJBE5 (ORCPT + 99 others); Tue, 9 Jun 2020 21:04:57 -0400 Received: from helcar.hmeau.com ([216.24.177.18]:59220 "EHLO fornost.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726046AbgFJBE4 (ORCPT ); Tue, 9 Jun 2020 21:04:56 -0400 Received: from gwarestrin.arnor.me.apana.org.au ([192.168.0.7]) by fornost.hmeau.com with smtp (Exim 4.92 #5 (Debian)) id 1jipAg-0007mt-9B; Wed, 10 Jun 2020 11:04:51 +1000 Received: by gwarestrin.arnor.me.apana.org.au (sSMTP sendmail emulation); Wed, 10 Jun 2020 11:04:50 +1000 Date: Wed, 10 Jun 2020 11:04:50 +1000 From: Herbert Xu To: Mikulas Patocka Cc: "David S. Miller" , linux-crypto@vger.kernel.org, Mike Snitzer , Milan Broz , dm-devel@redhat.com, linux-kernel@vger.kernel.org Subject: Re: crypto API and GFP_ATOMIC Message-ID: <20200610010450.GA6449@gondor.apana.org.au> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Tue, Jun 09, 2020 at 01:11:05PM -0400, Mikulas Patocka wrote: > > Do you have another idea how to solve this problem? I think the better approach would be to modify the drivers to not allocate any memory. In general, any memory needed by the driver to fulfil a request *should* be allocated within the crypto request object. That's why we have the reqsize field to indicate how much memory could be needed per request. Thanks, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt