From patchwork Tue Mar 29 12:40:17 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Potapenko X-Patchwork-Id: 12794798 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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id DEB11C433EF for ; Tue, 29 Mar 2022 12:42:39 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 6C9E08D0008; Tue, 29 Mar 2022 08:42:39 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 5B5878D0007; Tue, 29 Mar 2022 08:42:39 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 42DEE8D0008; Tue, 29 Mar 2022 08:42:39 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0097.hostedemail.com [216.40.44.97]) by kanga.kvack.org (Postfix) with ESMTP id 30DDE8D0007 for ; Tue, 29 Mar 2022 08:42:39 -0400 (EDT) Received: from smtpin18.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with ESMTP id DF45292E13 for ; Tue, 29 Mar 2022 12:42:38 +0000 (UTC) X-FDA: 79297387596.18.2960E63 Received: from mail-ej1-f73.google.com (mail-ej1-f73.google.com [209.85.218.73]) by imf19.hostedemail.com (Postfix) with ESMTP id 756B61A001A for ; Tue, 29 Mar 2022 12:42:38 +0000 (UTC) Received: by mail-ej1-f73.google.com with SMTP id er8-20020a170907738800b006e003254d86so8131188ejc.11 for ; Tue, 29 Mar 2022 05:42:38 -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=BxrNv7I9TyEaPnGly7TdSY5yHzK/Q3Z4xNLrOUnkClQ=; b=F1YYot40OfwHFlJIBEjvvi7+vEf+sISqzpxyEMm9RXg7yBeYOovpz1ifEVjxkb+8Tp ug846iZxjLR7LfZGindUZ5W5ZYWx9SXUM/LIzPff3L9xOwWnmqR34pPLPPicL7EpVaWh BceAVU1QYjQ33h5UnMxF7NMbTCP79zz+hCjBe7DzaqQKiuOmpo0Q92dqE8k4H4xhYPJ5 8QBDPgbSjW2Dxw8rRJh4j124haAPk3WZ7kH3MZRK7aTRX+53Kfdw+whZ5Qh3OkEuEe4V /YzlCDf1dkIQcIX6qS1kNTRw9/AS3wlsNX6fJ044mUGy/rWkdQ4G5sXgY/2nnNeFCaLN ovQQ== 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=BxrNv7I9TyEaPnGly7TdSY5yHzK/Q3Z4xNLrOUnkClQ=; b=TQL5RKiue1DlZEUvq6mQGUqOnZVswqZHGFHLyJeWw69A/iN7Gsom0W82COjQ80bt76 c3AWpYBinCB90lMY1QqKCCpZmZfMftNUWlgHCHaLY5WPgcJGILSmEPijgGLgDp/zl2tB zi2afgL3tLrXYeN4nr7DjKyEp1YlLe/3EyULK8lPdsPzU2BaBQz4Zqk2plJkQKJoIT5C Nut/bCnbnskwsRpWpK1Gcy0YyfcQQY8ImNxk1N0uWI01MwBUthqbcDX1oIs43upMTDIL Zdi5ig9RK+vQXBoqBD1zBhGmsxKzID5AWblNURluezFkOXka5cQz0UE70rLCtse6P/D8 sYrQ== X-Gm-Message-State: AOAM533ymdN7a6ynbHozoPSmLyUDRFizCPCvN+FQrVPAHLEAQOGkOR3P eyBMCDALjFrthV6+9B9fH5ZTz170vIc= X-Google-Smtp-Source: ABdhPJwCpxSBAahtijoWXTLXmqk0cIsPTNznjrswrMwUWM6rymRvh0IEM+UvEt2qc+MfcoyqAjf1DJp1rgo= X-Received: from glider.muc.corp.google.com ([2a00:79e0:15:13:36eb:759:798f:98c3]) (user=glider job=sendgmr) by 2002:a17:906:c1c6:b0:6d5:cc27:a66c with SMTP id bw6-20020a170906c1c600b006d5cc27a66cmr35151648ejb.650.1648557756848; Tue, 29 Mar 2022 05:42:36 -0700 (PDT) Date: Tue, 29 Mar 2022 14:40:17 +0200 In-Reply-To: <20220329124017.737571-1-glider@google.com> Message-Id: <20220329124017.737571-49-glider@google.com> Mime-Version: 1.0 References: <20220329124017.737571-1-glider@google.com> X-Mailer: git-send-email 2.35.1.1021.g381101b075-goog Subject: [PATCH v2 48/48] 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 , linux-mm@kvack.org, linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org X-Stat-Signature: bi45nf3fdpwikuis4yff4gw9doszswmf Authentication-Results: imf19.hostedemail.com; dkim=pass header.d=google.com header.s=20210112 header.b=F1YYot40; spf=pass (imf19.hostedemail.com: domain of 3vP5CYgYKCN0FKHCDQFNNFKD.BNLKHMTW-LLJU9BJ.NQF@flex--glider.bounces.google.com designates 209.85.218.73 as permitted sender) smtp.mailfrom=3vP5CYgYKCN0FKHCDQFNNFKD.BNLKHMTW-LLJU9BJ.NQF@flex--glider.bounces.google.com; dmarc=pass (policy=reject) header.from=google.com X-Rspam-User: X-Rspamd-Server: rspam08 X-Rspamd-Queue-Id: 756B61A001A X-HE-Tag: 1648557758-769043 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: 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 646a7849be4cf..1c4601e198d5c 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@ -165,6 +165,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