From patchwork Tue Nov 10 22:09:59 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrey Konovalov X-Patchwork-Id: 11895605 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=-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 AC9F3C388F7 for ; Tue, 10 Nov 2020 22:15:04 +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 33BF720637 for ; Tue, 10 Nov 2020 22:15:04 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="i93RTpxx"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=google.com header.i=@google.com header.b="vg43E0A6" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 33BF720637 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=5AkcVhvpKUaNIgoBXxENE3YB1chkvmcGt4OK6luvC6o=; b=i93RTpxx97xWHoz+5z1TR7uSY P3+ZA8MBN6y68akvtEJ6OUbYioXQobzxB9/SYwNP4zv3ML+RO051qmGSQzjkB0fqQrf5C2iunvvBV tS83sHJmNcDAY8W57u8W3a1voZQv2extsfG5gXxha59CRKZBu5VN4Ul2lR11q1OZLRntqqph3gVvu ZMn6PKaso6E6FmBna6YQ0okl2aT1+RtSCPfIvW2hyec10EzYjGk0DeTE403VYsZAqGuXC4p5+zR7J LJWE2bxsa/PVto164rcJx5fQsA23PPfL0TdB7K4S21WlPNLE3dHkokcmUqghxPDEP+e+B9s5FMJTY oeVfO37cw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kcbtM-0005LN-0V; Tue, 10 Nov 2020 22:13:32 +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 1kcbrE-0004RM-8Z for linux-arm-kernel@lists.infradead.org; Tue, 10 Nov 2020 22:11:25 +0000 Received: by mail-wr1-x449.google.com with SMTP id q15so6184492wrw.8 for ; Tue, 10 Nov 2020 14:11:11 -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=+WfGVmUcfITRHEHJPKcL2vISbLS+w5GU8CW99F+itqc=; b=vg43E0A6yOkdBKlSumbG23HIPKHMG2fFGlW5x7XCoPytCblD7QRpMmkKrDE+/qj5rJ QQnFAaY6Ikc5fIjCKfGfC9HSXAICPfJPjJVHmOD01Njx2amC0j3uHCY+HqIITfq4mdDY wvozL6Sca7h1Czs+9+8f1u00f1LmE11omJEvWkkPiKNG1IscyHhwjoXvwvn3cNkuNCX+ mNGwrhe1iCjYruI0qxA0SXLM42ZaNQRSI3QCqCgR99c5DbB3tWECE3qFGewWC71Uahdr u2LJhhN+AS6SyQNMNwIbpEMNReb0X9uzw4nHjzAYtLjhBwExjT1Yhwqrq5UwZX7yBwGe 38GQ== 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=+WfGVmUcfITRHEHJPKcL2vISbLS+w5GU8CW99F+itqc=; b=GrAGfL9Y0IauMcjDa9pknbgRNdC8QHAwkTFnxV90EvQ2Ymu+tdD2IAojhVVW5pLsmy 7k50Z1w4Do1auf1GhVHcqAGH1F5h61uMut4luD1K4auYV2hfiunQg7ET2H76nAl4gzZX WgR3rIvMxY6LfHsh5g6idL+oCkCR8CRGkE07DlFFSeSBBwSfEh0mWvKnAjdWkBW/sbub 8+FACx7LdD6tKVTyFHgQC+SHF7gQm8FbzwD7sxc36e6NMdqOJ+UDE/DzyX73y1viWMq0 CvJVe/GQRnuxODuSyrsWxp+V1sk8VtxZWB6fvlVnpARrw6nU3F52uEMgbCGN93UQ1m+i XUmg== X-Gm-Message-State: AOAM532M5uqA/5kiP4iNTQtIR5P9xkR8B4cSM1j4HXPDwCmzeitoAT19 3AC9vn9m/37iRkbtokTjgkV84JGQs9rM3HAh X-Google-Smtp-Source: ABdhPJxwTbk0NjoJxDDMQxpQd7p4SPRLkqnor5eNLvNVXgVYdd+g7ivbLYQMqr3PppMVQh7kzrEzI2rhySIOEZ4v X-Received: from andreyknvl3.muc.corp.google.com ([2a00:79e0:15:13:7220:84ff:fe09:7e9d]) (user=andreyknvl job=sendgmr) by 2002:a7b:ce99:: with SMTP id q25mr243582wmj.35.1605046270971; Tue, 10 Nov 2020 14:11:10 -0800 (PST) Date: Tue, 10 Nov 2020 23:09:59 +0100 In-Reply-To: Message-Id: <24a25ef0fcfa07a94129e2ae5ec72f829c57ac42.1605046192.git.andreyknvl@google.com> Mime-Version: 1.0 References: X-Mailer: git-send-email 2.29.2.222.g5d2a92d10f8-goog Subject: [PATCH v9 02/44] kasan: KASAN_VMALLOC depends on KASAN_GENERIC From: Andrey Konovalov To: Catalin Marinas X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201110_171120_384377_DE1393D1 X-CRM114-Status: GOOD ( 13.33 ) 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: linux-arm-kernel@lists.infradead.org, Marco Elver , Andrey Konovalov , Kevin Brodsky , Will Deacon , Branislav Rankov , kasan-dev@googlegroups.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org, Alexander Potapenko , Evgenii Stepanov , Andrey Ryabinin , Andrew Morton , Vincenzo Frascino , Dmitry Vyukov Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Currently only generic KASAN mode supports vmalloc, reflect that in the config. Signed-off-by: Andrey Konovalov Signed-off-by: Vincenzo Frascino Reviewed-by: Marco Elver Reviewed-by: Alexander Potapenko --- Change-Id: I1889e5b3bed28cc5d607802fb6ae43ba461c0dc1 --- lib/Kconfig.kasan | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Kconfig.kasan b/lib/Kconfig.kasan index 542a9c18398e..8f0742a0f23e 100644 --- a/lib/Kconfig.kasan +++ b/lib/Kconfig.kasan @@ -155,7 +155,7 @@ config KASAN_SW_TAGS_IDENTIFY config KASAN_VMALLOC bool "Back mappings in vmalloc space with real shadow memory" - depends on HAVE_ARCH_KASAN_VMALLOC + depends on KASAN_GENERIC && HAVE_ARCH_KASAN_VMALLOC help By default, the shadow region for vmalloc space is the read-only zero page. This means that KASAN cannot detect errors involving