Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp957143pxj; Fri, 21 May 2021 03:10:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJznr0uMHhfEPD9q8uQ52h5p6wG5aTD8V9jE920Ow3l7DFUn//wQB046uF1sK9PxvpXK8+Ee X-Received: by 2002:aa7:d282:: with SMTP id w2mr10271578edq.45.1621591824579; Fri, 21 May 2021 03:10:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621591824; cv=none; d=google.com; s=arc-20160816; b=SRxrxGZ/0uy9mR/shsHDGw2vxpRSqq4NC1HJe16dghoqUhPlJFEjvE+fb9zTlJyE6s oUXvY0lldj89V6P5zQFwQzqJMsj+EUQKEtUiU5Dp/rRGBZCG0Ahz6+pcRBPMrlZ3ZHH8 jKk2FTpEgKaWmbWe22bxaaEIACx93vsPQ5RFPIMGEd4lwgb3xLXgMW2fvQLUctCsdCxv ej8/m75RYsaa1zG+LX4Ivw56tMOxSoK3YJ8XDqZz7mLGo/TYuwm3huZG51g/a4Qx/R5/ l5/umZdiUVXu2ot/1YwWa7b14nBSRp/kgSJOxB1OZRu5hkp1aXDSP22EP6uL5FT5mc4N KSwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=Vxjwouvxq6rNGxtkLbiMYG0YM6Ycre5uYgRy02M203U=; b=twnWG02kJV+iEsNiGGA/vjwzEm3JkZ847ki8hzR26Zv0sX2d34PIKL2979Z2eEsEzP 6GXh2ewFNlQFSFxjLPFt14VLD9i7zygyCyMvcr+mFP4tExnRO8kIevV3yP7ijlMi9mAR JVAkCR8xOoXZweSnFJJ6KMDa8ZXk7cFbj7cI7agIttLxWUA94TNcjl6zz2uUWUAllVQN IHGhwaICU+ru6yGInhc3VcX4euIyCj6oMDPoztsmM0O5DfGC26HLyOYZJsRI4yUNqF8A rch6OkMITillJQwgfVyhR+Le3gkIwH8yDqQmO0WFXZ/tTOdKwxQOomoZ5azFUnth1hQ3 ev0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=D9+pqZ1W; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m22si4914937ejc.115.2021.05.21.03.10.00; Fri, 21 May 2021 03:10:24 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=D9+pqZ1W; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235905AbhEUHbs (ORCPT + 99 others); Fri, 21 May 2021 03:31:48 -0400 Received: from mail.kernel.org ([198.145.29.99]:47576 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235903AbhEUHbr (ORCPT ); Fri, 21 May 2021 03:31:47 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 0635C6135B for ; Fri, 21 May 2021 07:30:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1621582224; bh=Vxjwouvxq6rNGxtkLbiMYG0YM6Ycre5uYgRy02M203U=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=D9+pqZ1WMLZOd90zipYJrvlRfQTW9z4zTZUPz7Oypgb2bhSQoxjKa+7UhyZp97ovU ddx48nfaWMedo2jDqPw9AVzwkjnoH4mzrkJYmPzWViqj7Oj9hsMWt0KN10i77qF1y7 MGiW6XgJS+j19PcvHiLP8BJbSVlynnOaIat5S38VXtEf3YxBhXKOlKnKb3VzdBpaaz Ov7J5Bz2uDZvl9l4MpoGGTjH1aBVt36nmRtutRLNjDgHZWw912aS/VZvOJLHRGP03D +MPm2WGny4tB6XPo2Q1QXvGjxea7HIpGO4V6HeDTVFm91IiTgsN08BXVEwIGh7beSR XlgG1bkgX8Ezw== Received: by mail-oo1-f49.google.com with SMTP id e27-20020a056820061bb029020da48eed5cso4369809oow.10 for ; Fri, 21 May 2021 00:30:23 -0700 (PDT) X-Gm-Message-State: AOAM530W8GjMA3K39G65z8dkdkpFo2YydoROOVvTuMZRkMfpy426sKLQ 0opzEdaAzfEci0J/li3MNtWzwcaKOld+UGp7QOA= X-Received: by 2002:a4a:300b:: with SMTP id q11mr4591366oof.45.1621582223455; Fri, 21 May 2021 00:30:23 -0700 (PDT) MIME-Version: 1.0 References: <20210519112239.33664-1-ardb@kernel.org> <20210519112239.33664-3-ardb@kernel.org> <20210519112930.sgy3trqczyfok7mn@gondor.apana.org.au> <20210519115146.bmrlfrchmz5tt2e2@gondor.apana.org.au> In-Reply-To: <20210519115146.bmrlfrchmz5tt2e2@gondor.apana.org.au> From: Ard Biesheuvel Date: Fri, 21 May 2021 09:30:11 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v4 2/7] crypto: aead - disallow en/decrypt for non-task or non-softirq context To: Herbert Xu Cc: Linux Crypto Mailing List , Linux ARM , Eric Biggers , Will Deacon , Android Kernel Team Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Wed, 19 May 2021 at 13:51, Herbert Xu wrote: > > 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. > Fair enough. Would you like me to resend the series with these patches left out Or are you ok to just take the remaining ones (assuming there are no issues reported with those)?