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 X-Spam-Level: X-Spam-Status: No, score=-22.4 required=3.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_GIT,USER_IN_DEF_DKIM_WL autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id BC9D5C432C0 for ; Fri, 22 Nov 2019 11:27:26 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 7758720674 for ; Fri, 22 Nov 2019 11:27:26 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="LqV0FxRc" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 7758720674 Authentication-Results: mail.kernel.org; dmarc=fail (p=reject dis=none) header.from=google.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id CAC806B04E3; Fri, 22 Nov 2019 06:27:24 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id C0CC06B04E4; Fri, 22 Nov 2019 06:27:24 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id AFD4B6B04E5; Fri, 22 Nov 2019 06:27:24 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0160.hostedemail.com [216.40.44.160]) by kanga.kvack.org (Postfix) with ESMTP id 97C236B04E3 for ; Fri, 22 Nov 2019 06:27:24 -0500 (EST) Received: from smtpin29.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with SMTP id 4C800181AEF32 for ; Fri, 22 Nov 2019 11:27:24 +0000 (UTC) X-FDA: 76183687608.29.blow83_65d546e5a54e X-HE-Tag: blow83_65d546e5a54e X-Filterd-Recvd-Size: 5359 Received: from mail-wm1-f74.google.com (mail-wm1-f74.google.com [209.85.128.74]) by imf45.hostedemail.com (Postfix) with ESMTP for ; Fri, 22 Nov 2019 11:27:23 +0000 (UTC) Received: by mail-wm1-f74.google.com with SMTP id 18so515388wmg.1 for ; Fri, 22 Nov 2019 03:27:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=WcJ6GH0RmJpkE5yvi2YOIRlZivdMYNrUik06NnsV8NY=; b=LqV0FxRctZ6B8RqGa7TFJSNkmmk91JYAINz5ZTuPQLJ6sse2ZvhtC2MvWMngMh6Wsb wKI7Ex/IfLiGJMb6krWJCyb+lMssdt5cSQGs+l2l5LR58x5Sz5uQJRhqbw4qZismUCa7 DyTE7xVc/eUPTHc1JvBkvdeMmESAKT2/8lbCTs+BUWZnEP54NehBx5qcCUOSZQBThETh mSS8IeRtBYWaNlhRKaX580MxxNCz3x+vfPr9hvxuk4B+L4le+pXjYVUneBT4yl+7t+0d mn3uhUgkZK9ygPPCANxipI+JkmuAifhhOEPsWh5jhOsK8otGXoTcIuRJHmgu4HJV7utN 4qUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=WcJ6GH0RmJpkE5yvi2YOIRlZivdMYNrUik06NnsV8NY=; b=mxAS65NcyNi9x7GbJZMquId8+585+WwwbkiwNWfAfjPFqAyK1u3Qf+AWxnwEK3y7FT hNlGnaPTN6g5NRM7kii8xVI0pTYOFvEmqomLKopC+GDx1YpgJ8df/s0zGrwXFd7J9tDE b2yBCQaraP1wXY9PnrM8fc7y3YQYss8+jYxuWjAB6bFrXgRBsIf45UmSQ7nfJj4EPwfb 0djoyRebqj9ERzh3chRXoqdkFBWdcbDPDNR34oKgz4yxSmg/DFumqvehBuktwo4e6kIM 6MAkz+1Dxs6vTYGDKVa2kaWRXJ/nMhGC/CMS0ROtSg9/Spw2f024klAwM7FHyDtKpDa4 vtgQ== X-Gm-Message-State: APjAAAUdJWvCMpAynIUgm0Y7XOeDI/WBvXczjZJpbJL7OJxG+hLu7SvI MF6em3ARfp33FChOuDPBaPjDjWn8aV8= X-Google-Smtp-Source: APXvYqxI4cytYzSbesElEtKtSD6gDWRKehBzVYxD1phsjI9Y49MFoQjLN7ghYj9diKD6vJxXaTttv2VGMbg= X-Received: by 2002:a5d:50c3:: with SMTP id f3mr16636002wrt.14.1574422042346; Fri, 22 Nov 2019 03:27:22 -0800 (PST) Date: Fri, 22 Nov 2019 12:26:03 +0100 In-Reply-To: <20191122112621.204798-1-glider@google.com> Message-Id: <20191122112621.204798-19-glider@google.com> Mime-Version: 1.0 References: <20191122112621.204798-1-glider@google.com> X-Mailer: git-send-email 2.24.0.432.g9d3f5f5b63-goog Subject: [PATCH RFC v3 18/36] kmsan: disable LOCK_DEBUGGING_SUPPORT From: glider@google.com To: Eric Biggers , Qian Cai , Christoph Hellwig , Herbert Xu , Harry Wentland , Vegard Nossum , Dmitry Vyukov , linux-mm@kvack.org Cc: glider@google.com, viro@zeniv.linux.org.uk, adilger.kernel@dilger.ca, akpm@linux-foundation.org, andreyknvl@google.com, aryabinin@virtuozzo.com, luto@kernel.org, ard.biesheuvel@linaro.org, arnd@arndb.de, hch@infradead.org, darrick.wong@oracle.com, davem@davemloft.net, dmitry.torokhov@gmail.com, edumazet@google.com, ericvh@gmail.com, gregkh@linuxfoundation.org, iii@linux.ibm.com, mingo@elte.hu, jasowang@redhat.com, axboe@kernel.dk, m.szyprowski@samsung.com, elver@google.com, mark.rutland@arm.com, martin.petersen@oracle.com, schwidefsky@de.ibm.com, willy@infradead.org, mst@redhat.com, monstr@monstr.eu, pmladek@suse.com, rdunlap@infradead.org, robin.murphy@arm.com, sergey.senozhatsky@gmail.com, rostedt@goodmis.org, tiwai@suse.com, tytso@mit.edu, tglx@linutronix.de, gor@linux.ibm.com, wsa@the-dreams.de Content-Type: text/plain; charset="UTF-8" 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: KMSAN doesn't currently support lock debugging, causing the kernel to enter infinite recursion at boot time. See https://github.com/google/kmsan/issues/57. Signed-off-by: Alexander Potapenko Cc: Eric Biggers Cc: Qian Cai Cc: Christoph Hellwig Cc: Herbert Xu Cc: Harry Wentland Cc: Vegard Nossum Cc: Dmitry Vyukov Cc: linux-mm@kvack.org --- This patch is part of "kmsan: Kconfig changes to disable options incompatible with KMSAN", which was split into smaller pieces. diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug index 75c36318943d..a3f6f5d68593 100644 --- a/lib/Kconfig.debug +++ b/lib/Kconfig.debug @@ -1068,6 +1068,9 @@ menu "Lock Debugging (spinlocks, mutexes, etc...)" config LOCK_DEBUGGING_SUPPORT bool depends on TRACE_IRQFLAGS_SUPPORT && STACKTRACE_SUPPORT && LOCKDEP_SUPPORT + # KMSAN is incompatible with lockdep, + # see https://github.com/google/kmsan/issues/57. + depends on !KMSAN default y config PROVE_LOCKING Change-Id: I4f97edc8a02d8ca208fc914e55e8f0c23d74eac8 --- lib/Kconfig.debug | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug index 75c36318943d..a3f6f5d68593 100644 --- a/lib/Kconfig.debug +++ b/lib/Kconfig.debug @@ -1068,6 +1068,9 @@ menu "Lock Debugging (spinlocks, mutexes, etc...)" config LOCK_DEBUGGING_SUPPORT bool depends on TRACE_IRQFLAGS_SUPPORT && STACKTRACE_SUPPORT && LOCKDEP_SUPPORT + # KMSAN is incompatible with lockdep, + # see https://github.com/google/kmsan/issues/57. + depends on !KMSAN default y config PROVE_LOCKING -- 2.24.0.432.g9d3f5f5b63-goog