Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp7617651rwn; Wed, 14 Sep 2022 01:23:27 -0700 (PDT) X-Google-Smtp-Source: AA6agR66yFsNbFoWMhnTTPz0/wYxTqj7TfrwG2j/1tCGUuWI+RlTo54kW2hgXjFZiXZaTEOSfl8/ X-Received: by 2002:a17:907:2d21:b0:77d:4f86:2e65 with SMTP id gs33-20020a1709072d2100b0077d4f862e65mr9582178ejc.58.1663143806931; Wed, 14 Sep 2022 01:23:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663143806; cv=none; d=google.com; s=arc-20160816; b=ae8IfPCyB+va5dVtRk8IBp5M5MdNDIqk0pBM0im3YulNPX0XpvWhAzTCMnxdSPxtrh 8EKuPuRF9rSSYbfbBG4wdCZzelT/ThWs/Ib5xcyctLtRxW49/6AC6qOiTajGlLBvSYTv A+D2+ugNz+Ft+4qbnbYfd3iTjwwXPvwCqsgZ/pWWs6UvyYSrWJBTIpcjDPjaBjWeOcr9 iCvlIvbwkstUoHwWv8BuprYHeNxeCsMAdqFkz3c5YTxgy08Kd9jKRRwTUGzsZ5gP1QWy egqYOR/NGufZX11T4xwm45qIMIC5hYC4N9kfc0mAj21E66LPVW9qgwULL7KTNVfgxZmC +YGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=HuIXq0gxsLhtrekbIwvVhrdsOJWyOZiMwcr+S3al2lw=; b=gHGXIBaFkeAH0O053peYx8oYDqW4+okiv4cgGDa7RmdmneSJLaP8dvfBPhz73HKeF1 Xq+pUOifO7PyTAdL/fFW0s6+ecQ4NU3bP/dmtwkgYDrRlxSxjj8L9KOnXkIs9B5J5ql2 whA0yM7QXNpy+3mbTqhrvp1Wlyl1+WyDlwXjCIT0ab4tK027rliCmwZSo49tZb7cF8v+ SfdyDpEV6kkP94ua3z3AOmZSSA5qF+PFYXBzGog7IRPoIM4JHnDfJTAoT5Ce5tt8H9Zx yPN048ObqcOl3in/CfiqBJcA3ikon4N1yGMLZHsELEGsSboGYNE0hlG114Hxrkp3ZrDQ 1BBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=cAprc2EN; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f26-20020a170906561a00b00741757d6291si8677393ejq.557.2022.09.14.01.22.59; Wed, 14 Sep 2022 01:23:26 -0700 (PDT) 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=@google.com header.s=20210112 header.b=cAprc2EN; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229729AbiINITC (ORCPT + 99 others); Wed, 14 Sep 2022 04:19:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41832 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229459AbiINITB (ORCPT ); Wed, 14 Sep 2022 04:19:01 -0400 Received: from mail-yb1-xb34.google.com (mail-yb1-xb34.google.com [IPv6:2607:f8b0:4864:20::b34]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1EEFA5757B for ; Wed, 14 Sep 2022 01:19:00 -0700 (PDT) Received: by mail-yb1-xb34.google.com with SMTP id 198so16490243ybc.1 for ; Wed, 14 Sep 2022 01:19:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date; bh=HuIXq0gxsLhtrekbIwvVhrdsOJWyOZiMwcr+S3al2lw=; b=cAprc2ENkwAzsA1ScDy+/sr6d/3f9p0nPP8Mc6N0iDX/hEs+T1BUfS8BVAHrFx8MBJ HgdkV+kfd0A7J7ZkjA4pAMF35RkIlAimda9FEzqjxzOjqbAqi6UcEzmg80AYkWzJLeXI zCakpoSPHtw0VWKrXcAwGiT2kHvjFGxiv1LWCO1x3nMcoFAgS40VLpeBMd2E2Sq2drcS dOMWDCuymV7EHVprME2crDl+J9zBU+jt+l8DKpJSeYYBkVBy0Hjq4GnKe8WMKbvghvh6 wixA88tuAYTRq3++zVPDafixpOW89tYSoKU9nEYwEn2VMSK/OfJ9UcfIWE7GZqM+8IAZ WeeQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date; bh=HuIXq0gxsLhtrekbIwvVhrdsOJWyOZiMwcr+S3al2lw=; b=IuidrwXf5d+lxlYhib9jha40AcvIHQ8nyv7MnuBB1ffU20oBSab17C+p87DAk8r5Km hPKGkqrNAChunax2uS5d7Pfyq6dNJtQuwxSAmgOKEF0E46g2Q9QdkQ/3PmhzH8AX3Vn1 h6i1HWDf/N+6BQUeV/YMq5WMk0R2JwCdU5hARrbZ1l2//fY23UdobrKZejmTKbSY8e9T np6Y8rN8yu23fL/pSxQOJsvzVsmaDWyR7LtbCGtKWRSJxTWHdOvWocXeOC/3lOLIpkCZ xcV5HcB6MIa/i2X0VtP5ATO/xHuSvOcPWrSPqg3uYsf2pr491+5l8lFeD3vkEEwMtUUI 36ow== X-Gm-Message-State: ACrzQf0bzz+Wjob5FXbraaCn9Oe2zFTv+c+ZC8f6xwwclJaAiv3j0WW3 iyk+dBytyFxOw4v4Lk/c6C/24uUH+RMQZ5KlKUA/2w== X-Received: by 2002:a25:3f03:0:b0:6af:f33f:7711 with SMTP id m3-20020a253f03000000b006aff33f7711mr2350646yba.376.1663143538967; Wed, 14 Sep 2022 01:18:58 -0700 (PDT) MIME-Version: 1.0 References: <20220909095811.2166073-1-glider@google.com> <20220913175210.50945edb0738bf95300dc500@linux-foundation.org> In-Reply-To: <20220913175210.50945edb0738bf95300dc500@linux-foundation.org> From: Alexander Potapenko Date: Wed, 14 Sep 2022 10:18:22 +0200 Message-ID: Subject: Re: [PATCH -next 1/2] x86: crypto: kmsan: revert !KMSAN dependencies To: Andrew Morton Cc: Eric Biggers , Herbert Xu , Robert Elliott , Stephen Rothwell , Linux Crypto List , LKML , linux-next Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL 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, Sep 14, 2022 at 2:52 AM Andrew Morton w= rote: > > On Fri, 9 Sep 2022 11:58:10 +0200 Alexander Potapenko wrote: > > > This patch reverts "crypto: Kconfig: fix up for "crypto: kmsan: disable > > accelerated configs under KMSAN" used by Stephen Rothwell to cleanly > > merge KMSAN patches into linux-next. > > > > Because now arch-specific crypto configs reside in a separate Kconfig > > file, we can disable them all by adding a single !KMSAN before includin= g > > that file (done in the following patch). > > > > Among others, this patch reverts !KMSAN check for > > CONFIG_CRYPTO_AEGIS128_SIMD, which is ARM-only and is hence unnecessary= , > > because KMSAN does not support ARM yet. > > As I understand it, these patches are against linux-next and only > linux-next because they pertain to linux-next's resolution of conflicts > between the MM tree and the crypto tree? The thing is that this patch only makes sense with its counterpart that adds a !KMSAN condition on "source arch/x86/crypto/Kconfig", and the latter file is missing in the -mm tree. > I'm not sure how to handle that, even if anyone wants to. How about > you send an update to > git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm's mm-unstable > branch so the code which is there makes sense? Then we'll ask Stephen > to redo the crypto tree resolution? Because the crypto tree is moving code crypto/Kconfig to arch/x86/crypto/Kconfig, we'll still need to apply these two patches to the result of the crypto tree merge. I was going to send out the updated patch series anyway (there are minor improvements to the core which let us drop "kmsan: unpoison @tlb in arch_tlb_gather_mmu()", also there's a new test case). I could drop "crypto: kmsan: disable accelerated configs under KMSAN" from it, so that it would be possible to enable accelerated configs under KMSAN at the cost of false positives (which are only visible if one builds with KMSAN). Then, once arch/x86/crypto/Kconfig hits -mm, I can send the remaining patch that disables accelerated crypto under KMSAN: https://lore.kernel.org/all/20220909095811.2166073-2-glider@google.com/ Or I could just send v7 patches against mm-unstable and ask Stephen to apply both https://lore.kernel.org/all/20220909095811.2166073-2-glider@goog= le.com/ and https://lore.kernel.org/all/20220909095811.2166073-2-glider@google.com/ at merge time. Which option is better? -- Alexander Potapenko Software Engineer Google Germany GmbH Erika-Mann-Stra=C3=9Fe, 33 80636 M=C3=BCnchen Gesch=C3=A4ftsf=C3=BChrer: Paul Manicle, Liana Sebastian Registergericht und -nummer: Hamburg, HRB 86891 Sitz der Gesellschaft: Hamburg