From patchwork Tue Dec 14 16:20:19 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Potapenko X-Patchwork-Id: 12676347 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 1E63FC433F5 for ; Tue, 14 Dec 2021 16:28:48 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id DAE506B0085; Tue, 14 Dec 2021 11:22:40 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id D5E3E6B0087; Tue, 14 Dec 2021 11:22:40 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id C24F86B0089; Tue, 14 Dec 2021 11:22:40 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0099.hostedemail.com [216.40.44.99]) by kanga.kvack.org (Postfix) with ESMTP id B3CF26B0085 for ; Tue, 14 Dec 2021 11:22:40 -0500 (EST) Received: from smtpin29.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with ESMTP id 792F9181AC9CC for ; Tue, 14 Dec 2021 16:22:30 +0000 (UTC) X-FDA: 78916917660.29.6B253A0 Received: from mail-wm1-f73.google.com (mail-wm1-f73.google.com [209.85.128.73]) by imf09.hostedemail.com (Postfix) with ESMTP id 34243140015 for ; Tue, 14 Dec 2021 16:22:25 +0000 (UTC) Received: by mail-wm1-f73.google.com with SMTP id j25-20020a05600c1c1900b00332372c252dso8128948wms.1 for ; Tue, 14 Dec 2021 08:22:28 -0800 (PST) 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=16fifb7fJzYqUAIiYSNBFHwRb1cbOSZox8dTCQyam0A=; b=FYoyQuklP2kR/YlG5VwN0TkoQqWmp2nR4oXvp2JqUrE3xG1lS0l6ESiSBW7nqYN4Lh hCEaEHi5xKaCvQ3l+uXlIighB9wYaF+K90XykbBeii6vP3VeU7xol/8hbMgw2agx8E0h YR3PvWGRaMrv63N+yw0UQ/mh2+UFeqZzCyTuPIBCNoBZRGL5UBnDci/f3GAeh7c6jwFF /Z2s5WvhBSufD+VRiWkfEtXPAntkmqf9R/r5u9AqMI9WKRfMGFScQtZMTgIISrPLfWFD 2n9AKqYILeSb1EsYLyOBOV/4doaFkcoWd7POKw5aiv076jLR9bhgNJlmUv5qhO2YZrEO TFDg== 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=16fifb7fJzYqUAIiYSNBFHwRb1cbOSZox8dTCQyam0A=; b=pJthyFgvUZkuxLhr8UcLYQRQ3NU+FCThLT2nvV2G2/qnKOtHR/EEQIJbrAkQhVHKTQ rxWiadLTmGMMUJuR+dqzWepFAO/L9q2zeFx6sZBdkJd8er9hYFwkzM96+zwQXNAlRxt8 EnUUnwOqO3ysuE8MDvBleGY4QdjK89PSZBGkfZFUR1EfGFM2oMlEsxKMXyws0kASL5T8 295h3eoIg/CkGTZ8RLG86d+268mcVHaHxHZ1ZglxgwQzbpLQ3xiau5HRU1OUiZTcs1yT 2GfzVjtEQUnxuA5BcixmNdiKfaBE3/ptuIFuviUl3YkE4ZhR2bffjU/Z+HZc0hM5jmdF y/PA== X-Gm-Message-State: AOAM530AI98wgJe9s49dJ68dPnUnjq6VbsYmPz8n9kaTxOcFGZmhIkbm Y0+g9oK+k9oNHZDekWliUnrf09PqQKI= X-Google-Smtp-Source: ABdhPJwGJ87yZ0c0920vo+MGB3z979iOfpbYK0oGnlTVO8FYOEYPR7anYWpNFEcFdlEd0o9ummCDC9H5Y1g= X-Received: from glider.muc.corp.google.com ([2a00:79e0:15:13:357e:2b9d:5b13:a652]) (user=glider job=sendgmr) by 2002:a05:600c:1c8d:: with SMTP id k13mr2668278wms.0.1639498945977; Tue, 14 Dec 2021 08:22:25 -0800 (PST) Date: Tue, 14 Dec 2021 17:20:19 +0100 In-Reply-To: <20211214162050.660953-1-glider@google.com> Message-Id: <20211214162050.660953-13-glider@google.com> Mime-Version: 1.0 References: <20211214162050.660953-1-glider@google.com> X-Mailer: git-send-email 2.34.1.173.g76aa8bc2d0-goog Subject: [PATCH 12/43] kcsan: clang: retire CONFIG_KCSAN_KCOV_BROKEN From: Alexander Potapenko To: glider@google.com Cc: Alexander Viro , Andrew Morton , Andrey Konovalov , Andy Lutomirski , Ard Biesheuvel , 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 , 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 Authentication-Results: imf09.hostedemail.com; dkim=pass header.d=google.com header.s=20210112 header.b=FYoyQukl; dmarc=pass (policy=reject) header.from=google.com; spf=pass (imf09.hostedemail.com: domain of 3wcS4YQYKCEIkpmhivksskpi.gsqpmry1-qqozego.svk@flex--glider.bounces.google.com designates 209.85.128.73 as permitted sender) smtp.mailfrom=3wcS4YQYKCEIkpmhivksskpi.gsqpmry1-qqozego.svk@flex--glider.bounces.google.com X-Rspamd-Server: rspam12 X-Rspamd-Queue-Id: 34243140015 X-Stat-Signature: bfd7yszkpqubgs7b665f8z9rtqt5bp7o X-HE-Tag: 1639498945-899840 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: kcov used to be broken prior to Clang 11, but right now that version is already the minimum required to build with KCSAN, that is why we don't need KCSAN_KCOV_BROKEN anymore. Suggested-by: Marco Elver Signed-off-by: Alexander Potapenko --- Link: https://linux-review.googlesource.com/id/Ida287421577f37de337139b5b5b9e977e4a6fee2 --- lib/Kconfig.kcsan | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/lib/Kconfig.kcsan b/lib/Kconfig.kcsan index e0a93ffdef30e..b81454b2a0d09 100644 --- a/lib/Kconfig.kcsan +++ b/lib/Kconfig.kcsan @@ -10,21 +10,10 @@ config HAVE_KCSAN_COMPILER For the list of compilers that support KCSAN, please see . -config KCSAN_KCOV_BROKEN - def_bool KCOV && CC_HAS_SANCOV_TRACE_PC - depends on CC_IS_CLANG - depends on !$(cc-option,-Werror=unused-command-line-argument -fsanitize=thread -fsanitize-coverage=trace-pc) - help - Some versions of clang support either KCSAN and KCOV but not the - combination of the two. - See https://bugs.llvm.org/show_bug.cgi?id=45831 for the status - in newer releases. - menuconfig KCSAN bool "KCSAN: dynamic data race detector" depends on HAVE_ARCH_KCSAN && HAVE_KCSAN_COMPILER depends on DEBUG_KERNEL && !KASAN - depends on !KCSAN_KCOV_BROKEN select STACKTRACE help The Kernel Concurrency Sanitizer (KCSAN) is a dynamic