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: 11895509 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 85D1915E6 for ; Tue, 10 Nov 2020 22:11:14 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 3F86F207D3 for ; Tue, 10 Nov 2020 22:11:14 +0000 (UTC) Authentication-Results: mail.kernel.org; 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 3F86F207D3 Authentication-Results: mail.kernel.org; dmarc=fail (p=reject dis=none) header.from=google.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 382506B006E; Tue, 10 Nov 2020 17:11:13 -0500 (EST) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 359346B0070; Tue, 10 Nov 2020 17:11:13 -0500 (EST) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 295B16B0071; Tue, 10 Nov 2020 17:11:13 -0500 (EST) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0220.hostedemail.com [216.40.44.220]) by kanga.kvack.org (Postfix) with ESMTP id EF75D6B006E for ; Tue, 10 Nov 2020 17:11:12 -0500 (EST) Received: from smtpin25.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with ESMTP id A2ECD180AD806 for ; Tue, 10 Nov 2020 22:11:12 +0000 (UTC) X-FDA: 77469905184.25.fang86_1317ecc272f8 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin25.hostedemail.com (Postfix) with ESMTP id 7F1D21804E3A1 for ; Tue, 10 Nov 2020 22:11:12 +0000 (UTC) X-Spam-Summary: 1,0,0,acf167b42e6c48d4,d41d8cd98f00b204,3_g-rxwokcm0t6waxh36e4z77z4x.v75416dg-553etv3.7az@flex--andreyknvl.bounces.google.com,,RULES_HIT:41:152:355:379:541:800:960:973:988:989:1260:1277:1313:1314:1345:1359:1431:1437:1516:1518:1534:1540:1593:1594:1711:1714:1730:1747:1777:1792:1978:1981:2194:2199:2393:2559:2562:3138:3139:3140:3141:3142:3152:3351:3608:3865:3870:3871:3874:4250:5007:6261:6653:6742:9969:10004:10400:11026:11232:11473:11658:11914:12043:12296:12297:12438:12555:12895:13069:13311:13357:14096:14097:14181:14394:14659:14721:21080:21365:21444:21451:21627:30054,0,RBL:209.85.221.74:@flex--andreyknvl.bounces.google.com:.lbl8.mailshell.net-62.18.0.100 66.100.201.100;04y8xpnodzunhyqquzjfh498zuke8yp9axs7b6suut3sui5w1qixj31we31oor8.wqupjqy4734itaz7fgexc9ba51d4efy6qer6cdyr3wnsc9ai43trbe4c5uy6tuo.4-lbl8.mailshell.net-223.238.255.100,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fp,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:70,LUA_ SUMMARY: X-HE-Tag: fang86_1317ecc272f8 X-Filterd-Recvd-Size: 4290 Received: from mail-wr1-f74.google.com (mail-wr1-f74.google.com [209.85.221.74]) by imf11.hostedemail.com (Postfix) with ESMTP for ; Tue, 10 Nov 2020 22:11:12 +0000 (UTC) Received: by mail-wr1-f74.google.com with SMTP id l5so1658573wrn.18 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=NTi1YnIHagBbxJH4p0iFJxf0fkRkD9VxhYYuRBx0WfMq6P4nEjFjYT4vCD3RMeplVg he1KGTwzN1YOz+TT2EdPaEG/fSjkBMYXQvhsd9UAxIkyHKsy8N+aWotvnXI+O0CND8VU eqWLdgLByTMfOSrFFnPVEnZN6DO9QInZ2CgovP/eHkSxG2+sF5bZHdboNLX5VPN/3UZv W/B9+e1oJ713tI2B+aRLMFeand+vhWCPc6qaX5tSVER0M78XkRgB6H1Q+5+e6pKax/Ko 2c1kI/l4+PCfkesKLvFqOiCBXN2TR6ZaZ6oEeiLf2g0LO2NV5mp9b2GmehMIMeW+MJiT 5wtw== X-Gm-Message-State: AOAM532dtniGTGp4aQgV5sAoPSYFyAS25yYYuXhtnBAPmBDDsRyqZNtS ovqwK0fqOBpp2rwRiBBMLonQinM3q1v860bV 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 Cc: Will Deacon , Vincenzo Frascino , Dmitry Vyukov , Andrey Ryabinin , Alexander Potapenko , Marco Elver , Evgenii Stepanov , Branislav Rankov , Kevin Brodsky , Andrew Morton , kasan-dev@googlegroups.com, linux-arm-kernel@lists.infradead.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Andrey Konovalov X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: 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