From patchwork Fri Nov 13 22:15:30 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrey Konovalov X-Patchwork-Id: 11904921 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 5EED6C63697 for ; Fri, 13 Nov 2020 22:17:10 +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 1027822258 for ; Fri, 13 Nov 2020 22:17:10 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="fYrw8Vb8"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=google.com header.i=@google.com header.b="M3qWP0rH" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 1027822258 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=z3WnW3RufiaFHtt829TFVpO0W5DVVrdcOm9ZtFLvTPw=; b=fYrw8Vb8Q1lM+glCp4tTOQRFc 8d7GzGcA0T/OFS4IkOYnxy1u2By2Fn50yxZoP5bT307YqatpMZih+9SkJvi4p1gD/2uqi687a8PKl qcSWZBx7gvoLxh3/QYE2dooF6MB+DYbplnzRaEMh25jLZlPXfWuP7RVJvfpxUqbXphhlVkseEd6G/ 0/Fwo+TFQ0Bu+gzNENVFMOAhueBxlmOUijHSqjuAgL4OINqOyTFtkeUUZ6FPsRPGg4DNPiMNlBOb3 KyJCrncKZvz9aNmL0gtpN3w9zKrmmV9tKW1XLCUKTgCDKhE4uNAHAv+hDauO+6FN7ODHwL/c26rkn 2U+96NR4g==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kdhMu-0008Mc-OK; Fri, 13 Nov 2020 22:16:32 +0000 Received: from mail-wr1-x44a.google.com ([2a00:1450:4864:20::44a]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kdhMk-0008IG-AC for linux-arm-kernel@lists.infradead.org; Fri, 13 Nov 2020 22:16:23 +0000 Received: by mail-wr1-x44a.google.com with SMTP id z13so4677774wrm.19 for ; Fri, 13 Nov 2020 14:16:20 -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=0h4ZiQVa03qeRcJlTu8FgXI56j5Z1qnhf08CuZFwLPY=; b=M3qWP0rHfTQk2jcgEfqgkakopE2+vK0SlmyGJK9pC4J8uXGmgpQoXM+4RKiTR2u3AL dY1QfKMiib7IggcnHSankwEPcWCmpo83cRgm146FaTvfh3P42P5LiTRroZV59FOQ219b a9iYmCEjfX0GTASJDOt3WF73FED6rtSBfINDeVSsCsuyl1p5Q5c1RmM/qgVtYGEeddQz pC1seCPTpYGwgBusn8cVsHlOLXJiGbsbi1/t5um/Fh8lluTgualAMtPPPYnSnellRIKb 3T9BuMVDhjV6UTAWkepuDNnWxOpg+bVG3nYfnPWshMBup33tb7asm2GPI4mDujD70mCj 0Jlw== 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=0h4ZiQVa03qeRcJlTu8FgXI56j5Z1qnhf08CuZFwLPY=; b=XMwlPaCU+K9bchVIHWdxiwwJ1SkZ3WXCof5Ekjac6Ga3meC39fTQnaJy5wMR7bJaW3 7UdJxEn586oF1T6JEqJxlciTVRuzJCRlCvRpG3yZN/UXzTgXqsZPu15+Yey6NAj14HNI ZK5zE8IZmXo7t/jPZiBhDqwaEv/6k1B0Vy0hyHypYPylsPAxt+TNJHQAudiwd4yQQj8K FT4mPlDhTiUhhj9H6xKRuO5tR9u1l42JeyeU0L/27JYZvfdEjHO/os3vy572uP+DTWFo UWLuwIe2FP/7Mc2bXpJpzuZoswRmDsG9zgv3BcPgHK/8k5z02vbVRd+eeoo5+L5GgCTg xBTg== X-Gm-Message-State: AOAM530GGGScRe0aVmIsXA8E7HiUTAma25gfVCXoA+cxhef+ggd1hJLr KbDretpCA94o7I2Wgh2RxxsNhacwDLDn5O5l X-Google-Smtp-Source: ABdhPJyAZ0UIxB9J4bgdN99GXrf34dCcbSY/XBwdRljymNk4BfgvZIogxL5MEFsmqXv+lyE1fI8/dfU7LefRJdfp X-Received: from andreyknvl3.muc.corp.google.com ([2a00:79e0:15:13:7220:84ff:fe09:7e9d]) (user=andreyknvl job=sendgmr) by 2002:adf:9e48:: with SMTP id v8mr6446890wre.55.1605305779525; Fri, 13 Nov 2020 14:16:19 -0800 (PST) Date: Fri, 13 Nov 2020 23:15:30 +0100 In-Reply-To: Message-Id: <23b7935ec33e425f66ab736f6cf2bf74af542ac0.1605305705.git.andreyknvl@google.com> Mime-Version: 1.0 References: X-Mailer: git-send-email 2.29.2.299.gdc1121823c-goog Subject: [PATCH mm v10 02/42] kasan: KASAN_VMALLOC depends on KASAN_GENERIC From: Andrey Konovalov To: Andrew Morton X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201113_171622_434309_66160C69 X-CRM114-Status: GOOD ( 13.42 ) 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 , Catalin Marinas , Kevin Brodsky , Will Deacon , Branislav Rankov , kasan-dev@googlegroups.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org, Alexander Potapenko , Evgenii Stepanov , Andrey Konovalov , Andrey Ryabinin , 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 8fb097057fec..58dd3b86ef84 100644 --- a/lib/Kconfig.kasan +++ b/lib/Kconfig.kasan @@ -146,7 +146,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