Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp3036655ybi; Mon, 17 Jun 2019 15:12:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqxcVojhvRpZY5rCnz2IwwFp5dioITmrxQz+nCk/CSuxo1eZ5Ase9CqrN9Wl+eso61/6hphi X-Received: by 2002:a17:902:44a4:: with SMTP id l33mr30630557pld.174.1560809546128; Mon, 17 Jun 2019 15:12:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560809546; cv=none; d=google.com; s=arc-20160816; b=iUQ2oMUTHforBujB/jkmk4Htq1njC4pX5ZrKXf3Ck5bRZq+EicDVFz9wCYMQ8z8eGk AK5o5nlYAvViyIrnFFqsg7M89PTy5sCacHNpFTCULj9pzzFr2/A+H5Twr5ftJ11tyThH xRmlq41IZvdde4Ki+ovIRQMjWpeMMIlP5rKjWF/CeelpAIuGiHk9acwsLyaFscvhMaQY wEX1KV8YsiYP8ctuxG4UMwI8tVe9rahOP/djzao6GudMKdyn7zHFuNRWkuUnnTCj58Ae MGF+hkqrN4ht9RSp6tvrrAgWqj3EXOJ9PU7thWDshZzVOdHKKKie6I9ZuBFsRu2rvpJ5 Otgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=/VaXSLpZ75ORCB1zbl4hdNQEjbM9Qsyda80h69PRSPA=; b=aYbJ4vz6wmbxVDFWSbbwlbbkigsP4zkzrChX+EJ0NgyvI5hwN9168lTnEeBj7P3gMF aGNQG+pqBjvKZZryuybNaCKB8C68iJgEg3avNpHRCBxmqPbWww9TaFp7E6UnamlNuSbL KLOnmNalNsB9QRWyp4b/qEADn3k2t9QfrP4JN0g3K7aJsOlEAhaGu4SdGm+58JoYTmgC WrPxZ0XYjYqC+bk3wWYH2FHBYAPsfeT1wde4FhysPSzH1mnJhi+SgRVEuIT1DsJ/lDuy IFzi6NH8fHepo4QG9N+PIbKoV+iqQiMVsxxmmSzdJBSb/rW+l0v3w+yonfE1Qk2WH4B/ gMNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=HsMQvlLI; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z14si415488pjr.55.2019.06.17.15.12.11; Mon, 17 Jun 2019 15:12:26 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=HsMQvlLI; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728884AbfFQWL6 (ORCPT + 99 others); Mon, 17 Jun 2019 18:11:58 -0400 Received: from mail-pl1-f196.google.com ([209.85.214.196]:46078 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728736AbfFQWL4 (ORCPT ); Mon, 17 Jun 2019 18:11:56 -0400 Received: by mail-pl1-f196.google.com with SMTP id bi6so4735013plb.12; Mon, 17 Jun 2019 15:11:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=/VaXSLpZ75ORCB1zbl4hdNQEjbM9Qsyda80h69PRSPA=; b=HsMQvlLIq0OP3L+FNIJyK0J78hvT1oQovohPXn1CRaD6VJCWPJiDVE7KaumvwPCqPI Kejd+2gug/XQ+dNQmZn8ot3iXedEbK/uf+uCWp4vrklRf18r/7wuC36QXr3aC2I+yPSn 3juO07q/f4tTVJwdeVZeS+cbKvuPVDA2UKZ3y9lNhUdSG9QP7k6tD56pNJfmIEkIqJk2 sKiiEmKP2oqEo16lJeYQGSdpJTVjAM+5d4O9IfYuxLMdcrGY6tZdFU379hSKXMadpcUH BFHBZh5uBpa0YpPUJgjJR7h2ZfTw9qFlGiq/GJX4ri5ptBDGBx/oc8dwS2ohZf26tdUc 95nw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=/VaXSLpZ75ORCB1zbl4hdNQEjbM9Qsyda80h69PRSPA=; b=rKqaF19YWSXKIarfNptMXy5KG45Xpk+AMi7q4adJ+g7t23xZ9rbKIOAgzsU3zzRQjL XiKYxpGy101zW6wPSesKvVi2cNVLcsdfywotBHPUdXUquST5o3A9gluO777vQw4Oluc8 vSv6/cstxM0dmgA+/amyetNZvoO+3IK87L7tjDwmqJVUuu7PZdiUhjFl5r1rnSVPliOI jtkKKc8xa6iuhq48+Tkdjojz3lmDBkPJBNZhHwW0iXzoDaKiRVkmHZ6T+qSsC+iYS93z 9b6sAezebty/Aa17BoDWnSV/OwyKgf4gL/RRhsj4yACC63Mzwe+7lgA1Q88LNd9nLmaD JwDQ== X-Gm-Message-State: APjAAAXP3XRTxPIIpKcH9Z+65OTRh0W6yiWZGwciYy9estvAwq7quXt3 a6Bfteyr6NMJpOML36MJwgI= X-Received: by 2002:a17:902:8696:: with SMTP id g22mr84220867plo.249.1560809515479; Mon, 17 Jun 2019 15:11:55 -0700 (PDT) Received: from fainelli-desktop.igp.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id s129sm12551020pfb.186.2019.06.17.15.11.53 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Mon, 17 Jun 2019 15:11:54 -0700 (PDT) From: Florian Fainelli To: linux-arm-kernel@lists.infradead.org Cc: bcm-kernel-feedback-list@broadcom.com, Andrey Ryabinin , Abbott Liu , Florian Fainelli , glider@google.com, dvyukov@google.com, corbet@lwn.net, linux@armlinux.org.uk, christoffer.dall@arm.com, marc.zyngier@arm.com, arnd@arndb.de, nico@fluxnic.net, vladimir.murzin@arm.com, keescook@chromium.org, jinb.park7@gmail.com, alexandre.belloni@bootlin.com, ard.biesheuvel@linaro.org, daniel.lezcano@linaro.org, pombredanne@nexb.com, rob@landley.net, gregkh@linuxfoundation.org, akpm@linux-foundation.org, mark.rutland@arm.com, catalin.marinas@arm.com, yamada.masahiro@socionext.com, tglx@linutronix.de, thgarnie@google.com, dhowells@redhat.com, geert@linux-m68k.org, andre.przywara@arm.com, julien.thierry@arm.com, drjones@redhat.com, philip@cog.systems, mhocko@suse.com, kirill.shutemov@linux.intel.com, kasan-dev@googlegroups.com, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, kvmarm@lists.cs.columbia.edu, ryabinin.a.a@gmail.com Subject: [PATCH v6 6/6] ARM: Enable KASan for arm Date: Mon, 17 Jun 2019 15:11:34 -0700 Message-Id: <20190617221134.9930-7-f.fainelli@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190617221134.9930-1-f.fainelli@gmail.com> References: <20190617221134.9930-1-f.fainelli@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Andrey Ryabinin This patch enable kernel address sanitizer for ARM. Acked-by: Dmitry Vyukov Signed-off-by: Abbott Liu Signed-off-by: Florian Fainelli --- Documentation/dev-tools/kasan.rst | 4 ++-- arch/arm/Kconfig | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Documentation/dev-tools/kasan.rst b/Documentation/dev-tools/kasan.rst index b72d07d70239..a9cb1feec0c1 100644 --- a/Documentation/dev-tools/kasan.rst +++ b/Documentation/dev-tools/kasan.rst @@ -21,8 +21,8 @@ global variables yet. Tag-based KASAN is only supported in Clang and requires version 7.0.0 or later. -Currently generic KASAN is supported for the x86_64, arm64, xtensa and s390 -architectures, and tag-based KASAN is supported only for arm64. +Currently generic KASAN is supported for the x86_64, arm, arm64, xtensa and +s390 architectures, and tag-based KASAN is supported only for arm64. Usage ----- diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index 8869742a85df..5c98431ddaea 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -59,6 +59,7 @@ config ARM select HAVE_ARCH_BITREVERSE if (CPU_32v7M || CPU_32v7) && !CPU_32v6 select HAVE_ARCH_JUMP_LABEL if !XIP_KERNEL && !CPU_ENDIAN_BE32 && MMU select HAVE_ARCH_KGDB if !CPU_ENDIAN_BE32 && MMU + select HAVE_ARCH_KASAN if MMU select HAVE_ARCH_MMAP_RND_BITS if MMU select HAVE_ARCH_SECCOMP_FILTER if AEABI && !OABI_COMPAT select HAVE_ARCH_THREAD_STRUCT_WHITELIST -- 2.17.1