Received: by 2002:a05:6520:4211:b029:f4:110d:56bc with SMTP id o17csp1548069lkv; Wed, 19 May 2021 12:30:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxb773h02VeDIFA0vz9Axj2cdTGjozTeXp7ebMzoRyo4QmoKT9FKSYhCAmLU6nHcliCmwFl X-Received: by 2002:aa7:db93:: with SMTP id u19mr652266edt.227.1621452603060; Wed, 19 May 2021 12:30:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621452603; cv=none; d=google.com; s=arc-20160816; b=Sd7TnfRlVwwLwIGM+zlPI9z+tbYDWrk4b0SJJT9rgUMETZb6O2f7Wxm6Nyt96kyXWA KvAKXpL7UkX9IDPgzW1OBzrsj8MtLPXIxEOkbZQJ6QOZsX7Kxd4fdvkMdmdvqSeNoWZc lhXJywCb2i94WNVBLra+/3CP8R+cAXg0ougxWlwpOztjZtvc4oqcbOMrlvHOKsMk6SnM VPBQZ3zESTnui9OtmGW2rZM/W4xzPud9EGEvFFOVI3mi3cDJGePci2xonknfvSmrWlGr bSzI3VPghg9CuhLz4fqn3CIAZjkWR5anxOiMpZ/g2SneVN+H8x8DgTVX/V0xn4CRo0Nn t6Kg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=RgPTTeWeB5vJ2cbA9EMt7C0i86vQG1fsJGhl/SsLlRE=; b=wWhvReO5u4/g5gDbP2sDOa5s48ibw1uMXL5Vzr+8njQ7nMM0BcKhvl9ZWmr58MxTpY Vwiny5Ctuv7sbPdnMiDWRYBGkS6XfLw0ptEYBtZMI7nbkUu1bsonmQ+K/UtUx06K5g9Z uXIsYHdrR9f9kSNwPzXBIlShuH5RO6MrpOuiS8uc2idQiuLyAizWkhaXmaY7BBlZnfA1 SEFE8hquNaIs9JWvQOsA0pPUqnz9+30BcaTvgv/sw56tqO6KaAnG9avRX3grQJx35lWx ZxQa9L3X3hnEgsl8H1fM9GSER4H62VZbBLScdTeOR/PzieyT86QL8pqxyreEgeiZA+LA tAgA== 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 u7si78210eda.389.2021.05.19.12.29.37; Wed, 19 May 2021 12:30:03 -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 S1352567AbhESLxI (ORCPT + 99 others); Wed, 19 May 2021 07:53:08 -0400 Received: from helcar.hmeau.com ([216.24.177.18]:54256 "EHLO deadmen.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229508AbhESLxI (ORCPT ); Wed, 19 May 2021 07:53:08 -0400 Received: from gondobar.mordor.me.apana.org.au ([192.168.128.4] helo=gondobar) by deadmen.hmeau.com with esmtp (Exim 4.92 #5 (Debian)) id 1ljKjr-0003hD-T1; Wed, 19 May 2021 19:51:47 +0800 Received: from herbert by gondobar with local (Exim 4.89) (envelope-from ) id 1ljKjq-0007AF-Ki; Wed, 19 May 2021 19:51:46 +0800 Date: Wed, 19 May 2021 19:51:46 +0800 From: Herbert Xu To: Ard Biesheuvel Cc: Linux Crypto Mailing List , Linux ARM , Eric Biggers , Will Deacon , Android Kernel Team Subject: Re: [PATCH v4 2/7] crypto: aead - disallow en/decrypt for non-task or non-softirq context Message-ID: <20210519115146.bmrlfrchmz5tt2e2@gondor.apana.org.au> References: <20210519112239.33664-1-ardb@kernel.org> <20210519112239.33664-3-ardb@kernel.org> <20210519112930.sgy3trqczyfok7mn@gondor.apana.org.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20170113 (1.7.2) Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Wed, May 19, 2021 at 01:36:37PM +0200, Ard Biesheuvel wrote: > > So if we do need to check this, we should check it here. If we don't, > then we can drop these patches. Historically other things would break in nasty ways if you tried to do crypto in hard IRQ contexts, e.g., overwritten kmap slots back when we had individual slots for each context, but I don't think we've ever found anyone crazy enough to do that to warrant a run-time check. I'd just leave it out for now. Thanks, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt