Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp166036pxb; Fri, 15 Jan 2021 09:55:28 -0800 (PST) X-Google-Smtp-Source: ABdhPJyzhlPtlmXmJj9aLjHH1MVPFgUQ7EIgNVLFxhC3a/uJUCQHS+halxfFTdYYCmVfHJbo3umN X-Received: by 2002:a17:906:adcb:: with SMTP id lb11mr9425994ejb.346.1610733328576; Fri, 15 Jan 2021 09:55:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610733328; cv=none; d=google.com; s=arc-20160816; b=KSeio6DiTb7RC/DkwcN8XqCDEDarayBMJCO0ol3R6v6q+HI8tLxVbTMt+AteyZKxpA avRaujPhOFZNbF6RV7OZbzA67+3gcPFjgbN97AfL9MLoXqPtqR6zCG4BhTFlCGezMHCP q3CIP4lBr9uOOFflDdgPVnmmOCvvdakKAPPMfMJfBz8FGZ8rbB+cGmbJNZWWbRdBDpO/ OWfjQIB5DC8U+9kvWyVX92WQzdPn5LerXENfTZqxckzviZpGcpS/+eQL83fmM+19ZqWq hVCV2i3qpgcNirfm3tX+NyqO/XcVoG2Fo6ruwaO5tXYlnrrPvcbHfzD2MH2hOCRhe34B 6OzQ== 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:sender:dkim-signature; bh=HQul2+mx68GlfTrevBbbyn+9Sc9/a5lDU2srZLIr3Ck=; b=CllqJxf/wSoPNv4cN4MZ2lkuQMBfh25VoWG8To6EiIwiNknYFd7AE0R9IL3iNKXpW/ z900qMqk/4MtJtpEWF0PAhBpeCn+bBVoEDOypvaPgnf/CrJSEytooxlpX38P618UahBs zOaOA7JEk0PYbDBwpOCC7TWRCNEPtQdNpU8wdajCeDMXBi3JlGJ3NSX4gQEXbrkOI21D nNlj38a7GHQ2IfZuEPmRE6Atu7+P4GxKqUh+e+TdsF2Fuy+GB1WgKCewtRgH/VFO+dIm SoCOh4+K1XCAw67bjJXYpnOdntQbgaPeBgj7GO0oJXac43dba7p2N82CnhMfuOLkwpxz F3Uw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b="rvX1/hyT"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g2si3900806eji.656.2021.01.15.09.55.04; Fri, 15 Jan 2021 09:55:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b="rvX1/hyT"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.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: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733116AbhAORyY (ORCPT + 99 others); Fri, 15 Jan 2021 12:54:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52138 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731791AbhAORyV (ORCPT ); Fri, 15 Jan 2021 12:54:21 -0500 Received: from mail-wm1-x349.google.com (mail-wm1-x349.google.com [IPv6:2a00:1450:4864:20::349]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D086EC061799 for ; Fri, 15 Jan 2021 09:53:17 -0800 (PST) Received: by mail-wm1-x349.google.com with SMTP id h21so3263302wmq.7 for ; Fri, 15 Jan 2021 09:53:17 -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=rvX1/hyTPBtCswvlj/dnG/QZyZRiOpHNq8zgr6CimqrV0H8avfdz1Qy6Vrj7JuXv+D RAtbEW8x2gNHQC7BalE/okpelZb14euKVfienW74jKmUmHsotYiFTc7rpyziW/nc5as3 ugYxKzp0bdLLzd0P4aYJNiL1qmYLYrMmZIBxM0kdBgqdj41GptL9ruZzyH+0Q4UkXmYl AVzl0+GbVMFSAFKy09zCqH3UbANE+WZxQa7kW4UxxPSglAypQnBBwDXjSEe3guTtCQnX XbjXfP0fFXDrL0Oi6UcKI1695F0j75APleNL0nRi+qj2/KrbGn/ZvR7zgEoWaSg0YH/D LVMg== 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=a8WQlFhMm0xODjnl919rmMtWht8GjHfu3I/+Ebd0V1vUWi7zdd7fFn4nwE7hXK6wzE G1qxa5+KstoB/LiDfgMtbTzVXeFRSehX9mNGdb0LoK/4Ijfw80bbGVxtJyJRw8axLZyy QO6S0dY35tNGyBN/9s9ZUj9e3AW7HIyc/3BOzCPU9IY0OuL/wXyeg6o2zop+3LA/wphX 1Vv2/b/jpVS9Bwk+hrB1cg14XCdsowmCJAdAUmd34Glvk+09yjJIouH/ftA+38kWZOda E7EE4JGLo81b/G83ISL1pCZZNnNOlWmp3MEz6V1KFT1dqR0OuJeizqfC6C/7bXXcVIif z+Ew== X-Gm-Message-State: AOAM531hQwu3W+T3SKfwsER9xkZgvaX+rGPXvhKGBzE2b+UJgLHKTU9d 40d3Dl4DjP9K5H+PqVfrbqi3s8yfu0yMzJx0 Sender: "andreyknvl via sendgmr" X-Received: from andreyknvl3.muc.corp.google.com ([2a00:79e0:15:13:7220:84ff:fe09:7e9d]) (user=andreyknvl job=sendgmr) by 2002:a1c:2e88:: with SMTP id u130mr9830496wmu.83.1610733196486; Fri, 15 Jan 2021 09:53:16 -0800 (PST) Date: Fri, 15 Jan 2021 18:52:44 +0100 In-Reply-To: Message-Id: Mime-Version: 1.0 References: X-Mailer: git-send-email 2.30.0.284.gd98b1dd5eaa7-goog Subject: [PATCH v4 07/15] kasan: rename CONFIG_TEST_KASAN_MODULE From: Andrey Konovalov To: Andrew Morton , Catalin Marinas , Vincenzo Frascino , Dmitry Vyukov , Alexander Potapenko , Marco Elver Cc: Will Deacon , Andrey Ryabinin , Peter Collingbourne , Evgenii Stepanov , Branislav Rankov , Kevin Brodsky , kasan-dev@googlegroups.com, linux-arm-kernel@lists.infradead.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Andrey Konovalov Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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) -- 2.30.0.284.gd98b1dd5eaa7-goog