Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1678398ybl; Wed, 8 Jan 2020 23:09:26 -0800 (PST) X-Google-Smtp-Source: APXvYqyZiH/ePAQlm4xeSSTdN7a85bKcHBR3s4SnJyM2q8BTEqno1rdH8IpvKEYapx/CRQqXuxn3 X-Received: by 2002:a05:6830:1691:: with SMTP id k17mr7556056otr.282.1578553766730; Wed, 08 Jan 2020 23:09:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578553766; cv=none; d=google.com; s=arc-20160816; b=mFzBBiGOCJfxx+Jz5FrfjeRlUJ9tJUyZ0hFQUwqpRA2nlX5C9Cy2uFNrv3mpfNycY2 WpTAaUZEg/m1s41QZV/u6wTpmw53mSvMmrVUqPgqNKc+JfL0SEoSEcSHpFdhbVWiJGrG YSnEi0/6/TA//U2VZ1IVPtB6pyHXEhIseaQWQHzRKfrN7i8S52p0169D2iYq+Uo5J5Bz vd6+4KDbQ5csexyMOX/YKCB6ZFJIoHrqDgWa/Ly/OWrWRhBB4Ku/STlEIufCTr+nGZqe KfEw0yGxSoBwrK4MKAhxnJJK53b81llmizIkqXQAJ11RWJkPwLP+srv45hTQvZ8yDzfJ Eh/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=2sxbAlXpABK/W64yfjeUTt7MDV8jfwT8E3maFR+CaL8=; b=Uqc2GYmddTlRdtYkfmlrAc+jlvwZvX60uZ0qTfnC7IOOj8ryse0iZJ7jO1pmRYLHEo K4HoSrlsqVmBObq0EqzlAlcjaFYoSETbl1zK+8FO/5WFP+62TH9rAEFD65voNU74h4+V 2sg0Glu+kdlOArz5+7bwFIS2S5qwvEPnX7GPsPHkXDV7fzFPMAcxSizXgtW4VJ655Vso U5Bg0WhiGOWsNnyb2t9IpE52TrhMy9xymgqszibQDxVJeXQxm73oObRvx34maEg1Gag+ royl1KhtLgdr2rNI+o51XzZCVTZ0fytcYANJjrjDQbI0XjEwmYTLKgJU0d97PH224MU3 S6tQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@axtens.net header.s=google header.b=pDcMswX2; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q9si3090551oif.92.2020.01.08.23.09.14; Wed, 08 Jan 2020 23:09:26 -0800 (PST) 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=@axtens.net header.s=google header.b=pDcMswX2; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728250AbgAIHI1 (ORCPT + 99 others); Thu, 9 Jan 2020 02:08:27 -0500 Received: from mail-pl1-f196.google.com ([209.85.214.196]:37910 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726541AbgAIHI1 (ORCPT ); Thu, 9 Jan 2020 02:08:27 -0500 Received: by mail-pl1-f196.google.com with SMTP id f20so2182606plj.5 for ; Wed, 08 Jan 2020 23:08:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axtens.net; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=2sxbAlXpABK/W64yfjeUTt7MDV8jfwT8E3maFR+CaL8=; b=pDcMswX2WqLuZ2zwtGNOX8ZMSnngOYELKXS2rxZtVn2Hc7xWg66Hj5z15rqh53IES9 o+F/RvS9jzIeAGvcVkvywdpJF6qGZZY3AO4H6XlhPLZt4Lb11wRasFUfONJEfbCg/DRL B9pVhEjhJZcdZlwBqFEQch+Xg35ywvGnsJSZk= 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:mime-version:content-transfer-encoding; bh=2sxbAlXpABK/W64yfjeUTt7MDV8jfwT8E3maFR+CaL8=; b=cjiR9paymBmisodYWgWdGgxoHzHJlfJKwI1c+/4DsQLnUDKTkwdTj3AtX9RAdL1yZi oYpavNgdylwPHeLv2hqrCSPLB5mWW6ybzo++xKs+bOqsviXTeCTVD+uRsIMZP1obR58G DpwCnUH0E/EOPfXGDOoJE1VHxhSKv77m0mELxsYqi64LlDecRF8Ge3CGvU28jnBbb35z aMdSzCqXev+9TAueaP2wbLd9pL/0GzRvyvxkHevhXUXv8GLSn32j8Mgbqu8yWuM2/2Gu yjHtAnGTfSoioxDplmwsOvvrfWUY/3CG2HuDvDq9xOwO+Cs8E5g9LufPVkUOVQ8QXIdF Lxsg== X-Gm-Message-State: APjAAAUvq5A7ZdcXmVSRoZeLQlnaOpKiDb4VjQWdbq/aDRjWnM9VaCeO t3q4HBtBEoxcCP+vSW0ZU8JmaaiJ6ys= X-Received: by 2002:a17:902:788d:: with SMTP id q13mr9716939pll.210.1578553705849; Wed, 08 Jan 2020 23:08:25 -0800 (PST) Received: from localhost (2001-44b8-1113-6700-5cb3-ebc3-7dc6-a17b.static.ipv6.internode.on.net. [2001:44b8:1113:6700:5cb3:ebc3:7dc6:a17b]) by smtp.gmail.com with ESMTPSA id 3sm6228356pfi.13.2020.01.08.23.08.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Jan 2020 23:08:25 -0800 (PST) From: Daniel Axtens To: linux-kernel@vger.kernel.org, linux-mm@kvack.org, linuxppc-dev@lists.ozlabs.org, kasan-dev@googlegroups.com, christophe.leroy@c-s.fr, aneesh.kumar@linux.ibm.com, bsingharora@gmail.com Cc: Daniel Axtens Subject: [PATCH v5 2/4] kasan: Document support on 32-bit powerpc Date: Thu, 9 Jan 2020 18:08:09 +1100 Message-Id: <20200109070811.31169-3-dja@axtens.net> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200109070811.31169-1-dja@axtens.net> References: <20200109070811.31169-1-dja@axtens.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org KASAN is supported on 32-bit powerpc and the docs should reflect this. Suggested-by: Christophe Leroy Reviewed-by: Christophe Leroy Signed-off-by: Daniel Axtens --- Documentation/dev-tools/kasan.rst | 3 ++- Documentation/powerpc/kasan.txt | 12 ++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 Documentation/powerpc/kasan.txt diff --git a/Documentation/dev-tools/kasan.rst b/Documentation/dev-tools/kasan.rst index e4d66e7c50de..4af2b5d2c9b4 100644 --- a/Documentation/dev-tools/kasan.rst +++ b/Documentation/dev-tools/kasan.rst @@ -22,7 +22,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. +architectures. It is also supported on 32-bit powerpc kernels. Tag-based KASAN +is supported only on arm64. Usage ----- diff --git a/Documentation/powerpc/kasan.txt b/Documentation/powerpc/kasan.txt new file mode 100644 index 000000000000..a85ce2ff8244 --- /dev/null +++ b/Documentation/powerpc/kasan.txt @@ -0,0 +1,12 @@ +KASAN is supported on powerpc on 32-bit only. + +32 bit support +============== + +KASAN is supported on both hash and nohash MMUs on 32-bit. + +The shadow area sits at the top of the kernel virtual memory space above the +fixmap area and occupies one eighth of the total kernel virtual memory space. + +Instrumentation of the vmalloc area is not currently supported, but modules +are. -- 2.20.1