Received: by 2002:a05:6602:2086:0:0:0:0 with SMTP id a6csp4393561ioa; Wed, 27 Apr 2022 02:53:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxjlQ0xfApbkAJy/6pN2BbWO/PMpy0gOnx2kma13O8jTE3dkK35PQEjgD0xCebI3T9OlETP X-Received: by 2002:a17:902:b612:b0:158:8455:479e with SMTP id b18-20020a170902b61200b001588455479emr28779315pls.59.1651053215906; Wed, 27 Apr 2022 02:53:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651053215; cv=none; d=google.com; s=arc-20160816; b=I6gnkEpxURWxfdCUgEgwN0unzebUI+le9lCSCcouaDM4Fg7ALOjfYkPIPfE6gohYBK MQ1IVAslMfGTrDkmTHaol7Ro+nrnTwpgPMZAWWoYohP7db3fbxd2mAnnwJwnSAaBJu1p Q7klNsQ4e5RyL6dwSLmM8+b4sBimz0X2y8AEAEw7JHIO14zK5Eis4ZvawDX6EiHf23QV 5Cynq535H8hvuy4dpB8yDr1ic4FY1h2GXyYDsTqAIw7gQbYOxScOVzkIpqvyh51229gu leISLVmAeyh8cdtp5YQqS12PPmsHi8kLOptAiPc/Kgu4hEIawVaSdLfGrQfL6Fzq7ad6 nnYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:references:mime-version :message-id:in-reply-to:date:dkim-signature; bh=XPVyte1DHdZzGVqIYLZisC9WWn/NV5PTOOmKGsNYVqI=; b=xsUE8/00/0vASxQ/H5H9/gE18BuHK98iihey8Bvb9h/jowrne0m1V4eOHoQUzQQhgs Uk5mG6Us19iT77938sE8mJOeXxZuLJAmufOBv3krkLOHACXl9OU7lygZB2NGQYRzNBMV RKw3367/pDyWyPjJzLiMCVqLCx83XVAKTrnWm1CbOJX5VVM2WGh1fH7jaFhdV/9LfHeO dWKfbIw+LE3vggE2JLncEb6zrhTP414hmdY76F3RBBBX19HCcu7yyblTlkuP1ZIXerXp rZLzA/f0PUqPTa29orp0cvi6zI2T9AqdBnGrTP1Z7vy/F3woA9vqDi9+9xQ/+rNK+z+2 2+VA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=tfexPWSj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id x144-20020a627c96000000b0050d44724426si818913pfc.341.2022.04.27.02.53.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Apr 2022 02:53:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=tfexPWSj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 8F3172A6081; Wed, 27 Apr 2022 02:24:06 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1353491AbiDZQw3 (ORCPT + 99 others); Tue, 26 Apr 2022 12:52:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45026 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1353256AbiDZQv0 (ORCPT ); Tue, 26 Apr 2022 12:51:26 -0400 Received: from mail-ed1-x54a.google.com (mail-ed1-x54a.google.com [IPv6:2a00:1450:4864:20::54a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2EE0C48E6A for ; Tue, 26 Apr 2022 09:46:21 -0700 (PDT) Received: by mail-ed1-x54a.google.com with SMTP id b24-20020a50e798000000b0041631767675so10630518edn.23 for ; Tue, 26 Apr 2022 09:46:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=XPVyte1DHdZzGVqIYLZisC9WWn/NV5PTOOmKGsNYVqI=; b=tfexPWSj1PSjUb4y32u6HDb/QnE+2ju4Q3VQ+kF29tn7ADhoO3fHaJy9KBX3jTsEd8 BhBWx/VeORcURqli+p+9+1QH8obAqShcA6ErLkkeVUmnfCO3qJEDT5UirMbYVSK2rKI7 EHcv+GYbS6ck2ZGcmgknDsZroKT9WTKBy/bFVemoqQAXMDxG6HC+soFmb8T4ca/gXcrO ftqfgIZ/fqbniMJnPu4e11czzALuk3B6wUJb7Az/LpjxMDJcInKVf5CafrOSxVa2JPzU ++NO1MFfBz4ggnwPlPZhMJNmDFkkEcXO47/KdD9d+fQq4LH0V9JjN+pdxl1pwz5u4gCv AAQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=XPVyte1DHdZzGVqIYLZisC9WWn/NV5PTOOmKGsNYVqI=; b=YCMVk/4xsxqLcekq4UbfM/rjt7ecaFplueal5/IZMHKWCzgzu+31vPXeqdIXTMe8+j qITpp1+KiFRxTOO5NvtOIfpqL58WcxwQxNso3t+zLK9oI2QZRETxFonHg6imifk98wxE i+z0vTGLI7OIaADjI1QxaxgSYFzfp1gOCJIDRcLjNLSpAg5CVCse8j654xLoeBJRSKj5 zGhG9z2rn827Q9yJsln1V8gdrptnAeoUSjBdN7Qn40P1usbZGtloA30aUEaEIvs57Win 5TnRNkPowqWa+0Q6mhceEv+kWGxhJNSt0PG6cuaoZfY1feoO3ZHjjHZBlmIqJxsKezqW tMAw== X-Gm-Message-State: AOAM530VDlqXHT1O8zLSv06F791pqP3P1TRI9FXEaCBIAi+H2UhqQfsN kqDsjbu8S0mpkLzk5R12KG2IJ/i4mAg= X-Received: from glider.muc.corp.google.com ([2a00:79e0:15:13:d580:abeb:bf6d:5726]) (user=glider job=sendgmr) by 2002:a17:906:478b:b0:6db:8b6e:d5de with SMTP id cw11-20020a170906478b00b006db8b6ed5demr22938586ejc.161.1650991579678; Tue, 26 Apr 2022 09:46:19 -0700 (PDT) Date: Tue, 26 Apr 2022 18:43:15 +0200 In-Reply-To: <20220426164315.625149-1-glider@google.com> Message-Id: <20220426164315.625149-47-glider@google.com> Mime-Version: 1.0 References: <20220426164315.625149-1-glider@google.com> X-Mailer: git-send-email 2.36.0.rc2.479.g8af0fa9b8e-goog Subject: [PATCH v3 46/46] x86: kmsan: enable KMSAN builds for x86 From: Alexander Potapenko To: glider@google.com Cc: Alexander Viro , Andrew Morton , Andrey Konovalov , Andy Lutomirski , Arnd Bergmann , Borislav Petkov , Christoph Hellwig , Christoph Lameter , David Rientjes , Dmitry Vyukov , Eric Dumazet , Greg Kroah-Hartman , Herbert Xu , Ilya Leoshkevich , Ingo Molnar , Jens Axboe , Joonsoo Kim , Kees Cook , Marco Elver , Mark Rutland , Matthew Wilcox , "Michael S. Tsirkin" , Pekka Enberg , Peter Zijlstra , Petr Mladek , Steven Rostedt , Thomas Gleixner , Vasily Gorbik , Vegard Nossum , Vlastimil Babka , kasan-dev@googlegroups.com, linux-mm@kvack.org, linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-9.5 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,USER_IN_DEF_DKIM_WL autolearn=no 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-kernel@vger.kernel.org Make KMSAN usable by adding the necessary Kconfig bits. Signed-off-by: Alexander Potapenko --- Link: https://linux-review.googlesource.com/id/I1d295ce8159ce15faa496d20089d953a919c125e --- arch/x86/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index 3209073f96415..592f5ca2017c2 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@ -168,6 +168,7 @@ config X86 select HAVE_ARCH_KASAN if X86_64 select HAVE_ARCH_KASAN_VMALLOC if X86_64 select HAVE_ARCH_KFENCE + select HAVE_ARCH_KMSAN if X86_64 select HAVE_ARCH_KGDB select HAVE_ARCH_MMAP_RND_BITS if MMU select HAVE_ARCH_MMAP_RND_COMPAT_BITS if MMU && COMPAT -- 2.36.0.rc2.479.g8af0fa9b8e-goog