Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1318523ybl; Wed, 18 Dec 2019 16:37:47 -0800 (PST) X-Google-Smtp-Source: APXvYqwprX6cz1+O56vG14tqM2Mlvx42q7wfVcumYbMT3sUo9Q1km389qlOUJv1STGaj/E77QW1S X-Received: by 2002:a9d:7b4e:: with SMTP id f14mr5753602oto.355.1576715867325; Wed, 18 Dec 2019 16:37:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576715867; cv=none; d=google.com; s=arc-20160816; b=Q1cbvBfrs4K2t5rjF2tm6hK2NTeDAAHbYHnZu7pWkgcjLIBYfwbNBlqZLkvAcY5M4i 66F0MdMbhFpcPQ3VpzshHSDCBhe8jWCKqhQ9QpI7n5mNVVrfFaV+z2KdP6yDSiKjfkoJ rdjnujtENvYXSJPIKeoh09WF40QOxiJKiQvu0gurtZ8kHYRIujZGV1MyACbU7Vpd7PYP yX8yfFVLHljHUYN4PEnGto7MXoZGkCBkFdOsJKg5MnSpuRQPkfwwp6+XbYGEJtVPYG0I xoRvnx+wOVL0Qvuq2Y3Ed8QoHnXNRJYn0bHV/C3ntWIQh0MXmMkfgIY+CgFOEaCy2Wpk ogVA== 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=RKXhAV0EuXJ4QVkKw+QjG0lVxCO/Gffd8K17SGWesvVEW2hEgx/oFKstih+40ZBRgW HrEUT0YpEAaMXRIOSl+0/l5bx+Og70LjF7yI+2/OqhIi9y4voZ+Di8tLDmiZIRF8D6VO fiL8vJA0enOxQsoimqvuVOEPYDBz4ljw9l5LtBl3lr9Tj5IQNq4ZneopGwGT1a3+eBpX txog4BmOymi8igjmMWqCwBfvGydRbf+3PZ3vLehlo8BVM/Zy64AJcLqMbO5Jk0EXDZ9M 65YfK8mQvE38ZJFng7n7AFeXWRipzXzlsJsQ2jZjphkVTxqtrq/crnf3LIFUkQxoMMnb GdCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@axtens.net header.s=google header.b=CuenhOgJ; 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 c10si2442287oto.293.2019.12.18.16.37.35; Wed, 18 Dec 2019 16:37:47 -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=CuenhOgJ; 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 S1726768AbfLSAgq (ORCPT + 99 others); Wed, 18 Dec 2019 19:36:46 -0500 Received: from mail-pg1-f196.google.com ([209.85.215.196]:38884 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726463AbfLSAgq (ORCPT ); Wed, 18 Dec 2019 19:36:46 -0500 Received: by mail-pg1-f196.google.com with SMTP id a33so2167714pgm.5 for ; Wed, 18 Dec 2019 16:36:46 -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=CuenhOgJpQr2nu4AdM2tW86k5v6/hCnF0GhwIuOz0ouFzJzdbtXuJyD22YYHOifcsJ 9W5/842eIyhsVN7iaHJG1xs6VB1GSSQxmEgwvBfOXay9yRhrOifUNgCwX4EgHgcQ8jkh NqI+TkWQOjH0NbVXQy47gLC+t5Dz4QizhrJQU= 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=SgiBnOi7lO4Ws1w80B2aRfIV9FrMj404qPZBupwXuKK5aBkylD7ZNQESkP+lox7zeb nA1rElHF9WU3wY80Qc9ixs+cad04dKt0gFZZhfSUlqGwY6ImN3n7he/+E1135hKBJRJl hyl7jb5G3CFlSdL1lnLyeWf3F4GmFtZp9tEFBfJspkqlKRScO5VnVQ50zFi3Z9Tn3vgE EvjkI92maUqtWZzUEsbLWpZuzI7QwFxDyviAZ0qF+rMrBqEiuBR6csRTt5j2M4VV+GQ0 1W4KfrqXDWaBQmb0pQCcwozUr/N7HplFpBViixEN/tJHT0ZO+pBD3hdOfn6CZowOQtSW NKAA== X-Gm-Message-State: APjAAAU4mCCv4aCtVxBW0MGkOGhBSklaH9ZZtRQO/wcehDCZsCAg+XYo Wb/f3qCw3fsJVzjWErEkCjQjkh/6O08= X-Received: by 2002:a63:1447:: with SMTP id 7mr6070116pgu.22.1576715805301; Wed, 18 Dec 2019 16:36:45 -0800 (PST) Received: from localhost (2001-44b8-111e-5c00-b05d-cbfe-b2ee-de17.static.ipv6.internode.on.net. [2001:44b8:111e:5c00:b05d:cbfe:b2ee:de17]) by smtp.gmail.com with ESMTPSA id e16sm4799301pff.181.2019.12.18.16.36.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Dec 2019 16:36:44 -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 v4 2/4] kasan: Document support on 32-bit powerpc Date: Thu, 19 Dec 2019 11:36:28 +1100 Message-Id: <20191219003630.31288-3-dja@axtens.net> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191219003630.31288-1-dja@axtens.net> References: <20191219003630.31288-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