Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp280471rwb; Wed, 9 Nov 2022 02:19:50 -0800 (PST) X-Google-Smtp-Source: AMsMyM4PxTqXX69P/ejP2ocBN9+WgktXj++SEjxJ5f01nGwyyRx5V7BZK9g44ZxyrJ+d1tUs+pLE X-Received: by 2002:a17:906:bceb:b0:7ae:75e:3929 with SMTP id op11-20020a170906bceb00b007ae075e3929mr35095300ejb.400.1667989189922; Wed, 09 Nov 2022 02:19:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667989189; cv=none; d=google.com; s=arc-20160816; b=qE5GJJgSv+PxhBDezO7Z8gskbcrYSWzDZLY2MpFui9v3Hzq5Iprnzfis5JW2cvlA95 131WTpnU+arQe3KfPMiffOCtEzut2V+S1JZl/I7ZA5aV+mxXUdWaOJdScXy1yaXqvCsD NoawyMcHyQgG1WeRVDeyhTJ8IwrZhiqVHwuFkNSJkZjbaJVnDgfuDNzWALw5ZV4ExJr1 itJCSf1If2AwdhxvNYfFgrgTsY/nAn5fI7xTdg6vEOWJiQdBYKUlUe9CUu9eBu6gWnjs 1FjkCTgS3q7V9wwJEgnYG2FI/p3SSbvTO7pAaDvJKUHMVY16eD3htFCkGbmhw7drnUZa f8qg== 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=b/8SPXIL8kaN7a1aOlgENOSJOASPkQg6s2d3GTQq6d8=; b=UkG/Z7fi/gOgbFUWOmYXzUOqaQLS5acRQCWV5hUu/gQNy9S1NdMOyIJpvAfUJEoLgI OXwu8dKJXhELbKb909WFgydFw57bT6q+hbW6LmNZuwHvdF6dtp12aa5q6fBt/3dv1hJJ GNmxm6XVKEJjVKrx/1rI0fOT46zoZo1Eu2MKMN86UFjo3TNaZ283JuaXPvWP+2yNL/na /vptS4Pdaouf2Dd9zvdbEx5yDzfXEuEvJev2eAh2m1jY4+MEJjhljYxE5fm4kGkzSQyW /8haDV67WctJrIllI6CvJBsdCG8TKLEhG3LZOFHU4bk0uIO1nfrpO5PmHZYaEKsN/Pyv 2yBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Rv7tm7uY; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hq28-20020a1709073f1c00b0078d85177210si16758780ejc.756.2022.11.09.02.19.22; Wed, 09 Nov 2022 02:19:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-crypto-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=@kernel.org header.s=k20201202 header.b=Rv7tm7uY; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S229702AbiKIKFk (ORCPT + 99 others); Wed, 9 Nov 2022 05:05:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35266 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229667AbiKIKFj (ORCPT ); Wed, 9 Nov 2022 05:05:39 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2B4726365 for ; Wed, 9 Nov 2022 02:05:37 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id C4A05B81CED for ; Wed, 9 Nov 2022 10:05:35 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 72BDFC433C1 for ; Wed, 9 Nov 2022 10:05:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1667988334; bh=SdShPDo8seKi2ttg5ulGnAQY422cQybk529pPjOLYak=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=Rv7tm7uYpyMBAmWNz+0Cc+V2/RseYr6PduG8Dn7tx2Xf9FZXTz0OnwgJ35uqBr1rv UhKDq9cZCHajprHo+6vRk5ForR9bwapBJMAD7+qz6bKocwfjiZ6w5PdkJAuh9Kiw07 Qo9f+vN/0HJ7iags65FHnEt35l4GfV717eUP7UUrI2B+LeSwlBuagl02UfFQtDhRfX miU82klkTyRaVnIOr6d+XIy5yFmf5kdN4/ogok2nko3CxG3NmTnkLyVzc04n2NrIeO q2IZIBkfZ4bG/YKslKlJsiiII9lWfVg8a1zsFwHcAm7ZKjwcvTaAPur+GHJZTrsGJm xPxAeCbvAAX5w== Received: by mail-lf1-f45.google.com with SMTP id g12so24901571lfh.3 for ; Wed, 09 Nov 2022 02:05:34 -0800 (PST) X-Gm-Message-State: ACrzQf1qQFFUhSNEARX8dvMiB+ZEvyesmfA7uX0UqIeSmF/3m93qPsGE CP5HEYxAVhbHQ7kXK5WxUHQKmA3caLx+IY2qkTo= X-Received: by 2002:ac2:4c47:0:b0:4a2:c07b:4b62 with SMTP id o7-20020ac24c47000000b004a2c07b4b62mr19563753lfk.426.1667988332486; Wed, 09 Nov 2022 02:05:32 -0800 (PST) MIME-Version: 1.0 References: <20201210024342.GA26428@gondor.apana.org.au> <20201210111427.GA28014@gondor.apana.org.au> <20201210121627.GB28441@gondor.apana.org.au> <20201215091902.GA21455@gondor.apana.org.au> <062a2258-fad4-2c6f-0054-b0f41786ff85@candelatech.com> In-Reply-To: From: Ard Biesheuvel Date: Wed, 9 Nov 2022 11:05:21 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2] crypto: aesni - add ccm(aes) algorithm implementation To: Herbert Xu Cc: Ben Greear , Linux Crypto Mailing List , Eric Biggers Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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-crypto@vger.kernel.org On Wed, 9 Nov 2022 at 04:52, Herbert Xu wrote: > > On Tue, Nov 08, 2022 at 10:50:48AM -0800, Ben Greear wrote: > > > > While rebasing my patches onto 6.1-rc4, I noticed my aesni for ccm(aes) patch didn't apply cleanly, > > and I found this patch described below is applied now. Does this upstream patch mean that aesni is already > > supported upstream now? Or is it specific to whatever xctr is? If so, > > any chance the patch is wanted upstream now? > > AFAICS the xctr patch has nothing to do with what you were trying > to achieve with wireless. My objection still stands with regards > to wireless, we should patch wireless to use the async crypto > interface and not hack around it in the Crypto API. > Indeed. Those are just add/add conflicts because both patches introduce new code into the same set of files. The resolution is generally to keep both sides. As for Herbert's objection: I will note here that in the meantime, arm64 now has gotten rid of the scalar fallbacks entirely in AEAD and skipcher implementations, because those are only callable in task or softirq context, and the arm64 SIMD wrappers now disable softirq processing. This means that the condition that results in the fallback being needed can no longer occur, making the SIMD helper dead code on arm64. I suppose we might do the same thing on x86, but since the kernel mode SIMD handling is highly arch specific, you'd really need to raise this with the x86 maintainers.