Message ID | 2673f10ce2a1186d88d6bda0023cc81e2564888a.1604333009.git.andreyknvl@google.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <SRS0=5hGB=EI=lists.infradead.org=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@kernel.org> 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=-12.7 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_GIT 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 DD8D5C00A89 for <linux-arm-kernel@archiver.kernel.org>; Mon, 2 Nov 2020 16:10:11 +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 8CED822258 for <linux-arm-kernel@archiver.kernel.org>; Mon, 2 Nov 2020 16:10:11 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="AEfRxeWs"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=google.com header.i=@google.com header.b="tKz5YdB6" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8CED822258 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=sp95Sh4d5ndaxLqxAy26eu1maVs5qF15Egz17jP5hy0=; b=AEfRxeWsbaJiVXkSvzl5lFlF0 19vEOz1aI8jkuw2jyKvE9xKYRhkacgtVyOA7+PTMSj2/CZzm0lzbVUyDoU5Jica8aE3dB8lNKef5g 0iaqAig/H37Dsy84Zu6N2kG9cK1FpQr+7MaOTxzu8bh4H6XqSLAWDB675qRkhDeJeJHXBDF4Mpxy+ Um5zOSFzOFyQz+rMCfb9iv8+p+hn+3U38YeSrKbFf2qc9v9PbhFaPn54N0UTXa/6LfQEkX3mieInO fnPhpu+6ljr+VyOE/x/6pNJBOqKKg0f2zLHkl/5YwNTgWmAAiYXUtCBrhMv0aVzIJAABvk0aOr2YD iMWQXx0OQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kZcOQ-0000je-Aj; Mon, 02 Nov 2020 16:09:14 +0000 Received: from mail-qk1-x74a.google.com ([2607:f8b0:4864:20::74a]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kZcKd-0006iS-QH for linux-arm-kernel@lists.infradead.org; Mon, 02 Nov 2020 16:05:31 +0000 Received: by mail-qk1-x74a.google.com with SMTP id h23so8529290qka.8 for <linux-arm-kernel@lists.infradead.org>; Mon, 02 Nov 2020 08:05:18 -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=n8TE6VLWWv4zp+ZnErvJoE/L5oOe+Pde/aeeJYIsZf4=; b=tKz5YdB6UDUayZDh3Ann06GYOy0cU648f7bijqaKH/0c6sbX//YgHqrIyXb80G73EX BSD4o2VhAnO4XfMv8Q6MKJKqmzt6gvWCmI05xWOa0EE85RfO3NzNImWBxMycARw92GtO K8fP5BRNiHHOdXO7LrkxOaE6ID/WxaNyXdRhYOuBMclFNqL5ycYJmf0Q4WKR/DslMOHk qf0t+Ovi0zj2r7oDOmj9M1ZNnJ4yaULjzwMYSX0K8Km6Hhy9FNCZOs/PQvRF8TsAqZsD 5zJUa02vnchJ8dHt7u6FYdtSi1La5iA14tjnHGUXDjNCBVQDsvVPIy6LabT+Uf/sPCb1 yQow== 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=n8TE6VLWWv4zp+ZnErvJoE/L5oOe+Pde/aeeJYIsZf4=; b=T4buvRYvZITZbzYTWIRgi79EUD4Z/nkEeu2FxxgYcwe7xVgqSh+pS7Le51k2dqoZOb 1LDwrgKOrodualhDv2/7/8PtFxXwlCiTH19EVaZWpVarQktktsyg515kZNphgzc8FLNc G75cLE2OhOm+3VfAVX8lWL8DI/JgIiYp4WBnsDzlyewkUbfIIY46KzUTupVsEz7ZcfiU d+ZWAHDypbJS5MuwuyZPGf9amnig8cdFxRFynCDlHwut5hxYpe28VgEHytHAaMbaKu6W p/g4SGi1sCObHfkUPas8OE96GjpDjn9uEx8t+d/7Uf5G3iITR3d5zmWBdE/34PaeAqJq VTvQ== X-Gm-Message-State: AOAM533MGv6faMa2pQ4H0i/mz+87dncZz8+rnvB6kjV1qBcCR1lkcntc /1fjCRbb0Mmd532wOG3mNhPZl3HbTRWToP5v X-Google-Smtp-Source: ABdhPJxh+JDDPmS+b2lNs3Nso1hi/a5ml40n8p4Ea5AE7qbvFc8pXHQIMCNNNxampag9DgrRyKks8VCyyDOAMaIR X-Received: from andreyknvl3.muc.corp.google.com ([2a00:79e0:15:13:7220:84ff:fe09:7e9d]) (user=andreyknvl job=sendgmr) by 2002:a05:6214:127:: with SMTP id w7mr7034621qvs.3.1604333116812; Mon, 02 Nov 2020 08:05:16 -0800 (PST) Date: Mon, 2 Nov 2020 17:04:01 +0100 In-Reply-To: <cover.1604333009.git.andreyknvl@google.com> Message-Id: <2673f10ce2a1186d88d6bda0023cc81e2564888a.1604333009.git.andreyknvl@google.com> Mime-Version: 1.0 References: <cover.1604333009.git.andreyknvl@google.com> X-Mailer: git-send-email 2.29.1.341.ge80a0c044ae-goog Subject: [PATCH v7 21/41] kasan: don't duplicate config dependencies From: Andrey Konovalov <andreyknvl@google.com> To: Catalin Marinas <catalin.marinas@arm.com>, Will Deacon <will.deacon@arm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201102_110519_919135_B61B116D X-CRM114-Status: GOOD ( 11.88 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: linux-arm-kernel@lists.infradead.org, Marco Elver <elver@google.com>, Elena Petrova <lenaptr@google.com>, Andrey Konovalov <andreyknvl@google.com>, Kevin Brodsky <kevin.brodsky@arm.com>, Branislav Rankov <Branislav.Rankov@arm.com>, kasan-dev@googlegroups.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org, Alexander Potapenko <glider@google.com>, Evgenii Stepanov <eugenis@google.com>, Andrey Ryabinin <aryabinin@virtuozzo.com>, Andrew Morton <akpm@linux-foundation.org>, Vincenzo Frascino <vincenzo.frascino@arm.com>, Dmitry Vyukov <dvyukov@google.com> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
kasan: add hardware tag-based mode for arm64
|
expand
|
diff --git a/lib/Kconfig.kasan b/lib/Kconfig.kasan index 8f0742a0f23e..ec59a0e26d09 100644 --- a/lib/Kconfig.kasan +++ b/lib/Kconfig.kasan @@ -24,6 +24,8 @@ menuconfig KASAN (HAVE_ARCH_KASAN_SW_TAGS && CC_HAS_KASAN_SW_TAGS) depends on (SLUB && SYSFS) || (SLAB && !DEBUG_SLAB) depends on CC_HAS_WORKING_NOSANITIZE_ADDRESS + select CONSTRUCTORS + select STACKDEPOT help Enables KASAN (KernelAddressSANitizer) - runtime memory debugger, designed to find out-of-bounds accesses and use-after-free bugs. @@ -46,10 +48,7 @@ choice config KASAN_GENERIC bool "Generic mode" depends on HAVE_ARCH_KASAN && CC_HAS_KASAN_GENERIC - depends on (SLUB && SYSFS) || (SLAB && !DEBUG_SLAB) select SLUB_DEBUG if SLUB - select CONSTRUCTORS - select STACKDEPOT help Enables generic KASAN mode. @@ -70,10 +69,7 @@ config KASAN_GENERIC config KASAN_SW_TAGS bool "Software tag-based mode" depends on HAVE_ARCH_KASAN_SW_TAGS && CC_HAS_KASAN_SW_TAGS - depends on (SLUB && SYSFS) || (SLAB && !DEBUG_SLAB) select SLUB_DEBUG if SLUB - select CONSTRUCTORS - select STACKDEPOT help Enables software tag-based KASAN mode.