From patchwork Wed Jan 13 16:21:34 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrey Konovalov X-Patchwork-Id: 12017311 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=-17.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable 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 20EA1C433E6 for ; Wed, 13 Jan 2021 16:25:42 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id B7A7223370 for ; Wed, 13 Jan 2021 16:25:41 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B7A7223370 Authentication-Results: mail.kernel.org; dmarc=fail (p=reject dis=none) header.from=google.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:To:From:Subject:References:Mime-Version:Message-Id: In-Reply-To:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=aL5+Rg4ZR7CPBPPhpc4I3D8KFFDHKlclf7FNOMhRuu8=; b=kUi0yij7HXZ9Rd7/hb/Trbp0B bJAA5uXMkKZm7FoiF+6Ai0MfXLAj3ZfDW/2s2lZesVjtirQQKOgfsUGDahzcmGxOXyHJnShGA0XFl +OCCjq01C26YPQ3JnnR2JnJy/O7JsRb6b7vW3+GLG2XJcfUbrKJ7SNC37VYUC/SNRUriCUnVibrwZ UpXetYNiUs+lnDwLNDZHflWXdx/7VlJFso8a79dtZZY/w29TAf0XzDXhpboDBiRolDnTqHIpLWKaM TTbIl2v8I6XlYDom72ZpECCikzta0XNV8vlktFJmGcDZhKuKqrZAkEt5LmRaNdfqQ/L+zpI0Z5UsV Q+zX1LJPA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kzivL-0007a5-TP; Wed, 13 Jan 2021 16:23:07 +0000 Received: from mail-wr1-x449.google.com ([2a00:1450:4864:20::449]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kziuM-0007Et-D7 for linux-arm-kernel@lists.infradead.org; Wed, 13 Jan 2021 16:22:19 +0000 Received: by mail-wr1-x449.google.com with SMTP id r8so1172650wro.22 for ; Wed, 13 Jan 2021 08:22:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=sender:date:in-reply-to:message-id:mime-version:references:subject :from:to:cc; bh=HQul2+mx68GlfTrevBbbyn+9Sc9/a5lDU2srZLIr3Ck=; b=alLGIQBaqs0iPsnFFW8qLZsfCdp4bzHHbGKihBndncgiBqTKy4ru5cCW83bTjOJ3XH oCAI8l2A1P/xOqti8HP7+FlbmXlKK6QYXqPTkeveQQwlFeoOTGMlprCpjYOcnkY8EEgN mTRwCjD6mc+3vhTU3qqrXNr9ASOb/gC4sMcrgk3JVbzsHeGWaCbIXYSTz31V/d98V95z brW7vbKYAkhi3IhnBKgelUNihE/U9lFQ/2xJa9k7j6x5U69p32jjhqcecN12RiDUUCXA 6Ux1kZ+DIW5shyvV3vtKowjhgQi8mE4+xN8xT/qTLzOFf2oF3StBHxgpnCMYIEtl+avp 9fHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=HQul2+mx68GlfTrevBbbyn+9Sc9/a5lDU2srZLIr3Ck=; b=oR1aHRS4CX1RO0ImHzlVu/V6L3we5g/PsBsgl4w4QhWoLXr+vTP5ViYYyonWgOu3mf nMwbmrn/pk9xc4kKnE9MhYVyRJb/vtlZdyfN/q4Ld9HuUPKdjP9N1N71hLNii4O3CslP +deFjwmwZkTF7lcFXbOLxx5+OBPnxUB/vT/M2NWxDF6xMDt6/X8VRVqYBYFrHSLK+NTP YeAubHVY42iF3rG95b4/LTE05zXe2oYvWk4vsasYBjOTXC0KjtzEuV8uA6A/tjXSdBvp iJUXdOItyxZc+47LKnm9+mC14l4Ma99m8i1IylTQfqW8wpg7RCV/4zZR4ZKkwxAKtL4g UqNQ== X-Gm-Message-State: AOAM531A1+y8XwyksXQ8GDJZ8sXiFsHy1DsQUnbrLSJy9lLq4nzIobvy R3Jux8BQmq68i/GRc0oh2/7eXgq+iae7ogiQ X-Google-Smtp-Source: ABdhPJw3P0fuxZAriT+DCD2I6I9HvBVxU29xiCnO2gYOncKz1Qk9hPTDQSEQgCp19ZW+n/2K+NNvj74O/LBgRehQ X-Received: from andreyknvl3.muc.corp.google.com ([2a00:79e0:15:13:7220:84ff:fe09:7e9d]) (user=andreyknvl job=sendgmr) by 2002:a1c:2c89:: with SMTP id s131mr21058wms.0.1610554922915; Wed, 13 Jan 2021 08:22:02 -0800 (PST) Date: Wed, 13 Jan 2021 17:21:34 +0100 In-Reply-To: Message-Id: <68fab13282d1fde2dcfac859f34b9470db5f0e4c.1610554432.git.andreyknvl@google.com> Mime-Version: 1.0 References: X-Mailer: git-send-email 2.30.0.284.gd98b1dd5eaa7-goog Subject: [PATCH v2 07/14] kasan: rename CONFIG_TEST_KASAN_MODULE From: Andrey Konovalov To: Catalin Marinas , Vincenzo Frascino , Dmitry Vyukov , Alexander Potapenko , Marco Elver X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210113_112206_571239_E4497424 X-CRM114-Status: GOOD ( 13.41 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Branislav Rankov , Andrey Konovalov , Kevin Brodsky , Will Deacon , linux-kernel@vger.kernel.org, kasan-dev@googlegroups.com, linux-mm@kvack.org, linux-arm-kernel@lists.infradead.org, Andrey Ryabinin , Andrew Morton , Peter Collingbourne , Evgenii Stepanov Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Rename CONFIG_TEST_KASAN_MODULE to CONFIG_KASAN_MODULE_TEST. This naming is more consistent with the existing CONFIG_KASAN_KUNIT_TEST. Link: https://linux-review.googlesource.com/id/Id347dfa5fe8788b7a1a189863e039f409da0ae5f Reviewed-by: Marco Elver Reviewed-by: Alexander Potapenko Signed-off-by: Andrey Konovalov --- Documentation/dev-tools/kasan.rst | 8 ++++---- lib/Kconfig.kasan | 2 +- lib/Makefile | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Documentation/dev-tools/kasan.rst b/Documentation/dev-tools/kasan.rst index 26c99852a852..b25ae43d683e 100644 --- a/Documentation/dev-tools/kasan.rst +++ b/Documentation/dev-tools/kasan.rst @@ -374,17 +374,17 @@ unmapped. This will require changes in arch-specific code. This allows ``VMAP_STACK`` support on x86, and can simplify support of architectures that do not have a fixed module region. -CONFIG_KASAN_KUNIT_TEST & CONFIG_TEST_KASAN_MODULE --------------------------------------------------- +CONFIG_KASAN_KUNIT_TEST and CONFIG_KASAN_MODULE_TEST +---------------------------------------------------- -KASAN tests consist on two parts: +KASAN tests consist of two parts: 1. Tests that are integrated with the KUnit Test Framework. Enabled with ``CONFIG_KASAN_KUNIT_TEST``. These tests can be run and partially verified automatically in a few different ways, see the instructions below. 2. Tests that are currently incompatible with KUnit. Enabled with -``CONFIG_TEST_KASAN_MODULE`` and can only be run as a module. These tests can +``CONFIG_KASAN_MODULE_TEST`` and can only be run as a module. These tests can only be verified manually, by loading the kernel module and inspecting the kernel log for KASAN reports. diff --git a/lib/Kconfig.kasan b/lib/Kconfig.kasan index 3091432acb0a..624ae1df7984 100644 --- a/lib/Kconfig.kasan +++ b/lib/Kconfig.kasan @@ -192,7 +192,7 @@ config KASAN_KUNIT_TEST For more information on KUnit and unit tests in general, please refer to the KUnit documentation in Documentation/dev-tools/kunit. -config TEST_KASAN_MODULE +config KASAN_MODULE_TEST tristate "KUnit-incompatible tests of KASAN bug detection capabilities" depends on m && KASAN && !KASAN_HW_TAGS help diff --git a/lib/Makefile b/lib/Makefile index afeff05fa8c5..122f25d6407e 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -68,7 +68,7 @@ obj-$(CONFIG_TEST_IDA) += test_ida.o obj-$(CONFIG_KASAN_KUNIT_TEST) += test_kasan.o CFLAGS_test_kasan.o += -fno-builtin CFLAGS_test_kasan.o += $(call cc-disable-warning, vla) -obj-$(CONFIG_TEST_KASAN_MODULE) += test_kasan_module.o +obj-$(CONFIG_KASAN_MODULE_TEST) += test_kasan_module.o CFLAGS_test_kasan_module.o += -fno-builtin obj-$(CONFIG_TEST_UBSAN) += test_ubsan.o CFLAGS_test_ubsan.o += $(call cc-disable-warning, vla)