From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 85189ECAAD3 for ; Fri, 9 Sep 2022 09:59:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229961AbiIIJ7D (ORCPT ); Fri, 9 Sep 2022 05:59:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60780 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229863AbiIIJ6W (ORCPT ); Fri, 9 Sep 2022 05:58:22 -0400 Received: from mail-ed1-x549.google.com (mail-ed1-x549.google.com [IPv6:2a00:1450:4864:20::549]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 157BF12897C for ; Fri, 9 Sep 2022 02:58:21 -0700 (PDT) Received: by mail-ed1-x549.google.com with SMTP id w17-20020a056402269100b0043da2189b71so899812edd.6 for ; Fri, 09 Sep 2022 02:58:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date; bh=kCUum3/Q0kMRGABgSdJa++Yx/m9FJ7EZUjHqNypROSw=; b=P3JahIbVpkXfXsADRpve4JTx7jId2xVWFPXYOH82WLKc5va0xx+X5STtLxX8OVqrfN EJm+A8hqB2/z3VQn+VtPImzXbrqr0jPAPwlq16X9VkLN96Mt3QJuxRia+lAzX8EAeQHh kFLoNt8MJhjeeCQRR4LOMNdAd2+RNY+Z9yAdxU5OKCAK2aURMwlCR2UfWhZ8tma0gpBb kdjcRR8QoM2RmC1s7QHHYJzU86JsjeJxR8RE8LBuK5FcctojzJi9lIEJNl3NG+3/mSC1 MrtaPhT24WuhUEdDQQn3nLIvnDjtXVCn41ZN1LNLoKtdiq177+GOQpy7aCcQnfJaABb4 XFzg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date; bh=kCUum3/Q0kMRGABgSdJa++Yx/m9FJ7EZUjHqNypROSw=; b=Qmm2HS1S+DFIlJdJ54Zt/dNky5msh2CWWLYnA1K5Cebe1obxOK90BP2Pm/2Vg5p93S 36PpWPaDbIyqwZbvoycFCt5iw64+Sa8P5XVv9PoDtsNr0bDSgmCU06AGMEOrvIUpyC1y JtfoiMkyVN2MpiNKEmFuA4Nat6TasO2xhny/FMgbQygqXE80isBNosWVukDE+gDb8TVR PMVO3dVMZROknUJrAoP9EV/BYEJh4DaNUBTZyXZDQwKLPW4FsXkgR4vD48mseGyK7GQe O1hk6LMcBZzBUqwYLwYZWrjTH1Dx1fS/M5M6ft35rkBZdG7XsBCguFtAm4UlQ8TduXa5 FMSg== X-Gm-Message-State: ACgBeo1s+954/EYBB697LX0f8QO0hEYDxVqW9PtVkc+f5wgyq4Vt5ZYw fTA1949IoJuj9A7PTkLkM5OirhaQBLo= X-Google-Smtp-Source: AA6agR5AZ7lsTIN+wX/bYUcoT5/o9+gSgZoAysLoufNMyGicwV2HoH62TmxnJD614NfbcWF+/PHAhUW2M+g= X-Received: from glider.muc.corp.google.com ([2a00:79e0:9c:201:eaa4:a143:fbdd:a2d1]) (user=glider job=sendgmr) by 2002:a05:6402:550c:b0:443:7d15:d57f with SMTP id fi12-20020a056402550c00b004437d15d57fmr10666201edb.147.1662717499654; Fri, 09 Sep 2022 02:58:19 -0700 (PDT) Date: Fri, 9 Sep 2022 11:58:11 +0200 In-Reply-To: <20220909095811.2166073-1-glider@google.com> Mime-Version: 1.0 References: <20220909095811.2166073-1-glider@google.com> X-Mailer: git-send-email 2.37.2.789.g6183377224-goog Message-ID: <20220909095811.2166073-2-glider@google.com> Subject: [PATCH -next 2/2] crypto: x86: kmsan: disable accelerated configs in KMSAN builds From: Alexander Potapenko To: glider@google.com Cc: Andrew Morton , Eric Biggers , Herbert Xu , Robert Elliott , Stephen Rothwell , linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, linux-next@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org KMSAN is unable to understand when initialized values come from assembly. Disable accelerated configs in KMSAN builds to prevent false positive reports. Signed-off-by: Alexander Potapenko Cc: Andrew Morton Cc: Eric Biggers Cc: Herbert Xu Cc: Robert Elliott Cc: Stephen Rothwell Cc: linux-crypto@vger.kernel.org Cc: linux-kernel@vger.kernel.org Cc: linux-next@vger.kernel.org --- crypto/Kconfig | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crypto/Kconfig b/crypto/Kconfig index 40423a14f86f5..4a2915bd40d1f 100644 --- a/crypto/Kconfig +++ b/crypto/Kconfig @@ -1430,7 +1430,9 @@ endif if SPARC source "arch/sparc/crypto/Kconfig" endif -if X86 +# KMSAN is unable to understand when initialized values come from assembly. +# Disable accelerated configs to prevent false positive reports. +if X86 && !KMSAN source "arch/x86/crypto/Kconfig" endif -- 2.37.2.789.g6183377224-goog