From patchwork Mon Nov 23 20:07:26 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrey Konovalov X-Patchwork-Id: 11926255 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=-16.8 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=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 3D873C2D0E4 for ; Mon, 23 Nov 2020 20:10:34 +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 75B2320715 for ; Mon, 23 Nov 2020 20:10:33 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="UR1f436g"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=google.com header.i=@google.com header.b="tNrLX9o0" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 75B2320715 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=Owi5mM1EiIMcCLGQINmapQ/RLmcQ1GXC5H17FJZKb3w=; b=UR1f436gZhQ5dZdavfyaInxwd xPaBcJwjfOKpkW1oKY1mrJPnzJWhtlc2PcqZ3+sjrqg/OF8VSbSqHipmqLxATW9qkGW4cPuCjaUK1 hWFslBGYYt0/tXKR9dsYHf7Rzz2LZ8BiHwhGHOoUhtCzjvRvNImWiR+yIP5Gs7tubXQVbEv+QpyjZ KpQZM1WAg2f+N9V2d+ZMAcTd2fEOdxMYXze/Sm78Ji00OteJ6ZTYw21nGKP0gVONJ/Y7P6Lwn2Gel M0E+UARQF08c6PSgh7NW5rIIY5vH6JL8eOcN8BzfyiOyGRwxwo2Ky+az/oeWdXJHQQsYoEB1l7rRc Wz+9wc9CA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1khI8c-0007z5-A2; Mon, 23 Nov 2020 20:08:38 +0000 Received: from mail-wm1-x349.google.com ([2a00:1450:4864:20::349]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1khI8R-0007ts-6r for linux-arm-kernel@lists.infradead.org; Mon, 23 Nov 2020 20:08:28 +0000 Received: by mail-wm1-x349.google.com with SMTP id c131so160905wma.0 for ; Mon, 23 Nov 2020 12:08:24 -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=XfXa1jt+0lTuh6OgRbLfYhhuoSJQhOjqmzv/mbzZDEM=; b=tNrLX9o0lFHI6YWmxVuoOlxK7USSwhxsGK9bGXKo9Q/Ey0C48ZL6MTwIPXc2XXj9ir RaGv3fnIPrVR7PhO+cvCNTTZblxnQKFdm/+XhHV18otbUWNwrXpQbMrfnPHE5IlMj2J9 KgoGMxjlxuHbAK3QnGUxRZ8XF67Xp9YJLhIOIXcqDjkGtEKzubh80QyY6mNOMhXGWQ8x Bfl7CSzZc2gkbGlMhoikl1gcAeVTqaD91IqXctkdDssT7C6i2wfDElh/1itCFS+YdEpw UWxa8LpZeXLKLlCdwB7ydHzYuJt0VWv26483bHnMJ7c9jayQ4WSScWqVPcohcI9QoJgg krsw== 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=XfXa1jt+0lTuh6OgRbLfYhhuoSJQhOjqmzv/mbzZDEM=; b=JlZilVnBUnNPIDEq7J8ZMVp4uTN88pmJDRWwttdSImHQALQsk7Gk3RUUlliTFhpiLf IRXhpSu7Kya0LPmpe1b1UD5Isun4YcY2jGTlushNW9PXjp2EANrIsExNuBj/odMOb4uv 5knmJ8ohkqLqT1t4XW/wEGBHw0fnZAdlEyyejm/YaJcGM+aXr7oJAqs9goQ1PJQ5E1XR M9vslwPbqcKKaVFDYAGR6VOXTlmOM8dz5MXCnd7rJZKzLKcG8eaVXyGRs+d0wTICkTU8 MKnHNW+MUspUy5rrrdAAoTA0yiZTY6IDHMzP5icsrnh7x1579CIRf/J2/a9QNSrRy71i 1F4A== X-Gm-Message-State: AOAM533X/GTCfHv+nTCdAhY2pYOc3D+6MKiv+92k0ypcXoPVVic1mess dJXkPcQb0G7hrJFXavu8lCzO8yYBMGdaStPe X-Google-Smtp-Source: ABdhPJyipEp52As5ABW7qjej49j6iqncktvo99eer3o5hWFS2jWRYIYJpdVzUNciy1GEwE5a7M10sdyRdgGbAsHK X-Received: from andreyknvl3.muc.corp.google.com ([2a00:79e0:15:13:7220:84ff:fe09:7e9d]) (user=andreyknvl job=sendgmr) by 2002:a05:6000:10cd:: with SMTP id b13mr1469712wrx.220.1606162104203; Mon, 23 Nov 2020 12:08:24 -0800 (PST) Date: Mon, 23 Nov 2020 21:07:26 +0100 In-Reply-To: Message-Id: <0c493d3a065ad95b04313d00244e884a7e2498ff.1606161801.git.andreyknvl@google.com> Mime-Version: 1.0 References: X-Mailer: git-send-email 2.29.2.454.gaff20da3a2-goog Subject: [PATCH mm v11 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-20201123_150827_300892_59D37F98 X-CRM114-Status: GOOD ( 13.79 ) 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