From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf0-f198.google.com (mail-pf0-f198.google.com [209.85.192.198]) by kanga.kvack.org (Postfix) with ESMTP id 67FE66B026A for ; Wed, 11 Oct 2017 04:24:49 -0400 (EDT) Received: by mail-pf0-f198.google.com with SMTP id u27so3248895pfg.3 for ; Wed, 11 Oct 2017 01:24:49 -0700 (PDT) Received: from szxga05-in.huawei.com (szxga05-in.huawei.com. [45.249.212.191]) by mx.google.com with ESMTPS id j7si2715688pff.457.2017.10.11.01.24.47 for (version=TLS1 cipher=AES128-SHA bits=128/128); Wed, 11 Oct 2017 01:24:48 -0700 (PDT) From: Abbott Liu Subject: [PATCH 09/11] Don't need to map the shadow of KASan's shadow memory Date: Wed, 11 Oct 2017 16:22:25 +0800 Message-ID: <20171011082227.20546-10-liuwenliang@huawei.com> In-Reply-To: <20171011082227.20546-1-liuwenliang@huawei.com> References: <20171011082227.20546-1-liuwenliang@huawei.com> MIME-Version: 1.0 Content-Type: text/plain Sender: owner-linux-mm@kvack.org List-ID: To: linux@armlinux.org.uk, aryabinin@virtuozzo.com, liuwenliang@huawei.com, afzal.mohd.ma@gmail.com, f.fainelli@gmail.com, labbott@redhat.com, kirill.shutemov@linux.intel.com, mhocko@suse.com, cdall@linaro.org, marc.zyngier@arm.com, catalin.marinas@arm.com, akpm@linux-foundation.org, mawilcox@microsoft.com, tglx@linutronix.de, thgarnie@google.com, keescook@chromium.org, arnd@arndb.de, vladimir.murzin@arm.com, tixy@linaro.org, ard.biesheuvel@linaro.org, robin.murphy@arm.com, mingo@kernel.org, grygorii.strashko@linaro.org Cc: glider@google.com, dvyukov@google.com, opendmb@gmail.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kasan-dev@googlegroups.com, linux-mm@kvack.org, jiazhenghua@huawei.com, dylix.dailei@huawei.com, zengweilin@huawei.com, heshaoliang@huawei.com Because the KASan's shadow memory don't need to track,so remove the mapping code in kasan_init. Cc: Andrey Ryabinin --- arch/arm/mm/kasan_init.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/arch/arm/mm/kasan_init.c b/arch/arm/mm/kasan_init.c index 2bf0782..7cfdc39 100644 --- a/arch/arm/mm/kasan_init.c +++ b/arch/arm/mm/kasan_init.c @@ -218,10 +218,6 @@ void __init kasan_init(void) clear_pgds(KASAN_SHADOW_START, KASAN_SHADOW_END); - kasan_populate_zero_shadow( - kasan_mem_to_shadow((void *)KASAN_SHADOW_START), - kasan_mem_to_shadow((void *)KASAN_SHADOW_END)); - kasan_populate_zero_shadow(kasan_mem_to_shadow((void *)VMALLOC_START), kasan_mem_to_shadow((void *)-1UL) + 1); -- 2.9.0 -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org